Retribution V101 : Syndicate — File Browser
RetributionSyndicatev1.01 / RetributionSyndicatev1.01 / System / cal / script.mrc
script.mrc — 26.49 KB — Download this file
;[----------------------------------------------------------------------]
;[ Name : Syndicate : Retribution V101 ]
;[ Support : DefCon Industries ]
;[ Author : Risc ]
;[ ]
;[ This Code, Content, is CopyRight 1999 : DefCon Industries ]
;[ No Copying, Ripping, or calling this Code your own ]
;[ ]
;[----------------------------------------------------------------------]
alias res { if $1 == p { return $mircdirsistema\ [ $+ [ $2 ] ] $+ .bmp } | else { return $mircdirsistema\ [ $+ [ $1 ] ] $+ .zrs } }
alias resc { if $1 == p { return $mircdirsistema\bmp $+ \ [ $+ [ $2 ] ] $+ .bmp } | if $1 == n { return $mircdirsistema\bmp\ [ $+ [ $2 ] ] } | else { return $mircdirsistema\bmp\ [ $+ [ $1 ] ] $+ .zrs } }
alias s1 { if $readini $res(settings) Settings $1 == on { return $true } | else { return $false } }
alias s2 { if $readini $res(settings) Settings $1 == on { return on } | else { return off } }
alias s3 { return $readini $res(settings) settings $1 }
alias s_modify { if $2 == $null { writeini $res(settings) Settings $1 $null | return } | writeini $res(settings) Settings $1- }
alias drawpic2 { if $exists($6-) { drawpic $1- } | else { return } }
alias main.bs { set %main.buttonN $1 | .timer -m 1 1 main_buttonout $1 | set %main.buttondo control_wload $1 | main_buttonin $1 }
;inicio
alias alt_settings {
set %temp.altsettings $readini $resc(control) $1 WindowHeight
if %temp.altsettings == $null { echo -a $e Applet de configuracion '03 $+ $1 $+ 14' no fue encontrado! | return }
else { control_wload $1 bypass }
}
alias settings {
set %s 0 | :loop | inc %s
set %temp.setcur $readini $resc(control) main %s
set %temp.setcur $gettok(%temp.setcur,2,44)
if %temp.setcur == $null { echo -a $e Applet de configuracion '03 $+ $1 $+ 14' no fue encontrado! | return }
if $1 == %temp.setcur { control_wload %s | unset %temp.set* | return }
else { goto loop }
}
alias control {
unset %temp.*
snd control
if %control-x == $null || - isin %control-x { set %control-x 30 }
if %control-y == $null || - isin %control-y { set %control-y 30 }
window -ap +b @Control %control-x %control-y 566 342 @Control | clear @Control
titlebar @Control Panel
drawpic -c @Control 0 0 $resc(n, [ [ $readini $resc(control) global backpic ] ] )
set %temp.control_drawbg $readini $resc(control) global background
if %temp.control_drawbg isnum { drawrect -f @Control %temp.control_drawbg 1 6 43 554 271 }
else { drawpic @Control 6 43 554 271 $resc(p,%temp.control_drawbg) }
set %temp.objectcount 0 | set %c 0 | :loop | inc %c
if %c >= 19 { control_desc2 %temp.objectcount objecto(s) | return }
set %temp.control_draw $readini $resc(control) main %c
set %temp.control_pict $gettok(%temp.control_draw,3,44)
set %temp.control_tileQ $gettok(%temp.control_draw,4,44)
if %temp.control_draw != $null && %temp.control_pict != $null {
if %temp.control_tileQ == $null { drawpic2 -tc @Control 16711935 $c_location(%c) $resc(n, [ [ $readini $resc(control) global backtile ] ] ) }
drawpic -t @Control 16711935 $c_location2(%c) $resc(n,%temp.control_pict) | inc %temp.objectcount
goto loop
}
else { goto loop }
}
alias main_buttonout {
if %main.buttonN == $null { return }
if $mouse.key & 1 { .timer -m 1 1 main_buttonout %main.buttonN | return }
set %temp.control_draw $readini $resc(control) main %main.buttonN
set %temp.control_pict $gettok(%temp.control_draw,3,44)
set %temp.control_tileQ $gettok(%temp.control_draw,4,44)
if %temp.control_draw != $null && %temp.control_pict != $null {
if %temp.control_tileQ == $null { drawpic2 -tc @Control 16711935 $c_location(%main.buttonN) $resc(n, [ [ $readini $resc(control) global backtile ] ] ) }
drawpic -t @Control 16711935 $c_location2(%main.buttonN) $resc(n,%temp.control_pict) | inc %temp.objectcount
%main.buttondo
return
}
else { return }
}
alias main_buttonin {
set %temp.control_draw $readini $resc(control) main $1
set %temp.control_pict $gettok(%temp.control_draw,3,44)
set %temp.control_tileQ $gettok(%temp.control_draw,4,44)
if %temp.control_draw != $null && %temp.control_pict != $null {
if %temp.control_tileQ == $null { drawpic2 -tc @Control 16711935 $c_location3($1) $resc(n, [ [ $readini $resc(control) global backtile ] ] ) }
drawpic -t @Control 16711935 $c_location4($1) $resc(n,%temp.control_pict) | inc %temp.objectcount
return
}
else { return }
}
menu @Control {
mouse {
if $inrect($mouse.x,$mouse.y,25,60,64,64) { control_desc 1 }
elseif $inrect($mouse.x,$mouse.y,114,60,64,64) { control_desc 2 }
elseif $inrect($mouse.x,$mouse.y,203,60,64,64) { control_desc 3 }
elseif $inrect($mouse.x,$mouse.y,292,60,64,64) { control_desc 4 }
elseif $inrect($mouse.x,$mouse.y,381,60,64,64) { control_desc 5 }
elseif $inrect($mouse.x,$mouse.y,470,60,64,64) { control_desc 6 }
elseif $inrect($mouse.x,$mouse.y,25,145,64,64) { control_desc 7 }
elseif $inrect($mouse.x,$mouse.y,114,145,64,64) { control_desc 8 }
elseif $inrect($mouse.x,$mouse.y,203,145,64,64) { control_desc 9 }
elseif $inrect($mouse.x,$mouse.y,292,145,64,64) { control_desc 10 }
elseif $inrect($mouse.x,$mouse.y,381,145,64,64) { control_desc 11 }
elseif $inrect($mouse.x,$mouse.y,470,145,64,64) { control_desc 12 }
elseif $inrect($mouse.x,$mouse.y,25,230,64,64) { control_desc 13 }
elseif $inrect($mouse.x,$mouse.y,114,230,64,64) { control_desc 14 }
elseif $inrect($mouse.x,$mouse.y,203,230,64,64) { control_desc 15 }
elseif $inrect($mouse.x,$mouse.y,292,230,64,64) { control_desc 16 }
elseif $inrect($mouse.x,$mouse.y,381,230,64,64) { control_desc 17 }
elseif $inrect($mouse.x,$mouse.y,470,230,64,64) { control_desc 18 }
elseif ($inrect($mouse.x,$mouse.y,11,24,36,12)) { if %temp.ControlHelpDraw != $null { return } | if ((%temp.ControlCloseDraw != $null) || (%temp.ControlWebPageDraw != $null)) { unset %temp.ControlCloseDraw | unset temp.ControlWebPageDraw | drawline -r @control $getdot(@Control,176,25) 1 118 36 151 36 | drawline -r @control $getdot(@Control,176,25) 1 58 35 107 35 } | set %temp.ControlHelpDraw 1 | drawline @control $readini $resc(control) global UnderlineColor 1 10 35 46 35 | control_desc2 Ayuda sobre Panel de Control }
elseif ($inrect($mouse.x,$mouse.y,56,24,36,12)) { if %temp.ControlWebPageDraw != $null { return } | if ((%temp.ControlHelpDraw != $null) || (%temp.ControlCloseDraw != $null)) { unset %temp.ControlCloseDraw | unset %temp.ControlHelpDraw | drawline -r @control $getdot(@Control,176,25) 1 118 36 151 36 | drawline -r @control $getdot(@Control,176,25) 1 10 35 46 35 } | set %temp.ControlWebpageDraw 1 | drawline @control $readini $resc(control) global UnderlineColor 1 58 35 107 35 | control_desc2 Ir a WebPage de #dominicanos }
elseif ($inrect($mouse.x,$mouse.y,116,24,36,12)) { if %temp.ControlCloseDraw != $null { return } | set %temp.ControlCloseDraw 1 | drawline @control $readini $resc(control) global UnderlineColor 1 118 36 151 36 | control_desc2 Cerrar Panel de Control }
else {
if %controlnull == 1 { goto end }
set %temp.controlnull 1 | unset %temp.controldesc_cur
drawrect -r @Control $getdot(@Control,176,25) 100 6 321 547 13
if %temp.ControlHelpDraw != $null { unset %temp.ControlHelpDraw | drawline -r @control $getdot(@Control,176,25) 1 10 35 46 35 }
if %temp.controlWebPageDraw != $null { unset %temp.controlwebpagedraw | drawline -r @control $getdot(@Control,176,25) 1 58 35 107 35 }
if %temp.ControlCloseDraw != $null { unset %temp.ControlCloseDraw | drawline -r @control $getdot(@Control,176,25) 1 118 36 151 36 }
:end
}
; 0 3 640 20
}
uclick {
if %control-origin.x == $null { return }
set %control-x $calc(%control-x + $calc(%control-origin.x - $mouse.mx))
set %control-y $calc(%control-y + $calc(%control-origin.y - $mouse.my))
control
unset %control-origin*
}
sclick {
if $inrect($mouse.x,$mouse.y,0,3,640,20) { set %control-origin.x $mouse.x | set %control-origin.y $mouse.y }
if $inrect($mouse.x,$mouse.y,11,24,36,12) { c_help All }
if $inrect($mouse.x,$mouse.y,56,24,36,12) { run iexplore http://www.dominicanos.rd-do.com | drawline -r @control $getdot(@Control,176,25) 1 58 35 107 35 }
if $inrect($mouse.x,$mouse.y,116,24,36,12) { window -c @Control | window -c @opciones }
if $inrect($mouse.x,$mouse.y,25,60,64,64) { main.bs 1 }
if $inrect($mouse.x,$mouse.y,114,60,64,64) { main.bs 2 }
if $inrect($mouse.x,$mouse.y,203,60,64,64) { main.bs 3 }
if $inrect($mouse.x,$mouse.y,292,60,64,64) { main.bs 4 }
if $inrect($mouse.x,$mouse.y,381,60,64,64) { main.bs 5 }
if $inrect($mouse.x,$mouse.y,470,60,64,64) { main.bs 6 }
if $inrect($mouse.x,$mouse.y,25,145,64,64) { main.bs 7 }
if $inrect($mouse.x,$mouse.y,114,145,64,64) { main.bs 8 }
if $inrect($mouse.x,$mouse.y,203,145,64,64) { main.bs 9 }
if $inrect($mouse.x,$mouse.y,292,145,64,64) { main.bs 10 }
if $inrect($mouse.x,$mouse.y,381,145,64,64) { main.bs 11 }
if $inrect($mouse.x,$mouse.y,470,145,64,64) { main.bs 12 }
if $inrect($mouse.x,$mouse.y,25,230,64,64) { main.bs 13 }
if $inrect($mouse.x,$mouse.y,114,230,64,64) { main.bs 14 }
if $inrect($mouse.x,$mouse.y,203,230,64,64) { main.bs 15 }
if $inrect($mouse.x,$mouse.y,292,230,64,64) { main.bs 16 }
if $inrect($mouse.x,$mouse.y,381,230,64,64) { main.bs 17 }
if $inrect($mouse.x,$mouse.y,470,230,64,64) { main.bs 18 }
}
$mouse.x $mouse.y :/echo 4 -a $mouse.x $mouse.y
Getdot:/echo 4 -a $getdot(@Control,$mouse.x,$mouse.y)
}
menu @opciones {
mouse {
if %button.closehelp == 1 {
if $inrect($mouse.x,$mouse.y,165,$calc($c_block(%button.y,y)+4),74,20) { return }
else { drawpic -c @opciones 0 $c_block(%button.y,y) $resc(p,closehelp) | unset %button.closehelp | unset %button.y }
}
elseif %button.closehelp == 2 {
if $inrect($mouse.x,$mouse.y,255,$calc($c_block(%button.y,y)+4),74,20) { return }
else { drawpic -c @opciones 0 $c_block(%button.y,y) $resc(p,closehelp) | unset %button.closehelp | unset %button.y }
}
if $ir(35) { if $isa(1) { control_aliasdraw 1 } }
if $ir(65) { if $isa(2) { control_aliasdraw 2 } }
if $ir(95) { if $isa(3) { control_aliasdraw 3 } }
if $ir(125) { if $isa(4) { control_aliasdraw 4 } }
if $ir(155) { if $isa(5) { control_aliasdraw 5 } }
if $ir(185) { if $isa(6) { control_aliasdraw 6 } }
if $ir(215) { if $isa(7) { control_aliasdraw 7 } }
if $ir(245) { if $isa(8) { control_aliasdraw 8 } }
if $ir(275) { if $isa(9) { control_aliasdraw 9 } }
if $ir(305) { if $isa(10) { control_aliasdraw 10 } }
if $ir(335) { if $isa(11) { control_aliasdraw 11 } }
if $ir(365) { if $isa(12) { control_aliasdraw 12 } }
if $ir(395) { if $isa(13) { control_aliasdraw 13 } }
}
sclick { control_sclickdclick }
dclick { control_sclickdclick }
}
alias isa { if $readini $resc(control) %temp.btl $1 == Alias { return $true } | else { return $false } }
alias ir { return $inrect($mouse.x,$mouse.y,5,$1,340,25) }
alias control_aliasdraw {
if %temp.currentaliasdraw == $1 { return }
else { set %temp.currentaliasdraw $1 }
drawrect @opciones $readini $resc(control) global underlinecolor 1 $c_block($1,xy) 340 25
.timerCA [ $+ [ $1 ] ] -m 0 1 control_checkalias $1
}
alias control_checkalias {
if $window(@opciones).state == $null { .timerCA [ $+ [ $1 ] ] off | return }
if $ir($c_block($1,y)) == $false { unset %temp.currentaliasdraw | drawrect -r @opciones $getdot(@Control,176,25) 1 $c_block($1,xy) 340 25 | .timerCA [ $+ [ $1 ] ] off }
}
alias control_sclickdclick {
if $ir(35) { control_eval 1 }
if $ir(65) { control_eval 2 }
if $ir(95) { control_eval 3 }
if $ir(125) { control_eval 4 }
if $ir(155) { control_eval 5 }
if $ir(185) { control_eval 6 }
if $ir(215) { control_eval 7 }
if $ir(245) { control_eval 8 }
if $ir(275) { control_eval 9 }
if $ir(305) { control_eval 10 }
if $ir(335) { control_eval 11 }
if $ir(365) { control_eval 12 }
if $ir(395) { control_eval 13 }
}
alias control_eval {
set %temp.evaltype $readini $resc(control) %temp.btl $1
if %temp.evaltype == Separator || %temp.evaltype == ChartHeading || %temp.evaltype == Text { return }
if %temp.evaltype == Chart {
set %temp.ChartInputVar $readini $resc(control) %temp.btl $1 $+ D
set %temp.ChartInputVar1 $gettok(%temp.ChartInputVar,1,44)
set %temp.ChartInputVar2 $gettok(%temp.ChartInputVar,2,44)
set %temp.ChartInputType $readini $resc(control) %temp.btl $1 $+ T
set %temp.ChartInputType1 $gettok(%temp.ChartInputType,1,44)
set %temp.ChartInputType2 $gettok(%temp.ChartInputType,2,44)
if $inrect($mouse.x,$mouse.y,8,$calc($c_block($1,y) + 4),92,18) {
if %temp.ChartInputType1 == InputText {
set %temp.label $?="Introduce Texto"
if %temp.label == $null { set %temp.textdump ninguno }
else { set %temp.textdump %temp.label }
s_modify %temp.ChartInputVar1 %temp.textdump
goto ChartLoad1
}
elseif %temp.ChartInputType1 == InputDir {
s_modify %temp.ChartInputVar1 $sdir="Selecciona un directorio" c:\*.*
goto ChartLoad1
}
elseif %temp.ChartInputType1 == InputFile {
s_modify %temp.ChartInputVar1 $dir="Selecciona un archivo" c:\*.*
goto ChartLoad1
}
}
if $inrect($mouse.x,$mouse.y,105,$calc($c_block($1,y) + 4),235,18) {
if %temp.ChartInputType2 == InputText {
set %temp.label $?="Introduce texto"
if %temp.label == $null { set %temp.textdump ninguno }
else { set %temp.textdump %temp.label }
s_modify %temp.ChartInputVar2 %temp.textdump
goto ChartLoad2
}
elseif %temp.ChartInputType2 == InputDir {
s_modify %temp.ChartInputVar2 $sdir="Selecciona un directorio" c:\*.*
goto ChartLoad2
}
elseif %temp.ChartInputType2 == InputFile {
s_modify %temp.ChartInputVar2 $dir="Selecciona un archivo" c:\*.*
goto ChartLoad2
}
}
:ChartLoad1
drawrect -f @opciones 00 2 8 $calc($c_block($1,y) + 4) 92 18 | drawrect @opciones 1 1 8 $calc($c_block($1,y) + 4) 92 18
set %temp.charttext $readini $resc(control) %temp.btl $1 $+ D
set %temp.chart1text $gettok(%temp.charttext,1,44)
set %temp.chart1text $readini $res(settings) Settings %temp.chart1text
if %temp.chart1text != $null { drawtext -c @opciones 1 gwdte_437 12 10 $calc($c_block($1,y) + 6) 90 18 %temp.chart1text }
return
:ChartLoad2
drawrect -f @opciones 00 2 105 $calc($c_block($1,y) + 4) 235 18 | drawrect @opciones 1 1 105 $calc($c_block($1,y) + 4) 235 18
set %temp.charttext $readini $resc(control) %temp.btl $1 $+ D
set %temp.chart2text $gettok(%temp.charttext,2,44)
set %temp.chart2text $readini $res(settings) Settings %temp.chart2text
if %temp.chart2text != $null { drawtext -c @opciones 1 gwdte_437 12 107 $calc($c_block($1,y) + 6) 323 18 %temp.chart2text }
return
}
if %temp.evaltype == toggle {
set %temp.togglecurvalue $readini $resc(control) %temp.btl $1 $+ D
if $s1(%temp.togglecurvalue) { s_modify %temp.togglecurvalue OFF | goto toggleend }
else { s_modify %temp.togglecurvalue ON | goto toggleend }
:toggleend | drawpic -c @opciones 10 $c_block($1,y) $resc(p,light [ $+ [ $s2(%temp.togglecurvalue) ] $+ ] )
}
if %temp.evaltype == TextAndInput {
if $inrect($mouse.x,$mouse.y,333,71,10,10) && %temp.btl == backgrounds { backg-modesel Main }
if $inrect($mouse.x,$mouse.y,333,101,10,10) && %temp.btl == backgrounds { backg-modesel Query }
if $inrect($mouse.x,$mouse.y,333,131,10,10) && %temp.btl == backgrounds { backg-modesel Status }
if $inrect($mouse.x,$mouse.y,333,161,10,10) && %temp.btl == backgrounds { backg-modesel Finger }
if $inrect($mouse.x,$mouse.y,333,191,10,10) && %temp.btl == backgrounds { backg-modesel Toolbar }
if $inrect($mouse.x,$mouse.y,333,221,10,10) && %temp.btl == backgrounds { backg-modesel ToolbarB }
if $inrect($mouse.x,$mouse.y,333,251,10,10) && %temp.btl == backgrounds { backg-modesel Switchbar }
if $inrect($mouse.x,$mouse.y,333,281,10,10) && %temp.btl == backgrounds { backg-modesel Channel }
if $inrect($mouse.x,$mouse.y, [ $+ [ %current.taidim-b [ $+ [ $1 ] ] ] $+ ] ) {
set %temp.TextAndInputType $readini $resc(control) %temp.btl $1 $+ T
set %temp.TextAndInputDir $gettok(%temp.TextAndInputType,2,44)
set %temp.TextAndInputNF $gettok(%temp.TextAndInputType,3,44)
set %temp.TextAndInputType $gettok(%temp.TextAndInputType,1,44)
set %temp.TextAndInputVar $readini $resc(control) %temp.btl $1 $+ D3
if %temp.TextAndInputType == InputText {
set %temp.label $?="Introduce Texto"
if %temp.label == $null { set %temp.textdump ninguno }
else { set %temp.textdump %temp.label }
s_modify %temp.TextAndInputVar %temp.textdump
goto TextAndInputUpdate
}
elseif %temp.TextAndInputType == InputDir {
set %temp.dir $sdir="Selecciona un directorio" c:\*.*
if %temp.dir == $null { set %temp.dir $null }
s_modify %temp.TextAndInputVar %temp.dir
goto TextAndInputUpdate
}
elseif %temp.TextAndInputType == InputFile {
if %temp.TextAndInputDir == $null { set %temp.TextAndInputDir c:\*.* }
set %temp.file $dir="Selecciona un archivo" %temp.TextAndInputDir
if %temp.file == $null { set %temp.file $null }
if %temp.TextAndInputNF == nopath { s_modify %temp.TextAndInputVar $nopath(%temp.file) }
else { s_modify %temp.TextAndInputVar %temp.file }
if ($right(%temp.file,4) == .thm) { .timer 1 1 theme_load %temp.file }
goto TextAndInputUpdate
}
:TextAndInputUpdate
set %temp.taidimtemp %current.taidim-b [ $+ [ $1 ] ]
set %temp.taidimtemp $replace(%temp.taidimtemp,$chr(44),$chr(32))
drawrect -f @opciones 00 2 %temp.taidimtemp
drawrect @opciones 1 1 %temp.taidimtemp
set %temp.taidimtemp1 $calc($gettok(%temp.taidimtemp,1,32) + 2)
set %temp.taidimtemp2 $calc($gettok(%temp.taidimtemp,2,32) + 3)
set %temp.taidimtemp3 $calc($gettok(%temp.taidimtemp,3,32) - 2)
set %temp.taidimtemp4 $calc($gettok(%temp.taidimtemp,4,32) - 3)
set %temp.taidimtemp %temp.taidimtemp1 %temp.taidimtemp2 %temp.taidimtemp3 %temp.taidimtemp4
set %temp.taidimvalue $s3(%temp.TextAndInputVar)
if %temp.taidimvalue == $null { return }
drawtext -c @opciones 1 gwdte_437 12 %temp.taidimtemp %temp.taidimvalue
return
}
}
if %temp.evaltype == Alias {
set %temp.aliasrun $readini $resc(control) %temp.btl $1 $+ D
%temp.aliasrun
}
if %temp.evaltype == CloseHelp {
if $inrect($mouse.x,$mouse.y,165,$calc($c_block($1,y)+4),75,20) {
set %button.closehelp 1
drawpic -c @opciones 0 $c_block($1,y) $resc(p,closehelp1)
set %button.y $1
set %button.do window -c @opciones
.timer -m 1 1 buttonout
}
if $inrect($mouse.x,$mouse.y,255,$calc($c_block($1,y)+4),75,20) {
set %button.closehelp 2
drawpic -c @opciones 0 $c_block($1,y) $resc(p,closehelp2)
set %button.y $1
set %button.do c_help %temp.btl
.timer -m 1 1 buttonout
}
}
}
alias control_wload {
if $2 == bypass { set %temp.btl $1 | goto bypass }
set %temp.btl $readini $resc(control) main $1
if %temp.btl == $null { return }
set %temp.btl $gettok(%temp.btl,2,44)
goto bypass
:bypass
set %temp.windowheight $readini $resc(control) %temp.btl WindowHeight
; check to see if its an alias
set %temp.aliascheck $readini $resc(control) %temp.btl alias
if %temp.aliascheck != $null { [ [ %temp.aliascheck ] ] | return }
; draw blocks, interpret control.zrs file
window -rap +b @opciones 300 60 353 %temp.windowheight @opciones
drawpic -c @opciones 0 0 $resc(n, [ [ $readini $resc(control) global settingspic ] ] )
set %b 0 | :loop | inc %b
set %temp.cread $readini $resc(control) %temp.btl %b
if %temp.cread == $null { return }
if %temp.cread == Separator { drawline @opciones 1 1 10 $calc($c_block(%b,y) + 13) 335 $calc($c_block(%b,y) + 13) | goto loop }
if %temp.cread == Text {
set %temp.text $readini $resc(control) %temp.btl %b $+ D
set %temp.textcolor $gettok(%temp.text,2,44)
set %temp.text $gettok(%temp.text,1,44)
if $len(%temp.text) > 37 {
set %w 0 | :loop2 | inc %w | if %w >= 3 { goto loop } | set %temp.text2 $wordwrap(%w,37,%temp.text)
if %temp.text2 != $null && %w == 1 { drawtext -o @opciones %temp.textcolor gwdte_437 12 8 $calc($c_block(%b,y)) %temp.text2 }
if %temp.text2 != $null && %w == 2 { drawtext -o @opciones %temp.textcolor gwdte_437 12 8 $calc($c_block(%b,y) + 12) ÿ $+ %temp.text2 }
goto loop2
}
drawtext -o @opciones %temp.textcolor gwdte_437 18 8 $calc($c_block(%b,y) + 5) %temp.text | goto loop
}
if %temp.cread == Toggle {
set %temp.toggletext $readini $resc(control) %temp.btl %b $+ T
set %temp.togglecolor $gettok(%temp.toggletext,2,44)
set %temp.toggletext $gettok(%temp.toggletext,1,44)
set %temp.toggleini $readini $resc(control) %temp.btl %b $+ D
set %temp.toggleon $readini $resc(control) %temp.btl %b $+ ON
set %temp.toggleoff $readini $resc(control) %temp.btl %b $+ OFF
set %temp.togglegen $readini $resc(control) %temp.btl %b $+ GEN
drawpic @opciones 10 $c_block(%b,y) $resc(p,light [ $+ [ $s2(%temp.toggleini) ] $+ ] )
if $len(%temp.toggletext) > 34 {
set %w 0 | :loop3 | inc %w | if %w >= 3 { goto loop } | set %temp.toggletext2 $wordwrap(%w,34,%temp.toggletext)
if %temp.toggletext2 != $null && %w == 1 { drawtext -o @opciones 2 gwdte_437 12 37 $c_block(%b,y) %temp.toggletext2 }
if %temp.toggletext2 != $null && %w == 2 { drawtext -o @opciones 2 gwdte_437 12 37 $calc($c_block(%b,y) + 12) %temp.toggletext2 }
goto loop3
}
drawtext -o @opciones 2 gwdte_437 18 37 $calc($c_block(%b,y) + 5) %temp.toggletext | goto loop
}
if %temp.cread == Chart {
drawrect -f @opciones 00 2 8 $calc($c_block(%b,y) + 4) 92 18 | drawrect @opciones 1 1 8 $calc($c_block(%b,y) + 4) 92 18
drawrect -f @opciones 00 2 105 $calc($c_block(%b,y) + 4) 235 18 | drawrect @opciones 1 1 105 $calc($c_block(%b,y) + 4) 235 18
set %temp.charttext $readini $resc(control) %temp.btl %b $+ D
set %temp.chart1text $gettok(%temp.charttext,1,44)
set %temp.chart2text $gettok(%temp.charttext,2,44)
set %temp.chart1text $readini $res(settings) Settings %temp.chart1text
set %temp.chart2text $readini $res(settings) Settings %temp.chart2text
if %temp.chart1text != $null { drawtext -c @opciones 1 gwdte_437 12 10 $calc($c_block(%b,y) + 6) 90 18 %temp.chart1text }
if %temp.chart2text != $null { drawtext -c @opciones 1 gwdte_437 12 107 $calc($c_block(%b,y) + 6) 233 18 %temp.chart2text }
goto loop
}
if %temp.cread == Heading {
set %temp.headtext $readini $resc(control) %temp.btl %b $+ D
set %temp.headcolor $gettok(%temp.headtext,2,44)
set %temp.headtext $gettok(%temp.headtext,1,44)
drawline @opciones 14 2 7 56 343 56
drawtext -o @opciones %temp.headcolor Arial 26 7 $c_block(%b,y) %temp.headtext
goto loop
}
if %temp.cread == TextAndInput {
set %temp.taitext $readini $resc(control) %temp.btl %b $+ D
set %temp.taicolor $gettok(%temp.taitext,3,44)
set %temp.taitext1 $gettok(%temp.taitext,1,44)
set %temp.taitext2 $gettok(%temp.taitext,2,44)
set %temp.tailenbox $readini $resc(control) %temp.btl %b $+ D2
drawtext -o @opciones %temp.taicolor gwdte_437 18 8 $calc($c_block(%b,y) + 5) %temp.taitext1
drawrect -f @opciones 00 2 $calc(0 + $calc($len(%temp.taitext1) * 10)) $calc($c_block(%b,y) + 3) %temp.tailenbox 18
drawrect @opciones 1 1 $calc(0 + $calc($len(%temp.taitext1) * 10)) $calc($c_block(%b,y) + 3) %temp.tailenbox 18
drawtext -o @opciones %temp.taicolor gwdte_437 18 $calc( $calc(0 + $calc( $len(%temp.taitext1) * 10)) + $calc(%temp.tailenbox) + 8) $calc($c_block(%b,y) + 5)) %temp.taitext2
set %current.taidim-b [ $+ [ %b ] ] $calc(0 + $calc($len(%temp.taitext1) * 10)) $+ , $+ $calc($c_block(%b,y) + 3) $+ , $+ %temp.tailenbox $+ , $+ 18
set %temp.taidimtemp %current.taidim-b [ $+ [ %b ] ]
set %temp.taidimtemp $replace(%temp.taidimtemp,$chr(44),$chr(32))
drawrect -f @opciones 00 2 %temp.taidimtemp
drawrect @opciones 1 1 %temp.taidimtemp
set %temp.TextAndInputVar $readini $resc(control) %temp.btl %b $+ D3
set %temp.taidimtemp1 $calc($gettok(%temp.taidimtemp,1,32) + 2)
set %temp.taidimtemp2 $calc($gettok(%temp.taidimtemp,2,32) + 3)
set %temp.taidimtemp3 $calc($gettok(%temp.taidimtemp,3,32) - 2)
set %temp.taidimtemp4 $calc($gettok(%temp.taidimtemp,4,32) - 3)
set %temp.taidimtemp %temp.taidimtemp1 %temp.taidimtemp2 %temp.taidimtemp3 %temp.taidimtemp4
set %temp.taidtemper $readini $res(settings) Settings %temp.TextAndInputVar
if %temp.taidtemper != $null { drawtext -c @opciones 1 gwdte_437 12 %temp.taidimtemp %temp.taidtemper }
unset %temp.tai*
goto loop
}
if %temp.cread == ChartHeading {
set %temp.charthead $readini $resc(control) %temp.btl %b $+ D
set %temp.charthead1 $gettok(%temp.charthead,1,44)
set %temp.charthead2 $gettok(%temp.charthead,2,44)
drawtext -o @opciones 1 gwdte_437 18 12 $calc($c_block(%b,y)+6) %temp.charthead1
drawtext -o @opciones 1 gwdte_437 18 115 $calc($c_block(%b,y)+6) %temp.charthead2
; drawline @opciones 1 1 103 $calc($c_block(%b,y)+3) 103 $calc($c_block(%b,y)+23)
unset %temp.charthead*
goto loop
}
if %temp.cread == Alias {
set %temp.aliastext $readini $resc(control) %temp.btl %b $+ T
set %temp.aliascolor $gettok(%temp.aliastext,2,44)
set %temp.aliastext $gettok(%temp.aliastext,1,44)
drawpic @opciones 10 $calc($c_block(%b,y)-3) $resc(p,alias)
if $len(%temp.aliastext) > 34 {
set %a 0 | :loop7 | inc %a | if %a >= 3 { goto loop } | set %temp.aliastext2 $wordwrap(%a,34,%temp.aliastext)
if %temp.aliastext2 != $null && %a == 1 { drawtext -o @opciones %temp.aliascolor gwdte_437 12 37 $calc($c_block(%b,y)-2) %temp.aliastext2 }
if %temp.aliastext2 != $null && %a == 2 { drawtext -o @opciones %temp.aliascolor gwdte_437 12 37 $calc($c_block(%b,y) + 10) %temp.aliastext2 }
goto loop7
}
drawtext -o @opciones %temp.aliascolor gwdte_437 18 37 $calc($c_block(%b,y) + 3) %temp.aliastext | goto loop
}
if %temp.cread == CloseHelp { drawpic @opciones 0 $c_block(%b,y) $resc(p,closehelp) | goto loop }
if %temp.cread == null { goto loop }
goto loop
}