View Single Post
Old 10-07-09, 08:56 AM   #87
karamazovnew
The Old Man
 
Join Date: Mar 2009
Location: Bucharest, Romania
Posts: 1,403
Downloads: 151
Uploads: 0


Default

Quote:
Originally Posted by karamazovnew View Post
I don't think you understood my last post, the dials moves . That's because the same item sends 2 commands (through 2 dials). One changes the graphic dial (by changing the radar mode) and the other autoupdates the tdc . Ofc it's a dirty fix but on the other hand:
1. who uses radar?!
2. who uses radar underwater?!
3. who uses radar while setting the tdc?!
Ok new info... The above aproach is not bad but I've come up with another... One can even attach a autoupdate command to the AOB dial for example. The first click doesn't change the aob but "enables" the dial. Then you drag or click it to set the aob and the autoupdate turns off automatically. But, after a bit of testing, it's not such a great idea . But that gave me a new idea. Apparently, the Dial object doesn't have to be a type 1031, it can be anything. So why not a checkbox, or a button? These change their image if they are clicked. So, something like this:

[G26 I64]
Name=Dial
Type=1033;Stat bmp array
ItemID=0x260FF902
ParentID=0x260FF900
Pos=0,0,66,66
Zone= 155 433 66 66 1 1 0x260FF900 0 0 0x260FF902 0 0 0 0
Materials=8
Display=0
Mat 0=data/menu/gui/tdc/tdc1.tga
Crop 0=0.00195313,0.816406,1,1
Mat 1=data/menu/gui/tdc/tdc1.tga
Crop 1=0.09375,0.816406,1,1
Mat 2=data/menu/gui/tdc/tdc1.tga
Crop 2=0.00195313,0.816406,1,1
Mat 3=data/menu/gui/tdc/tdc1.tga
Crop 3=0.09375,0.816406,1,1
Mat 4=data/menu/gui/tdc/tdc1.tga
Crop 4=0.00195313,0.816406,1,1
Mat 5=data/menu/gui/tdc/tdc1.tga
Crop 5=0.09375,0.816406,1,1
Mat 6=data/menu/gui/tdc/tdc1.tga
Crop 6=0.00195313,0.816406,1,1
Mat 7=data/menu/gui/tdc/tdc1.tga
Crop 7=0.09375,0.816406,1,1
MatFlags=0x9
TexFmt=0x0
Font=0
TextFlags=0x0
CheckBoxWidth=46
StatesColors=0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF, 0xCDBEB4FF
ToolTipText=2247

coupled with this:


[Dial98]
Name=Autoupdate; Carotio`s Torpedo Dials, Auto-Manuel Peri
Type=63; Toggle_TDC_autoupdate
Cmd=Toggle_TDC_autoupdate
Dial=0x260FF902
CrtVal=0x260FF901
NewVal=0x0
DialVal=-45,45
RealVal=0,1; 0-auto or 1-manuel
Circular=Yes
SndStep=1
SndList=2,Menu.TDC.Pistol_I,0.1,Menu.TDC.Pistol_M, 1,

works like a charm .

There's just one bug. Since will be at least 3 autoupdate buttons in the game, on different screens, I don't know of any way to link them to the "real" hardcoded autoupdate button. That means that if you change the autoupdate status and then you leave any screen (uzo, ap, obs, attack map) without switching it back, the other screens will have the graphic reversed (on for off, off for on, except for the real one on the attack map). But hey, it's better than nothing. Anyway, I really need to move the TDC to the right of the screen. I've just realised that it would cover up an important part of the AOBF wheel. I guess the beta test release will have to wait untill tomorrow. For the moment I'll use the method above for the autotdc update. In the fianl release I think I'll use one of the temporary solution dials. We'll see then.

Last edited by karamazovnew; 10-07-09 at 09:37 AM.
karamazovnew is offline   Reply With Quote