[PLUGIN] Sprite Button

Completed plugins, behaviors and effects.

Post » Thu Feb 18, 2010 2:44 am

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

Description:
This plugin allows you to quickly and easily create your own custom buttons with custom graphics and text. Four types of buttons are supported: Normal, two-state, check-box, and radio buttons. A full feature list is found below.

[size=150:1t7k9210]Features:[/size:1t7k9210]

[list:1t7k9210][*:1t7k9210]Custom graphics - This plugin allows you to customize the graphics for your button. Three images are needed for a complete button: Normal, hover, and clicked states. You can also create an icon to place on the button and it's position/alignment. All images are edited through the "Images" section in the "Properties" pane.[/*:1t7k9210]

[*:1t7k9210]Custom text - Text can be placed on the button. The look of the text is fully editable, including features to: Set font, font size, italics, bold, color, position, and offset.[/*:1t7k9210]

[*:1t7k9210]Radio buttons - It is possible with this plugin to not only make radio buttons, but also to support multiple groups of radio buttons. Only one radio button in a specific group -- specified under the "Identification" section in the "Properties" pane -- can be activated at one time.[/*:1t7k9210]

[*:1t7k9210]Easy identification - This plugin also supports easy identification of individual buttons. Each button can be placed in a group and provided with a unique identifier -- all set under the "Identification" section in the "Properties" pane. This allows you to easily reuse the graphics for your buttons by creating multiple copies of the main button while having them maintain a degree of separateness. Separate buttons of the same type can be accessed through their identifiers using the "Button clicked by ID" and "Button ticked by ID" conditions.[/*:1t7k9210][/list:u:1t7k9210]

The above ZIP file contains the plugin and a helpful example file showing the basics of how the plugin works, including working examples of radio, check-box, and normal style buttons

Be sure to leave any feedback/bug reports/questions in the comments below.

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

Post » Fri Feb 19, 2010 4:32 am

Wooo!!

I like the grouping feature. Useful!!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Wed Feb 24, 2010 2:45 am

I used this here --> [url:11al7mhn]http://scirra.com/forum/viewtopic.php?f=8&t=5833&start=0[/url:11al7mhn]

It would seem that button IDs are getting mixed up, but I cannot confirm as Construct's debug doesn't show those values.

Also, you can add and write private variables for SpriteButton, but they cannot be retrieved as expressions... which defeats half the purpose (you can compare them directly using the 'compare value' condition, but cannot involve them in a string operation)
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Tue Mar 02, 2010 11:55 pm

[quote="madster":u67b44nr]
Also, you can add and write private variables for SpriteButton, but they cannot be retrieved as expressions... which defeats half the purpose (you can compare them directly using the 'compare value' condition, but cannot involve them in a string operation)[/quote:u67b44nr]
I wish it was able to use Private Values. That would make my Menu events much simpler...
B
2
S
2
G
2
Posts: 372
Reputation: 1,794

Post » Wed Mar 03, 2010 1:54 am

[quote="madster":35fh32we]Also, you can add and write private variables for SpriteButton, but they cannot be retrieved as expressions... which defeats half the purpose (you can compare them directly using the 'compare value' condition, but cannot involve them in a string operation)[/quote:35fh32we]
Dammit, I hadn't even thought to check that. :P I'll see about fixing that at some point.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Tue Apr 12, 2011 9:33 am

Hi,

I've been using this plugin for a while and it works fine... Except for 1 layout.
I don't know why, but on this layout it seems that the collision is not placed on the button itself, but like 100px under it. It does the same for every duplicate or cloned button i put, anywhere on this layout. Same goes for any new button i place.
It strange because it uses the same code (included) as all other layouts. Is it because the layout is bigger than any other in the app?

Just look at the picture below to see what i mean :



Is there any workaround to that?

Thank you for any info :)

EDIT :
I sort of found out where the problem was :
I was using the magicam plugin and there must be some sort of conflict. When i deactivate the magicam, the buttons work like they should.
B
4
S
1
G
2
Posts: 91
Reputation: 1,057

Post » Sun Jun 12, 2011 2:28 pm

thank you linkman, I wanted to redo the ui on my editor, because creating a dynamic ui with 's' was getting very ugly eventwise. I decided to try this, and all the group and name options made it extremely simple to use it for on the fly purposes like popup windows or controls that appear only in certain circumstances, or branch off of eachother. exactly what I needed, easier than I had hoped it'd be. thanks again
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sat Sep 10, 2011 7:47 pm

"I hadn't even thought to check that. :P I'll see about fixing that at some point."

Any progress on checking the private variable on buttons? I was needing this just the other day! I can always do a sloppy workaround, but It's always more satisfying to just do things right :D

Love your plugin! Just wish there was some ability to use the system-style buttons. I want it to look like a regular Windows control, regardless of what system or theme is running, but the regular button plugin is way too limited.
B
3
S
1
G
2
Posts: 57
Reputation: 964

Post » Thu Dec 01, 2011 3:19 pm

Hi, I am new, and I have a question, where i can install this Plugin?
B
33
S
3
G
5
Posts: 44
Reputation: 5,058

Post » Tue Feb 28, 2012 6:54 am

Hey just what I was looking for awesome!
B
4
S
1
Posts: 13
Reputation: 476

Next

Return to Completed addons

Who is online

Users browsing this forum: No registered users and 0 guests