Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2005, 10:46 AM
Arkan1k Arkan1k is offline
Delph
Join Date: Feb 2004
Location: Melbourne, Australia
Posts: 35
Arkan1k is on a distinguished road
Send a message via AIM to Arkan1k Send a message via MSN to Arkan1k
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.
__________________
[ Delph ]
Reply With Quote
  #2  
Old 02-10-2005, 02:03 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:38 AM.


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