here is my code:
Code: Select all
Script:
#define WaitDockedTime 153000
UI:
<commandbutton name='WaitDock In'>
<X>10</X>
<Y>10</Y>
<Width>25</Width>
<Height>25</Height>
<Texture Filename="PlusButton-Up.png"></Texture>
<TexturePressed Filename="PlusButton-Down.png"></TexturePressed>
<TextureHover Filename="PlusButton-Highlight.png"></TextureHover>
<Command>Script[mining].WaitDockedTime:Inc[1000]</Command>
</commandbutton>
<commandbutton name='WaitDock Out'>
<X>35</X>
<Y>10</Y>
<Width>25</Width>
<Height>25</Height>
<Texture Filename="MinusButton-Up.png"></Texture>
<TexturePressed Filename="MinusButton-Down.png"></TexturePressed>
<TextureHover Filename="MinusButton-Highlight.png"></TextureHover>
<Command>Script[mining].WaitDockedTime:Dec[1000]</Command>
</commandbutton>
<Text name='WaitDockT'>
<X>60</X>
<Y>12</Y>
<Width>80</Width>
<Height>20</Height>
<Text>WaitDock:</Text>
</Text>
<Text name='WaitDockA'>
<X>140</X>
<Y>12</Y>
<Width>50</Width>
<Height>20</Height>
<Text>${Script[mining].WaitDockedTime}</Text>
</Text>