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 04-07-2010, 09:07 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
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?
Reply With Quote
  #2  
Old 04-07-2010, 10:09 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Reply With Quote
  #3  
Old 04-07-2010, 11:02 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Try shield instead maybe?
__________________
Reply With Quote
  #4  
Old 04-07-2010, 11:33 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
I've been having unexpected issues with character shields all of a sudden lately aswell, regardless of it being "shield" or "shieldimg".
Reply With Quote
  #5  
Old 04-07-2010, 12:53 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by ffcmike View Post
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
__________________
Reply With Quote
  #6  
Old 04-07-2010, 08:31 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by ffcmike View Post
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.
Reply With Quote
  #7  
Old 04-07-2010, 08:39 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
This works for me, and I've never had any problems:

PHP Code:
temp.char YourControl.actor;
temp.char.shield "shield_img_here.png"
Reply With Quote
  #8  
Old 04-07-2010, 08:57 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
changing shieldimg to shield seems to fix it
Reply With Quote
  #9  
Old 04-07-2010, 09:21 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Mark Sir Link View Post
changing shieldimg to shield seems to fix it
Told you
__________________
Reply With Quote
  #10  
Old 04-07-2010, 10:54 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Mark Sir Link View Post
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.
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 09:21 PM.


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