Skip to content

develephant/solar2d-alignmate-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alignmate

Alignment helper for visual objects.

Methods

  • top(obj[, opts])
  • topRight(obj[, opts])
  • topLeft(obj[, opts])
  • bottom(obj[, opts])
  • bottomRight(obj[, opts])
  • bottomLeft(obj[, opts])
  • center(obj[, opts])
  • centerRight(obj[, opts])
  • centerLeft(obj[, opts])
  • grid(obj, row, col, opts)

Options

  • padTop
  • padRight
  • padLeft
  • padBottom

Usage

Using button UI helper.

local Alignmate = require('alignmate')
local Button = require('button')

local submitBtn = Button.new({
    label = 'Submit'
})

Alignmate:center(submitBtn)

About

An attempt at creating an auto alignment tool for Solar2D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages