Tooltip refactoring

This commit is contained in:
drcrazy 2020-11-10 18:38:25 +03:00
parent 67d82dfc66
commit b460e0791e
4 changed files with 36 additions and 111 deletions

View file

@ -49,7 +49,7 @@ public class ToolTipAssistUtils {
public static List<Text> getUpgradeStats(TRContent.Upgrades upgradeType, int count, boolean shiftHeld) {
List<Text> tips = new ArrayList<>();
boolean shouldStackCalculate = true;
boolean shouldStackCalculate = count > 1;
switch (upgradeType) {
case OVERCLOCKER:
@ -69,7 +69,7 @@ public class ToolTipAssistUtils {
// Add reminder that they can use shift to calculate the entire stack
if (shouldStackCalculate && !shiftHeld) {
tips.add(new LiteralText(instructColour + I18n.translate("techreborn.tooltip.more_info")));
tips.add(new LiteralText(instructColour + I18n.translate("techreborn.tooltip.stack_info")));
}
return tips;
@ -88,7 +88,7 @@ public class ToolTipAssistUtils {
String[] infoLines = info.split("\\r?\\n");
for (String infoLine : infoLines) {
list.add(new LiteralText(infoColour + infoLine));
list.add(1, new LiteralText(infoColour + infoLine));
}
} else {
list.add(new LiteralText(instructColour + I18n.translate("techreborn.tooltip.more_info")));