1package com.fs.starfarer.api.impl.campaign.intel.misc;
6import com.fs.starfarer.api.Global;
7import com.fs.starfarer.api.campaign.FactionAPI;
8import com.fs.starfarer.api.campaign.SectorEntityToken;
9import com.fs.starfarer.api.impl.campaign.GateEntityPlugin;
10import com.fs.starfarer.api.impl.campaign.ids.Tags;
11import com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin;
12import com.fs.starfarer.api.loading.Description;
13import com.fs.starfarer.api.loading.Description.Type;
14import com.fs.starfarer.api.ui.SectorMapAPI;
15import com.fs.starfarer.api.ui.TooltipMakerAPI;
16import com.fs.starfarer.api.util.Misc;
20 protected SectorEntityToken
gate;
31 Color h = Misc.getHighlightColor();
32 Color g = Misc.getGrayColor();
37 if (mode == ListInfoMode.IN_DESC) initPad = opad;
50 info.addPara(
"Scanned", tc, initPad);
62 if (mode == ListInfoMode.MESSAGES) {
66 if (mode == ListInfoMode.INTEL) {
67 post =
" - " +
gate.getContainingLocation().getNameWithTypeShort();
72 info.addPara(pre +
getName() + post, c, 0f);
78 Color h = Misc.getHighlightColor();
79 Color g = Misc.getGrayColor();
80 Color tc = Misc.getTextColor();
84 if (
gate.getCustomInteractionDialogImageVisual() !=
null) {
85 info.addImage(
gate.getCustomInteractionDialogImageVisual().getSpriteName(), width, opad);
89 info.addPara(desc.getText1(), opad);
93 info.addPara(
"You've scanned this gate and are able to transit it.", opad);
95 info.addPara(
"You've scanned this gate.", opad);
117 Set<String> tags = super.getIntelTags(map);
118 tags.add(Tags.INTEL_GATES);
124 return "Active Gate " +
gate.getName();
126 return "Inactive Gate " +
gate.getName();
132 return gate.getName();
137 return super.getFactionForUIColors();
141 return getName() +
" - " +
gate.getContainingLocation().getNameWithTypeShort();
156 return "ui_discovered_entity";
static SettingsAPI getSettings()
static boolean canUseGates()
static boolean isScanned(SectorEntityToken gate)
static boolean isActive(SectorEntityToken gate)
void unindent(TooltipMakerAPI info)
Object getListInfoParam()
Color getBulletColorForMode(ListInfoMode mode)
void bullet(TooltipMakerAPI info)
Color getTitleColor(ListInfoMode mode)
void createIntelInfo(TooltipMakerAPI info, ListInfoMode mode)
String getSmallDescriptionTitle()
FactionAPI getFactionForUIColors()
SectorEntityToken getGate()
void createSmallDescription(TooltipMakerAPI info, float width, float height)
String getCommMessageSound()
Set< String > getIntelTags(SectorMapAPI map)
GateIntel(SectorEntityToken gate)
SectorEntityToken getMapLocation(SectorMapAPI map)
boolean shouldRemoveIntel()
void addBulletPoints(TooltipMakerAPI info, ListInfoMode mode)
Description getDescription(String id, Type type)
String getSpriteName(String category, String id)