Starsector API
Loading...
Searching...
No Matches
HAShipsDestroyedFactorHint.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.events;
2
3import com.fs.starfarer.api.ui.TooltipMakerAPI;
4import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
5
7
9 super(0);
10 timestamp = 0; // makes it not expire
11 }
12
13 @Override
14 public boolean shouldShow(BaseEventIntel intel) {
16// for (EventFactor factor : intel.getFactors()) {
17// if (factor != this && factor instanceof HAShipsDestroyedFactor) {
18// return false;
19// }
20// }
21// return true;
22 }
23
24 @Override
25 public TooltipCreator getMainRowTooltip(BaseEventIntel intel) {
26 return new BaseFactorTooltip() {
27 @Override
28 public void createTooltip(TooltipMakerAPI tooltip, boolean expanded, Object tooltipParam) {
29 tooltip.addPara("Destroying hostile ships in or near one of the star systems "
30 + "with your colonies will reduce event progress.",
31 0f);
32 }
33
34 };
35 }
36
37// @Override
38// public String getProgressStr(BaseEventIntel intel) {
39// return "";
40// }
41//
42// @Override
43// public Color getDescColor(BaseEventIntel intel) {
44// return Misc.getGrayColor();
45// }
46
47}