1package com.fs.starfarer.api.impl.campaign.intel.events;
5import com.fs.starfarer.api.Global;
6import com.fs.starfarer.api.ui.TooltipMakerAPI;
7import com.fs.starfarer.api.ui.TooltipMakerAPI.TooltipCreator;
8import com.fs.starfarer.api.util.Misc;
35 public void createTooltip(
TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
39 tooltip.
addPara(
"Actions that postpone a crisis often have unintended consequences and "
40 +
"cause their own problems in the long run. Ultimately, crises can not be avoided, "
41 +
"and must instead be dealt with and exploited for the opportunities they provide.", 0f);
44 tooltip.
addPara(
"Will contribute %s of the points per month to event progress, and will "
45 +
"also increase the value that progress is reset to after a crisis.", opad, h,
48 tooltip.
addPara(
"Points remaining: %s", opad, h,
"" + p);
57 return super.getProgressStr(intel);
66 if (amt <= 0 && p > 0) {
static SettingsAPI getSettings()
boolean shouldShow(BaseEventIntel intel)
TooltipCreator getMainRowTooltip(final BaseEventIntel intel)
String getProgressStr(BaseEventIntel intel)
String getDesc(BaseEventIntel intel)
Color getDescColor(BaseEventIntel intel)
int getProgress(BaseEventIntel intel)
static Color getTextColor()
static Color getGrayColor()
static Color getHighlightColor()
float getFloat(String key)