PDA

View Full Version : TEC: making menu items change color at night


l3th4l
08-20-07, 10:51 AM
I've been finishing up a new version of my Better Scopes mod and ran into some trouble at the end - nothing absolutely essential but it would be very nice to have. Here's a picture of what i've got so far:

http://img125.imageshack.us/img125/7783/betterscopes14av7.jpg (http://imageshack.us)

As you can see the lines are all nicely lit up at night ;) only problem is they don't return to normal as the sun comes up...

I've basically removed the lines from the main periscope image (bettercopes_attack.dds) completely and made a new one containing only the lines. Here's what i've added to the menu.ini under [G26 I147]:


Name=Lines
Type=1030;Static bmp
ItemID=0x26000005
ParentID=0x26000004
Pos=0,0,1024,768
Zone= 0 768 1024 768 0 1 0x26000000 0.5 -0.5 0x26000005 -0.5 0.5 0 0
Color=0x66B26680
Materials=1
Display=0;No stretch
Mat 0=data/menu/gui/betterscopes_attack_lines.tga
Crop 0=0,0.125,1,0.75
MatFlags=0x1
TexFmt=0x0
This is basically a mix of [G26 I134] (the actual bearing indicator; to get that "lit-up-at-night effect") and [G26 I137] to get the dimensions right.

for testing purposes i changed the ItemID to 0x26000004 (the bearing indicator) and the color change worked perfectly... unfortunately so did everything else: the static lines behaved just like the bearing indicator would and were not static anymore. of course, because the ItemID was already used, the compass wasn't working anymore, either.

any ideas? suggestions?

Kapt.Klaus
08-21-07, 08:28 PM
What about in your other post by where capt. cox stated about the new and the old in the ini file? Could that hold the answer?


K.K.

Webster
08-21-07, 09:11 PM
lets see the daytime pix.

or clarify what you mean by "they don't return to normal as the sun comes up"

do they change to something different or stay in night mode?