Graal Pastebin

New Paste
Pasted on October 1, 2011.
View the raw file

//#CLIENTSIDE
function onCreated() {
  this.minversion = 6;
  if (graalversion < this.minversion) {
    showMessage();
  } else {
    hideMessage();
  }
}
 
function ShowMessage() {
  new GuiShowImgCtrl("Msg") {
    x = 0;
    y = 0;
    width = GraalControl.width;
    height = 50;
    polygon = {
      0, 0, width, 0, width, height, 0, height
    };
    red = green = blue = 0;
    alpha = 1;
    new GuiMLTextCtrl("MsgText") {
      x = 430;
      y = 5;
      width = GraalControl.width - 20;
      height = 257;
      useOwnProfile = true;
      profile.fonttype = "Tempsitc";
      profile.fontsize = 30;
      profile.fontcolor = {
        255, 255, 255, 255
      };
      profile.fontcolorhl = {
        0, 0, 0, 192
      };
      profile.fillcolorhl = {
        255, 255, 255, 255
      };
      text = "You are using an old version of the Graal Client!";
    }
  }
}
 
function HideMessage() {
  Msg.Visible = false;
  MsgText.visible = false;
}
 
  • 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