Page 1 of 1

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

Posted: Sun May 14, 2023 6:44 am
by notcl4y
Is there a way to add a toolbar to the window? Or should I make it myself via graphics?

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

Posted: Sun May 14, 2023 9:02 am
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.

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

Posted: Sun May 14, 2023 9:25 am
by notcl4y
Ok, thanks