Starsector API
Loading...
Searching...
No Matches
HTScanFactor.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.intel.events.ht;
2
3import com.fs.starfarer.api.impl.campaign.intel.events.BaseEventIntel;
4import com.fs.starfarer.api.impl.campaign.intel.events.BaseFactorTooltip;
5import com.fs.starfarer.api.impl.campaign.intel.events.BaseOneTimeFactor;
6import com.fs.starfarer.api.ui.TooltipMakerAPI;
7import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
8import com.fs.starfarer.api.util.Misc;
9
10public class HTScanFactor extends BaseOneTimeFactor {
11
12 protected String desc;
13
14 public HTScanFactor(String desc, int points) {
15 super(points);
16 this.desc = desc;
17 }
18
19 @Override
20 public String getDesc(BaseEventIntel intel) {
21 return desc;
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("An %s of the right entity or location can provide insight into the "
30 + "topography of surrounding hyperspace. The target usually needs to be "
31 + "massive enough to produce a significant gravity well, produce a high energy "
32 + "discharge, or be exotic or unusual in some other way.",
33 0f, Misc.getHighlightColor(), "Active Sensor Burst");
34 }
35
36 };
37 }
38
39}