From 2bdac2b4f10eacdd55f5e54c509af811f8925947 Mon Sep 17 00:00:00 2001 From: irnsght Date: Sun, 10 Oct 2021 14:00:13 +0200 Subject: [PATCH] v9.9 --- .idea/workspace.xml | 16 ++++--- .../WarpSpace/Mod/taswin/WarpSpaceMap.java | 44 ------------------- src/mod.json | 2 +- 3 files changed, 11 insertions(+), 51 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ef9f9fa..a999b63 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -33,13 +33,9 @@ - - - - @@ -304,7 +307,8 @@ - diff --git a/src/me/iron/WarpSpace/Mod/taswin/WarpSpaceMap.java b/src/me/iron/WarpSpace/Mod/taswin/WarpSpaceMap.java index b94c26f..1e1bddf 100644 --- a/src/me/iron/WarpSpace/Mod/taswin/WarpSpaceMap.java +++ b/src/me/iron/WarpSpace/Mod/taswin/WarpSpaceMap.java @@ -133,48 +133,4 @@ public void onEvent(StarCreationAttemptEvent event) } }, instance); } - - private static void addMiniMapListener(StarMod instance) { - StarLoader.registerListener(HudCreateEvent.class, new Listener() - { - @Override - public void onEvent(HudCreateEvent event) - { - HudIndicatorOverlay indicatorOverlay = event.getHud().getIndicator(); - List childs = indicatorOverlay.getChilds(); - //GUITextOverlay indicatorGUIOverlay = (GUITextOverlay)(indicatorOverlay.getChilds().get(1)); - //indicatorGUIOverlay.setTextSimple(new Object() { - // @Override - // public String toString() { - // return "uwu"; - // } - //}); - - //handle radar - final Radar radar = event.getHud().getRadar(); - GUITextOverlay guiTextOverlay = (GUITextOverlay)(radar.getChilds().get(1)); - guiTextOverlay.setTextSimple(new Object() { - @Override - public String toString() { - if (((GameClientState) radar.getState()).getPlayer().isInTutorial()) { - return ""; - } - if (((GameClientState) radar.getState()).getPlayer().isInPersonalSector()) { - return Lng.str(""); - } - if (((GameClientState) radar.getState()).getPlayer().isInTestSector()) { - return Lng.str(""); - } - if (WarpManager.IsInWarp(((GameClientState) radar.getState()).getPlayer().getCurrentSector())) - { - return Lng.str("\n" + WarpManager.GetRealSpacePos(((GameClientState) radar.getState()).getPlayer().getCurrentSector()).toStringPure()); - } - return ((GameClientState) radar.getState()).getPlayer().getCurrentSector().toStringPure(); - } - }); - - - } - }, instance); - } } \ No newline at end of file diff --git a/src/mod.json b/src/mod.json index 7a25dee..5c31b36 100644 --- a/src/mod.json +++ b/src/mod.json @@ -1,7 +1,7 @@ { "name": "WarpSpace", "author": "IR0NSIGHT", - "description": "an alternative FTL system - dev", + "description": "an alternative FTL system", "version": "0.9.9", "starmade_version": "dev - v0.202.108", "client_mod": false,