Noncentz705's Recent Forum Activity

  • Notification

    Support :

    - Chrome 32+

    *1

    - Firefox 22+

    *1

    - nw 0.11+

    *1

    It may work in earlier versions. I've tried supporting the older API's, although I haven't had a chance to test.

    Feel free to test others yourself and post the results.

    Here's the spec or a demo if anyone's interested.

    Download

    Happy Holidays Scirra.

  • <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz"> I should probably rename the plugin to colorchooser it's less confusing.

    If you want to get rgba values you can paste your background into the canvas plugin and get them from there.

    Next time tag or pm me because I won't always see topics like this.

    https://dl.dropboxusercontent.com/u/139 ... ooser.capx

  • 2. You declaring a function. I suggest you don't and just use the line by itesle. unless your function becomes really largly functional

    One reason I tend to use a function is so I can call it with the window object.

    "// 'this' is a refference to the browser plugin
    console.log(this); 
    
    // 'this' is  the window object
    function func(){console.log(this);}
    func.call(window);
    "
    [/code:15t6a7kw]
  • Is there a reason for using js to do this?

    Just curious because you could do this in events

    Button on click
    	textbox set text "..."[/code:2pia64c5]
    
    Otherwise here's how you'd do it with js
    
    [code:2pia64c5]Button on click
    	Exec js "document.getElementById('myid').value = '...';"[/code:2pia64c5]
    
    //	or
    [code:2pia64c5]Button on click
    	Exec js "myid.value= '...';"[/code:2pia64c5]
  • Tiledbackground can load different images for each instance, here's an example.

    https://dl.dropboxusercontent.com/u/139 ... image.capx

  • armaldio, that's why I've handed it to you, whatever though restart.

    It would be convenient to be able to add a folder to the dependency key in edittime.js

    As it is it auto loads any js files you add, which isn't the desired behavior in some cases and for files that like to require other files good luck

  • Here's a gift from one dev to another, if you want to finish it off all the power to you.

    I'm not sure I have the time right now. Just note that the sdk doesn't handle dependencies that well, so some things like themes and some of the extra's are probably out of the question..

    https://dl.dropboxusercontent.com/u/139 ... ns/ace.zip

  • Ash

    ---------------------------
    Construct 2 Check failure
    ---------------------------
    Check failure!  This is probably a bug:
    
    Calling IsActive() on empty Expression class
    
    Condition: parsed
    File: projects\Expression.cpp
    Line: 189
    Function: bool __thiscall Expression::IsActive(void) const
    Build: release 187 (32-bit) checked
    Component: Construct 2 IDE
    (Last Win32 error: 0)
    [/code:3l57d569]
    
    Condition 1, and 2 had to be deprecated because of this issue,
    Action 0, 2 , 5, 9 I'd like to add the commented string param
    Expression 4 and 5 had to be deprecated because of this issue
    
    [url=https://dl.dropboxusercontent.com/u/139218609/examples/Plugins/jszip_beta.zip]Test[/url]
    
    You could open one of the test capx's in the project folder after attempting to add a parameter.
  • You could give the progress bar an id inside the editor and then reference it with your stylesheets.

    A trick for appending stylesheets without using javascript is to use the text action 'Set web font'.

    It can include multiple css files, one for each time you call the action.

  • Thanks at Ash , sorry for the late reply. It seems adding new parameters to actions and conditions causes errors as well? I've deprecated the old aces as a work around.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So let's say I've defined an expression with two string parameters

    AddStringParam("Opt1","Option1","");
    AddStringParam("Opt2","Option2","");
    AddExpression(5, ef_return_string, "myFunc, "My Plugin", "myFunc", "My Function");
    [/code:fsil8fsp]
    
    and then in a later version of the plugins life, I'd like to add another optional parameter to the expression.
    
    [code:fsil8fsp]
    AddStringParam("Opt1","Option1","");
    AddStringParam("Opt2","Option2","");
    AddStringParam("Opt3","Option3","");
    AddExpression(5, ef_return_string, "myFunc, "My Plugin", "myFunc", "My Function");
    [/code:fsil8fsp]
    
    How would I add the parameter without breaking previous projects?
    I get errors (...expects 2 parameters not 3). 
    
    Could the editor just read the default value and slip it in if it's missing, 
    or is there a optionalstringparam or something similar so my expressions can still take 2 params but could take 3 as well?
    I don't think AddVariadicParams is what I'm looking for.
Noncentz705's avatar

Noncentz705

Member since 28 Apr, 2013

None one is following Noncentz705 yet!

Trophy Case

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

Progress

13/44
How to earn trophies