48 Color tc = Misc.getTextColor();
50 if (biggest !=
null) {
54 info.addRowWithGlow(Alignment.LMID, tc,
" Increased defenses",
58 public void createTooltip(TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
60 tooltip.addPara(
"Based on the size and stability of the largest colony "
61 +
"under your control. If multiple colonies have the same size, the one with higher "
62 +
"stability is used.", 0f);
64 if (biggest !=
null && biggest.getStarSystem() !=
null) {
65 tooltip.addPara(
"Biggest colony: %s, size: %s, stability: %s", opad, Misc.getHighlightColor(),
67 "" + biggest.getSize(),
68 "" + (
int) biggest.getStabilityValue());
69 float w = tooltip.getWidthSoFar();
70 float h2 = Math.round(w / 1.6f);
71 tooltip.addSectorMap(w, h2, biggest.getStarSystem(), opad);
75 info.addTooltipToAddedRow(t, TooltipLocation.RIGHT,
false);
80 if (mil !=
null && mil.hasFunctionalIndustry(Industries.HIGHCOMMAND)) {
81 info.addRowWithGlow(Alignment.LMID, tc,
" High Command",
83 }
else if (Misc.isMilitary(mil)) {
84 info.addRowWithGlow(Alignment.LMID, tc,
" Military base",
86 }
else if (mil !=
null && mil.hasFunctionalIndustry(Industries.PATROLHQ)) {
87 info.addRowWithGlow(Alignment.LMID, tc,
" Patrol HQ",
90 info.addRowWithGlow(Alignment.LMID, Misc.getGrayColor(),
" Military infrastructure",
95 public void createTooltip(TooltipMakerAPI tooltip,
boolean expanded, Object tooltipParam) {
97 tooltip.addPara(
"Based on the size the largest colony under your control that has a Patrol HQ, "
98 +
"a Military Base, or a High Command.", 0f);
100 tooltip.addPara(
"A Patrol HQ reduces monthly progress by %s points. A Military Base and a High Command "
101 +
"reduce progress by %s and %s the colony's size, respectively. Only the highest-scoring colony is used, "
102 +
"building multiple military bases has no effect.", opad, Misc.getHighlightColor(),
108 if (mil !=
null && mil.getStarSystem() !=
null) {
111 tooltip.addPara(
"Best military colony: %s, size: %s, score: %s points", opad, Misc.getHighlightColor(),
115 float w = tooltip.getWidthSoFar();
116 float h2 = Math.round(w / 1.6f);
117 tooltip.addSectorMap(w, h2, mil.getStarSystem(), opad);
122 info.addTooltipToAddedRow(t, TooltipLocation.RIGHT,
false);