Skip to content

Somewhat immediate GUI library for LOVE2D (unfinished)

License

Notifications You must be signed in to change notification settings

EndeyshentLabs/Some

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some

Somewhat immediate GUI library for LOVE2D.

Goals:

  • No dependencies (other than utf8 and LOVE2D)
  • Minimal
  • Easy

Example

See main.lua for more detailed example

Hello, World!

local Some = require("some")

function love.load()
	TestWdow = Some.addWindow("Hello from Some window", 100, 100, 400, 100)

	Some.Wtext(TestWdow, "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)

About

Somewhat immediate GUI library for LOVE2D (unfinished)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages