|
| interface | ResourceColorGetter |
| |
|
| boolean | isNumberOnlyMode () |
| |
| void | setNumberOnlyMode (boolean numberOnlyMode) |
| |
| boolean | isWithBorder () |
| |
| void | setWithBorder (boolean withBorder) |
| |
| boolean | isEnabled () |
| |
| void | setEnabled (boolean enabled) |
| |
| void | showResources (CargoAPI cargo, Color color, List< String > commodities, ResourceColorGetter colorGetter) |
| |
| void | addCost (String commodityId, int quantity, Color color) |
| |
| void | addOrUpdateCost (String commodityId, int quantity, Color color) |
| |
| void | flashCost (String commodityId) |
| |
| void | update () |
| |
| Alignment | getAlignment () |
| |
| void | setAlignment (Alignment alignment) |
| |
| void | setSecondTitle (String secondTitle) |
| |
| void | setSecondTitleColor (Color secondTitleColor) |
| |
| void | addOrUpdateCost (String commodityId, int quantity) |
| |
| void | addCost (String commodityId, int quantity) |
| |
| void | setComWidthOverride (float comWidthOverride) |
| |
| void | addCost (String commodityId, String text) |
| |
| void | addCost (String commodityId, String text, Color color) |
| |
| void | setLastCostConsumed (boolean consumed) |
| |
Definition at line 9 of file ResourceCostPanelAPI.java.
◆ addCost() [1/4]
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.addCost |
( |
String | commodityId, |
|
|
int | quantity ) |
◆ addCost() [2/4]
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.addCost |
( |
String | commodityId, |
|
|
int | quantity, |
|
|
Color | color ) |
◆ addCost() [3/4]
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.addCost |
( |
String | commodityId, |
|
|
String | text ) |
◆ addCost() [4/4]
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.addCost |
( |
String | commodityId, |
|
|
String | text, |
|
|
Color | color ) |
◆ addOrUpdateCost() [1/2]
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.addOrUpdateCost |
( |
String | commodityId, |
|
|
int | quantity ) |
◆ addOrUpdateCost() [2/2]
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.addOrUpdateCost |
( |
String | commodityId, |
|
|
int | quantity, |
|
|
Color | color ) |
◆ flashCost()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.flashCost |
( |
String | commodityId | ) |
|
◆ getAlignment()
| Alignment com.fs.starfarer.api.campaign.ResourceCostPanelAPI.getAlignment |
( |
| ) |
|
◆ isEnabled()
| boolean com.fs.starfarer.api.campaign.ResourceCostPanelAPI.isEnabled |
( |
| ) |
|
◆ isNumberOnlyMode()
| boolean com.fs.starfarer.api.campaign.ResourceCostPanelAPI.isNumberOnlyMode |
( |
| ) |
|
◆ isWithBorder()
| boolean com.fs.starfarer.api.campaign.ResourceCostPanelAPI.isWithBorder |
( |
| ) |
|
◆ setAlignment()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setAlignment |
( |
Alignment | alignment | ) |
|
Only MID, LMID, and RMID are supported.
- Parameters
-
◆ setComWidthOverride()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setComWidthOverride |
( |
float | comWidthOverride | ) |
|
◆ setEnabled()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setEnabled |
( |
boolean | enabled | ) |
|
◆ setLastCostConsumed()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setLastCostConsumed |
( |
boolean | consumed | ) |
|
◆ setNumberOnlyMode()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setNumberOnlyMode |
( |
boolean | numberOnlyMode | ) |
|
◆ setSecondTitle()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setSecondTitle |
( |
String | secondTitle | ) |
|
◆ setSecondTitleColor()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setSecondTitleColor |
( |
Color | secondTitleColor | ) |
|
◆ setWithBorder()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.setWithBorder |
( |
boolean | withBorder | ) |
|
◆ showResources()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.showResources |
( |
CargoAPI | cargo, |
|
|
Color | color, |
|
|
List< String > | commodities, |
|
|
ResourceColorGetter | colorGetter ) |
◆ update()
| void com.fs.starfarer.api.campaign.ResourceCostPanelAPI.update |
( |
| ) |
|
The documentation for this interface was generated from the following file: