Creation/Dev/Script/Client/GuiBitmapButtonCtrl: Difference between revisions

From Graal Bible
(Added picture, description and an example script)
(Replacing page with '{{playerworld}}')
Line 1: Line 1:
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]].
{{playerworld}}
 
=Description=
 
[[Image:Guicontrol_bitmapbutton.png]]
 
This control is basicly displaying a stretched bitmap and has three states - normal, mouse over and pressed. For each state you can specify a different bitmap. This can be interesting if you want to make a nice looking graphical button which has an usual shape. For displaying a normal button see [[Creation/Dev/Client/Script/GuiButtonCtrl|GuiButtonCtrl]].
 
=Variables=
 
mouseoverbitmap - string
 
normalbitmap - string
 
pressedbitmap - string
 
text - string
 
=Functions=
 
setbitmap(str, int)
 
=Example=
 
  new GuiBitmapButtonCtrl("Test_BitmapButton") {
    x = 10;
    y = 10;
    width = height = 64;
    normalbitmap = "guiedit_button_normal.png";
    mouseoverbitmap = "guiedit_button_mouseover.png";
    pressedbitmap = "guiedit_button_down.png";
  }

Revision as of 16:57, 30 June 2007

This article describes one of Graal's many playerworlds. If you have some information about this world's quests, staff, events or content, feel free to contribute to it by clicking the Edit link on the left side. Try to keep your edits as fair and unbiased as possible, though - the GraalBible is primarily for information, not for argument.