Sha256: fb321bed2be8bd175e3e74719a1257e554ed65adba610af2e52e7125faf7e9c4
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
begin require 'rubygems' rescue LoadError end require "gosu" require "../gglib" require "../ext/widgets" require "../ext/themes" class ConsoleDemoWindow < GGLib::GUIWindow def initialize super(640, 480, false, 20) self.caption = "GGLib Console Demo" self.state = ConsoleDemoState.new end end class ConsoleDemoState < GGLib::StateObject def onStart $window.setBackground("img/bg.png") GGLib::Button.new("button2", "Open Console", 270, 200, Proc.new{ |widget| GGLib::DebugConsole.new }, GGLib::Themes::BlueSteel) end end ConsoleDemoWindow.new.show
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gglib-1.1.0 | lib/examples/ConsoleDemo.rb |