Browse Source

Cover Tooltips for Cover Controller Cover Usage

Gregorius Techneticies 3 months ago
parent
commit
506e11e760
Signed by: Gregorius Techneticies <gregoriustech@gmail.com> GPG Key ID: 1B693EA14F2FD70F

+ 1
- 0
CHANGELOG.md View File

@@ -11,6 +11,7 @@ Nothing (I tend to only add finished Stuff to the Changelog).
11 11
 
12 12
 6.14.09: (Not released yet, happens whenever a Bugfix needs to be released, Bear is still testing GT6, while I'm working on my Game)
13 13
 [FIXED] Chainsaws used WAY too much durability for Treecapitation!
14
+[ADDED] Tooltip for Covers that can be controlled with the Cover Controller Cover. In case of Covers where the Cover Controller Cover is required (such as Shutter Cover), it will be Cyan instead of Dark Gray to make it easier to see.
14 15
 
15 16
 
16 17
 6.14.08:

+ 2
- 1
src/main/java/gregapi/cover/covers/AbstractCoverAttachmentLogistics.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -49,6 +49,7 @@ public abstract class AbstractCoverAttachmentLogistics extends AbstractCoverAtta
49 49
 	@Override
50 50
 	public void addToolTips(List<String> aList, ItemStack aStack, boolean aF3_H) {
51 51
 		super.addToolTips(aList, aStack, aF3_H);
52
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
52 53
 		if (usePriorities()) aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
53 54
 		if (useTargetStackSize()) aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CUTTER));
54 55
 	}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverConveyor.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -76,6 +76,7 @@ public class CoverConveyor extends AbstractCoverAttachment {
76 76
 	public void addToolTips(List<String> aList, ItemStack aStack, boolean aF3_H) {
77 77
 		super.addToolTips(aList, aStack, aF3_H);
78 78
 		aList.add(LH.Chat.CYAN + "Transfers a Stack every " + (mTiming==1?"Tick":mTiming+" Ticks"));
79
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
79 80
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
80 81
 	}
81 82
 	

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverDrain.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -185,6 +185,7 @@ public class CoverDrain extends AbstractCoverAttachment {
185 185
 		aList.add(LH.Chat.DGREEN + "Will collect XP Orbs to make Mob Essence");
186 186
 		if (MD.OB.mLoaded)
187 187
 		aList.add(LH.Chat.GREEN + "Stand on this and Sneak to drain your XP");
188
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
188 189
 	}
189 190
 	
190 191
 	@Override public boolean isOpaque(byte aSide, CoverData aData) {return T;}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverFilterFluid.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -53,6 +53,7 @@ public class CoverFilterFluid extends AbstractCoverAttachment {
53 53
 		if (tFluid != null && tFluid.getFluid() != null) aList.add(LH.Chat.CYAN + FL.name(tFluid, T));
54 54
 		aList.add(LH.Chat.ORANGE + "Not NBT sensitive!");
55 55
 		super.addToolTips(aList, aStack, aF3_H);
56
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
56 57
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
57 58
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_RESET_SOFT_HAMMER));
58 59
 	}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverFilterItem.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -48,6 +48,7 @@ public class CoverFilterItem extends AbstractCoverAttachment {
48 48
 		if (ST.valid(tStack)) aList.add(LH.Chat.CYAN + tStack.getDisplayName());
49 49
 		aList.add(LH.Chat.ORANGE + "Not NBT sensitive!");
50 50
 		super.addToolTips(aList, aStack, aF3_H);
51
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
51 52
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
52 53
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_RESET_SOFT_HAMMER));
53 54
 	}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverPressureValve.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -69,6 +69,7 @@ public class CoverPressureValve extends AbstractCoverAttachment {
69 69
 		aList.add(LH.Chat.CYAN + "Releases Fluids when Pipe is full.");
70 70
 		aList.add(LH.Chat.ORANGE + "Liquids require Tank in front!");
71 71
 		aList.add(LH.Chat.ORANGE + "Gasses require Air or Tank in front!");
72
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
72 73
 	}
73 74
 	
74 75
 	@Override public float[] getCoverBounds (byte aCoverSide, CoverData aData) {return BOXES_VALVES[aCoverSide];}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverPump.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -80,6 +80,7 @@ public class CoverPump extends AbstractCoverAttachment {
80 80
 		super.addToolTips(aList, aStack, aF3_H);
81 81
 		aList.add(LH.Chat.CYAN + "Transfers " + mThroughput + " L/sec");
82 82
 		aList.add(LH.Chat.ORANGE + "Doesn't do Fluid Blocks! Use Drain for that instead!");
83
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
83 84
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
84 85
 	}
85 86
 	

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverRetrieverItem.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -85,6 +85,7 @@ public class CoverRetrieverItem extends AbstractCoverAttachment {
85 85
 		if (ST.valid(tStack)) aList.add(LH.Chat.CYAN + tStack.getDisplayName());
86 86
 		aList.add(LH.Chat.ORANGE + "Not NBT sensitive!");
87 87
 		super.addToolTips(aList, aStack, aF3_H);
88
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
88 89
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
89 90
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_RESET_SOFT_HAMMER));
90 91
 	}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverRobotArm.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -103,6 +103,7 @@ public class CoverRobotArm extends AbstractCoverAttachment {
103 103
 		super.addToolTips(aList, aStack, aF3_H);
104 104
 		aList.add(LH.Chat.CYAN + "Transfers a Stack every " + (mTiming==1?"Tick from/to a specific Slot":mTiming+" Ticks from/to a specific Slot"));
105 105
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_MONKEY_WRENCH));
106
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
106 107
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
107 108
 	}
