Sha256: 7745772d36a02c5fa5ef0aff96709055912d7167b610a7042318d191b08cc186
Contents?: true
Size: 579 Bytes
Versions: 1
Compression:
Stored size: 579 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.2.1 | examples/ConsoleDemo.rb |