class

PointClickEngine::UI::StatusBar

Inherits Reference < Object

Status bar displaying game information

Constructors

new(screen_width : Int32, screen_height : Int32)
Source

Instance methods

background_color

Visual settings

Source
background_color=(background_color : RL::Color)

Visual settings

Source
border_color
Source
border_color=(border_color : RL::Color)
Source
contains_point(point : RL::Vector2) : Bool

Check if position is within status bar bounds

Source
current_object
Source
current_object=(current_object : String)
Source
current_verb
Source
current_verb=(current_verb : VerbType)
Source
draw

Draw the status bar

Source
enable_score(enabled : Bool)

Enable/disable score display

Source
font_size

Layout settings

Source
font_size=(font_size : Int32)

Layout settings

Source
get_height

Get status bar height for layout calculations

Source
hide

Hide status bar

Source
highlight_color
Source
highlight_color=(highlight_color : RL::Color)
Source
inventory_count
Source
inventory_count=(inventory_count : Int32)
Source
padding
Source
padding=(padding : Int32)
Source
position
Source
position=(position : RL::Vector2)
Source
score
Source
score=(score : Int32)
Source
section_width
Source
section_width=(section_width : Int32)
Source
set_position(x : Float32, y : Float32)

Set status bar position

Source
set_score(score : Int32)

Set current score

Source
set_size(width : Float32, height : Float32)

Set status bar size

Source
show

Show status bar

Source
show_score
Source
show_score=(show_score : Bool)
Source
size
Source
size=(size : RL::Vector2)
Source
text_color
Source
text_color=(text_color : RL::Color)
Source
toggle_visibility

Toggle visibility

Source
update(cursor_manager : CursorManager, inventory : Inventory::InventorySystem | Nil = nil)

Update status bar with current game state

Source
update_manual(verb : VerbType, object : String, inv_count : Int32 = 0, score : Int32 = 0)

Update with manual values (for custom states)

Source
visible
Source
visible=(visible : Bool)
Source