Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   gscript2: TShowImg() (https://forums.graalonline.com/forums/showthread.php?t=57571)

Arkan1k 02-10-2005 10:46 AM

gscript2: TShowImg()
 
More help, sorry. But I guess this is also helping for alot of other people.
I am trying to keep to using the main gscript2 functions so I don't need to use many gscript1 things. Even if they are now new and have fancy brackets etc...
I am trying to complete the simple task of showing an image. Using the TShowImg() Control.
I have basically set everything the way I want, but it just doesn't want to show the image at all.

NPC Code:
//#CLIENTSIDE
function onCreated() {
new TShowImg("minimap") {
image = "toc_minimap.png";
x = screenwidth - 110;
y = screenheight - 107;
width = 108;
height = 105;
partx = 0;
party = 0;
partw = 108;
parth = 105;
layer = 4;
}
}



Any help would be appreciated into the working of this control.

Admins 02-10-2005 02:03 PM

There are two ways:

- new GuiShowImgCtrl(blabla) { .... }
This is creating a gui control which receives mouse events etc. This control is always on the stats layer

- with (findimg(index)) { blabla ... }
This is the normal Graal showimg thing, you can create more images, you can put them in the normal graal level (layer<4), but you need to handle the mouse events yourself


All times are GMT +2. The time now is 02:12 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.