Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Temeez

#76
Mods / Re: [Mod request] holograms of dead colonists
December 26, 2014, 05:46:30 PM
Nice idea actually.

Coding wise, I think the EdB Interface UI Mod has half the answer on how to code this functionality (the onscreen colonist feature). This is how I see how it could be done (very roughly):

- On colonist death, save the picture of colonist at death (like it shows in the UI mod)
- Apply a "hologram" filter image to it (or don't)
- Then use the end result as a texture (or an additional texture for the hologram building?)
- Select the hologram from the build menu (misc?) and right click to select the dead colonist, or put down an empty hologram.

Hell, I might even try to make this, if I can understand the code in the UI Mod .dll :P
#77
So much pretty colors, this is awesome for variety! Thank you for making/updating this and keep up the awesomeness!

Edit: the indents in the .xml files needs fixing ;)
#78
Help / Setting a fixed pawn skin color via C#?
December 25, 2014, 08:06:16 AM
Hey,

I'm trying to mod a new race and I really want to set a fixed(non random) skin color (and trait(s)), but I'm having a problem of figuring out how to do that without "hacking" and setting pawn textures as armors <.<

I'm not sure if its possible, but at least when I tried to do something like this, it didn't work:
    internal class FooPawn : Pawn
    {
        public static readonly Color FooSkin = new Color(34,197,238);

        public FooPawn()
        {
        }

        public virtual void ExposeData()
        {
            base.ExposeData();
            this.story.skinColor = FooSkin;
        }

    }


I'm guessing that it didn't work because the game sets the skin color sometimes after ExposeData(), but even so, I have no idea how to go around that. I hope that someone can help me.

I guess it would also work if I could somehow override (or add to it (if race == "Foo" then use these colors..)) "public static Color RandomSkinColor()" for the new race, but again, I don't know how to.  :'(
#79
I also would like to see a feature which allow closing and opening (locking / unlocking?) the vents, just like doors.