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

New releases and general discussions.

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
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Wed Nov 18, 2009 3:00 am

are controls supposed to be clickable when invisible?
Could it be made so they are unclickable when invisible?

They work great anyhoo, will put them to use right now =) thanks!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Thu Nov 19, 2009 11:17 pm

Thanks, Madster. :) I've got a new version with your suggestion:

[size=150:zm5hcwop]Sprite Button Plugin - v0.7a[/size:zm5hcwop]
[size=125:zm5hcwop]Download Now(with example) - 128KB[/size:zm5hcwop]

[size=115:zm5hcwop]Adds/Changes/Fixes:[/size:zm5hcwop]
[ADD] - New option to disable a button while it is invisible: Properties -> Disable when invisible. This will make the button unclickable when either it is set to invisible or the layer it's on is invisible.
[ADD] - Option to make a button invisible from the start of the layout: Properties -> Invisible on start.

Just a small update, but these new features, specifically the one allowing for the disabling of buttons while invisible, could make things such as tabbed interfaces much easier.

Have fun. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Fri Nov 20, 2009 10:38 am

Thank you very much for this. Construct is more complete with this plugin. I noticed that your 'Insert new object' SpriteButton only appears in New Direct X Game and not New Application. It's very much suited to apps and I thought that it didn't work at all or I had done something wrong until I tried again with new game instead of application. Thanks for putting in the hard work to make things so much easier for everyone else.
B
4
G
3
Posts: 41
Reputation: 982

Post » Tue Nov 24, 2009 5:46 pm

Thanks, table. :) Glad you find it useful.

I have a small new update ready here. Nothing earth shattering, but there it is:

[size=150:3gqlb51d]Sprite Button Plugin - v0.71a[/size:3gqlb51d]
[size=125:3gqlb51d]Download Now(with example) - 128KB[/size:3gqlb51d]

[size=115:3gqlb51d]Adds/Changes/Fixes:[/size:3gqlb51d]
[CHANGE] - Drawing speed optimizations. Text would still be processed and drawn even when there was none.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Tue Nov 24, 2009 6:20 pm

Me likes. Very much.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Wed Dec 02, 2009 4:02 am

I've come with a fairly major update to this plugin! Check it out:

[size=150:2280oxnt]Sprite Button Plugin - v0.8a[/size:2280oxnt]
[size=125:2280oxnt]Download Now(with example) - 132KB[/size:2280oxnt]

[size=115:2280oxnt]Adds/Changes/Fixes:[/size:2280oxnt]
[ADD] - "Compare button group" and "Compare button identifier" conditions added. These will only check if the the group/identifier is equal to the specified value. If you want to see if it is not equal, just invert the condition.
[ADD] - "Override text position" property added for check boxes and radio buttons. This is checked by default. When checked, the "Text position" property in the "Text" category is overridden and the text is automatically placed to the right of the button image. Unchecking this will allow for free alignment of the text.
[CHANGE] - Check boxes and radio buttons can now have button icons. Now that I think about it, I don't know why this was disabled before, but they're there for everybody to use now.

As usual, please leave any comments and suggestions, and be sure to mention any bugs you come across.

Enjoy! :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sun Jan 24, 2010 5:17 am

This is likely to be the last update to this plugin. I'm giving everybody one week to throw their requests and bug reports out here before I declare it complete and throw it into the appropriate forum. It's been just sitting around here for too long, so I intend to shuffle it off to its rightful place.

[size=150:3h35l11v]Sprite Button Plugin - v0.9b[/size:3h35l11v]
[size=125:3h35l11v]Download Now(with example) - 132KB[/size:3h35l11v]

[size=115:3h35l11v]Adds/Changes/Fixes:[/size:3h35l11v]
[ADD] - Added "Assume radio toggle" parameter to "Set group" action. If set to yes, the radio button switching groups will assume the toggled state in its new group.
[FIX] - Assigning a radio button to a new group during runtime -- assuming it was already checked -- could result in two radio buttons in the same group being checked.
[FIX] - Using the "Tick button" action on a radio button could result in two buttons in the same group being toggled at the same time.

Again, there's a one week period where bug reports and feature requests can be made before I declare this complete. If you come across any bugs, be sure to mention it, because I don't want to accidentally declare an incomplete plugin complete. :P
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Sun Jan 24, 2010 5:33 am

What a great plugin! Working good with 99.8 so far.

This type of work will push Construct past the simple game making app into the serious side. ...or let me choose to launch missiles or Energy weapons. :-)
B
28
S
8
G
8
Posts: 530
Reputation: 7,154

Post » Tue Feb 09, 2010 1:54 pm

Great plugin, I'm hoping you could submit it to Ashley and co. so it has a better chance of staying compatible with future Construct versions.
B
2
S
1
G
3
Posts: 71
Reputation: 1,142

PreviousNext

Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest