Depending on how these loophole solutions work out, I'll likely be doing that in the end (it would much easier of course). However, I'm mostly trying to keep true windows in the usage because it seems a bit more novel and unique (to me, at least). Of course, novel will have its price, but I can see more people being interested.Rickton wrote:-Cut-
How to create a new window?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: How to create a new window?
- Positive07
- Party member
- Posts: 1014
- Joined: Sun Aug 12, 2012 4:34 pm
- Location: Argentina
Re: How to create a new window?
That just takes a screenshot of the contents of the window, not the entire desktop unfortunatelyzorg wrote:[wiki]love.graphics.newScreenshot[/wiki]
You could just make them borderless and use something like this
Its not transparent but you dont have the annoying title bar on top which is nicer
for i, person in ipairs(everybody) do
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
[tab]if not person.obey then person:setObey(true) end
end
love.system.openURL(github.com/pablomayobre)
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: How to create a new window?
Sure, but apart from that one issue, the windows themselves would be "transparent" to each other, since the bottom one would be rendered by the top one, in a 2-window case.Positive07 wrote:That just takes a screenshot of the contents of the window, not the entire desktop unfortunatelyzorg wrote:[wiki]love.graphics.newScreenshot[/wiki]
Though borderless windows are indeed a good idea, just keep in mind, that you can only drag them if the cursor is inside the window; löve doesn't expose sdl2's SDL_GetGLobalMouseState, that would be needed for real borderless dragging (in windows, at least); then again, i did try to implement this, and it didn't work on osx, only on windows (didn't test any linux sadly), so yeah.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: How to create a new window?
I really don't know if LOVE could work that way, but perhaps you link it with a gui framework, and use it as an OpenGL context to embed it in a window - or multiple windows, but transmitting inputs, events to LOVE, I don't know if it is possible.
This would require knowledge of C/C++ and the Lua C API.
You can try with Qt (C++, portable), this example might be somewhere to start.
Good luck !
This would require knowledge of C/C++ and the Lua C API.
You can try with Qt (C++, portable), this example might be somewhere to start.
Good luck !
-
- Prole
- Posts: 2
- Joined: Tue Apr 14, 2020 10:26 pm
- zorg
- Party member
- Posts: 3465
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: How to create a new window?
2015rafaellonghi wrote: ↑Fri May 08, 2020 6:47 pmThis is not the theme of this thread but I would like to add that you can make a borderless window and make your own menubar on top, so it wont change in each os and you can draw on it.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], Semrush [Bot] and 2 guests