Class: UI::Bag::SearchBar
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Bag::SearchBar
- Defined in:
- scripts/01450 Systems/00103 Bag/00002 UI/00100 SearchBar.rb
Overview
Class that shows a search bar
Constant Summary collapse
- COORDINATES =
Coordinate of the search bar
3, 220
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#search_input ⇒ UI::UserInput
readonly
The search input object.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#initialize(viewport) ⇒ SearchBar
constructor
Create a new SearchBar.
-
#update
Update the search bar.
Methods inherited from SpriteStack
#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport) ⇒ SearchBar
Create a new SearchBar
11 12 13 14 15 |
# File 'scripts/01450 Systems/00103 Bag/00002 UI/00100 SearchBar.rb', line 11 def initialize() super(, *COORDINATES) init_sprite self.z = 506 # 500 + 6 since ctrl button has more priority end |
Instance Attribute Details
#search_input ⇒ UI::UserInput (readonly)
Returns the search input object.
8 9 10 |
# File 'scripts/01450 Systems/00103 Bag/00002 UI/00100 SearchBar.rb', line 8 def search_input @search_input end |
Instance Method Details
#update
Update the search bar
18 19 20 |
# File 'scripts/01450 Systems/00103 Bag/00002 UI/00100 SearchBar.rb', line 18 def update @search_input.update end |