March 27, 20179 yr Dear all, I'm having problems with Macro's. Format for FS9 2d cockpit works in FSX, but in FSX format it doesn't work. Can anyone help? FS9 code 2d works in FSX: <Macro Name="Increase"> (L:DataEntry, number) 10 * @1 + (>L:DataEntry, number) </Macro> <Macro Name="Decrease"> (L:DataEntry, number) 10 / int (>L:DataEntry, number) </Macro> <!-- ********* 1 Digit **********--> <Area Left="36" Right="66" Top="53" Bottom="83"> <Visible>(L:ICP-MODE, enum) 0 != (L:ICP-MODE, enum) 7 != (L:ICP-MODE, enum) 13 != (L:ICP-SEC1, enum) 4 != ||</Visible> <Cursor Type="Hand"/> <Click> @Increase(1) </Click> </Area> FSX code for 3d Virtual cockpit doesn't work: <Macro Name="Increase"> <MacroValue>(L:DataEntry, number) 10 * @1 + (>L:DataEntry, number)</MacroValue> </Macro> <Macro Name="Decrease"> <MacroValue>(L:DataEntry, number) 10 / int (>L:DataEntry, number)</MacroValue> </Macro> <!-- ********* 1 Digit **********--> <MouseArea> <FloatPosition>107.000,102.000</FloatPosition> <Size>95,94</Size> <Visibility>(L:ICP-MODE, enum) 0 != (L:ICP-MODE, enum) 7 != (L:ICP-MODE, enum) 13 != (L:ICP-SEC1, enum) 4 != ||</Visibility> <CursorType>Hand</CursorType> <MouseClick id="MouseClick"> <Script>@Increase(1)</Script> <ClickType>LeftSingle</ClickType> </MouseClick> </MouseArea> Thnx in advance! Greetz Slammer
March 27, 20179 yr 3 hours ago, Slammer said: FSX code for 3d Virtual cockpit doesn't work: Hi, Modeldef.xml file for 3D VC animations does not support macros. Tom
March 27, 20179 yr Author Tom, Thanks for your answer, is there anyway around it to cope with the problem? Greetz Slammer
March 27, 20179 yr I'm afraid not. Some workaround might be done in parts callbacks, but I cannot think of anything in Mouse scripts. Tom
March 29, 20179 yr Moderator It might be possible by putting the logic (and @Macros) in a 2d 'gauge' and use trigger L:Vars in the modeldef.xml file, but honestly it would likely be more trouble than it's worth... Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Archived
This topic is now archived and is closed to further replies.