Graal Forums

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

Mark Sir Link 04-07-2010 09:07 AM

TShowImg.actor
 
I'm using a GuiShowImgCtrl to display a preview of something can be edited.

I am able to modify the headimg and bodyimg just fine, but for some reason I am having issues with shieldimg.

For example, for a UI element I have

text = thiso.headimg and it works fine
text = thiso.shieldimg doesn't work, though.

I know that these are set, but for some they don't appear to be working.

if I check the UIElement (ie Window.actor.shieldimg) it returns the correct image, but it doesn't display the image on the TShowImg.

I'm at a loss, anyone have any ideas?

Mark Sir Link 04-07-2010 10:09 AM

http://img36.imageshack.us/img36/4893/issue.png

Crow 04-07-2010 11:02 AM

Try shield instead maybe?

ffcmike 04-07-2010 11:33 AM

I've been having unexpected issues with character shields all of a sudden lately aswell, regardless of it being "shield" or "shieldimg".

Crow 04-07-2010 12:53 PM

Quote:

Originally Posted by ffcmike (Post 1567625)
I've been having unexpected issues with character shields all of a sudden lately aswell, regardless of it being "shield" or "shieldimg".

I always had them, I guess :p

Mark Sir Link 04-07-2010 08:31 PM

Quote:

Originally Posted by ffcmike (Post 1567625)
I've been having unexpected issues with character shields all of a sudden lately aswell, regardless of it being "shield" or "shieldimg".

if you're talking about just a showcharacter, they need a shieldpower set to 1 or higher to display a shield.

I'm still stumped on the TShowImg actor though.

salesman 04-07-2010 08:39 PM

This works for me, and I've never had any problems:

PHP Code:

temp.char YourControl.actor;
temp.char.shield "shield_img_here.png"


Mark Sir Link 04-07-2010 08:57 PM

changing shieldimg to shield seems to fix it

Crow 04-07-2010 09:21 PM

Quote:

Originally Posted by Mark Sir Link (Post 1567692)
changing shieldimg to shield seems to fix it

Told you :p

ffcmike 04-07-2010 10:54 PM

Quote:

Originally Posted by Mark Sir Link (Post 1567682)
if you're talking about just a showcharacter, they need a shieldpower set to 1 or higher to display a shield.

I've never set shieldpower within showcharacters and shields have always displayed fine, the issue i've had as of late is simply the shield value not being readable despite being displayed, I thought this may be linked to your problem but guess not.


All times are GMT +2. The time now is 09:20 AM.

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