test/game.rb in minigl-2.2.0 vs test/game.rb in minigl-2.2.1
- old
+ new
@@ -31,23 +31,23 @@
@pb = ProgressBar.new(50, 0, 200, 20, :barbg, :barfg, 3456, 70, 2, 2, @font1, 0xff000080, nil, nil, 1.8, 2, :center_left)
@ddl = DropDownList.new(0, 10, @font1, nil, nil, ['olá amigos', 'opção 2', 'terceira'], 0, 3, 150, 25, 0, 0x808080, 0xffffff, 0xffff00, nil, 2, 2.5, :north) { |a, b|
puts "mudou de #{a} para #{b}"
}
- @panel = Panel.new(10, 10,720, 520, [
+ @panel = Panel.new(10, 10, 720, 520, [
Button.new(x: 5, y: 5, font: @font1, text: 'Teste', img: :btn),
- TextField.new(x: 5, y: 40, font: @font1, img: :text, margin_x: 5, margin_y: 5, anchor: :top_left),
+ Label.new(0, 70, @font1, 'Teste de label', 0xcccccc, 0x666666, 1, 1, :north),
+ TextField.new(x: 5, y: 40, font: @font1, text: 'Opa', img: :text, margin_x: 5, margin_y: 5, anchor: :top_left),
Button.new(x: 0, y: 5, font: @font1, text: 'Teste', img: :btn, anchor: :top),
DropDownList.new(x: 0, y: 40, width: 150, height: 25, font: @font1, options: ['olá amigos', 'opção 2', 'terceira'], anchor: :north),
Button.new(x: 5, y: 5, font: @font1, text: 'Teste', img: :btn, anchor: :northeast),
Button.new(x: 5, y: 0, font: @font1, text: 'Teste', img: :btn, anchor: :left),
Button.new(x: 0, y: 0, font: @font1, text: 'Teste', img: :btn, anchor: :center),
Button.new(x: 5, y: 0, font: @font1, text: 'Teste', img: :btn, anchor: :right),
ToggleButton.new(x: 5, y: 40, img: :check, center_x: false, margin_x: 36, anchor: :east),
Button.new(x: 5, y: 5, font: @font1, text: 'Teste', img: :btn, anchor: :southwest),
Button.new(x: 0, y: 5, font: @font1, text: 'Teste', img: :btn, anchor: :south),
- ProgressBar.new(0, 40, 200, 20, :barbg, :barfg, 3456, 70, 2, 2, @font1, 0xff000080, nil, nil, 1, 1, :bottom),
-
+ ProgressBar.new(0, 40, 200, 20, :barbg, :barfg, 3456, 70, 2, 2, @font1, 0xff000080, nil, nil, 1, 1, :bottom)
], :text, :tiled, true, 2, 2, :bottom_right)
@eff = Effect.new(100, 100, :check, 2, 4, 10, nil, nil, '1')
@angle = 0