Method: HudText#initialize
- Defined in:
- lib/fantasy/hud_text.rb
#initialize(position:, text: "") ⇒ HudText
Returns a new instance of HudText.
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/fantasy/hud_text.rb', line 6 def initialize(position:, text: "") @position = position @text = text @size = "medium" @color = Color.palette.white @background_color = Color.palette.black @visible = true @layer = 100 @in_world = false @alignment = "top-left" Global.hud_texts.push(self) end |