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

From Graal Bible
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripting Reference]]
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]].
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]].


Line 7: Line 8:
This is basicly a wrapper around [[Creation/Dev/Script/Client/TShowImg|TShowImg]] for displaying all kind of Graal content inside the GUI, including animations (ganis) and particle effects.
This is basicly a wrapper around [[Creation/Dev/Script/Client/TShowImg|TShowImg]] for displaying all kind of Graal content inside the GUI, including animations (ganis) and particle effects.


''Note'': like with normal GUI controls the content of this control might be clipped at the control border, so use width and height to resize the control, and offsetx and offsety to shift the content so that animations or particles are not drawn half.


=Variables=
=Variables=
Line 30: Line 32:
| the actual [[Creation/Dev/Script/Client/TShowImg|TShowImg]] object which contains all the logic
| the actual [[Creation/Dev/Script/Client/TShowImg|TShowImg]] object which contains all the logic
|}
|}


=Example=
=Example=

Latest revision as of 23:55, 15 February 2010

Inherits GuiControl.

Description

Guicontrol showimg.png

This is basicly a wrapper around TShowImg for displaying all kind of Graal content inside the GUI, including animations (ganis) and particle effects.

Note: like with normal GUI controls the content of this control might be clipped at the control border, so use width and height to resize the control, and offsetx and offsety to shift the content so that animations or particles are not drawn half.

Variables

All variables from TShowImg are available for this control as well. Additional variables:

Name Type Description
offsetx integer display offset for 'showimg' inside the control
offsety integer display offset for 'showimg' inside the control
showimg object the actual TShowImg object which contains all the logic


Example

new GuiShowImgCtrl("Test_ShowImg") {
  x = 10;
  y = 10;
  width = 60;
  height = 60;
  ani = "walk";
}