Thalassicus
Bytes and Nibblers
How can I create a colored box? I'd like to make simple rectangles set to various colors. I'm experimenting with the Grid object... but the Color field seems to only set the color of text.
Edit: Nevermind I must just be really tired... this is all I needed:
I also had a Style="blahblah" field that was overriding the color field.
Edit: Argh the UI data is so frustrating to work with. I need a rainbow of colored boxes for this legend (red, violet, blue, green, white, and grey), with the stack surrounded by a white border. The colors are turning out really... dark or something...
Edit: Nevermind I must just be really tired... this is all I needed:
Code:
<Grid Size="100,36" Color="COLOR_RESEARCH_STORED" />
I also had a Style="blahblah" field that was overriding the color field.
Edit: Argh the UI data is so frustrating to work with. I need a rainbow of colored boxes for this legend (red, violet, blue, green, white, and grey), with the stack surrounded by a white border. The colors are turning out really... dark or something...
PHP:
<!--Good For power legend-->
<Stack Anchor="L,T" Offset="64,50" Size="105,262" Style="WindowGrid" >
<Label Anchor="C,T" Font="TwCenMT24" String="Good For"/>
<Image Anchor="C,T" Offset="0,10" Size="100.1" Texture="bar300x2.dds" TextureOffset="39.0"/>
<Stack Anchor="C,T" Size="95,226" Padding="0" >
<Grid Size="100,46" Color="COLOR_PLAYER_ORANGE_TEXT">
<Label Anchor="C,C" AnchorSide="I.O" Font="TwCenMT20" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="High"/>
</Grid>
<Grid Size="100,36" Color="255,60,255,255"/>
<Grid Size="100,36" Color="COLOR_RESEARCH_STORED"/>
<Grid Size="100,36" Color="COLOR_PLAYER_LIGHT_GREEN"/>
<Grid Size="100,36" Color="COLOR_WHITE"/>
<Grid Size="100,36" Color="COLOR_GREY">
<Label Anchor="C,C" AnchorSide="I.O" Font="TwCenMT20" ColorSet="Beige_Black_Alpha" FontStyle="Shadow" String="Low"/>
</Grid>
</Stack>
</Stack>