Code Monkey home page Code Monkey logo

pop.box's Introduction

Pop.Box

Do not mix with Cola.

Pop.Box is a GUI library for use in the LÖVE engine, designed to be easy to use and require as little code as possible to set up. It is primarily designed to make it easy to experiment with GUIs during development.

Supports LÖVE versions 0.9.1 and higher.

Features

  • Quickly set up and align GUI elements.
  • Fully customizable alignment / styling.
  • Moving/resizing elements takes alignment into account.
  • Mouse and key input handling. (Note: Work in progress.)
  • Extensible: Make your own elements, skins, extensions, and everything is automatically loaded.

Usage

The basics:

local pop = require "pop"
-- define LÖVE callbacks here (update, draw, textinput, mouse/key events)
local window = pop.window():align("center"):setTitle("Welcome!")
window:addChild(pop.text("Welcome to Pop.Box()!"))

Note: Due to this being so early in development...the above example doesn't actually work as expected. window is a very new element.

For more examples, see the code in demo. For documentation, see docs.

Documentation

Note: Docs not written just yet. Will be soon.

  • Pop Module (The main module/interface.)
  • Elements (Basic features of elements/types of elements.)
  • Skins (A basic system for quickly applying settings to many elements.)
  • Extensions (A way to load custom code in.)
  • Drawables (Reference for what can be used as a background/color.)

pop.box's People

Contributors

tangentfoxy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.