https://github.com/endeyshentlabs/some
Some GUI library for LOVE2D (WIP/unfinished)
https://github.com/endeyshentlabs/some
love2d love2d-gui love2d-gui-library lua
Last synced: about 2 months ago
JSON representation
Some GUI library for LOVE2D (WIP/unfinished)
- Host: GitHub
- URL: https://github.com/endeyshentlabs/some
- Owner: EndeyshentLabs
- License: mit
- Created: 2024-02-17T14:13:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-11-16T18:59:19.000Z (5 months ago)
- Last Synced: 2025-11-16T20:24:03.956Z (5 months ago)
- Topics: love2d, love2d-gui, love2d-gui-library, lua
- Language: Lua
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Some
Somewhat GUI library for LOVE2D.
Goals:
- No dependencies (other than `utf8` and LOVE2D)
- Minimal
- Easy
## Example
See [main.lua](./main.lua) for more detailed example
### Hello, World!
```lua
local Some = require("some")
function love.load()
TestWdow = Some.addWindow("Hello from Some window", 100, 100, 400, 100)
local textWidget = Some.Wtext("Hello, world!", 10, 10)
TestWdow:attach(textWidget)
-- or use oneliner
-- TestWdow:attach(Some.Wtext("Hello, world!", 10, 10))
love.graphics.setBackgroundColor(0.1, 0.1, 0.1)
love.keyboard.setKeyRepeat(true)
end
function love.draw()
Some:draw()
end
function love.mousemoved(x, y)
Some:mousemoved(x, y)
end
function love.keypressed(k, sc, isrepeat)
Some:keypressed(k, sc, isrepeat)
end
```
## Widgets
List of window widgets
- Text (`Wtext`)
- Input box (`Winput`)
- Checkbox (`WcheckButton`)
- Text button (`WtextButton`)
- Progress bar (clickable btw) (`Wprogressbar`)
- Dropdown list (`Wdropdown`)
- Image (`Wimage`)