More Buttons

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Debug
Just popping in
Just popping in
Posts: 7
Joined: Wed Jan 12, 2005 12:06
Contact:

More Buttons

Postby Debug » Sat Jan 08, 2005 14:17

this may be easily doable with CEGUI already but i can;t figure how at least not quickly.

but i would like to be able to add more buttons to the SYS area and the left part of title bar area from XML preferably the close button jsut is not enough.

Minimise
Maximise
Rollup / Rolldown
Help
Shuffle Focus

in addition can i do a LABEL from XML ie not a static text but jsut a string placed on the UI no graphic at all if so how

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

More Buttons

Postby CrazyEddie » Sat Jan 08, 2005 15:57

At present there's no simple way to add buttons to the 'system' area for the Taharez module, technically, what we have now is just faked anyway. The width of the system area is taken from the imagery so that's easily changed, the current close button is attached to the FrameWindow and customised so it can appear outside of the client area. What you could do is code a simple SystemButton class using a similar approach, and use that for your additional buttons. Just make sure the close button is enabled so that the system area is fully drawn (else you just get the two ends and no middle section).

Everything in the XML layout file needs to be a Window of some form or other. A simple string of text is juat that - a simple string of text, so has no means of holding any additional information required for management by the system. The static text was made for this purpose, what is the obstacle preventing you using that?

CE.

User avatar
Debug
Just popping in
Just popping in
Posts: 7
Joined: Wed Jan 12, 2005 12:06
Contact:

More Buttons

Postby Debug » Sat Jan 08, 2005 16:51

Static text im using for text with a border / sunken or shaded background.

i wanted a static text with no graphical part at all,

will this feature of more buttons in system area of windows be added some time soonish? im developing a game i don't have an instence amount of time to add tons of code to cegui although at a later time im sure i can contribute :)

maybe we just need a static text like it is and a Label which doesnt accept images at all and has 100% transparency for the background. which is what i deally need

also the progress bars in Taharez are unlike what i am used to generally gui systems take 2 images a background ( empty ) and a foregound ( filled ) left, middle, right instead of drawing filled and empty segments.

a progress bar like that more standard method would be a nice feature to add also...

heh i know im throwing a ton of things i want to see at you in one go but hopefully if not you someone else will add them :)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

More Buttons

Postby CrazyEddie » Sat Jan 08, 2005 17:01

You can disable the background and frame for a static text and be left with just the text. These settings are exposed to XML so can be used there too :) Look up the 'BackgroundEnabled' and 'FrameEnabled' properties for Static widgets in the API ref.

I wouldn't like to say when the extra system buttons enhancements will be put in, though the general approach I described above is not too hard I think (one widget class cloned from the TaharezCloseButton + a factory, and away you go!). I absolutely must make a start on the new widgets I have to do tomorrow; which is why i've been trying to get most of the other smaller requests in over the past couple of days ;)

The Taharez progress bars were custom written to work with the imagery that Taharez provided me with. The WindowsLook progress bar is slightly more traditional in it's implementation. Maybe I'll add a third option to Taharez some time soon, though that depends on how much progress (no pun intneded ;) ) I make on some of the new widgets.

CE.

User avatar
Debug
Just popping in
Just popping in
Posts: 7
Joined: Wed Jan 12, 2005 12:06
Contact:

More Buttons

Postby Debug » Mon Jan 10, 2005 01:09

ok.. that answers that then :)

so officially we add..

System Area Button Additions
Minimise | Maximise | Roll up / down | Help | Focus Shuffle
( Note the Roll up / down system button would be on the left side of title bar not the sys area and show different imagery based on the state of the window rolled up or down so this is potentially a different addition to the todo list)

Traditional Progress Bar

to your todo list :)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

More Buttons

Postby CrazyEddie » Mon Jan 10, 2005 09:32

:shock:

Okay, but these bits will be a little while in the making ;)

CE.

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

More Buttons

Postby spannerman » Mon Jan 10, 2005 19:03

ok.. that answers that then :)

so officially we add..

System Area Button Additions
Minimise | Maximise | Roll up / down | Help | Focus Shuffle
( Note the Roll up / down system button would be on the left side of title bar not the sys area and show different imagery based on the state of the window rolled up or down so this is potentially a different addition to the todo list)

Traditional Progress Bar

to your todo list :)


Lol

Or alternatively, you code these new things yourself, and submit them as a patch. :wink:

User avatar
Debug
Just popping in
Just popping in
Posts: 7
Joined: Wed Jan 12, 2005 12:06
Contact:

More Buttons

Postby Debug » Mon Jan 10, 2005 23:14

Ok spannerman :)

i will get right on that after i complete the AI library the camera system and the new entity management system :) which will be around 2006 2Q :)

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

More Buttons

Postby spannerman » Mon Jan 10, 2005 23:35

hehe :P


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 3 guests