Creation/Dev/Script/Client/GuiShowImgCtrl: Difference between revisions
From Graal Bible
(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_showimg.png]] | |||
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. | |||
| Line 34: | Line 40: | ||
|- | |- | ||
| dimension | | dimension | ||
| integer | | integer | ||
| | | | ||
| Line 67: | Line 69: | ||
| imageindex | | imageindex | ||
| integer (read only) | | integer (read only) | ||
| | | | ||
|- | |- | ||
| Line 104: | Line 102: | ||
| float | | float | ||
| | | | ||
|- | |||
| shadowcolor | |||
| string | |||
| of format {red,green,blue}, used in combination with textshadow=true | |||
|- | |||
| shadowoffset | |||
| string | |||
| of format {offsetx,offsety}, used in combination with textshadow=true | |||
|- | |- | ||
| shape | | shape | ||
| Line 128: | Line 134: | ||
| string | | string | ||
| | | | ||
|- | |||
| textshadow | |||
| boolean | |||
| enables shadow | |||
|- | |- | ||
| x | | x | ||
| Line 141: | Line 151: | ||
| | | | ||
|} | |} | ||
=Example= | |||
<pre> | |||
new GuiShowImgCtrl("Test_ShowImg") { | |||
x = 10; | |||
y = 10; | |||
width = 60; | |||
height = 60; | |||
ani = "walk"; | |||
} | |||
</pre> | |||
Revision as of 18:54, 16 September 2006
Inherits GuiControl.
Description
This is basicly a wrapper around TShowImg for displaying all kind of Graal content inside the GUI, including animations (ganis) and particle effects.
Variables
| Name | Type | Description |
| alpha | float | |
| ani | string | |
| attachoffset | string | |
| attachtoowner | boolean | |
| blue | float | |
| code | string | the old representation as 'font@style@text' |
| dimension | integer | |
| dir | integer | |
| emitter | object (read only) | |
| eulerrotation | string | |
| font | string | |
| green | float | |
| image | string | |
| imageindex | integer (read only) | |
| layer | integer | |
| mode | integer | the image drawing mode (0 - add, 1 - transparent, 2 - subtract, 3 - daynight) |
| offsetx | integer | |
| offsety | integer | |
| playerlook | boolean | if the animation should take it's head, body, sword, shield and attr[] from the owner (playerlook), set this to false if you want to set the images yourself by changing showimg.actor.head etc. |
| polygon | object | |
| red | float | |
| rotation | float | |
| shadowcolor | string | of format {red,green,blue}, used in combination with textshadow=true |
| shadowoffset | string | of format {offsetx,offsety}, used in combination with textshadow=true |
| shape | string | |
| showimg | object | the actual TShowImg object which contains all the logic |
| stretchx | float | |
| stretchy | float | |
| style | string | |
| text | string | |
| textshadow | boolean | enables shadow |
| x | float | |
| y | float | |
| zoom | float |
Example
new GuiShowImgCtrl("Test_ShowImg") {
x = 10;
y = 10;
width = 60;
height = 60;
ani = "walk";
}