Sprite Button Plugin - UPDATE 01/23 - v0.9b

New releases and general discussions.

Post » Mon Nov 09, 2009 11:52 pm

don't forget sliders and knobs
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Nov 10, 2009 6:23 am

Hmm. A GUI plugin would certainly be useful. Though, can we have this plugin working with keyboard/gamepad controls? Like, any button that happens to be active can be selected through, say, the arrow keys.
B
94
S
37
G
11
Posts: 404
Reputation: 11,275

Post » Wed Nov 11, 2009 8:39 am

Already using this.
I am missing the ability to set stuff, id, text etc., from events.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Thu Nov 12, 2009 12:32 am

All good ideas for a GUI plugin, although something complex as this would be pretty tricky to do. I'll most likely make other types of sprite controls -- sliders, text boxes, maybe even a tab plugin -- but I wouldn't get your hopes up for an all encompassing GUI plugin.

[quote="Candescence":1wm5sis4]Hmm. A GUI plugin would certainly be useful. Though, can we have this plugin working with keyboard/gamepad controls? Like, any button that happens to be active can be selected through, say, the arrow keys.[/quote:1wm5sis4]
That sounds like a fairly good idea. I'll see about implementing that at some point.

[quote="newt":1wm5sis4]Already using this.
I am missing the ability to set stuff, id, text etc., from events.[/quote:1wm5sis4]
I'll work on integrating actions for those in the next version.

Speaking of the next version, I'm currently sitting on a new build with support for two-state buttons and checkboxes. I'm still trying to work out a bug and I'll release once that's fixed.
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Thu Nov 12, 2009 1:48 am

Firstly I'd like to point out that this is \o/
Secondly: For frames you can always put all the controls in a layer, on top of a Panel object and scroll that layer around. It'll look just like a window.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Thu Nov 12, 2009 8:28 am

I'm getting a little issue with the button automatically setting clicked state if the window pops up and the cursor is over the button.

Also mouse is over button doesn't seem to register.

Then a small suggestion. A check box for unconfined text wrap beyond button size.

And finally a small... er ok not so small suggestion. How about linking states to the animator?
Might be interesting to animate the buttons.
Image Image
B
161
S
48
G
89
Posts: 7,347
Reputation: 66,249

Post » Thu Nov 12, 2009 4:00 pm

[quote="newt":296ec0qx]I'm getting a little issue with the button automatically setting clicked state if the window pops up and the cursor is over the button.[/quote:296ec0qx]
It could be the current version I have, but I can't seem to reproduce this

[quote="newt":296ec0qx]Also mouse is over button doesn't seem to register.[/quote:296ec0qx]
Ah, this is due to the fact that the object isn't capable of collision checks. That will change in the future.

[quote="newt":296ec0qx]Then a small suggestion. A check box for unconfined text wrap beyond button size.[/quote:296ec0qx]
I'll throw that into the next build

[quote="newt":296ec0qx]
And finally a small... er ok not so small suggestion. How about linking states to the animator?
Might be interesting to animate the buttons.[/quote:296ec0qx]
That would be a tough one, so I don't know how likely it is to happen, but I'll look into how it would work.
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Sat Nov 14, 2009 1:53 am

HUGE new update now up!

[size=150:3g3lw1qa]Sprite Button Plugin - v0.5a[/size:3g3lw1qa]
[size=125:3g3lw1qa]Download Now(with example) - 109KB[/size:3g3lw1qa]

[size=115:3g3lw1qa]Adds/Changes/Fixes:[/size:3g3lw1qa]
ADD - [color=#6a6a6a:3g3lw1qa]Check box button type added. Along with these come new conditions/actions for using them(C-Button is ticked, C-Button is ticked by ID, A-Tick button). Check boxes can be ticked from the start(which is represented in the layout editor) and display different text while ticked. A special "Check box" properties section appears when this button type is set.[/color:3g3lw1qa]
ADD - Two-state button type added. These have the same features as check boxes but resize like normal buttons and allow for icons.
ADD - [color=#6a6a6a:3g3lw1qa]Confine text option in the edit-time properties. When checked the text will be confined to the borders of the button. Unchecked will allow text to go outside the edges of the button.[/color:3g3lw1qa]
ADD - Actions for altering text attributes: text, font, color, size, position, offset values, ticked text.
ADD - [color=#6a6a6a:3g3lw1qa]Actions for setting group and identifier values. NOTE: Groups are a feature that will be used for radio buttons in the future.[/color:3g3lw1qa]

CHANGE - Edit-time properties have been shifted around and added to different groups for clarity and usability.
CHANGE - [color=#6a6a6a:3g3lw1qa]Behaviors are no longer allowed for the sprite buttons. This would mess with the collision mask offsets on check boxes and radio buttons.[/color:3g3lw1qa]
CHANGE - Button clicks are now detected through collision detection, meaning buttons can now be whatever shape is desired. The collision mode must be set to per-pixel for this to work.

FIX - [color=#6a6a6a:3g3lw1qa]Confined text could go off the edges of the button.[/color:3g3lw1qa]

Just a warning to those with CAPs already using this: I've done as much as I can to make sure that existing CAPs don't break, but I can't be 100% sure. It's best that you back up your files before trying out the new plugin.

Well, that's about it. The included example shows off both check boxes and non-square buttons, so it should give people a pretty good idea of how things work.

As always, PLEASE be sure to respond with feedback and any problems you have. If you find a bug, be sure to report it to me!

Have fun. :)
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

Post » Sat Nov 14, 2009 10:56 am

Awesome work! So far I haven't noted any faults. Looking forward to further additions, such as radio buttons :)
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Wed Nov 18, 2009 2:47 am

Last major update is up right now!

[size=150:3p8658e8]Sprite Button Plugin - v0.6a[/size:3p8658e8]
[size=125:3p8658e8]Download Now(with example) - 127KB[/size:3p8658e8]

[size=115:3p8658e8]Adds/Changes/Fixes:[/size:3p8658e8]
[ADD] - Radio button type added. Radio buttons in the same group have control over each other; For example, if three radio buttons are in the same group, only one can be ticked at any given time.
[ADD] - New actions added: Button clicked by ID and group, Button clicked by group, Button toggled by ID and group, Button toggled by group.
[ADD] - New expressions: Button group, Button type(returns: 0 = Normal, 1 = Two-State, 2 = Check box, 3 = Radio).

[CHANGE] - Groups can now be used with all button types.

[FIX] - Zooming screwed up hover/click detection

This will be the last major update feature-wise since all of the button types are in, but I'll keep releasing new version with small features and bug fixes.

Anyways, I'll leave everybody to play with the new example file that's included. Once again, leave feedback and any bugs you run across.

Have fun. :)
Moderator
B
97
S
36
G
19
Posts: 1,584
Reputation: 17,692

PreviousNext

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests