Search found 16 matches

by coding.jackalope
Mon Aug 19, 2019 6:04 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

twe wrote:
Sat Aug 17, 2019 1:24 am
Cheers for this, was really interested in imgui but the lack of documentation around it (among other things) was pretty off putting. This is great so far :).
Thanks twe! Hope this is helpful for your projects. If you run into any issues or have any questions, let me know.
by coding.jackalope
Tue Aug 13, 2019 6:36 am
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

Slab v0.6.0 Slab.love Hello everyone. Version 0.6.0 has been released. This release adds API functions to allow how controls are organized within a window. Slab now offers users the ability to add project specific stats and can be quickly viewed through the Slab Debug module. The Slab Test module c...
by coding.jackalope
Wed Jul 10, 2019 10:28 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

THANKS! That's way better than my idea! Your GUI project is one of the only ones that doesnt make my brain explode! Send ya good vibes! Hey Darlex, appreciate the support! The new version just released now has support for highlighting words as well as getting and setting the cursor position. Hope t...
by coding.jackalope
Wed Jul 10, 2019 10:24 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

Slab v0.5.0 Slab.love Hello everyone. Version 0.5.0 has just been released. This release adds API functions to render basic shapes to a window, such as rectangles and circles. The Input control also has support for highlighting words with custom colors to mimic syntax highlighting found in various ...
by coding.jackalope
Sun Jun 30, 2019 7:13 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

I love this project! I'm using it on my project to create a working love2d ide! Could you please add a highlight option for text inputs, please? like: Slab.Input("code_input", { Text = examplecode, MultiLine = true, H=500, W=500, Highlight = {"here","goes","the","highlighted","words"}} And some fun...
by coding.jackalope
Wed Jun 12, 2019 10:22 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

I encountered the following problem.. xdelta, ydelta = slab.GetMouseDelta() slab.Text(v.name) if slab.IsControlClicked() print "ydelta: " .. ydelta -- ydelta is ALWAYS 0 end Don't know whats going on, if it's on my end, or if it's a bug or maybe it's something to do with scope? I tried printing it ...
by coding.jackalope
Wed Jun 12, 2019 10:14 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

Slab v0.4.0 Slab.love Hello everyone. Version 0.4.0 has just been released. This release expands the input control to support multiple lines and allows the control to mimic the behavior of standard text editors. Support for UTF-8 characters has been added as well. This release also adds Void (Non-S...
by coding.jackalope
Mon Jun 03, 2019 10:55 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

I encountered the following problem.. xdelta, ydelta = slab.GetMouseDelta() slab.Text(v.name) if slab.IsControlClicked() print "ydelta: " .. ydelta -- ydelta is ALWAYS 0 end Don't know whats going on, if it's on my end, or if it's a bug or maybe it's something to do with scope? I tried printing it ...
by coding.jackalope
Sat May 25, 2019 8:33 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

Yeah, I would hold off on the PR for now and use the IsControlHovered function. It allows you to keep the standard behavior of controls while also allowing hover detection with that function.
by coding.jackalope
Sat May 25, 2019 5:37 pm
Forum: Libraries and Tools
Topic: Slab - An Immediate Mode GUI Library In Lua
Replies: 34
Views: 21355

Re: Slab - An Immediate Mode GUI Library In Lua

Yeah, go ahead and do a pull request.

Also, there is a function that already detects if a control is hovered after the control is declared. Slab.IsControlHovered will cover all controls that are supported by Slab.