View Full Version : [REQ] Button: All crew to battle stations - RED colour?
Julius Caesar
06-01-07, 08:09 AM
jimimadrid made a great mod where he changed the color of the pressed Hud buttons to green:
http://www.subsim.com/radioroom/showthread.php?t=108359
iceberg made a great mod where you have Battle stations and Silent running visible in all menus:
http://www.subsim.com/radioroom/showthread.php?t=109493
Now, with so may green buttons, I sometimes miss that I have turned on "all crew to battle station".
Do you think it would be possible to change only that button to, lets say, red (when it's turned on)?
Canonicus
06-01-07, 09:27 AM
Nice thinking! :know: ......I like this idea!
You certainly wouldn't forget you still had your crew at battle stations....long after the battle was over...(like me on several occations :oops:)
Great idea, was thinking some days ago how it could be properly highlighted that your crew is still under "Battlestations" condition without checking the crew management screen (Trigger Maru makes this even more difficult as it has two planesmen in normal situation instead of one in teh stock game, so when you got to Battlestations you can't notice it in the extra planesman). Nice! Hope someone can solve it:up:
Stew U-582
06-01-07, 10:24 AM
Im currently working on an "orders bar button" mod
Ive so far added quite a few buttons from the command list.
Ive done the tool tips but Im still working on the Icons. at the moment
the new commands ive added share icons that have allready been used so i think it would be a bit confusing to release just yet , but keep an eye out for a [rel] called 'more buttons orders bar'
Ill try to include the red button idea and maybe another colour for silent running as ive enabled these two buttons on all stations.
The only problem I can see is that the button is only replicated in one set in the HUD.dds file "where the icon info is" and its shared and replicated for each location.
so you can see it would be easy to make them all red but just doing one could be tricky , or beond my capabilities.
CaptainCox
06-01-07, 10:27 AM
Well you have to make a new "color" overlay "somewhere" and tell the game to use that instead, like what we did with the "Observation periscope". Basically pointing to that new dds/tga in the "menu_1024_768.ini" You also might have to specify the size and stuff in the code etc.
Another way would be to add the new color overlay on the existing dds/tga (there is room for it), but then you really have to start calculating and checking that the new button draws the texture from EXACTLY that spot!
I could give it a go...
CaptainCox
06-01-07, 10:51 AM
Might have shouted to early :oops:
It seems there is NO specific code for each button, however there is something that might lead to something...
In the OrdersBar.cfg you have all the buttons for each station
Looks like this (example)
Button10Command=Crash_dive
Button10IconRowColumn=1,2
Button10Tooltip=5602
Ok, look at Button10IconRowColumn=1,2
That tells the game to look for that particular icon in
Row 1 Icon 2
This is the cropped area of the HUD.dds/tga that has all the icons
http://i10.photobucket.com/albums/a138/CaptainCox/ICONS.jpg
As you see it points to Row1 Icon/Column 2
Ok nothing to do with colors but...
I think, and i am speculating here, but it looks like the Color overlay is only one! and then the game draws whatever icons specified in to that "Colored" button based on this script. To do a 2nd color might need some serious re scripting of the "menu_1024_768.ini"
At least looks like that at a first glance.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.