Skip to content

Commit 5471567

Browse files
committed
Added More SeedMapperHelper Config Items
1 parent 84683dd commit 5471567

File tree

2 files changed

+168
-7
lines changed

2 files changed

+168
-7
lines changed

README.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,29 @@ I did not, nor could I copy their code directly as most are Meteor based mods. S
349349
- Toggles for various types of events
350350
- Toggles for debugging and ESP
351351

352-
### SeedMapperHelper
353-
- UI for [my fork](https://github.com/cev-api/SeedMapper-CevAPI) of [SeedMapper](https://github.com/xpple/SeedMapper/) which covers all settings except for debug/dev mode.
354-
- Supports ESP color settings so long as you're using [my SeedMapper fork](https://github.com/cev-api/SeedMapper-CevAPI)
355-
- Supports keybinds for all settings
356-
357-
![UI](https://i.imgur.com/4b5IA0u.png)
352+
### SeedMapperHelper
353+
- UI for [my fork](https://github.com/cev-api/SeedMapper-CevAPI) of [SeedMapper](https://github.com/xpple/SeedMapper/) which covers all settings except for debug/dev mode.
354+
- Supports ESP color settings so long as you're using [my SeedMapper fork](https://github.com/cev-api/SeedMapper-CevAPI)
355+
- Supports keybinds for all settings
356+
- Run `/sm:minimap` to open a live SeedMap minimap in the top-left corner of the HUD.
357+
- Use `/sm:minimap on/off` to explicitly control whether it is shown.
358+
- The minimap:
359+
- Renders the same features you selected on the main map.
360+
- Tracks your current position in real time.
361+
- Ideal for overlaying over Xaeros Minimap (See Screenshots).
362+
- Position & size:
363+
- Move it horizontally with `/sm:config SeedMapMinimapOffsetX`
364+
- Move it vertically with `/sm:config SeedMapMinimapOffsetY`
365+
- Change width with `/sm:config SeedMapMinimapWidth`
366+
- Change height with `/sm:config SeedMapMinimapHeight`
367+
- Can be resized to cover other minimaps if needed.
368+
- Display options:
369+
- Rotate the map with the player’s facing using `/sm:config SeedMapMinimapRotateWithPlayer`
370+
- Adjust zoom independently from the main map via `/sm:config SeedMapMinimapPixelsPerBiome`
371+
- Scale feature icons with `/sm:config SeedMapMinimapIconScale`
372+
- Fine tune the background opacity with `/sm:config SeedMapMinimapOpacity` without affecting icon readability.
373+
374+
![UI](https://i.imgur.com/4b5IA0u.png)
358375

359376
## What’s changed or improved in this fork?
360377

src/main/java/net/wurstclient/hacks/SeedMapperHelperHack.java

Lines changed: 145 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ public final class SeedMapperHelperHack extends Hack
8181
new ButtonSetting("Check SeedMapper status", this::reportStatus);
8282
private final ButtonSetting seedMapButton =
8383
new ButtonSetting("Open Seed Map UI", this::openSeedMapUi);
84+
private final ButtonSetting minimapButton =
85+
new ButtonSetting("Open SeedMap minimap", this::openSeedMapMinimap);
86+
private final ButtonSetting enableMinimapButton = new ButtonSetting(
87+
"Show SeedMap minimap", () -> setMinimapEnabled(true));
88+
private final ButtonSetting disableMinimapButton = new ButtonSetting(
89+
"Hide SeedMap minimap", () -> setMinimapEnabled(false));
8490
private final ButtonSetting clearOverlaysButton =
8591
new ButtonSetting("Clear overlays", this::clearOverlays);
8692
private final ButtonSetting checkSeedButton =
@@ -118,6 +124,41 @@ public final class SeedMapperHelperHack extends Hack
118124
"Seed map threads", 4, 1, 32, 1, ValueDisplay.INTEGER);
119125
private final ButtonSetting applySeedMapThreadsButton =
120126
new ButtonSetting("Apply SeedMapThreads", this::applySeedMapThreads);
127+
private final SliderSetting minimapOffsetXSetting = new SliderSetting(
128+
"Minimap X offset", 4, 0, 512, 1, ValueDisplay.INTEGER);
129+
private final ButtonSetting applyMinimapOffsetXButton = new ButtonSetting(
130+
"Apply SeedMapMinimapOffsetX", this::applyMinimapOffsetX);
131+
private final SliderSetting minimapOffsetYSetting = new SliderSetting(
132+
"Minimap Y offset", 4, 0, 512, 1, ValueDisplay.INTEGER);
133+
private final ButtonSetting applyMinimapOffsetYButton = new ButtonSetting(
134+
"Apply SeedMapMinimapOffsetY", this::applyMinimapOffsetY);
135+
private final SliderSetting minimapWidthSetting = new SliderSetting(
136+
"Minimap width", 205, 64, 512, 1, ValueDisplay.INTEGER);
137+
private final ButtonSetting applyMinimapWidthButton =
138+
new ButtonSetting("Apply SeedMapMinimapWidth", this::applyMinimapWidth);
139+
private final SliderSetting minimapHeightSetting = new SliderSetting(
140+
"Minimap height", 205, 64, 512, 1, ValueDisplay.INTEGER);
141+
private final ButtonSetting applyMinimapHeightButton = new ButtonSetting(
142+
"Apply SeedMapMinimapHeight", this::applyMinimapHeight);
143+
private final CheckboxSetting minimapRotateSetting =
144+
new CheckboxSetting("Rotate minimap with player", true);
145+
private final ButtonSetting applyMinimapRotateButton =
146+
new ButtonSetting("Apply SeedMapMinimapRotateWithPlayer",
147+
this::applyMinimapRotateWithPlayer);
148+
private final SliderSetting minimapPixelsPerBiomeSetting =
149+
new SliderSetting("Minimap pixels per biome", 4.0, 0.05, 150.0, 0.05,
150+
ValueDisplay.DECIMAL);
151+
private final ButtonSetting applyMinimapPixelsPerBiomeButton =
152+
new ButtonSetting("Apply SeedMapMinimapPixelsPerBiome",
153+
this::applyMinimapPixelsPerBiome);
154+
private final SliderSetting minimapIconScaleSetting = new SliderSetting(
155+
"Minimap icon scale", 1.0, 0.25, 4.0, 0.05, ValueDisplay.DECIMAL);
156+
private final ButtonSetting applyMinimapIconScaleButton = new ButtonSetting(
157+
"Apply SeedMapMinimapIconScale", this::applyMinimapIconScale);
158+
private final SliderSetting minimapOpacitySetting = new SliderSetting(
159+
"Minimap opacity", 1.0, 0.05, 1.0, 0.01, ValueDisplay.DECIMAL);
160+
private final ButtonSetting applyMinimapOpacityButton = new ButtonSetting(
161+
"Apply SeedMapMinimapOpacity", this::applyMinimapOpacity);
121162
private final SliderSetting pixelsPerBiomeSetting = new SliderSetting(
122163
"Pixels per biome", 6.0, 1.0, 32.0, 0.1, ValueDisplay.DECIMAL);
123164
private final ButtonSetting applyPixelsPerBiomeButton =
@@ -256,6 +297,10 @@ public SeedMapperHelperHack()
256297
addPossibleKeybind(".say /sm:stoptask",
257298
"SeedMapper: Stop locator tasks");
258299
addPossibleKeybind(".say /sm:seedmap", "SeedMapper: Open Seed Map UI");
300+
addPossibleKeybind(".say /sm:minimap on",
301+
"SeedMapper: Show minimap overlay");
302+
addPossibleKeybind(".say /sm:minimap off",
303+
"SeedMapper: Hide minimap overlay");
259304
addPossibleKeybind(".say /sm:seedcheck",
260305
"SeedMapper: Check current seed");
261306
addPossibleKeybind(".seedmapperhelper map",
@@ -291,6 +336,9 @@ public SeedMapperHelperHack()
291336

292337
addSetting(statusButton);
293338
addSetting(seedMapButton);
339+
addSetting(minimapButton);
340+
addSetting(enableMinimapButton);
341+
addSetting(disableMinimapButton);
294342
addSetting(clearOverlaysButton);
295343
addSetting(checkSeedButton);
296344
addSetting(seedCheckInputSetting);
@@ -307,6 +355,22 @@ public SeedMapperHelperHack()
307355
addSetting(applyClearSeedMapCachesButton);
308356
addSetting(seedMapThreadsSetting);
309357
addSetting(applySeedMapThreadsButton);
358+
addSetting(minimapOffsetXSetting);
359+
addSetting(applyMinimapOffsetXButton);
360+
addSetting(minimapOffsetYSetting);
361+
addSetting(applyMinimapOffsetYButton);
362+
addSetting(minimapWidthSetting);
363+
addSetting(applyMinimapWidthButton);
364+
addSetting(minimapHeightSetting);
365+
addSetting(applyMinimapHeightButton);
366+
addSetting(minimapRotateSetting);
367+
addSetting(applyMinimapRotateButton);
368+
addSetting(minimapPixelsPerBiomeSetting);
369+
addSetting(applyMinimapPixelsPerBiomeButton);
370+
addSetting(minimapIconScaleSetting);
371+
addSetting(applyMinimapIconScaleButton);
372+
addSetting(minimapOpacitySetting);
373+
addSetting(applyMinimapOpacityButton);
310374
addSetting(pixelsPerBiomeSetting);
311375
addSetting(applyPixelsPerBiomeButton);
312376
addSetting(toggledFeaturesSetting);
@@ -316,7 +380,8 @@ public SeedMapperHelperHack()
316380
addSetting(espTimeoutMinutesSetting);
317381
addSetting(applyEspTimeoutMinutesButton);
318382
addSection("SeedMapper commands", "General-purpose SeedMapper actions.",
319-
statusButton, seedMapButton, clearOverlaysButton, checkSeedButton,
383+
statusButton, seedMapButton, minimapButton, enableMinimapButton,
384+
disableMinimapButton, clearOverlaysButton, checkSeedButton,
320385
seedCheckInputSetting, applySeedInputButton, stopTaskButton,
321386
showCommandFeedbackSetting);
322387
addSection("SeedMapper config", "Convenience controls for /sm:config.",
@@ -329,6 +394,15 @@ public SeedMapperHelperHack()
329394
toggledFeaturesSetting, applyToggledFeaturesButton, devModeSetting,
330395
applyDevModeButton, espTimeoutMinutesSetting,
331396
applyEspTimeoutMinutesButton);
397+
addSection("SeedMap minimap", "Configure the in-game minimap overlay.",
398+
minimapOffsetXSetting, applyMinimapOffsetXButton,
399+
minimapOffsetYSetting, applyMinimapOffsetYButton,
400+
minimapWidthSetting, applyMinimapWidthButton, minimapHeightSetting,
401+
applyMinimapHeightButton, minimapRotateSetting,
402+
applyMinimapRotateButton, minimapPixelsPerBiomeSetting,
403+
applyMinimapPixelsPerBiomeButton, minimapIconScaleSetting,
404+
applyMinimapIconScaleButton, minimapOpacitySetting,
405+
applyMinimapOpacityButton);
332406

333407
addSetting(highlightModeSetting);
334408
addSetting(highlightBlockSetting);
@@ -474,6 +548,17 @@ public void openSeedMapUi()
474548
runSimpleCommand("sm:seedmap", "open the Seed Mapper UI");
475549
}
476550

551+
public void openSeedMapMinimap()
552+
{
553+
runSimpleCommand("sm:minimap", "open the SeedMap minimap");
554+
}
555+
556+
private void setMinimapEnabled(boolean enabled)
557+
{
558+
runSimpleCommand("sm:minimap " + (enabled ? "on" : "off"),
559+
(enabled ? "enable" : "disable") + " the SeedMap minimap");
560+
}
561+
477562
public void clearOverlays()
478563
{
479564
runSimpleCommand("sm:clear", "clear SeedMapper overlays");
@@ -772,6 +857,65 @@ private void applySeedMapThreads()
772857
"set SeedMapThreads");
773858
}
774859

860+
private void applyMinimapOffsetX()
861+
{
862+
int offset = minimapOffsetXSetting.getValueI();
863+
runSimpleCommand("sm:config SeedMapMinimapOffsetX set " + offset,
864+
"set SeedMapMinimapOffsetX");
865+
}
866+
867+
private void applyMinimapOffsetY()
868+
{
869+
int offset = minimapOffsetYSetting.getValueI();
870+
runSimpleCommand("sm:config SeedMapMinimapOffsetY set " + offset,
871+
"set SeedMapMinimapOffsetY");
872+
}
873+
874+
private void applyMinimapWidth()
875+
{
876+
int width = minimapWidthSetting.getValueI();
877+
runSimpleCommand("sm:config SeedMapMinimapWidth set " + width,
878+
"set SeedMapMinimapWidth");
879+
}
880+
881+
private void applyMinimapHeight()
882+
{
883+
int height = minimapHeightSetting.getValueI();
884+
runSimpleCommand("sm:config SeedMapMinimapHeight set " + height,
885+
"set SeedMapMinimapHeight");
886+
}
887+
888+
private void applyMinimapRotateWithPlayer()
889+
{
890+
runSimpleCommand(
891+
"sm:config SeedMapMinimapRotateWithPlayer set "
892+
+ minimapRotateSetting.isChecked(),
893+
"set SeedMapMinimapRotateWithPlayer");
894+
}
895+
896+
private void applyMinimapPixelsPerBiome()
897+
{
898+
double pixels = minimapPixelsPerBiomeSetting.getValue();
899+
runSimpleCommand("sm:config SeedMapMinimapPixelsPerBiome set "
900+
+ formatDouble(pixels), "set SeedMapMinimapPixelsPerBiome");
901+
}
902+
903+
private void applyMinimapIconScale()
904+
{
905+
double scale = minimapIconScaleSetting.getValue();
906+
runSimpleCommand(
907+
"sm:config SeedMapMinimapIconScale set " + formatDouble(scale),
908+
"set SeedMapMinimapIconScale");
909+
}
910+
911+
private void applyMinimapOpacity()
912+
{
913+
double opacity = minimapOpacitySetting.getValue();
914+
runSimpleCommand(
915+
"sm:config SeedMapMinimapOpacity set " + formatDouble(opacity),
916+
"set SeedMapMinimapOpacity");
917+
}
918+
775919
private void applyPixelsPerBiome()
776920
{
777921
double pixels = pixelsPerBiomeSetting.getValue();

0 commit comments

Comments
 (0)