Graal Pastebin

New Paste
Pasted on September 15, 2011.
View the raw file

function onActionServerSide(cmd) {
  if (cmd == "SetNote") {
    serverr.notepad = params[1];
  }
}
 
//#CLIENTSIDE
function onCreated() {
  Notepad_Window.show();
  new GuiWindowCtrl("Notepad_Window") {
    profile = GuiBlueWindowProfile;
    clientrelative = true;
    clientextent = "559,520";
 
    canmaximize = false;
    canminimize = false;
    canmove = true;
    canresize = true;
    closequery = false;
    canresize = false;
    destroyonhide = false;
    text = "Online Notepad";
    x = 409;
    y = 97;
 
    new GuiScrollCtrl("Notepad_Scroll") {
      profile = GuiBlueScrollProfile;
      height = 494;
      hscrollbar = "dynamic";
      vscrollbar = "dynamic";
      width = 559;
      y = 25;
 
      new GuiMLTextEditCtrl("Notepad_Multiline") {
        profile = GuiBlueMLTextEditProfile;
        height = 17;
        horizsizing = "width";
        text = serverr.notepad;
        width = 534;
      }
    }
    new GuiTextCtrl("Notepad_Text") {
      profile = GuiBlueTextProfile;
      height = 20;
      text = "Please use this responsibly, or you will be banned from using it.    -Gunderak";
      width = 432;
      x = 60;
      y = 2;
    }
  }
  onTimeout();
}
 
function onTimeout() {
  triggerserver("gui", name, "SetNote", Notepad_Multiline.text);
  temp.t = Notepad_Multiline.gettext();
  settimer(0.05);
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58