Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: TradeView

[13:7] extends: Parent

Wraps FXGL's TradeView (com.almasb.fxgl.trade.view.TradeView), a JavaFX Parent that combines two ShopViews into a tabbed UI (Sell / Buy) for trading between the player and an NPC shop.

Methods

  • TradeView (PlayerShopViewObj = null, NpcShopViewObj = null)

    Creates a new TradeView. Pass null for the adopt path.

    • @p PlayerShopViewObj is a ShopView wrapper for the player.
    • @p NpcShopViewObj is a ShopView wrapper for the NPC.
  • adopt (object Ajo)

    Wraps an existing TradeView AussomJavaObject.

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

    Returns the player ShopView AJO.

    • @r An AussomJavaObject around a ShopView.
  • getNpcShopView ()

    Returns the NPC ShopView AJO.

    • @r An AussomJavaObject around a ShopView.
  • getTabPane ()

    Returns the underlying TabPane AJO.

    • @r An AussomJavaObject around a TabPane.