Tweaked the indicator positions
This commit is contained in:
@@ -23,7 +23,7 @@ import com.replaymod.core.events.PostRenderCallback;
|
|||||||
public class FullBrightness extends EventRegistrations implements Extra {
|
public class FullBrightness extends EventRegistrations implements Extra {
|
||||||
private ReplayModReplay module;
|
private ReplayModReplay module;
|
||||||
|
|
||||||
private final IGuiImage indicator = new GuiImage().setTexture(ReplayMod.TEXTURE, 90, 20, 19, 13).setSize(19, 13);
|
private final IGuiImage indicator = new GuiImage().setTexture(ReplayMod.TEXTURE, 90, 20, 19, 16).setSize(19, 16);
|
||||||
|
|
||||||
private MinecraftClient mc;
|
private MinecraftClient mc;
|
||||||
private boolean active;
|
private boolean active;
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ public class QuickMode extends EventRegistrations implements Extra {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateIndicator(GuiReplayOverlay overlay) {
|
private void updateIndicator(GuiReplayOverlay overlay) {
|
||||||
System.out.println("QuickMode::updateIndicator; active=" + (active ? "T" : "F"));
|
|
||||||
if (active) {
|
if (active) {
|
||||||
overlay.statusIndicatorPanel.addElements(new HorizontalLayout.Data(2), indicator);
|
overlay.statusIndicatorPanel.addElements(new HorizontalLayout.Data(2), indicator);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class GuiReplayOverlay extends AbstractGuiOverlay<GuiReplayOverlay> {
|
|||||||
* This is not used by the replay module itself but may be used by other modules/extras to show
|
* This is not used by the replay module itself but may be used by other modules/extras to show
|
||||||
* when they're active.
|
* when they're active.
|
||||||
*/
|
*/
|
||||||
public final GuiPanel statusIndicatorPanel = new GuiPanel(this).setSize(100, 20)
|
public final GuiPanel statusIndicatorPanel = new GuiPanel(this).setSize(100, 16)
|
||||||
.setLayout(new HorizontalLayout(HorizontalLayout.Alignment.RIGHT).setSpacing(5));
|
.setLayout(new HorizontalLayout(HorizontalLayout.Alignment.RIGHT).setSpacing(5));
|
||||||
|
|
||||||
private final EventHandler eventHandler = new EventHandler();
|
private final EventHandler eventHandler = new EventHandler();
|
||||||
@@ -78,7 +78,7 @@ public class GuiReplayOverlay extends AbstractGuiOverlay<GuiReplayOverlay> {
|
|||||||
pos(topPanel, 10, 10);
|
pos(topPanel, 10, 10);
|
||||||
size(topPanel, width - 20, 20);
|
size(topPanel, width - 20, 20);
|
||||||
|
|
||||||
pos(statusIndicatorPanel, width / 2, height - 25);
|
pos(statusIndicatorPanel, width / 2, height - 21);
|
||||||
width(statusIndicatorPanel, width / 2 - 5);
|
width(statusIndicatorPanel, width / 2 - 5);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user