septeven's Recent Forum Activity

  • Here's a new plugin which combined Radio buttons and Checkbox buttons.

    I hope it helps you to make some incredibles projects

    I have plenty of plugins ideas as well as ideas for new options to add to those are already released, I stay open to all your ideas. I share these plugins with you, so don't be affraid to make me improve some of them

    Radio & CheckBox

    Version: 1.14 (21/01/2013) .

    Tried in Internet Explorer 9.0.3 / Opera 11.51 / Chrome 15.0.874 (issue) / Safari 5.1.2 (issue) / Firefox 8.0 / Mobile Safari (iOS 4)

    Download RadioCheckbox.rar

    PARAMETERS.

    By default, the Radio & CheckBox plugin sets on Radio Single Type. The separator is '//' and the font color is black. For the moment, the plugin can't set another font than Arial, but it will be add in the next versions.

    Type ? Choose between 'Radio Single', 'Radio List', 'Checkbox Single' or 'Checkbox List'.

    It directly influences the aspect in Construct 2.

    Here are Checkbox List and Radio List aspect. Because I used special characters for the square and the circle, let me know if you have font issues please.

    Here are Checkbox Single and Radio Single aspect.

    Text ? Write here the text of your button(s). For list types, you can separe each line by a separator which you can set in the Separator property. e.g. Henry//John//Alison (// is the separator).

    Separator ? Set the separator that you want to use in the Text property.

    As default: //

    Tooltip ? Set the text of the tooltip.

    Enabled ? Choose wether the Radio & Checkbutton is enabled or disabled on startup.

    It directly influences the aspect in Construct 2

    Font color ? Choose color for the font.

    z-Index ? Set the z-Index for this instance. (To go to front or to back of other objects)

    ACTIONS.

    GROUP OF LINES

    Change tooltip ? Set or change the text of the tooltip.

    Disable all lines ? Disable all lines of the list. Only works with List type object.

    Enable all lines ? Enable all lines of the list. Only works with List type object.

    Check all lines ? Check all checkboxes of the list. Only works with Checkbutton List type object.

    Uncheck all lines ? Uncheck all lines of the list. Set to '0' for Single Type objects.

    LINES

    Change text(text, ID) ? Change the text of the line by its ID. Set to '0' for Single Type objects.

    Disable a line(ID) ? Disable a line by its ID. Set to '0' for Single Type objects.

    Enable a line(ID) ? Enable a line by its ID. Set to '0' for Single Type objects.

    Check a line(ID) ? Check a line by its ID. Set to '0' for Single Type objects.

    Uncheck a line(ID) ? Uncheck a line by its ID. Set to '0' for Single Type objects.

    CONDITIONS.

    GENERAL.

    isChecked ? If a line is checked on the list, true is return.

    isEnabled ? If a line is enabled on the list, true is return.

    EXPRESSIONS.

    TEXT.

    getIDChecked ? Return a string corresponding to the ID of the actual checked line. Only works with Radiobutton List type object.

    getLabel(ID) ? Return the text of a line by its ID. Set to '0' for Single Type objects.

    getNumberChecked ? Return the total number of checked line.

    TODO List for this plugin.

    • Add font properties.
    • Improve the visual side of the plugin (in Construct 2).
    • A french version.

    Let me know your suggestions, requests and corrections (as about language) as well as any bug report.

    Enjoy

  • smitchell they're very good links but apparently not usefull for drawing in edittime.

    kiyoshi what do you mean exactly by a GUI system (examples?)

  • Yes I do, please.

    Firstly, I would need to know how to do this.

    For this question, I would love to know how to draw either a second rectangle in the same instance, or set two fill color according to x,y.

    I don't know if it's possible.

    See the jpeg I did, it would be easier to understand what I mean.

    <img src="http://dl.dropbox.com/u/27157668/construct2/images/comboBox_drawing.jpg" border="0">

    Two other things, but at least one answer will be needed if you want. (both questions I was asking to myself for the same problem)

    I wonder how to draw a circle, instead a quad.

    /or/

    how to insert an image file, as a texture I guess, in a drawn quad.

    (it could be an image with same dimension than the quad, or e.g an image of 15x15 for a quad of 75x20, it would need to position it after).

    Thanks a lot Ashley

  • Just to be sure, I'm talking about the drawing method directly in edittime, I mean e.g the way of drawing the rectangle with 'ok' inside, of the button plugin in C2.

    Anyway, I already did that (look inside plugins code), but I didn't be able to correctly understand yet how this part is structured.

    For the moment, I understand how to draw one single rectangle, how to set the fill color, how to add text inside.

    Thx Ashley for answering.

  • Ashley

    Hey, because I ve got a plenty of interrogations about how the drawing system works (eg add texture from file to a drawn quad, separate colors in a quad, offset system...) I was wondering where can I find a solid documentation about this. I really dont know where to find as well as which keywords to search....

    I already need it for my actual plugins and more yet for the upcommings.

    Thx

  • Thanks Yann, I asked to Ashley and he answered that is unfortunately not supported yet...

    Hope it will.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Im actually working on all this kind of plugins, it's on my todo list.

    Be patient, it's lot of work

  • hey thanks ashley, I'll take a look

  • I ask a new question but directly in this thread instead of open a new one, Kyatric may know answer me.

    I would like to create a new array/property directly from the onPropertyChanged().

    Is it possible ?

  • Hey,

    Where can I declare in runtime.js, a variable which will be incremented in order to be used for instance creation. I would like to be able to assign an incremented ID to each instance...

    Thanks for helping

  • On reflection, I guess the kyatrics solution is the best.

    My plugin already does that the browser plugin is already doing, the only added thing it's a "shortcut", I mean conditions which test "is Iphone Browser ?", "is Firefox Browser ?",... and if it is, it returns "true".

    I can release it, but I think you can do that with the kyatrics way.

    In the other hand, Smitchell, if you want a plugin which resizes dynamically given the browser used, I think it will take much time to develop it.

  • hey hey, I did exactly the same plugin, but I gave up cause of some issues of compatibility with browsers.

septeven's avatar

septeven

Member since 27 Aug, 2011

Twitter
septeven has 1 followers

Connect with septeven

Trophy Case

  • 13-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

15/44
How to earn trophies