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
203 204 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 203 def initialize(klass, can_cancel = true, cancel_index = nil) end |
Instance Method Details
#cancel
Cancel the choice from outside
210 211 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 210 def cancel end |
#display_choice(viewport, x, y, width, *args, on_update: nil, align_right: false) ⇒ Integer
Display the choice
230 231 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 230 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
219 220 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 219 def register_choice(text, *args, disable_detect: nil, on_validate: nil, color: nil) end |
#size ⇒ Integer
Return the number of choices (for calculation)
207 208 |
# File 'docs/4_Systems_000_General_1_PFM.rb', line 207 def size end |