Creation/Dev/Script/Client/GuiBitmapCtrl: Difference between revisions
From Graal Bible
mNo edit summary |
(Added picture, description and an example script) |
||
| Line 1: | Line 1: | ||
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]]. | Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]]. | ||
=Description= | |||
[[Image:Guicontrol_bitmap.png]] | |||
This control is simply displaying a stretched or tiled bitmap. | |||
=Variables= | =Variables= | ||
| Line 31: | Line 38: | ||
| | | | ||
|} | |} | ||
=Example= | |||
new GuiBitmapCtrl("Test_Bitmap") { | |||
x = 10; | |||
y = 10; | |||
width = 160; | |||
height = 80; | |||
bitmap = "2002_sysmsgbg.png"; | |||
} | |||
Revision as of 17:36, 16 September 2006
Inherits GuiControl.
Description
This control is simply displaying a stretched or tiled bitmap.
Variables
| Name | Type | Description |
| bitmap | string | Image filename |
| wrap | boolean | If true, the image will be tiled. If false, the image will be stretched. |
Functions
| Name | Return Type | Description |
| setbitmap(str) | ||
| setvalue(int, int) |
Example
new GuiBitmapCtrl("Test_Bitmap") {
x = 10;
y = 10;
width = 160;
height = 80;
bitmap = "2002_sysmsgbg.png";
}