Pinco's Recent Forum Activity

  • Version 1.4

    • Added the "Select all on focus" property.
    • Added the "Scroll Top", "Scroll Bottom" and "Select All" actions.
    • Fixed the DOM error of the lost focus event.
  • excluding the fact that gimp can remove it in 2 clicks and give you a transparent background, this kind of thing is doable but some parts like the glasses lenses will stay as it is. So you'll be only able to replace a single color, other than that I found out that not every browsers may support the feature...

    Anyway, I'll keep trying, maybe I find some workaround to make it works on all browsers <img src="smileys/smiley17.gif" border="0" align="middle" />

  • something like this example?

    scirra.com/arcade/example/1528/colour-changer-example

  • Right now there are a lot of addons available in the forum section, but it starts to became a bit messy... wouldn't be nice to have a section on the site (like for the tutorials) where people can upload the addons with the related info, perhaps having some tags like "supported" "unsupported" and "obsolete" could be useful <img src="smileys/smiley1.gif" border="0" align="middle" />

    The best thing would be to have something like the rex app integrated with construct (and tied to the site section that I've described before) so we can see all the available plugins and install the ones we want <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Version 1.3

    • Added the "Set background color" action
    • Added the "Toggle borders" action
  • Version 1.2

    • Added the "Validate" condition
  • when a textbox has focus, you will see the text cursor in it.

    if you need to validate an email address or a phone number, you have to it by yourself...

    I could add an email check to my textbox plugin, but the phone number is different from country to country...

    EDIT: I was wrong, there is a way to determine if a phone number is correct <img src="smileys/smiley17.gif" border="0" align="middle">

    Anyway, I've added the "Validate" condition to my textbox plugin and it will check if the data you have into the textbox is valid (based on the type you choose from the editor).

  • Version 1.1

    • Added the web fonts support
    • Converted into c2addon
  • Pode

    it seems that the iframe object is unable to retrive/compare the innerhtml.

    It says that "document" is undefined.

    btw I'm using the r127...

  • Can you add the ability to format unix timestamp to a formatted time like HH:MM, tried adding it myself but it didn't work.

    > // create a new javascript Date object based on the timestamp
    // multiplied by 1000 so that the argument is in milliseconds, not seconds
    var date = new Date(unix_timestamp*1000);
    // hours part from the timestamp
    var hours = date.getHours();
    // minutes part from the timestamp
    var minutes = date.getMinutes();
    // seconds part from the timestamp
    var seconds = date.getSeconds();
    
    // will display time in 10:30:23 format
    var formattedTime = hours + ':' + minutes + ':' + seconds;
    

    It's already inside the plugin.

    Check those 2 functions:

    Date2UnixTimestamp

    UnixtTimestamp

  • Yes, behaviors could works for that features, but also the css style (I used that until I got bored to copy the css to every textbox).

    I know we shouldn't adjust official plugins, but why rewrite all when it's enough to add few lines? (I know, I'm lazy <img src="smileys/smiley17.gif" border="0" align="middle" />)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • While using the default textbox I always find something missing like: transparent background, margins, etc...

    So I decided to improve it! <img src="smileys/smiley4.gif" border="0" align="middle">

    Other than the normal textbox properties, this one provides also:

    PROPERTIES:

    • Background Color: allows you to pick a color for the background.
    • Transparent Background: allows you to disable the background color and have a transparent background.
    • Font: allows you to choose the font to use (like for the label).
    • Font Color: allows you to specify the font color.
    • Borders: allows to toggle the text box borders. If disabled it also remove the border highlight that certain browsers (like chrome) adds to the text input areas.
    • Top/Bottom/Left/Right Margin: allows to specify the distance in pixel that the text should keep from the margins.
    • Horizontal Alignment: allows you to customize the text alignment.
    • Select all on focus: if set to yes, when the textbox get the focus will select all the text inside.

    TRIGGERS:

    • On Focus Gain: triggered when the textbox has the focus.
    • On Focus Lost: triggered when the textbox lose the focus.

    CONDITIONS:

    • Has Focus: return true if the textbox has the focus.
    • Validate: return true if the textbox content is valid (based on the content type selected).

    ACTIONS:

    • Set Web Font: like for the text object, this allows to use webfonts on the textbox object.
    • Set Background Color: change the background color for the textbox object. It accepts the following color formats:
    • "rgb(0,0,0)": rgb function (remember to always use the quotes)
    • "#FFFFFF": hex color value (remember to always use the quotes)
    • "transparent": string color name
    • Toggle Borders: allows to enable/disable the textbox borders.
    • Scroll Top: scroll to the top line of the textarea.
    • Scroll Bottom: scroll to the bottom line of the textarea.
    • Select All: select the whole content of the textbox.
    • Append Text: append text at the end of the currently existing one.
    • Append New Line Text: append text at the end of the currently existing one in a new line.

    EXPRESSIONS:

    • TextAfter: Get the text after the caret text box's text.
    • TextBefore: Get the text before the caret text box's text.

    I hope you may find this useful for your projects <img src="smileys/smiley1.gif" border="0" align="middle">

    Download

Pinco's avatar

Pinco

Member since 1 Feb, 2013

Twitter
Pinco has 1 followers

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies