SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-20-07, 10:51 AM   #1
l3th4l
Planesman
 
Join Date: May 2005
Posts: 180
Downloads: 10
Uploads: 0
Default TEC: making menu items change color at night

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:



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]:

Code:
  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?
l3th4l is offline   Reply With Quote
Old 08-21-07, 08:28 PM   #2
Kapt.Klaus
Loader
 
Join Date: Jul 2007
Posts: 83
Downloads: 57
Uploads: 0
Default

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.
Kapt.Klaus is offline   Reply With Quote
Old 08-21-07, 09:11 PM   #3
Webster
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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?
  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.