Round buttons (or generic image buttons)
Moderators: CEGUI MVP, CEGUI Team
- Mistaril
- Not too shy to talk
- Posts: 24
- Joined: Wed Jan 12, 2005 12:06
- Location: Helsinki, Finland
- Contact:
Round buttons (or generic image buttons)
What is the easiest way to create a generic image button, one that would have different images for MouseOver, Selected, Disabled, Normal etc? Custom widget?
Kai Backman, programmer
ShortHike.com, Space Settlement Simulation Guild
ShortHike.com, Space Settlement Simulation Guild
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Round buttons (or generic image buttons)
I thought I already had this; though you do need to include the header for the actual button type you're using (TLButton.h or WLButton.h), and cast your button to the appropriate type.
The only reason this functionality is not in the PushButton base class is due to plans I have for the future of the system.
CE.
The only reason this functionality is not in the PushButton base class is due to plans I have for the future of the system.
CE.
- Mistaril
- Not too shy to talk
- Posts: 24
- Joined: Wed Jan 12, 2005 12:06
- Location: Helsinki, Finland
- Contact:
Round buttons (or generic image buttons)
Ok. I'll rephrase. Is there a set of properties in XML that I can use to override the standard image definitions and use my own? Ie. To make instances of the buttons customized?
Kai Backman, programmer
ShortHike.com, Space Settlement Simulation Guild
ShortHike.com, Space Settlement Simulation Guild
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Round buttons (or generic image buttons)
That actually falls into the "future plans" I was referring to
Currently this level of customisation is a weak area of the system, though it will get addressed. My first priority was re-writing everything and getting it cross-platform and cross-API, this is about where we are now. The main focus after getting the beta-1 release complete (samples and docs still to finish) is to start integrating the suggestions from the community, one of these is a set of widgets whos imagery and general layout is data-driven.
Currently, I'm approaching total burn-out and have no idea when half of this stuff will be put into the system.
CE.
Currently this level of customisation is a weak area of the system, though it will get addressed. My first priority was re-writing everything and getting it cross-platform and cross-API, this is about where we are now. The main focus after getting the beta-1 release complete (samples and docs still to finish) is to start integrating the suggestions from the community, one of these is a set of widgets whos imagery and general layout is data-driven.
Currently, I'm approaching total burn-out and have no idea when half of this stuff will be put into the system.
CE.
- Mistaril
- Not too shy to talk
- Posts: 24
- Joined: Wed Jan 12, 2005 12:06
- Location: Helsinki, Finland
- Contact:
Round buttons (or generic image buttons)
Currently, I'm approaching total burn-out and have no idea when half of this stuff will be put into the system.
Ok .. We need to slow down here a bit then don't we .. We all want you relaxed and focused .. Maybe you should take some time off? Might help you to get some perspective (this is an open source project after all, there is plenty of programmers who can contribute ..)
Kai Backman, programmer
ShortHike.com, Space Settlement Simulation Guild
ShortHike.com, Space Settlement Simulation Guild
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Round buttons (or generic image buttons)
Ok .. We need to slow down here a bit then don't we .. We all want you relaxed and focused .. Maybe you should take some time off?
It had been my original intention to get the final beta-1 release done, and then take a couple of weeks or so away from things. Though it seems that I didn't quite make it that far Now I spend more and more time trying harder and harder to get things done and actually seem to achieve less and less.
I have a couple of things that I've said I'd do for the weekend, so I'll do those. Then I may actually take your advice and disappear for a short number of weeks.
CE.
- spannerman
- Home away from home
- Posts: 330
- Joined: Wed Jan 12, 2005 12:06
Round buttons (or generic image buttons)
I have a couple of things that I've said I'd do for the weekend, so I'll do those. Then I may actually take your advice and disappear for a short number of weeks.
Thats a good plan, you deserve a break!
Round buttons (or generic image buttons)
I agree, you've done so much work CE, you deserve some time off!
- Mistaril
- Not too shy to talk
- Posts: 24
- Joined: Wed Jan 12, 2005 12:06
- Location: Helsinki, Finland
- Contact:
Round buttons (or generic image buttons)
I have a couple of things that I've said I'd do for the weekend, so I'll do those. Then I may actually take your advice and disappear for a short number of weeks.
I would suggest you get 1-2 other people to have write access to the SourceForge CVS. Either agree with them that they only accept bugfixes, or if you share enough of the vision, have them accept features as well. That way all of you (you plus the others) can easily take time off. The project will keep advancing and you feel much more focused when you get back.
At this point the code is really usable. Even if we haven't completed everything that was as target for beta, the GUI is working nicely already. Relaxing and stepping back might just be the thing you need to do.
Most programmers here (myself included) are well capable of hacking the source to their liking. We just want to be able to contribute worthwhile changes back to the community, to share them with others.
So, take your pick for a running mate, and then let the project rest for a few weeks before diving in with beta!
Kai Backman, programmer
ShortHike.com, Space Settlement Simulation Guild
ShortHike.com, Space Settlement Simulation Guild
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Round buttons (or generic image buttons)
I'm really happy with where the system itself is at the moment anyway, the only "missing" bits are some friendly tutorial style documentation, and some general samples (I have a framework for these about 60% done). Beyond this, was all stuff slated for later releases anyway.
This has just about been decided then. From Monday, I'll be gone for a while. I'll make a decision about write access to CVS over the weekend.
CE.
Re: Round buttons (or generic image buttons)
Hi I'm looking for the TLButton or WLButton but I can't find them. Do you still have to cast your buttons to these types to get them to change images on mouse over etc?
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 4 guests