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

From Graal Bible
(Added picture, description and an example script)
Line 9: Line 9:


=Variables=
=Variables=
All variables from [[Creation/Dev/Script/Client/TShowImg|TShowImg]] are available for this control as well.
Additional variables:


{| border="1" cellpadding="2" width="100%"
{| border="1" cellpadding="2" width="100%"
Line 14: Line 17:
| '''Type'''
| '''Type'''
| '''Description'''
| '''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
| offsetx
| integer
| integer
|
| display offset for 'showimg' inside the control
|-
|-
| offsety
| offsety
| integer
| integer
|
| display offset for 'showimg' inside the control
|-
| 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
| showimg
| object
| object
| 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
|-
| stretchx
| float
|
|-
| stretchy
| float
|
|-
| style
| string
|
|-
| text
| string
|
|-
| textshadow
| boolean
| enables shadow
|-
| x
| float
|
|-
| y
| float
|
|-
| zoom
| float
|
|}
|}


=Example=
=Example=

Revision as of 21:22, 22 September 2006

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.


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";
}