windowDef Desktop { comment "Euro time controller GUI" rect 0,0,640,480 visible 1 background "guis/assets/tt_panel_bg.tga" matcolor 1,1,1,1 // include an id GUI flicker element #include "guis/gui_flicker.pd" onTrigger { set "reverseTimeButton::backcolor" "0 0 1 0.8"; set "reverseTimeButton::noevents" "0"; set "pleaseWaitTxt::visible" "0"; } windowDef titleTxt { rect 0,44,640,52 visible 1 forecolor 1,1,1,1 text "Time Controller" textscale 0.80000001 textalign 1 noevents 1 } windowDef instructions { rect 47,104,545,96 visible 1 forecolor 1,1,1,1 text "Click the buttons to modify the sun and moon orbit time and direction." textscale 0.60000002 noevents 1 } windowDef speedTxt { rect 47,243,133,52 visible 1 forecolor 1,1,1,1 text "Speed:" textscale 0.8 noevents 1 } windowDef speedVal { rect 274,243,100,52 visible 1 forecolor 1,1,1,1 text "1X" textscale 0.8 noevents 1 } windowDef dirTxt { rect 47,297,193,52 visible 1 forecolor 1,1,1,1 text "Direction:" textscale 0.8 noevents 1 } windowDef dirVal { rect 275,297,100,52 visible 1 forecolor 1,1,1,1 text "FWD" textscale 0.8 noevents 1 } windowDef time20xButton { rect 435,208,164,34 visible 1 backcolor 0,0,1,0.8 text "20X" textalign 1 textscale 0.4 onMouseEnter { localSound "guisounds_ping2"; set "time20xButton::backcolor" "0.5 0 0.5 0.8"; } onMouseExit { set "time20xButton::backcolor" "0 0 1 0.8"; } onAction { localSound "guisounds_click3"; runScript "time20x"; set "speedVal::text" "20X"; } } windowDef time1xButton { rect 435,264,164,34 visible 1 backcolor 0,0,1,0.8 text "1X" textalign 1 forecolor 1,1,1,1 textscale 0.4 onMouseEnter { localSound "guisounds_ping2"; set "time1xButton::backcolor" "0.5 0 0.5 0.8"; } onMouseExit { set "time1xButton::backcolor" "0 0 1 0.8"; } onAction { localSound "guisounds_click3"; runScript "time1x"; set "speedVal::text" "1X"; } } windowDef time0_5Button { rect 435,332,164,34 visible 1 backcolor 0,0,1,0.8 text "0.5X" textalign 1 textscale 0.4 onMouseEnter { localSound "guisounds_ping2"; set "time0_5Button::backcolor" "0.5 0 0.5 0.8"; } onMouseExit { set "time0_5Button::backcolor" "0 0 1 0.8"; } onAction { localSound "guisounds_click3"; runScript "time05x"; set "speedVal::text" "0.5X"; } } windowDef reverseTimeButton { rect 197,385,249,34 visible 1 backcolor 0,0,1,0.8 text "Reverse Time" textalign 1 float direction 0 onMouseEnter { localSound "guisounds_ping2"; set "reverseTimeButton::backcolor" "0.5 0 0.5 0.8"; } onMouseExit { set "reverseTimeButton::backcolor" "0 0 1 0.8"; } onAction { localSound "guisounds_click3"; runScript "reverseTime"; set "cmd" "activate"; set "reverseTimeButton::backcolor" "0 0 0.5 0.5"; set "reverseTimeButton::noevents" "1"; set "pleaseWaitTxt::visible" "1"; if ("reverseTimeButton::direction" == 0) { set "dirVal::text" "BACK"; set "reverseTimeButton::direction" "1"; } else { set "dirVal::text" "FWD"; set "reverseTimeButton::direction" "0"; } } } windowDef pleaseWaitTxt { rect 120,190,440,100 visible 0 forecolor 1,1,1,1 text "Please wait...\n\nTime reversal will begin\nwhen the current day ends." textscale 0.40000001 textalign 1 backcolor 1,0,0,0.74117649 bordersize 3 bordercolor 1,1,1,1 } }