Requesting Radio Buttons
Moderator: Forum Moderators
Forum rules
Before posting critique in this forum, you must read the following thread:
Before posting critique in this forum, you must read the following thread:
Requesting Radio Buttons
I have recently implemented support for radio buttons.
We use currently the images for the checkbox buttons,
but images in the same style and size but round would be much nicer.
Regards, Fabi
We use currently the images for the checkbox buttons,
but images in the same style and size but round would be much nicer.
Regards, Fabi
- dipseydoodle
- Posts: 879
- Joined: September 16th, 2008, 10:26 pm
Re: Requesting Radio Buttons
How's this for now? I can make it transparent.
Edit: subsituted that one for this-
Edit: subsituted that one for this-
- Attachments
-
- newradio.png (495 Bytes) Viewed 5826 times
Re: Requesting Radio Buttons
Here's my attempt
Here is a quick mockup of a selected button It is from rhyging5's flames, but only about half the frames.
...or we can just do an X
The flames may be a bit excessive, but maybe a glow or something would be nice.
Here is a quick mockup of a selected button It is from rhyging5's flames, but only about half the frames.
...or we can just do an X
The flames may be a bit excessive, but maybe a glow or something would be nice.
Re: Requesting Radio Buttons
For some images, I think layered "source files" make sense[*]. While you could back-engineer these buttons from PNGs, even non-PA images, it would make updating or expanding the set significantly easier if the original layered images were readily available. I'm attaching some files for an example of what I mean, though I don't think they are commit-worthy.
On a similar note: how many of those button images can be replaced by some image-path function? Blitting would make the layered thing quite relevant.
[*] - It doesn't make any sense for a portrait or landscape, or even a sprite, but these GUI things are different.
I should say that I don't think you need to go to any of the efforts I mentioned above to get your radio buttons, but going forward, it would lower the barrier for other Wesnoth GUI projects. On a similar note: how many of those button images can be replaced by some image-path function? Blitting would make the layered thing quite relevant.
[*] - It doesn't make any sense for a portrait or landscape, or even a sprite, but these GUI things are different.
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
- LordBob
- Portrait Director
- Posts: 1309
- Joined: December 8th, 2008, 8:18 pm
- Location: Lille, France
- Contact:
Re: Requesting Radio Buttons
Here's my own attempt. It doesn't feel as clean as the original checkbox, though: pixel art really isn't my forte.
@Doofus: I'm not sure what you mean by "layered sourcefiles". If need be I can provide either the full .psd archive for someone else to modify, or any number of .png layers each corresponding to a part of the button, which can then be arranged and modified independantly. Whichever works best.
@Doofus: I'm not sure what you mean by "layered sourcefiles". If need be I can provide either the full .psd archive for someone else to modify, or any number of .png layers each corresponding to a part of the button, which can then be arranged and modified independantly. Whichever works best.
- Attachments
-
- radio-button.zip
- (12.09 KiB) Downloaded 450 times
-
- radio-button-full-set.jpg (2.46 KiB) Viewed 5717 times
Want to see more of my art ? Visit my portfolio !
- artisticdude
- Moderator Emeritus
- Posts: 2424
- Joined: December 15th, 2009, 12:37 pm
- Location: Somewhere in the middle of everything
Re: Requesting Radio Buttons
And here's my go.Standard, enabled (mouse hover), pressed, and disabled variations, for both the unchecked and checked variations, all at 20x20 pixels. I figured the checked and unchecked versions would probably share the same 'pressed' image (?), but I could add a separate one for the checked variation if it's necessary.
EDIT: See my post below for an updated version.
EDIT: See my post below for an updated version.
"I'm never wrong. One time I thought I was wrong, but I was mistaken."
Re: Requesting Radio Buttons
Here is an active and hover. I can do a fade in/out animation if it is wanted. I think even a <5 frame animation could look pretty decent. Or I can add an X.
- Attachments
-
- radio_active.png (1.3 KiB) Viewed 5656 times
Re: Requesting Radio Buttons
State transition animations could be trivially done on the engine side without any additional art if we wanted.Crow_T wrote:Here is an active and hover. I can do a fade in/out animation if it is wanted. I think even a <5 frame animation could look pretty decent. Or I can add an X.
The only question is, why did you break consistency with the overall Wesnoth GUI color scheme and style?
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Re: Requesting Radio Buttons
The base icon is picked directly from the current checkbox- I was just exploring some variations and having some fun. The new maps look slick, why not some other tweaks? As I've mentioned I can easily stick an X in there.The only question is, why did you break consistency with the overall Wesnoth GUI color scheme and style?
- Attachments
-
- radio_x.png (966 Bytes) Viewed 5622 times
Re: Requesting Radio Buttons
If one GUI element’s color scheme changes, all the other elements would need to be changed as well for consistency. Either way, I would not use red for the Wesnoth GUI, but this is ultimately a thing that should be decided by our art team, not me.Crow_T wrote:The new maps look slick, why not some other tweaks?
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
- artisticdude
- Moderator Emeritus
- Posts: 2424
- Joined: December 15th, 2009, 12:37 pm
- Location: Somewhere in the middle of everything
Re: Requesting Radio Buttons
Here's a new version of my attempt, with a radiobutton-checked-pressed variation, since I've done a little more research I've come to the conclusion that the checked and unchecked variations ideally shouldn't be sharing the same image for the 'pressed' state. Also fixed a few niggles with the shape and shading in places.
- Attachments
-
- radiobuttons.png (5.9 KiB) Viewed 5526 times
-
- radiobuttons.zip
- (94.81 KiB) Downloaded 448 times
"I'm never wrong. One time I thought I was wrong, but I was mistaken."
Re: Requesting Radio Buttons
I support using LordBob's, and if not, artisticdude's. But LordBob's ones are really elegant.
Creator of Shadows of Deception (for 1.12) and co-creator of the Era of Chaos (for 1.12/1.13).
SurvivalXtreme rocks!!!
What happens when you get scared half to death...twice?
SurvivalXtreme rocks!!!
What happens when you get scared half to death...twice?
Re: Requesting Radio Buttons
Okay, I have already commited Lord Bob's version but I do not claim to have the final word on the issue.
Some art guru will have to give the final blessing.
Artisticdude came up with 8 variants of the buttons, the engine currently supports only 7:
The states correspond to how QT and GTK+ work, you can see the check mark being transparent if you test with firefox or gimp for example.
Thus I need another image for Lord Bob's set if it will stay the chosen one.
Vultraz already provided me with a touched version of the checkbox images.
If another touched image is created it needs either to be in the same style as Vultraz's one or come in pair with a new touched checkbox one.
edit:
Thanks to all the artists who participated with their works in this thread.
Some art guru will have to give the final blessing.
Artisticdude came up with 8 variants of the buttons, the engine currently supports only 7:
- Normal -- Not pressed and no mouse pointer hovering above it.
- Pressed -- Pressed and no mouse pointer hovering above it.
- Active -- Not pressed but mouse pointer hovering above it.
- Active-Pressed -- Pressed and mouse pointer hovering above it.
- Touched -- The button is clicked but the user did not release the mouse button yet.
- Disabled -- Button is disabled and not pressed
- Pressed Disabled -- Button is disabled and pressed
The states correspond to how QT and GTK+ work, you can see the check mark being transparent if you test with firefox or gimp for example.
Thus I need another image for Lord Bob's set if it will stay the chosen one.
Vultraz already provided me with a touched version of the checkbox images.
If another touched image is created it needs either to be in the same style as Vultraz's one or come in pair with a new touched checkbox one.
edit:
Thanks to all the artists who participated with their works in this thread.
- LordBob
- Portrait Director
- Posts: 1309
- Joined: December 8th, 2008, 8:18 pm
- Location: Lille, France
- Contact:
Re: Requesting Radio Buttons
Here's a "touched" version for the radio button. I went for a flashy blue, but maybe it's not different enough from the active-pressed. So if you'd rather I changed it, don't hesitate to ask: it's really easy to modify.
- Attachments
-
- rb-touched.png (2.12 KiB) Viewed 5450 times
Want to see more of my art ? Visit my portfolio !
Re: Requesting Radio Buttons
LordBob, you should really do more pixel art. This is Jetrel-quality stuff you've been making
Creator of Shadows of Deception (for 1.12) and co-creator of the Era of Chaos (for 1.12/1.13).
SurvivalXtreme rocks!!!
What happens when you get scared half to death...twice?
SurvivalXtreme rocks!!!
What happens when you get scared half to death...twice?