Well you can fork it, fix it yourself, then make a PR. Though i doubt that the maintainer will see it and merge it as the dev's been inactive for a long time. You can PR to my fork and I'll merge that if you want.
Slab, and other Immediate mode GUI, can be easily understood. you just need to add that `BorderWidth` to the table option for `BeginWindow` and then find the draw function where the window is rendered and use it there, find the `EndWindow` part and reset the `setLineWidth` to `1`.
I would like to add that but at the moment im busy with other things.
Slab - An Immediate Mode GUI Library In Lua
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Slab - An Immediate Mode GUI Library In Lua
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
-
- Prole
- Posts: 29
- Joined: Sun Feb 24, 2019 6:30 pm
Re: Slab - An Immediate Mode GUI Library In Lua
Slab v0.8.0
Hello everyone. Version 0.8.0 has been released. This release adds new features as well as addressing issues reported since the last release. Thanks to the many contributions from the community which have been merged in as well.
Unfortunately, I will no longer able to update this project due to time constraints. I am reaching out to the community here to see if anyone would like to take ownership of the Slab Github project moving forward. If you are interested, let me know and we can organize the transfer through Github.
Many thanks to the community for all of their positive feedback and comments as well as their contributions to the project.
Hello everyone. Version 0.8.0 has been released. This release adds new features as well as addressing issues reported since the last release. Thanks to the many contributions from the community which have been merged in as well.
Unfortunately, I will no longer able to update this project due to time constraints. I am reaching out to the community here to see if anyone would like to take ownership of the Slab Github project moving forward. If you are interested, let me know and we can organize the transfer through Github.
Many thanks to the community for all of their positive feedback and comments as well as their contributions to the project.
-
- Citizen
- Posts: 67
- Joined: Sat May 08, 2021 9:45 pm
Re: Slab - An Immediate Mode GUI Library In Lua
Damn u gonna be kindding me exist a background color function?!
I was making a square with the same size of the Window approach that![Cry :cry:](./images/smilies/ms-cry.png)
![Death :death:](./images/smilies/ms-death.png)
I was making a square with the same size of the Window approach that
![Cry :cry:](./images/smilies/ms-cry.png)
Code: Select all
target = boardIndex.getWhosPeekingThisLine()
target:setObey(true)
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Slab - An Immediate Mode GUI Library In Lua
Hi everyone, I am the new maintainer of Slab, here to announce the latest release v0.9.0!
https://github.com/flamendless/Slab/releases/tag/v0.9.0
https://github.com/flamendless/Slab/releases/tag/v0.9.0
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Re: Slab - An Immediate Mode GUI Library In Lua
I want to like this lib, I really do. But there's several issues that keep me from using it. The top three being:yetneverdone wrote: ↑Sun Dec 19, 2021 2:47 am Hi everyone, I am the new maintainer of Slab, here to announce the latest release v0.9.0!
- Clicks get dropped when the app runs slow. This makes the lib unfit for use in released projects.
- Even the simple default demo generates megabytes of garbage per second, when idle and with basically nothing on screen. Thoughtless use of tables and string ops throughout the code.
- Visually unappealing, and lack of styling options.
I can help with these issues, but some of the changes would result in some pretty huge PRs. I also have an idea for a novel and flexible, yet pretty simple approach to styles that I always wanted to implement in my own UI lib (that I never made). Hit me up if you're interested.
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Slab - An Immediate Mode GUI Library In Lua
Hi there,
Might i suggest putting each of the points above as a separate issue in the github repo so we can easily discuss changes there? Im curious about your idea for the styles![Smile :)](./images/smilies/ms-smile.png)
Oh so this is indeed a bug. I also notice this on my quite large game but didnt realize it til now.- Clicks get dropped when the app runs slow. This makes the lib unfit for use in released projects.
Yeah this is one of the problems of following imgui api for a garbage collected language if im not mistaken. The probable solution Im thinking for this is caching table and string ops to save memory but the tradeoff would be performance if im not mistaken.- Even the simple default demo generates megabytes of garbage per second, when idle and with basically nothing on screen. Thoughtless use of tables and string ops throughout the code.
hmmm I would be grateful for the contributions and PRs for the improvements of the game! thank you! Im thinking that these big changes you speak of are fitting for the next release which is v1.0.0.- Visually unappealing, and lack of styling options.
I can help with these issues, but some of the changes would result in some pretty huge PRs. I also have an idea for a novel and flexible, yet pretty simple approach to styles that I always wanted to implement in my own UI lib (that I never made). Hit me up if you're interested.
Might i suggest putting each of the points above as a separate issue in the github repo so we can easily discuss changes there? Im curious about your idea for the styles
![Smile :)](./images/smilies/ms-smile.png)
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
-
- Prole
- Posts: 17
- Joined: Sun Jun 30, 2019 5:38 pm
Re: Slab - An Immediate Mode GUI Library In Lua
This issue is identified for long time. I've already posted about it and proposed some sollution, but based on event processing. It can be found here.yetneverdone wrote: ↑Sun Dec 19, 2021 11:21 pmOh so this is indeed a bug. I also notice this on my quite large game but didnt realize it til now.- Clicks get dropped when the app runs slow. This makes the lib unfit for use in released projects.
In fact, it's not a "bug". It's rather inavoidable result of chosen approavh, based on state only, without processing direct input events.
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Slab - An Immediate Mode GUI Library In Lua
I think the solution to this was already addressed and PR'ed by megagrump which is now in the `master` and `v1.0.0` branchespirogronian wrote: ↑Mon Oct 24, 2022 2:31 pmThis issue is identified for long time. I've already posted about it and proposed some sollution, but based on event processing. It can be found here.yetneverdone wrote: ↑Sun Dec 19, 2021 11:21 pmOh so this is indeed a bug. I also notice this on my quite large game but didnt realize it til now.- Clicks get dropped when the app runs slow. This makes the lib unfit for use in released projects.
In fact, it's not a "bug". It's rather inavoidable result of chosen approavh, based on state only, without processing direct input events.
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
-
- Prole
- Posts: 17
- Joined: Sun Jun 30, 2019 5:38 pm
Re: Slab - An Immediate Mode GUI Library In Lua
Nope. AFAIK, there is no change in this matter in both branches for now... I want to be wrong, however.yetneverdone wrote: ↑Wed Oct 26, 2022 2:10 amI think the solution to this was already addressed and PR'ed by megagrump which is now in the `master` and `v1.0.0` branchespirogronian wrote: ↑Mon Oct 24, 2022 2:31 pmThis issue is identified for long time. I've already posted about it and proposed some sollution, but based on event processing. It can be found here.yetneverdone wrote: ↑Sun Dec 19, 2021 11:21 pm
Oh so this is indeed a bug. I also notice this on my quite large game but didnt realize it til now.
In fact, it's not a "bug". It's rather inavoidable result of chosen approavh, based on state only, without processing direct input events.
Who is online
Users browsing this forum: No registered users and 222 guests