Round buttons (or generic image buttons)

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Mistaril
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Wed Jan 12, 2005 12:06
Location: Helsinki, Finland
Contact:

Round buttons (or generic image buttons)

Postby Mistaril » Wed Oct 27, 2004 07:55

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

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

Round buttons (or generic image buttons)

Postby CrazyEddie » Wed Oct 27, 2004 09:19

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.

User avatar
Mistaril
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Wed Jan 12, 2005 12:06
Location: Helsinki, Finland
Contact:

Round buttons (or generic image buttons)

Postby Mistaril » Wed Oct 27, 2004 12:11

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

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

Round buttons (or generic image buttons)

Postby CrazyEddie » Wed Oct 27, 2004 13:12

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.

User avatar
Mistaril
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Wed Jan 12, 2005 12:06
Location: Helsinki, Finland
Contact:

Round buttons (or generic image buttons)

Postby Mistaril » Wed Oct 27, 2004 13:38

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 ..) :D
Kai Backman, programmer

ShortHike.com, Space Settlement Simulation Guild

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

Round buttons (or generic image buttons)

Postby CrazyEddie » Wed Oct 27, 2004 18:22

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.

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

Round buttons (or generic image buttons)

Postby spannerman » Wed Oct 27, 2004 19:20

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!

User avatar
gcarlton
Just can't stay away
Just can't stay away
Posts: 149
Joined: Wed Jan 12, 2005 12:06

Round buttons (or generic image buttons)

Postby gcarlton » Wed Oct 27, 2004 22:35

I agree, you've done so much work CE, you deserve some time off! :)

User avatar
Mistaril
Not too shy to talk
Not too shy to talk
Posts: 24
Joined: Wed Jan 12, 2005 12:06
Location: Helsinki, Finland
Contact:

Round buttons (or generic image buttons)

Postby Mistaril » Thu Oct 28, 2004 06:21

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! :D
Kai Backman, programmer

ShortHike.com, Space Settlement Simulation Guild

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

Round buttons (or generic image buttons)

Postby CrazyEddie » Thu Oct 28, 2004 09:29

:D

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.

User avatar
jed
Just popping in
Just popping in
Posts: 14
Joined: Fri May 20, 2005 14:51

Re: Round buttons (or generic image buttons)

Postby jed » Fri May 20, 2005 14:58

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: Google [Bot] and 5 guests