How to create a detachable UI element that can be moved across multiple monitors?

0 favourites
  • 3 posts
From the Asset Store
Bring a cool, frosty look to your game with the Frosty UI Kit.
  • Hi All,

    Happy New Year, here's to everyone making great stuff with C3 for 2024!!

    Just wondering if there's a way, either through Event Sheets or JS to create UI elements that can either be fixed or floating, and if floating, can be repositioned across multiple monitors.

    I'm looking to make a desktop based asset creation app, so being able to rearrange UI elements across multiple monitors for users is a highly sought after feature in my eyes.

    I know how to do resizeable but docked, I'm just not sure how to do floating that can exceed the bounds of the primary window (as floating is pointless imo if you can't move it out of the way of the primary screen.

    Thanks in advance,

    Brent

  • I think we are limited to being within the primary window with html5 and js. In theory it might be possible with nwjs or that new windows export since it could be extended to do stuff beyond browser stuff. But the main issue I see is you’d need to handle the rendering, input etc in those windows completely separate from construct since I can’t think of a way to have constructs renderer handle that. Overall I don’t think it’s feasible to do with construct without significant effort and time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I haven't had the chance to explore this much the last few days, however it appears that adding a script to "-On Start of Layout" that simply has "window.open( "","_blank" );" does seem to open a second window that can be moved around and repositioned within multiple monitors.

    However, as ROJO mentioned, I haven't begun to look at how to either control what is displayed in the new window, or read user input FROM the new window... so there's a lot of testing and experimenting to do. If anyone has any experience with this or some ideas to try out, please let me know.

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