gooi 0,0

GÖÖi, an Android-Oriented GUI Library

3 years after

GÖÖi, an Android-Oriented GUI Library

GÖÖi (Good-sized Öptional Öpen interface) is an Android-oriented LÖVE library which helps you to create GUI's

License

Examples:

This is how you create a button with an event:

require "gooi"
function love.load()
    gooi.newButton("Exit"):onRelease(function()
        love.event.quit()
    end)
end

function love.draw()
    gooi.draw()
end

function love.mousepressed(x, y, button)  gooi.pressed() end
function love.mousereleased(x, y, button) gooi.released() end

-- Use these for Android:
--[[
    function love.touchpressed(id, x, y)  gooi.pressed(id, x, y) end
    function love.touchreleased(id, x, y) gooi.released(id, x, y) end
    function love.touchmoved(id, x, y)    gooi.moved(id, x, y) end
]]

These are other ways of creating a button:

gooi.newButton()
gooi.newButton("A button")
gooi.newButton("A button", 100, 100)
gooi.newButton("A button", 100, 100, 150, 25)
gooi.newButton({
    text = "A button",
    x = 100,
    y = 100,
    w = 150,
    h = 25,
    orientation = "right",
    icon = "/imgs/icon.png"
})

More Examples:

free components

GÖÖi game layout

GÖÖi is highly customizable, it has a 3D mode, a Glossy mode and a "Canvas" mode to work in virtual resolutions:

GÖÖi grid layout

There are modals too:

GÖÖi grid layout

This is the demo right now:

GÖÖi demo

Style used:

style = {
    font = gr.newFont(fontDir.."ProggySquare.ttf", 16),
    fgColor = "#FFFFFF",
    bgColor = "#25AAE1F0",
    mode3d = true,
    glass = true,
    round = .18,
}

The code for these examples is in the repository.

Limitations:

  • A panel can't be added inside another panel
  • In text fields, the text can't be larger than the component width
  • There's no automatic responsiveness (yet)

GÖÖi is still a work in progress, thanks for you feedback!

Forum thread: https://love2d.org/forums/viewtopic.php?f=5&t=79751

Related Repositories

awesome-love2d

awesome-love2d

A curated list of amazingly awesome LÖVE libraries, resources and shiny things. ...

awesome-love2d

awesome-love2d

A curated list of amazingly awesome Love2D libraries, resources and shiny things ...

awesome-love2d

awesome-love2d

A curated list of amazingly awesome Love2D libraries, resources and shiny things ...

awesome-love2d

awesome-love2d

A curated list of amazingly awesome LÖVE libraries, resources and shiny things. ...


Top Contributors

tavuntu ghtalpo