Skip to content

MultiPain/Gideros_SimpleUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gideros_SimpleUI

Simple UI library for Gideros Studio

preview

Layout example

preview

app @ application
app:setBackgroundColor(0x323232)

local tex = Texture.new("NinePatch.png")

local layout = Layout.new(1,1)
	:relSize(100,100)
	:cols()
	:paddingAll(4)
	:wrap(Layout.WRAP)
	
	:childs({
		Layout.new(1,50):relWidth(100):marginAll(2):paddingAll(10):setTextureBackground(tex),
		Layout.new(1,1):relSize(100,100):marginAll(2)	
			:wrap(Layout.WRAP)
			:childs({
				Layout.new(120,1):relHeight(100):marginAll(2):setTextureBackground(tex),
				Layout.new(1,1):relSize(100,100):marginAll(2):setTextureBackground(tex):ID("workFlow"):paddingAll(5),
			}),
		Layout.new(1,120,true):paddingAll(10):relWidth(100):marginAll(2):setTextureBackground(tex),
	})
layout:size(app:getLogicalHeight(), app:getLogicalWidth())
layout:update()

stage:addChild(layout)

local tf = TextField.new(nil, "Hello world", "|")
tf:setTextColor(0xffffff)
tf:setScale(2)
layout:getByID("workFlow"):addChild(tf)

About

Simple UI library for Gideros Studio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages