class Tradify::Screen
- Tradify::Screen
- Tradify::Component
- Reference
- Object
Defined in:
tradify/screen.crConstant Summary
-
BACKGROUND_COLOR =
LibRay::Color.new(r: 0, g: 0, b: 0, a: 0)
-
BORDER =
3
-
BORDER_COLOR =
LibRay::Color.new(r: 0, g: 255, b: 0, a: 30)
-
MARGIN =
50
-
PADDING =
25
Constructors
Instance Method Summary
- #draw(px, py)
- #draw_border
- #draw_price
- #price(*args, **options)
- #price(*args, **options, &)
- #update(px, py)
- #update_chart_lines
Instance methods inherited from class Tradify::Component
components : Array(Component)
components,
components=(components : Array(Component))
components=,
draw(px, py)draw draw, height : Int32 height, height=(height : Int32) height=, hidden? : Bool hidden?, hide hide, show show, shown? shown?, update(px, py)
update update, width : Int32 width, width=(width : Int32) width=, x : Int32 x, x=(x : Int32) x=, y : Int32 y, y=(y : Int32) y=
Constructor methods inherited from class Tradify::Component
new(x : Int32 = 0, y : Int32 = 0, width : Int32 = 0, height : Int32 = 0, components : Array(Tradify::Component) = [] of Component)
new
Constructor Detail
def self.new(game : Tradify::Game, account : Account, price_data : Array(Int32), level : Level, side_panel : Component = Component.new)
#