1package com.fs.starfarer.api.campaign.impl.items;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.campaign.CargoTransferHandlerAPI;
7import com.fs.starfarer.api.campaign.econ.MarketAPI;
8import com.fs.starfarer.api.campaign.econ.SubmarketAPI;
9import com.fs.starfarer.api.impl.campaign.GateEntityPlugin;
10import com.fs.starfarer.api.ui.TooltipMakerAPI;
11import com.fs.starfarer.api.util.Misc;
16 public int getPrice(MarketAPI market, SubmarketAPI submarket) {
17 return super.getPrice(market, submarket);
32 Color h = Misc.getHighlightColor();
33 Color g = Misc.getGrayColor();
34 Color b = Misc.getButtonTextColor();
35 b = Misc.getPositiveHighlightColor();
41 Misc.addDesignTypePara(tooltip, design, 10f);
45 tooltip.addPara(
spec.
getDesc(), Misc.getTextColor(), opad);
48 addCostLabel(tooltip, opad, transferHandler, stackSource);
50 tooltip.addPara(
"Right-click to integrate the " +
getName() +
" with your fleet", b, opad);
55 return super.getTooltipWidth();
76 Global.
getSector().getMemoryWithoutUpdate().set(GateEntityPlugin.GATES_ACTIVE,
true);
78 Global.
getSector().getMemoryWithoutUpdate().set(GateEntityPlugin.PLAYER_CAN_USE_GATES,
true);
81 getName() +
" integrated - can transit active gates");
static SoundPlayerAPI getSoundPlayer()
static SectorAPI getSector()
void addCostLabel(TooltipMakerAPI tooltip, float pad, CargoTransferHandlerAPI transferHandler, Object stackSource)
SpecialItemSpecAPI getSpec()
int getPrice(MarketAPI market, SubmarketAPI submarket)
boolean isTooltipExpandable()
void createTooltip(TooltipMakerAPI tooltip, boolean expanded, CargoTransferHandlerAPI transferHandler, Object stackSource)
void performRightClickAction()
boolean shouldRemoveOnRightClickAction()
boolean hasRightClickAction()
SoundAPI playUISound(String id, float pitch, float volume)