Class: PFM::Choice_Helper
Overview
Class that help to make choice inside Interfaces
Instance Method Summary collapse
-
#cancel
Cancel the choice from outside.
-
#display_choice(viewport, x, y, width, *args, on_update: nil, align_right: false) ⇒ Integer
Display the choice.
-
#initialize(klass, can_cancel = true, cancel_index = nil) ⇒ Choice_Helper
constructor
Create a new Choice_Helper.
-
#register_choice(text, *args, disable_detect: nil, on_validate: nil, color: nil) ⇒ self
Register a choice.
-
#size ⇒ Integer
Return the number of choices (for calculation).
Constructor Details
#initialize(klass, can_cancel = true, cancel_index = nil) ⇒ Choice_Helper
Create a new Choice_Helper
196 197 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 196 def initialize(klass, can_cancel = true, cancel_index = nil) end |
Instance Method Details
#cancel
Cancel the choice from outside
203 204 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 203 def cancel end |
#display_choice(viewport, x, y, width, *args, on_update: nil, align_right: false) ⇒ Integer
Display the choice
223 224 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 223 def display_choice(, x, y, width, *args, on_update: nil, align_right: false) end |
#register_choice(text, *args, disable_detect: nil, on_validate: nil, color: nil) ⇒ self
Register a choice
212 213 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 212 def register_choice(text, *args, disable_detect: nil, on_validate: nil, color: nil) end |
#size ⇒ Integer
Return the number of choices (for calculation)
200 201 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 200 def size end |