Class: GamePlay::NameInput

Inherits:
BaseCleanUpdate::FrameBalanced
  • Object
show all
Includes:
NameInputMixin
Defined in:
docs/4_Systems_205_Input.rb

Overview

Name input scene

Direct Known Subclasses

NumberInput

Constant Summary collapse

DEFAULT_HINT =

Hint shown about how to enter name

[:ext_text, 9000, 162]
GUESSED_PHRASE =

"Use your keyboard and press ENTER" GUESSED PHRASE when not given

[:ext_text, 9000, 163]

Instance Attribute Summary

Attributes included from NameInputMixin

#return_name

Instance Method Summary collapse

Constructor Details

#initialize(default_name, max_length, character = nil, phrase: nil) ⇒ NameInput

"How would you name %s?" Create a new NameInput scene

Parameters:

  • default_name (String) —

    the choosen name if no choice

  • max_length (Integer) —

    the maximum number of characters in the choosen name

  • character (PFM::Pokemon, String, nil) (defaults to: nil) —

    the character to display

  • phrase (String, nil) (defaults to: nil) —

    phrase to show in order to display the name



161
162
# File 'docs/4_Systems_205_Input.rb', line 161

def initialize(default_name, max_length, character = nil, phrase: nil)
end

Instance Method Details

#main ⇒ self

Make main return self for compatibility

Returns:

  • (self)


172
173
# File 'docs/4_Systems_205_Input.rb', line 172

def main
end

#update_graphics

Update the graphics of the scene



168
169
# File 'docs/4_Systems_205_Input.rb', line 168

def update_graphics
end

#update_inputs ⇒ Boolean

Update the inputs of the scene

Returns:

  • (Boolean) —

    if the other "input" related updates can be called



165
166
# File 'docs/4_Systems_205_Input.rb', line 165

def update_inputs
end