Noncentz705's Forum Posts

  • It's too bad you can't do something like this Set text Function.Param(0) | "Placeholder"

    But instead have to do this Set text to Function.Param(0)?Function.param(0) : "Placeholder"

  • Export your first project for nw, any others would be exported as html5 (this is because you can't run nw.exe twice)

    From your first project you are able to open a new window (Assuming you know a little js)

    From the new window you can communicate back to the opening window with window.opener

    I've been working on an addon that does this and a fair bit more, it's not ready for public release but if this is a paid job give me a PM and I could have something for you the same day most likley.

  • Probably off topic but is there a way to add a folder with the dependency key in edittime.js? I've tried and can't get it to work. To be fair unless your integrating a lib that's only a file or two then chances of porting to construct are slim, I've hit snags on plugins over this and gave up on them

  • Thanks for replying so fast, it seems to have fixed the problem. I thought maybe it was related since resizing the dialogs makes it toggle between both states.

    edit : It's a pretty funny bug, it makes you think someones swapping the button on you last minute in some kind of twisted humor

  • Ashley the Done button keeps getting replaced with the Back button for me, essentially making c2 unusable. I've reinstalled, emptied my plugin folder even moved my license file ... ?

    I've tried 173, the latest beta and 175. Noticed it only happends inside my vm (8.1).

    It's weird it just started happening today.

  • Only html elements can do that, one solution would be to design your own tooltips using the text and sprite objects... or

    try doing something like this instead https://dl.dropboxusercontent.com/u/139 ... oltip.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • maybe try setTimeout(fn,0);

    Example from pointerpos behavior where this.inst.elem isn't defined yet.

    	behinstProto.onCreate = function(){
    		var self = this.inst;
    		setTimeout(function(){
    			self.elem['onselect'] = function(){ ... };
    		},0);
    	};
    [/code:1d0dx5fe]
  • Ashley, i had made this for Joannesalfa behavior-exif_t111568

    It uses this lib - https://github.com/blueimp/JavaScript-Load-Image

  • If you give the list an id and use the browser object you could prevent the context menu.

    some_id.oncontextmenu = function(e){e.preventDefault();}[/code:nmimjs26]
    
    Then you'll run into the other problem mentioned of clicks not registering. 
    To solve this, add the function object to your project, create a function called onrightclick and use c2_callFunction  to fire a callback.
    
    Now your code would look like this instead
    On start of layout execute JS  [code:nmimjs26]some_id.oncontextmenu = function(e){e.preventDefault();c2_callFunction('onrightclick');}[/code:nmimjs26]
    
    Function on 'onrightclick'
    Selected item text is "Item 1"       Do something
  • I've written a plugin that pipes to cmd directly, and returns the shell response, but I won't release it.

    The double batch trick works fine. Make sure you've defined a global variable named cd and that you are previewing with node-webkit.

    Global text c:/users/bob/desktop/foo.bat

    On some event browser execute JS "require('child_process').execFile('"&cd&"');"

  • A behavior was requested to get exif data of images and help keep orientation.

    It works with either file-chooser or custom input plugin.

    Download Example in zip (json plugin required)

  • Can add the keyboard plugin to your project 'Keyboard on return pressed do something'.

    If you need getting/setting cursor position... with textarea you could try pointer pos behavior

  • Get the argument list passed to node-webkit at launch.

    For instance running newproject.exe -layout lvl1 would return an arguments list with a length of 2,

    where -layout and lvl1 are each an argument. Avoid using --prefixes, they are used for chromium arguments

    EXPRESSIONS

    argv (Arguments as JSON (Load into array))

    args (Arguments as String)

    length (Arguments length)

    argAt (Argument at index)

    CONDITIONS

    Is nodeWebkit

    Has argument ("")

    EXAMPLE

    Has argument('-layout') Go to layout of the next index

    (see capx in zip)

    Download

    Update : Added the ability to take a snapshot of the window

  • A behavior for the textbox plugin

    ACTIONS:

    Remove line

    Insert text at line index

    Insert text at index

    Select text

    Select text range

    Exps :

    lineStart(0)

    lineEnd(0)

    lineText(0)

    lineLength(0)

    currentLine

    lineCount

    selectionStart

    selectionEnd

    selectedText

    CONDITIONS:

    Is date

    Is email

    ::DOWNLOAD::

    ::DEMO::

  • thenewboston used to watch your videos awesome, if it's really you.