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.campaign.StarSystemAPI;
10import com.fs.starfarer.api.impl.campaign.ids.Factions;
11import com.fs.starfarer.api.impl.campaign.ids.Tags;
12import com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin;
13import com.fs.starfarer.api.impl.campaign.procgen.themes.RemnantThemeGenerator.RemnantSystemType;
14import com.fs.starfarer.api.loading.Description;
15import com.fs.starfarer.api.loading.Description.Type;
16import com.fs.starfarer.api.ui.SectorMapAPI;
17import com.fs.starfarer.api.ui.TooltipMakerAPI;
18import com.fs.starfarer.api.util.Misc;
30 RemnantSystemType remnantType =
null;
31 if (
beacon.getMemoryWithoutUpdate().contains(RemnantSystemType.DESTROYED.getBeaconFlag())) {
32 remnantType = RemnantSystemType.DESTROYED;
33 }
else if (
beacon.getMemoryWithoutUpdate().contains(RemnantSystemType.SUPPRESSED.getBeaconFlag())) {
34 remnantType = RemnantSystemType.SUPPRESSED;
35 }
else if (
beacon.getMemoryWithoutUpdate().contains(RemnantSystemType.RESURGENT.getBeaconFlag())) {
36 remnantType = RemnantSystemType.RESURGENT;
42 return beacon.hasTag(Tags.BEACON_LOW);
45 return beacon.hasTag(Tags.BEACON_MEDIUM);
48 return beacon.hasTag(Tags.BEACON_HIGH);
53 Color h = Misc.getHighlightColor();
54 Color g = Misc.getGrayColor();
59 if (mode == ListInfoMode.IN_DESC) initPad = opad;
67 Color dangerColor =
null;
70 dangerColor = Misc.getPositiveHighlightColor();
76 dangerColor = Misc.getNegativeHighlightColor();
80 info.addPara(
"Danger level: " + danger, initPad, tc, dangerColor, danger);
97 Color h = Misc.getHighlightColor();
98 Color g = Misc.getGrayColor();
99 Color tc = Misc.getTextColor();
105 info.addPara(desc.getText1FirstPara(), opad);
109 if (
beacon.isInHyperspace()) {
110 StarSystemAPI system = Misc.getNearbyStarSystem(
beacon, 1f);
111 if (system !=
null) {
112 info.addPara(
"This beacon is located near the " + system.getNameWithLowercaseType() +
113 ", warning of dangers that presumably lie within.", opad);
133 Set<String> tags = super.getIntelTags(map);
134 tags.add(Tags.INTEL_BEACON);
137 tags.add(Factions.REMNANTS);
145 return "Warning Beacon 3";
147 return "Warning Beacon 2";
149 return "Warning Beacon 1";
151 return "Warning Beacon 0";
162 return "Warning Beacon";
167 return super.getFactionForUIColors();
176 if (
beacon.isInHyperspace() &&
false) {
177 StarSystemAPI system = Misc.getNearbyStarSystem(
beacon, 1f);
178 if (system !=
null) {
179 return system.getHyperspaceAnchor();
192 return "ui_discovered_entity";
static SettingsAPI getSettings()
void unindent(TooltipMakerAPI info)
Object getListInfoParam()
Color getBulletColorForMode(ListInfoMode mode)
void bullet(TooltipMakerAPI info)
Color getTitleColor(ListInfoMode mode)
String getSmallDescriptionTitle()
FactionAPI getFactionForUIColors()
SectorEntityToken getMapLocation(SectorMapAPI map)
WarningBeaconIntel(SectorEntityToken beacon)
RemnantSystemType getRemnantType()
void addBulletPoints(TooltipMakerAPI info, ListInfoMode mode)
boolean shouldRemoveIntel()
Set< String > getIntelTags(SectorMapAPI map)
String getCommMessageSound()
void createIntelInfo(TooltipMakerAPI info, ListInfoMode mode)
void createSmallDescription(TooltipMakerAPI info, float width, float height)
Description getDescription(String id, Type type)
String getSpriteName(String category, String id)