Skip to content

Commit

Permalink
v9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
irnsght committed Oct 10, 2021
1 parent 4a5e1eb commit 2bdac2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 51 deletions.
16 changes: 10 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 0 additions & 44 deletions src/me/iron/WarpSpace/Mod/taswin/WarpSpaceMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,48 +133,4 @@ public void onEvent(StarCreationAttemptEvent event)
}
}, instance);
}

private static void addMiniMapListener(StarMod instance) {
StarLoader.registerListener(HudCreateEvent.class, new Listener<HudCreateEvent>()
{
@Override
public void onEvent(HudCreateEvent event)
{
HudIndicatorOverlay indicatorOverlay = event.getHud().getIndicator();
List<AbstractSceneNode> 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 "<Tutorial>";
}
if (((GameClientState) radar.getState()).getPlayer().isInPersonalSector()) {
return Lng.str("<Personal>");
}
if (((GameClientState) radar.getState()).getPlayer().isInTestSector()) {
return Lng.str("<Test>");
}
if (WarpManager.IsInWarp(((GameClientState) radar.getState()).getPlayer().getCurrentSector()))
{
return Lng.str("<Warp>\n" + WarpManager.GetRealSpacePos(((GameClientState) radar.getState()).getPlayer().getCurrentSector()).toStringPure());
}
return ((GameClientState) radar.getState()).getPlayer().getCurrentSector().toStringPure();
}
});


}
}, instance);
}
}
2 changes: 1 addition & 1 deletion src/mod.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 2bdac2b

Please sign in to comment.