All pastes #509416 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-25 13:16 UTC
rendered paste body
dialog options {
  title "Oliver's LagMeter Options"
  size -1 -1 188 61
  option dbu
  combo 1, 108 15 72 150, size drop
  box "Refresh Rate", 2, 4 3 64 41
  combo 3, 108 29 72 150, size drop
  box "Colours", 4, 71 3 114 41
  text "Background", 5, 74 16 30 8
  text "Lag Bar", 6, 74 30 25 8
  edit "", 7, 27 17 17 10
  text "(seconds)", 8, 24 30 25 8
  button "Save Settings", 9, 70 47 43 12
}
on *:dialog:options:init:*:{
  /dll " $+ $scriptdir $+ ColorCombo.dll" COMBO options 1
  /dll " $+ $scriptdir $+ ColorCombo.dll" COMBO options 3
  /did -a options 7 %repeat	
}
on *:dialog:options:sclick:*:{
  if ($did == 9) {
    if (!$did($dname,7)) {
      halt
    }
    else {
      set %repeat $did($dname,7)
      dialog -x options options
      if ($window(@lagmeter)) {
        .timerlagmeter off
        window -c @lagmeter
        start
      }
      /set %bgcolor $did($dname,1)
      /set %barcolor $did($dname,3)
    }
  }
}