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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Wed Jan 07, 2009 5:53 am   

%btnenable does not work with some internal icons
 
I am currently converting scripts from my old zMud, and one of the things I use to use was a compass rose that would disable the invalid directions from my current location. However, %btnenable does not seem to redisplay the icon after the button has been disable then re-enabled again. Note, the button still works after being re-enabled, there is just no image. The following snippets demonstrates what I am talking about.

First create a button with an image:
#button icon {icon} {#show icon}
#call %btnimage(icon, ARROWL)

Then disable and enable it:
#call %btnenable(icon, 0)
#call %btnenable(icon, 1)

The image disappears

Further investigation showed me that it does work for some of the internal icons and it does work for any bmp icon I tried to load (and so I assume it works for most of them too). The following internal icons did not get re-enabled:

ARROW1R
ARROW2L
ARROW2R
ARROWD
ARROWL
ARROWNE
ARROWNW
ARROWR
ARROWSE
ARROWSW
ARROWU
BOOKOPEN
CANCEL
CHAR
CHECK
CMUD
DXSUBMENUEXPAND
DXNAVBAROFFICE11EXPANDSIGN
DXNAVBAROFFICE11NAVPANEARROWDOWN
DXNAVBAROFFICE11NAVPANEARROWUP
DXNAVBAROFFICE11NAVPANEDEFAULTSMALL
EXIT2
FLOPPY2
FOLDER
FOLDOPEN
FONT
GLOBE
HELP
IMPORT
LOOK
MAP

My solution has been to switch to the red arrows for the compass rather than the blue arrows that don't re-enable.
Reply with quote
Korus99
Newbie


Joined: 08 Mar 2006
Posts: 7

PostPosted: Wed Jan 07, 2009 5:05 pm   
 
I forgot to note that this is in 3.03a and 2.37.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Jan 07, 2009 5:54 pm   
 
Hmm, that's very odd. Not sure why it works for some images and not others. But I'll add this to the bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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