class RPG::Item
- RPG::Item
- Reference
- Object
Defined in:
rpg/item.crConstant Summary
-
AmountFontSize =
10
-
AmountTextColor =
SF::Color::White
-
LabelBottomPadding =
8
-
LabelFontSize =
12
-
LabelTextColor =
SF::Color::White
Constructors
Class Method Summary
- .amount_text : SF::Text
- .get(key : String)
- .init_data
- .label_text : SF::Text
- .word_wrap_lines(text, width)
Instance Method Summary
- #add
- #amount : Int32
- #draw_ui(window, grid_cell_size, dx, dy, row, col)
- #draw_ui_icon(window, radius, x, y)
- #draw_ui_label(window, grid_cell_size, radius, x, y)
- #empty?
- #fill_color : SF::Color
- #key : String
- #name : String
- #remove