Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ShopView

[15:7] extends: Pane

Wraps FXGL's ShopView (com.almasb.fxgl.trade.view.ShopView), a JavaFX Pane that renders a Shop. Shows the shop's items in a TradeListView and the money balance bound to a Text label. Drop straight into a JavaFX layout via .obj.

Methods

  • ShopView (ShopObj = null, int Width = 400, int Height = 600)

    Creates a new ShopView at the given size. Pass null for the adopt path.

    • @p ShopObj is a Shop wrapper.
    • @p Width is the view width in pixels.
    • @p Height is the view height in pixels.
  • adopt (object Ajo)

    Wraps an existing ShopView AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a ShopView.
    • @r A new wrapper.
  • getShop ()

    Returns the underlying Shop AJO.

    • @r An AussomJavaObject around a Shop.
  • getListView ()

    Returns the underlying TradeListView AJO.

    • @r An AussomJavaObject around a TradeListView.