Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
T0rin
Beginner


Joined: 27 Dec 2008
Posts: 14

PostPosted: Sat Dec 18, 2010 9:42 pm   

Buttons with images and captions
 
I'm starting to use buttons with images to represent an array of affects on my characters... I've got the buttons and images working, but I'd like to overlay a number over the image, for affect durations. However, it doesn't seem that captions work "over" an image, they'll display if I remove the image, but image and captions won't function at the same time, image always take precedence. Any way to do something like this? I really don't want to make affect images for every possible duration and swap them out every tick.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Sun Dec 19, 2010 12:42 am   
 
Sorry, the only way would be to use different images for each one. You have either an image, or a caption, not both.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sun Dec 19, 2010 11:44 pm   
 
You can have an image and a caption, the button just has to be big enough. Consider:

Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
  <button autosize="false" width="60" height="60" iconleft="false" image="CIRCG" priority="10" copy="yes">
    <caption>Test</caption>
  </button>
</cmud>
_________________
Asati di tempari!
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Dec 20, 2010 1:33 am   
 
Ah! Sorry, I thought you couldn't. Good to know!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net