Class: BarterButton

BarterButton()

This class manages a buy and sell button for one resource. The sell button selects the resource to be sold. The buy button selects the resource to be bought and performs the sale.

Constructor

new BarterButton()

Source:

Members

BarterResourceSellQuantity

The barter constants should match with the simulation Quantity of goods to sell per click.
Source:

BuyCaption

Source:

BuyTooltip

Source:

DisabledModifier

Source:

Multiplier

Multiplier to be applied when holding the massbarter hotkey.
Source:

ResourceIconPath

Source:

SelectedModifier

Source:

SellCaption

Source:

SellTooltip

Source:

amountToSell

Source:

amountToSell

Source:

amountToSell

Source:

barterButtonManager

Source:

buyAmount

Source:

buyButton

Source:

buyIcon

Source:

iconPath

Source:

resourceCode

Source:

sellAmount

Source:

sellButton

Source:

sellIcon

Source:

sellSelection

Source:

Methods

buy()

Source:

update()

The viewed player might be the owner of the selected market.
Source:

(static) getWidth()

Source: