class

RPG::Item

Inherits Reference < Object

Constants

AmountFontSize = 10
AmountTextColor = SF::Color::White
LabelBottomPadding = 8
LabelFontSize = 12
LabelTextColor = SF::Color::White

Constructors

new(key : String, name : String, fill_color : SF::Color = SF::Color.new)
Source

Class methods

amount_text
Source
get(key : String)
Source
init_data
Source
label_text
Source
word_wrap_lines(text, width)
Source

Instance methods

amount
Source
draw_ui(window, grid_cell_size, dx, dy, row, col)
Source
draw_ui_icon(window, radius, x, y)
Source
draw_ui_label(window, grid_cell_size, radius, x, y)
Source
empty?
Source
fill_color
Source
name
Source
remove
Source