RP-01_Host/dlg/switch.aardio

83 lines
5.2 KiB
Plaintext

import win.ui;
import fonts.fontAwesome;
/*DSG{{*/
var winform = win.form(text="wubiLex - 帮助";right=984;bottom=607;bgcolor=16777215;style=33554432)
winform.add(
groupbox={cls="groupbox";text="滑轨电机";left=539;top=190;right=725;bottom=382;clipch=1;edge=1;z=6};
groupbox2={cls="groupbox";text="靠背电机";left=743;top=193;right=929;bottom=385;edge=1;z=7};
groupbox3={cls="groupbox";text="前升降电机";left=538;top=391;right=724;bottom=583;edge=1;z=8};
groupbox4={cls="groupbox";text="后升降电机";left=741;top=390;right=927;bottom=582;edge=1;z=9};
st_FanState={cls="static";text="Static";left=765;top=28;right=896;bottom=57;center=1;font=LOGFONT(h=-16);transparent=1;z=30};
st_HeatState={cls="static";text="Static";left=765;top=55;right=896;bottom=84;center=1;font=LOGFONT(h=-16);transparent=1;z=31};
st_hg_hallio={cls="static";text="Static";left=556;top=246;right=687;bottom=275;center=1;font=LOGFONT(h=-16);z=11};
st_hg_loc={cls="static";text="Static";left=556;top=275;right=687;bottom=304;center=1;font=LOGFONT(h=-16);z=12};
st_hg_state={cls="static";text="Static";left=556;top=217;right=687;bottom=246;center=1;font=LOGFONT(h=-16);z=10};
st_hg_stop1={cls="static";text="Static";left=556;top=304;right=687;bottom=333;center=1;font=LOGFONT(h=-16);z=13};
st_hg_stop2={cls="static";text="Static";left=556;top=333;right=687;bottom=362;center=1;font=LOGFONT(h=-16);z=14};
st_kb_hallio={cls="static";text="Static";left=758;top=241;right=889;bottom=270;center=1;font=LOGFONT(h=-16);z=16};
st_kb_loc={cls="static";text="Static";left=758;top=270;right=889;bottom=299;center=1;font=LOGFONT(h=-16);z=17};
st_kb_state={cls="static";text="Static";left=758;top=212;right=889;bottom=241;center=1;font=LOGFONT(h=-16);z=15};
st_kb_stop1={cls="static";text="Static";left=758;top=299;right=889;bottom=328;center=1;font=LOGFONT(h=-16);z=18};
st_kb_stop2={cls="static";text="Static";left=758;top=328;right=889;bottom=357;center=1;font=LOGFONT(h=-16);z=19};
st_test1={cls="static";text="Static";left=552;top=34;right=683;bottom=63;center=1;font=LOGFONT(h=-16);transparent=1;z=1};
st_test2={cls="static";text="Static";left=552;top=64;right=683;bottom=93;center=1;font=LOGFONT(h=-16);transparent=1;z=2};
st_test3={cls="static";text="Static";left=552;top=94;right=683;bottom=123;center=1;font=LOGFONT(h=-16);transparent=1;z=3};
st_test4={cls="static";text="Static";left=552;top=124;right=683;bottom=153;center=1;font=LOGFONT(h=-16);transparent=1;z=4};
st_test5={cls="static";text="Static";left=552;top=154;right=683;bottom=183;center=1;font=LOGFONT(h=-16);transparent=1;z=5};
st_tt_hallio={cls="static";text="Static";left=561;top=452;right=692;bottom=481;center=1;font=LOGFONT(h=-16);z=21};
st_tt_loc={cls="static";text="Static";left=561;top=481;right=692;bottom=510;center=1;font=LOGFONT(h=-16);z=22};
st_tt_state={cls="static";text="Static";left=561;top=423;right=692;bottom=452;center=1;font=LOGFONT(h=-16);z=20};
st_tt_stop1={cls="static";text="Static";left=561;top=510;right=692;bottom=539;center=1;font=LOGFONT(h=-16);z=23};
st_tt_stop2={cls="static";text="Static";left=561;top=539;right=692;bottom=568;center=1;font=LOGFONT(h=-16);z=24};
st_zy_hallio={cls="static";text="Static";left=764;top=448;right=895;bottom=477;center=1;font=LOGFONT(h=-16);z=26};
st_zy_loc={cls="static";text="Static";left=764;top=477;right=895;bottom=506;center=1;font=LOGFONT(h=-16);z=27};
st_zy_state={cls="static";text="Static";left=764;top=419;right=895;bottom=448;center=1;font=LOGFONT(h=-16);z=25};
st_zy_stop1={cls="static";text="Static";left=764;top=506;right=895;bottom=535;center=1;font=LOGFONT(h=-16);z=28};
st_zy_stop2={cls="static";text="Static";left=764;top=535;right=895;bottom=564;center=1;font=LOGFONT(h=-16);z=29}
)
/*}}*/
var SignalTimer = win.timer(,50);
SignalTimer.onTimer = function(){
signaldislay();
}
SignalTimer.enable();
signaldislay = function(){
winform.st_test1.text = msg301_test1*(80.4/12.4)/100;
winform.st_test2.text = msg301_test2;
winform.st_test3.text = msg301_test3;
winform.st_test4.text = msg301_test4;
winform.st_test5.text = msg301_test5;
winform.st_hg_state.text = msgDebug[1]["status"]
winform.st_hg_hallio.text = msgDebug[1]["hallio"]
winform.st_hg_loc.text = msgDebug[1]["loc"]
winform.st_hg_stop1.text = msgDebug[1]["stop1"]
winform.st_hg_stop2.text = msgDebug[1]["stop2"]
winform.st_kb_state.text = msgDebug[2]["status"]
winform.st_kb_hallio.text = msgDebug[2]["hallio"]
winform.st_kb_loc.text = msgDebug[2]["loc"]
winform.st_kb_stop1.text = msgDebug[2]["stop1"]
winform.st_kb_stop2.text = msgDebug[2]["stop2"]
winform.st_tt_state.text = msgDebug[3]["status"]
winform.st_tt_hallio.text = msgDebug[3]["hallio"]
winform.st_tt_loc.text = msgDebug[3]["loc"]
winform.st_tt_stop1.text = msgDebug[3]["stop1"]
winform.st_tt_stop2.text = msgDebug[3]["stop2"]
winform.st_zy_state.text = msgDebug[4]["status"]
winform.st_zy_hallio.text = msgDebug[4]["hallio"]
winform.st_zy_loc.text = msgDebug[4]["loc"]
winform.st_zy_stop1.text = msgDebug[4]["stop1"]
winform.st_zy_stop2.text = msgDebug[4]["stop2"]
winform.st_FanState.text = msg301_FanState;
winform.st_HeatState.text = msg301_HeatState;
}
winform.show();
win.loopMessage();
return winform;