[Help] Custom Windowframe for NW.js

Discuss game development design and post your game ideas

Post » Fri Jun 10, 2016 2:12 pm

Hey there ;)

I try to make a custom windowframe for nw.js

This is a slim version of the project: https://dl.dropboxusercontent.com/u/110 ... indow.capx

You can drag the window with the orange titelbar (there is no os windowframe on export), but sometime, especially when there is more stuff in the layout, the dragfunction totally freaks out.

Is there a better solution or a plugin, that tracks the desktop coordinates of the mouse and not only of the canvas?

Thanks
B
11
S
4
G
5
Posts: 73
Reputation: 3,431

Post » Sat Jun 11, 2016 1:51 am

you already tracking the window position on the screen its working fine for me
Image
B
28
S
11
G
2
Posts: 139
Reputation: 3,299

Post » Sat Jun 11, 2016 12:19 pm

Ok, i found the problem and a solution. The thing is, that "Every Tick" changes like changing the text in a textbox every tick, make the tracking function freak out. So i wrote a little function, that pauses the game while draging the window.

I will make a tutorial soon on how to make a custom Window Frame with NW.js ;)
B
11
S
4
G
5
Posts: 73
Reputation: 3,431

Post » Sat Jun 11, 2016 1:58 pm

ah good then i did not try it with objects inside maybe that's whylooking forward to see the tut
Image
B
28
S
11
G
2
Posts: 139
Reputation: 3,299


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 1 guest