![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
10-27-14, 04:44 PM
|
#30 |
|
Sea Lord
![]() |
I shamelessly stole the code for the functional second hand from Ahnenerbe's 1920x1080 mod for GWX. I added it onto Tycho's Analog Watch mod. The relevant data block in dials.cfg is:
[DialXX] Name=Clock seconds Type=9; DIAL_CLOCK_SECONDS Dial=0x0 CrtVal=0x3FE00003 NewVal=0x0 DialVal=0,21600 RealVal=0,60; seconds Circular=Yes And in menu_1024_786.ini: [G3F IXXX] Name=Clock Sec Type=1031;Stat bmp array ItemID=0x3FE00003 ParentID=0x3FE00000 Pos=77,-69,17,117 Materials=1 Display=5;Linear&rotation Mat 0=data/menu/gui/Clock_sec.tga MatFlags=0x29 TexFmt=0x9 Drag=false BmpState=1 NeedFocus=false SelOne=false IdGroup=0 I believe the only significant difference between your code and mine is in the dials.cfg line: DialVal=0,21600 vice DialVal=0,360. Note that 21600 is 60x360. I believe your value makes the second hand move at the same speed as the minute hand. IAC, it is, as I said, lifted straight from Ahnenerbe's mod, and it does work. |
|
|
| Tags |
| clock |
|
|
