Package com.fs.starfarer.api.campaign
Interface ResourceCostPanelAPI
public interface ResourceCostPanelAPI
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
addOrUpdateCost
(String commodityId, int quantity) void
addOrUpdateCost
(String commodityId, int quantity, Color color) void
boolean
boolean
boolean
void
setAlignment
(Alignment alignment) Only MID, LMID, and RMID are supported.void
setComWidthOverride
(float comWidthOverride) void
setEnabled
(boolean enabled) void
setLastCostConsumed
(boolean consumed) void
setNumberOnlyMode
(boolean numberOnlyMode) void
setSecondTitle
(String secondTitle) void
setSecondTitleColor
(Color secondTitleColor) void
setWithBorder
(boolean withBorder) void
showResources
(CargoAPI cargo, Color color, List<String> commodities, ResourceCostPanelAPI.ResourceColorGetter colorGetter) void
update()
-
Method Details
-
isNumberOnlyMode
boolean isNumberOnlyMode() -
setNumberOnlyMode
void setNumberOnlyMode(boolean numberOnlyMode) -
isWithBorder
boolean isWithBorder() -
setWithBorder
void setWithBorder(boolean withBorder) -
isEnabled
boolean isEnabled() -
setEnabled
void setEnabled(boolean enabled) -
showResources
void showResources(CargoAPI cargo, Color color, List<String> commodities, ResourceCostPanelAPI.ResourceColorGetter colorGetter) -
addCost
-
addOrUpdateCost
-
flashCost
-
update
void update() -
getAlignment
Alignment getAlignment() -
setAlignment
Only MID, LMID, and RMID are supported.- Parameters:
alignment
-
-
setSecondTitle
-
setSecondTitleColor
-
addOrUpdateCost
-
addCost
-
setComWidthOverride
void setComWidthOverride(float comWidthOverride) -
addCost
-
addCost
-
setLastCostConsumed
void setLastCostConsumed(boolean consumed)
-