[PLUGIN] Sprite Button

This forum is currently in read-only mode.
0 favourites
From the Asset Store
The I18N (Translation) is a Construct plugin created to translate text in game.
  • Sprite Button Plugin - v0.9b

    Download Now(with example) - 132KB

    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.

    Features:

    • 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.
    • 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.
    • 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.
    • 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.

    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.

  • Wooo!!

    I like the grouping feature. Useful!!

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

    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)

  • 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)

    I wish it was able to use Private Values. That would make my Menu events much simpler...

  • 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)

    Dammit, I hadn't even thought to check that. I'll see about fixing that at some point.

  • 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 :

    <img src="http://prawnsushi.free.fr/bazar/spritebutton_bug.jpg">

    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.

  • 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

  • "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.

  • Hi, I am new, and I have a question, where i can install this Plugin?

  • Hey just what I was looking for awesome!

  • Great plugin! Thanks for all your work :) God bless

  • This is not working wor the current version, right?

    Is there anything I can do to have Custom Sprite Buttons?

  • This is not working wor the current version, right?

    Is there anything I can do to have Custom Sprite Buttons?t should be working with the latest version of Construct, if that's what you mean. Are you having problems with it?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well, I create a folder into the /plugin folder of Construct, then dump everything in it (1 file, and 1 folder, which contain an extra file), and that's it.

    When I load Construct2, it says the plugin will not be working.

    Maybe I'm "installing" it wrong.

  • Yeah, it sounds like you're installing it incorrectly. To install properly, simply copy the Plugins folder from the SpriteButton ZIP and paste it directly into the main Construct folder - Windows will merge the two Plugins folders and you should be good to go.

    I hope this helps. :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)