Project

cloudy_ui

0.0
No commit activity in last 3 years
No release in over 3 years
Cloudy UI is an add-on library for Gosu that handles drawing of user interface elements. Layout and input handling are left up to the programmer. Graphics are sourced from <http://kbsportfolio.com/2011/10/16/resource-for-designer-cloudy-ui-kit/>.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.7.48
 Project Readme

Gosu-Cloudy-Ui

Current elements

Drawing UI Kit based on http://kbsportfolio.com/2011/10/16/resource-for-designer-cloudy-ui-kit/

Gem on rubygems http://rubygems.org/gems/cloudy_ui

Make sure you've loaded CloudyUi

require 'cloudy_ui'

Load images before usage

CloudyUi::load_images window

Button states are :normal, :hover or :active

CloudyUi::Button.draw x, y, z, width, height, state

progress slided on slider in range 0..1

center of blue selection on slider in range 0..1

CloudyUi::Slider.draw x, y, z, width, progress, center=0

RadioButton states are :full and :empty

CloudyUi::RadioButtondraw x, y, z, state

A Window, an area for the ui elements

CloudyUi::Window.draw window, x, y, z, width, height