Class: UI::Storage::ModeHandler
Overview
Class responsive of handling the mode for the PC UI
Constant Summary collapse
- AVAILABLE_MODES =
List the available modes
%i[pokemon item battle]
- AVAILABLE_SELECTION_MODES =
List the available modes
%i[detailed fast grouped]
Instance Attribute Summary collapse
-
#mode ⇒ Symbol
Get the current mode.
-
#selection_mode ⇒ Symbol
box mode disabled for now Get the current selection mode.
Instance Method Summary collapse
-
#add_mode_ui(mode_ui)
Add a mode ui.
-
#add_selection_mode_ui(selection_mode_ui)
Add a selection mode ui.
-
#initialize(mode, selection_mode) ⇒ ModeHandler
constructor
Create a new Mode Handler.
-
#swap_mode ⇒ Symbol
Swap the mode.
-
#swap_selection_mode ⇒ Symbol
Swap the selection mode.
Constructor Details
#initialize(mode, selection_mode) ⇒ ModeHandler
Create a new Mode Handler
430 431 |
# File 'docs/4_Systems_200_Storage.rb', line 430 def initialize(mode, selection_mode) end |
Instance Attribute Details
#mode ⇒ Symbol
Get the current mode
419 420 421 |
# File 'docs/4_Systems_200_Storage.rb', line 419 def mode @mode end |
#selection_mode ⇒ Symbol
box mode disabled for now Get the current selection mode
425 426 427 |
# File 'docs/4_Systems_200_Storage.rb', line 425 def selection_mode @selection_mode end |
Instance Method Details
#add_mode_ui(mode_ui)
Add a mode ui
434 435 |
# File 'docs/4_Systems_200_Storage.rb', line 434 def add_mode_ui(mode_ui) end |
#add_selection_mode_ui(selection_mode_ui)
Add a selection mode ui
438 439 |
# File 'docs/4_Systems_200_Storage.rb', line 438 def add_selection_mode_ui(selection_mode_ui) end |
#swap_mode ⇒ Symbol
Swap the mode
450 451 |
# File 'docs/4_Systems_200_Storage.rb', line 450 def swap_mode end |
#swap_selection_mode ⇒ Symbol
Swap the selection mode
454 455 |
# File 'docs/4_Systems_200_Storage.rb', line 454 def swap_selection_mode end |