class RPG::BagUI

Defined in:

rpg/bag_ui.cr

Constant Summary

BackgroundColor = SF::Color.new(17, 17, 17, 170)
CellCols = 8
OpenBagJoystickButtons = [Joysticks::Back]
OpenBagKeys = [Keys::B, Keys::Tab]
OutlineColor = SF::Color.new(102, 102, 102)
OutlineThickness = 4
Padding = 16
TitleFontSize = 16
TitleTextColor = SF::Color::White

Class Method Summary

Class Method Detail

def self.background_rect : SF::RectangleShape #

[View source]
def self.draw(window : SF::RenderWindow, bag : Bag) #

[View source]
def self.draw_items(window, bag) #

[View source]
def self.grid_cell_size #

[View source]
def self.height #

[View source]
def self.hide #

[View source]
def self.show #

[View source]
def self.show? #

[View source]
def self.title_text : SF::Text #

[View source]
def self.update(keys, joysticks) #

[View source]
def self.width #

[View source]
def self.x #

[View source]
def self.y #

[View source]