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

From Graal Bible
(Formatted the variables and added text shadow)
(→‎Variables: Added more info for the showimg attributes)
Line 18: Line 18:
| ani
| ani
| string
| string
|
| animation file (gani, without the extension)
|-
|-
| attachoffset
| attachoffset
| string
| {dx,dy,dz}
|
| if attachtoowner is enabled, then the showimg will be displayed with this offset relative to the owner
|-
|-
| attachtoowner
| attachtoowner
| boolean
| boolean
|
| if set to true, the showimg will automatically follow the owner
|-
|-
| blue
| blue
Line 38: Line 38:
| dimension
| dimension
| integer
| integer
|
| dimension of the "polygon" (either 2 or 3), specifies how many coordinates are given for each point
|-
|-
| dir
| dir
| integer
| integer
|
| viewing direction of the animation (0..3)
|-
|-
| emitter
| emitter
| object (read only)
| object (read only)
|
| a [[Creation/Dev/Script/Client/TParticleEmitter|TParticleEmitter]]
|-
|-
| eulerrotation
| eulerrotation
Line 54: Line 54:
| font
| font
| string
| string
|
| font type
|-
|-
| green
| green
Line 70: Line 70:
| layer
| layer
| integer
| integer
|
| 0 - draw under player, 2 - draw over player, 3 - draw as light, 4+ - stats layer
|-
|-
| mode
| mode
Line 82: Line 82:
| polygon
| polygon
| object
| object
|
| array of coordinates
|-
|-
| red
| red
Line 90: Line 90:
| rotation
| rotation
| float
| float
|
| rotation angle in radiants
|-
|-
| shadowcolor
| shadowcolor
Line 102: Line 102:
| shape
| shape
| string
| string
|
| 3D object file (dts, 3ds, ft, dif)
|-
|-
| stretchx
| stretchx
Line 114: Line 114:
| style
| style
| string
| string
|
| font style, combination of c (centered), r (right-aligned), b (bold), i (italic), u (underline) and s (strikeout)
|-
|-
| text
| text
Line 131: Line 131:
| float
| float
|
|
|-
| z
| float
| only used when the layer is below 4
|-
|-
| zoom
| zoom

Revision as of 21:31, 22 September 2006

Inherits TLevelObject.

Variables

Name Type Description
actor object If playerlook is false, this object is what inherits the appearance aspect of the animations ( if applied )
alpha float
ani string animation file (gani, without the extension)
attachoffset {dx,dy,dz} if attachtoowner is enabled, then the showimg will be displayed with this offset relative to the owner
attachtoowner boolean if set to true, the showimg will automatically follow the owner
blue float
code string the old representation as 'font@style@text'
dimension integer dimension of the "polygon" (either 2 or 3), specifies how many coordinates are given for each point
dir integer viewing direction of the animation (0..3)
emitter object (read only) a TParticleEmitter
eulerrotation string
font string font type
green float
image string
imageindex integer (read only)
layer integer 0 - draw under player, 2 - draw over player, 3 - draw as light, 4+ - stats layer
mode integer the image drawing mode (0 - add, 1 - transparent, 2 - subtract, 3 - daynight)
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 actor.head etc.
polygon object array of coordinates
red float
rotation float rotation angle in radiants
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 3D object file (dts, 3ds, ft, dif)
stretchx float
stretchy float
style string font style, combination of c (centered), r (right-aligned), b (bold), i (italic), u (underline) and s (strikeout)
text string
textshadow boolean enables shadow
x float
y float
z float only used when the layer is below 4
zoom float