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
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Wed Apr 22, 2009 6:05 pm   

Floating Button, right align option & transparency
 
Code:
<button toolbar="0" mousebtn="Left" alignright="true" priority="80" id="8">
  <caption>Floating</caption>
  <value>floating button clicked</value>
</button>


Instead of auto positioning the button to right, top corner, I get a Fullwidth button below the statusbar.

1) Add to toolbar 1, and it's full right, not full width.
2) click transparent, return to toolbar 0 > save
3) Button remains standard color.
4) xml tab, no transparent flag, In session window, button isn't transparent
5) return to options tab, change button color > save
6) notice button color change, view xml, notice transparent is false
7) options tab, checkmark transparent, uncheck autosize, set height to 100 > save
8) notice no text on button in PE, and how it kinda floats down/behind caption textbox
9) xml tab, notice no transparent or color flag
10) session window notice button is not transparent.

couple of quirks that i've noticed while playing with these new button features, if this is how it's intended to work, should transparent be... default color maybe?

All in all thou, VERY cool!
Reply with quote
Tech
GURU


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

PostPosted: Thu Apr 23, 2009 8:49 pm   
 
Confirmed mostly.

For number 8 the reason you don't see the text is the button is sized bigger than the display area for the button.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Fri Apr 24, 2009 7:27 pm   
 
You should not use the "AlignRight" option for floating buttons. The AlignRight is only for when the button is contained within a toolbar. If you want a floating button aligned with the right side of the screen, use a negative value for the Left position. (A negative value for the Top position will align with the bottom of the window).

Also, transparent floating buttons are not supported, and probably never will be. When you mark a floating button as transparent, you will get the blue gradient background like it normally shows on the toolbar. There isn't any way to make a floating button transparent and to handle MUD text scrolling beneath it without a huge slowdown in how the MUD text is scrolled.
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Sat Apr 25, 2009 3:48 am   
 
Ahh, yeah forgot/glossed over the negative left/top position value.

I can understand the deal with the transparent buttons, tho an invisible button is of limited usefulness. then since when on a tool bar the transparent option just sets the button color to the default color, maybe rename/remove and add reset color button/option. The transparent/color flags also disappear from xml when the button is on 1-4 toolbars.

as for #8, there appears to be some coding to compensate for diff height buttons, if you adjust the height from 5 20 30 35 40 the horizontal divider moves up and down a lil, but beyond 30 or so the button over takes the divider
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