alias quir {
  set %stardust $dialog(quir)
  if (%stardust) unset %stardust
  else dialog -m quir quir
}

dialog quir {
  title "La Morte Nera"
  size -1 -1 270 167
  button "Ok", 1, 57 137 72 22, ok
  button "Annulla", 2, 137 137 72 22, cancel
  combo 4, 57 49 200 80, drop edit size
  text "Sceglire una delle seguenti opzioni", 5, 57 25 200 16
  icon 6, 9 41 36 35, $shortfn($mircdir\Graphic\Sith_skin\mortenera.jpg)
  text "Esce da IRC. chiude le sessioni attive e", 7, 57 81 200 16
}
on *:dialog:quir:init:0:{

  /dll mdx SetMircVersion $version
  /dll mdx MarkDialog $dname
  /dll mdx SetBorderStyle $dname 1,2,3 staticedge
  /dll mdx SetFont $dname 1,2,3 +a 12 600 tahoma
  /dll mdx SetFont $dname 1,2 +a 12 600 tahoma

  did -ca quir 4 Disconnetti da IRC  
  did -a quir 4 Quit Sith Script
  did -a quir 4 Disconnettimi(Win Xp)/Spegni PC(Win 9x)
  did -a quir 4 Spegni PC (Solo Win Xp)
  did -z quir 4
}


on *:dialog:quir:sclick:1: {
  if ($did(4) == Disconnetti da IRC) quit | did -ra quir 7 | did -a quir 7 Disconnette lo Scrip da IRC
  if ($did(4) == Quit Sith Script) exit 
  if ($did(4) == Disconnettimi(Win Xp)/Spegni PC(Win 9x)) { /run SProgs\Cambio.exe }
  if ($did(4) == Spegni PC (Solo win Xp)) { /run Shutdown.exe -s -t 00 }
  /splay sounds/tlak
}

on *:dialog:quir:sclick:2: {/splay sounds/tlak.wav
}