108 109
 	

+ 4
- 3
src/main/java/gregapi/cover/covers/CoverSelectorButtonPanel.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -95,8 +95,9 @@ public class CoverSelectorButtonPanel extends AbstractCoverAttachmentSelector {
95 95
 	@Override
96 96
 	public void addToolTips(List<String> aList, ItemStack aStack, boolean aF3_H) {
97 97
 		super.addToolTips(aList, aStack, aF3_H);
98
-		aList.add(LH.get(LH.TOOL_TO_CHANGE_DESIGN_CHISEL));
99
-		aList.add(LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
98
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_CHANGE_DESIGN_CHISEL));
99
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
100
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
100 101
 	}
101 102
 	
102 103
 	@Override public ITexture getCoverTextureSurface(byte aSide, CoverData aData) {return BlockTextureMulti.get(sTexturesBase[(aData.mVisuals[aSide] >> 4) & 7], sTextures[UT.Code.bind4(aData.mVisuals[aSide] & 15)]);}

+ 2
- 1
src/main/java/gregapi/cover/covers/CoverShutter.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2019 Gregorius Techneticies
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -43,6 +43,7 @@ public class CoverShutter extends AbstractCoverAttachment {
43 43
 	@Override
44 44
 	public void addToolTips(List<String> aList, ItemStack aStack, boolean aF3_H) {
45 45
 		super.addToolTips(aList, aStack, aF3_H);
46
+		aList.add(LH.Chat.CYAN + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
46 47
 		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_SCREWDRIVER));
47 48
 	}
48 49
 	

+ 1
- 0
src/main/java/gregapi/cover/covers/CoverVent.java View File

@@ -68,6 +68,7 @@ public class CoverVent extends AbstractCoverAttachment {
68 68
 	public void addToolTips(List<String> aList, ItemStack aStack, boolean aF3_H) {
69 69
 		super.addToolTips(aList, aStack, aF3_H);
70 70
 		if (MD.GC.mLoaded) aList.add(LH.Chat.ORANGE + "Doesn't work on other Planets!");
71
+		aList.add(LH.Chat.DGRAY + LH.get(LH.TOOL_TO_TOGGLE_CONTROLLER_COVER));
71 72
 	}
72 73
 	
73 74
 	@Override public boolean isOpaque(byte aSide, CoverData aData) {return T;}

+ 3
- 1
src/main/java/gregapi/data/LH.java View File

@@ -1,5 +1,5 @@
1 1
 /**
2
- * Copyright (c) 2020 GregTech-6 Team
2
+ * Copyright (c) 2021 GregTech-6 Team
3 3
  *
4 4
  * This file is part of GregTech.
5 5
  *
@@ -129,6 +129,7 @@ public class LH {
129 129
 	, TOOL_TO_TOGGLE_OUTPUTS_MONKEY_WRENCH = "gt.lang.use.monkey.wrench.to.toggle.outputs"
130 130
 	, TOOL_TO_TOGGLE_AUTO_INPUTS_MONKEY_WRENCH = "gt.lang.use.monkey.wrench.to.toggle.auto.inputs"
131 131
 	, TOOL_TO_TOGGLE_AUTO_OUTPUTS_MONKEY_WRENCH = "gt.lang.use.monkey.wrench.to.toggle.auto.outputs"
132
+	, TOOL_TO_TOGGLE_CONTROLLER_COVER = "gt.lang.use.controlcover.to.toggle"
132 133
 	, TOOL_TO_TOGGLE_SCREWDRIVER = "gt.lang.use.screwdriver.to.toggle"
133 134
 	, TOOL_TO_TOGGLE_MONKEY_WRENCH = "gt.lang.use.monkey.wrench.to.toggle"
134 135
 	, TOOL_TO_TOGGLE_CUTTER = "gt.lang.use.cutter.to.toggle"
@@ -433,6 +434,7 @@ public class LH {
433 434
 		add(COVER_TOOLTIP                               , "This Item can be used as Cover");
434 435
 		add(TOOL_TO_REMOVE_SHOVEL                       , "Use Shovel to empty this");
435 436
 		add(TOOL_TO_CHANGE_DESIGN_CHISEL                , "Use Chisel to change Design");
437
+		add(TOOL_TO_TOGGLE_CONTROLLER_COVER             , "Use Cover Controller Cover to toggle ON/OFF");
436 438
 		add(TOOL_TO_TOGGLE_SCREWDRIVER                  , "Use Screwdriver to toggle Modes");
437 439
 		add(TOOL_TO_TOGGLE_MONKEY_WRENCH                , "Use Monkey Wrench to toggle Modes");
438 440
 		add(TOOL_TO_TOGGLE_CUTTER                       , "Use Cutter to toggle Modes");

Loading…
Cancel
Save