summaryrefslogtreecommitdiffhomepage
path: root/dragon/console_menu.rb
diff options
context:
space:
mode:
author_Tradam <[email protected]>2021-12-16 19:22:26 -0500
committerGitHub <[email protected]>2021-12-16 19:22:26 -0500
commit5954b9beb4d4a3b4f248d72d1851195f030558a8 (patch)
treefecd8aa840a25afdb502915b0fdb4d03b7ed339a /dragon/console_menu.rb
parent2f845281f133849256b57bb08fd3e9ae57600784 (diff)
parenteaa29e72939f5edf61735ccbb73c36ee89369f65 (diff)
downloaddragonruby-game-toolkit-contrib-5954b9beb4d4a3b4f248d72d1851195f030558a8.tar.gz
dragonruby-game-toolkit-contrib-5954b9beb4d4a3b4f248d72d1851195f030558a8.zip
Merge branch 'DragonRuby:master' into masterHEADmaster
Diffstat (limited to 'dragon/console_menu.rb')
-rw-r--r--dragon/console_menu.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/dragon/console_menu.rb b/dragon/console_menu.rb
index d10ceeb..0f21614 100644
--- a/dragon/console_menu.rb
+++ b/dragon/console_menu.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
# Copyright 2019 DragonRuby LLC
# MIT License
# console_menu.rb has been released under MIT (*only this file*).
@@ -51,7 +52,7 @@ module GTK
def itch_wizard_clicked
@console.scroll_to_bottom
- $wizards.itch.start
+ $wizards.itch.restart
end
def docs_clicked
@@ -76,6 +77,7 @@ module GTK
@buttons = [
(button id: :record, row: 0, col: 9, text: "record gameplay", method: :record_clicked),
(button id: :replay, row: 0, col: 10, text: "start replay", method: :replay_clicked),
+ *custom_buttons
]
elsif @menu_shown == :hidden
@buttons = [
@@ -134,8 +136,8 @@ module GTK
method: method
}.let do |entity|
primitives = []
- primitives << entity[:rect].merge(a: 164).solid
- primitives << entity[:rect].merge(r: 255, g: 255, b: 255).border
+ primitives << entity[:rect].solid!(a: 164)
+ primitives << entity[:rect].border!(r: 255, g: 255, b: 255)
primitives << text.wrapped_lines(5)
.map_with_index do |l, i|
[