Is there a way to add a toolbar to the window?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
notcl4y
Citizen
Posts: 85
Joined: Fri Nov 25, 2022 12:23 pm

Is there a way to add a toolbar to the window?

Post by notcl4y »

Is there a way to add a toolbar to the window? Or should I make it myself via graphics?

Code: Select all

loves_lua = "not so",
wants_to = true
MrFariator
Party member
Posts: 520
Joined: Wed Oct 05, 2016 11:53 am

Re: Is there a way to add a toolbar to the window?

Post by MrFariator »

I'm not sure there's any easy way to implement (presumably) Windows-style toolbars directly from löve and lua itself, without modidying löve C++ source code to add the needed hooks and functionalities. You could maybe call some of the Windows system functions via luajit's FFI (eq. CreateWindowEx), but it may be more trouble than it's worth, since you'd have to make these toolbars somehow communicate with lua.

It's probably easier that you roll your own toolbar code, or use a lua UI library.
User avatar
notcl4y
Citizen
Posts: 85
Joined: Fri Nov 25, 2022 12:23 pm

Re: Is there a way to add a toolbar to the window?

Post by notcl4y »

Ok, thanks

Code: Select all

loves_lua = "not so",
wants_to = true
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests