class GSF::MenuItems
- GSF::MenuItems
- Reference
- Object
Defined in:
gsf/menu_items.crConstructors
Instance Method Summary
- #draw(window : SF::RenderWindow, x_offset = 0, y_offset = 0)
- #focused_item
- #focused_key
- #focused_label
- #joysticks?
- #joysticks_next?(joysticks : Joysticks)
- #joysticks_previous?(joysticks : Joysticks)
- #joysticks_select
- #joysticks_update(joysticks : Joysticks)
- #keyboard?
- #keyboard_update(keys : Keys)
- #keys_next
- #keys_previous
- #keys_select
- #menu_items : Array(GSF::MenuItem)
- #mouse?
- #mouse_select
- #mouse_update(mouse : Mouse)
- #next_item
- #previous_item
- #selected?(keys, mouse, joysticks)
- #selected?(keys, joysticks)
- #update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks)
- #update(frame_time : Float32, keys : Keys, joysticks : Joysticks)
Constructor Detail
def self.new(font : SF::Font, items = [] of String, size = 72, text_color = SF::Color::White, text_color_focused = SF::Color::Green, initial_focused_index = -1)
#