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

From Graal Bible
mNo edit summary
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<pre>
[[Category:Scripting Reference]]
    GuiDrawingPanel (GuiControl):
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]].
      parth - integer (read only)
 
      partw - integer (read only)
=Description=
      partx - integer (read only)
 
      party - integer (read only)
[[Image:Guicontrol_drawingpanel.png]]
      clearall()
 
      clearrectangle(int, int, int, int)
This is a wrapper around [[Creation/Dev/Script/Client/TDrawingPanel|TDrawingPanel]] which is also used for icons in text lists, tree views, buttons and tab controls. You can draw images onto the panel. Use "TILES" as image name for drawing tiles onto the control.
      drawimage(int, int, str)
 
      drawimagerectangle(int, int, str, int, int, int, int)
 
      drawimagestretched(int, int, int, int, str, int, int, int, int)
=Variables=
</pre>
 
panel - [[Creation/Dev/Script/Client/TDrawingPanel|TDrawingPanel]]
 
parth - integer (read only)
 
partw - integer (read only)
 
partx - integer (read only)
 
party - integer (read only)
 
 
=Functions=
{| border="1" cellpadding="2" width="100%"
| '''Name'''
| '''Return Type'''
| '''Description'''
|-
| clearall()
|
|
|-
| clearrectangle(int x, int y, int width, int height)
|
|
|-
| drawimage(int x, int y, str imagefilename)
|
|
|-
| drawimagerectangle(int x, int y, str imagefilename, int sourcex, int sourcey, int sourcewidth, int sourceheight)
|
|
|-
| drawimagestretched(int x, int y, int width, int height, str imagefilename, int sourcex, int sourcey, int sourcewidth, int sourceheight)
|
|
|}
 
 
=Example=
 
  new GuiDrawingPanel("Test_DrawingPanel") {
    x = 10;
    y = 10;
    width = 32;
    height = 32;
    clearall();
    drawimage(0,0,"mud_apple.png");
  }

Latest revision as of 00:52, 16 February 2010

Inherits GuiControl.

Description

Guicontrol drawingpanel.png

This is a wrapper around TDrawingPanel which is also used for icons in text lists, tree views, buttons and tab controls. You can draw images onto the panel. Use "TILES" as image name for drawing tiles onto the control.


Variables

panel - TDrawingPanel

parth - integer (read only)

partw - integer (read only)

partx - integer (read only)

party - integer (read only)


Functions

Name Return Type Description
clearall()
clearrectangle(int x, int y, int width, int height)
drawimage(int x, int y, str imagefilename)
drawimagerectangle(int x, int y, str imagefilename, int sourcex, int sourcey, int sourcewidth, int sourceheight)
drawimagestretched(int x, int y, int width, int height, str imagefilename, int sourcex, int sourcey, int sourcewidth, int sourceheight)


Example

 new GuiDrawingPanel("Test_DrawingPanel") {
   x = 10;
   y = 10;
   width = 32;
   height = 32;
   clearall();
   drawimage(0,0,"mud_apple.png");
 }