Skip to content

Commit

Permalink
Adds ModMenu integration. Fixes #294
Browse files Browse the repository at this point in the history
  • Loading branch information
tyra314 committed Jan 10, 2021
1 parent 6c259ff commit f85a7c2
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package hunternif.mc.impl.atlas.client;

import hunternif.mc.impl.atlas.AntiqueAtlasConfig;
import io.github.prospector.modmenu.api.ConfigScreenFactory;
import io.github.prospector.modmenu.api.ModMenuApi;
import me.sargunvohra.mcmods.autoconfig1u.AutoConfig;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;

@Environment(EnvType.CLIENT)
public class AntiqueAtlasModMenu implements ModMenuApi {
@Override
public ConfigScreenFactory<?> getModConfigScreenFactory() {
return parent -> AutoConfig.getConfigScreen(AntiqueAtlasConfig.class, parent).get();
}
}
53 changes: 50 additions & 3 deletions src/main/resources/assets/antiqueatlas/lang/de_de.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

"gui.antiqueatlas.export.opening": "Öffne Datei-Dialogfeld...",
"gui.antiqueatlas.export.selectFile": "Wähle PNG-Datei zum Speichern aus",
"gui.antiqueatlas.export.tooLarge": "Sorry! Das Bild ist zu groß zum Rendern. Versuch die Java-Heap-Größe zu erhöhen.",
"gui.antiqueatlas.export.tooLarge": "Entschuldigung! Das Bild ist zu groß zum Rendern. Versuche die Java-Heap-Größe zu erhöhen.",

"gui.antiqueatlas.export.setup": "Starte...",
"gui.antiqueatlas.export.rendering": "Rendere...",
Expand All @@ -31,5 +31,52 @@

"gui.antiqueatlas.export.rendering.background": "Rendere Kartenhintergrund",
"gui.antiqueatlas.export.rendering.map": "Rendere Kartenabschnitte",
"gui.antiqueatlas.export.rendering.markers": "Rendere Markierungen"
}
"gui.antiqueatlas.export.rendering.markers": "Rendere Markierungen",

"key.openatlas.desc": "Atlas öffnen",
"key.antiqueatlas.category": "Antique Atlas",

"text.autoconfig.antiqueatlas.category.gameplay": "Spielweise",
"text.autoconfig.antiqueatlas.category.userInterface": "Benutzeroberfläche",
"text.autoconfig.antiqueatlas.category.performance": "Leistung",
"text.autoconfig.antiqueatlas.category.overlayPosition": "Position der Minimap",
"text.autoconfig.antiqueatlas.category.overlayAppearance": "Erscheinungsbild der Minimap",

"text.autoconfig.antiqueatlas.option.doSaveBrowsingPos": "Speichere Position im Atlas",
"text.autoconfig.antiqueatlas.option.autoDeathMarker": "Todesmarkierungen",
"text.autoconfig.antiqueatlas.option.autoVillageMarkers": "Markierungen für Dörfer",
"text.autoconfig.antiqueatlas.option.autoNetherPortalMarkers": "Markierungen für Nether Portale",
"text.autoconfig.antiqueatlas.option.itemNeeded": "Atlas wird benötigt",

"text.autoconfig.antiqueatlas.option.doScaleMarkers": "Skaliere Markierungen",
"text.autoconfig.antiqueatlas.option.defaultScale": "Standard Zoomfaktor",
"text.autoconfig.antiqueatlas.option.minScale": "Minimaler Zoomfaktor",
"text.autoconfig.antiqueatlas.option.maxScale": "Maximaler Zoomfaktor",
"text.autoconfig.antiqueatlas.option.doReverseWheelZoom": "Invertierter Mausrad zoom",

"text.autoconfig.antiqueatlas.option.scanRadius": "Abtastradius",
"text.autoconfig.antiqueatlas.option.forceChunkLoading": "Erzwinge Laden von Chunks",
"text.autoconfig.antiqueatlas.option.newScanInterval": "Abtastinterval",
"text.autoconfig.antiqueatlas.option.doRescan": "Erneut Abtasten",
"text.autoconfig.antiqueatlas.option.rescanRate": "Abtastzeit",
"text.autoconfig.antiqueatlas.option.markerLimit": "Limit für Markierungen",
"text.autoconfig.antiqueatlas.option.doScanPonds": "Suche nach Wasserbecken",
"text.autoconfig.antiqueatlas.option.doScanRavines": "Suche nach Schluchten",
"text.autoconfig.antiqueatlas.option.debugRender": "Debug rendering",

"text.autoconfig.antiqueatlas.option.alignRight": "Rechtsbündig anordnen",
"text.autoconfig.antiqueatlas.option.alignBottom": "Unten anordnen",
"text.autoconfig.antiqueatlas.option.xPosition": "Horizontale Position",
"text.autoconfig.antiqueatlas.option.yPosition": "Vertikale Position",
"text.autoconfig.antiqueatlas.option.width": "Breite",
"text.autoconfig.antiqueatlas.option.height": "Höhe",

"text.autoconfig.antiqueatlas.option.tileSize": "Größe einer Kachel",
"text.autoconfig.antiqueatlas.option.markerSize": "Größe einer Markierung",
"text.autoconfig.antiqueatlas.option.playerIconWidth": "Beite des Spielericons",
"text.autoconfig.antiqueatlas.option.playerIconHeight": "Höhe des Spielericons",
"text.autoconfig.antiqueatlas.option.borderX": "Horizontale Breite des Randes",
"text.autoconfig.antiqueatlas.option.borderY": "Vertikale Breite des Randes",
"text.autoconfig.antiqueatlas.option.requiresHold": "Atlas muss gehalten werden",
"text.autoconfig.antiqueatlas.option.enabled": "Aktiviert"
}
48 changes: 46 additions & 2 deletions src/main/resources/assets/antiqueatlas/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,49 @@
"gui.antiqueatlas.export.rendering.markers": "Rendering markers",

"key.openatlas.desc": "Open Atlas",
"key.antiqueatlas.category": "Antique Atlas"
}
"key.antiqueatlas.category": "Antique Atlas",

"text.autoconfig.antiqueatlas.category.gameplay": "Gameplay",
"text.autoconfig.antiqueatlas.category.userInterface": "User Interface",
"text.autoconfig.antiqueatlas.category.performance": "Performance",
"text.autoconfig.antiqueatlas.category.overlayPosition": "Minimap Position",
"text.autoconfig.antiqueatlas.category.overlayAppearance": "Minimap Appearance",

"text.autoconfig.antiqueatlas.option.doSaveBrowsingPos": "Save atlas position",
"text.autoconfig.antiqueatlas.option.autoDeathMarker": "Death marker",
"text.autoconfig.antiqueatlas.option.autoVillageMarkers": "Village marker",
"text.autoconfig.antiqueatlas.option.autoNetherPortalMarkers": "Nether portal marker",
"text.autoconfig.antiqueatlas.option.itemNeeded": "Atlas required for usage",

"text.autoconfig.antiqueatlas.option.doScaleMarkers": "Scale markers",
"text.autoconfig.antiqueatlas.option.defaultScale": "Default zoom level",
"text.autoconfig.antiqueatlas.option.minScale": "Minimum zoom level",
"text.autoconfig.antiqueatlas.option.maxScale": "Maximum zoom level",
"text.autoconfig.antiqueatlas.option.doReverseWheelZoom": "Reversed mouse wheel zoom",

"text.autoconfig.antiqueatlas.option.scanRadius": "Scan radius",
"text.autoconfig.antiqueatlas.option.forceChunkLoading": "Force chunk loading",
"text.autoconfig.antiqueatlas.option.newScanInterval": "Scan interval",
"text.autoconfig.antiqueatlas.option.doRescan": "Rescan",
"text.autoconfig.antiqueatlas.option.rescanRate": "Rescan rate",
"text.autoconfig.antiqueatlas.option.markerLimit": "Marker limit",
"text.autoconfig.antiqueatlas.option.doScanPonds": "Scan for ponds",
"text.autoconfig.antiqueatlas.option.doScanRavines": "Scan for ravines",
"text.autoconfig.antiqueatlas.option.debugRender": "Debug rendering",

"text.autoconfig.antiqueatlas.option.alignRight": "Align to the right",
"text.autoconfig.antiqueatlas.option.alignBottom": "Align to the bottom",
"text.autoconfig.antiqueatlas.option.xPosition": "Horizontal position",
"text.autoconfig.antiqueatlas.option.yPosition": "Vertical position",
"text.autoconfig.antiqueatlas.option.width": "Width",
"text.autoconfig.antiqueatlas.option.height": "Height",

"text.autoconfig.antiqueatlas.option.tileSize": "Size of a tile",
"text.autoconfig.antiqueatlas.option.markerSize": "Size of a marker",
"text.autoconfig.antiqueatlas.option.playerIconWidth": "Player icon width",
"text.autoconfig.antiqueatlas.option.playerIconHeight": "Player icon height",
"text.autoconfig.antiqueatlas.option.borderX": "Horizontal border width",
"text.autoconfig.antiqueatlas.option.borderY": "Vertical border width",
"text.autoconfig.antiqueatlas.option.requiresHold": "Atlas holding required",
"text.autoconfig.antiqueatlas.option.enabled": "Enabled"
}
3 changes: 3 additions & 0 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
],
"client": [
"hunternif.mc.impl.atlas.AntiqueAtlasModClient"
],
"modmenu": [
"hunternif.mc.impl.atlas.client.AntiqueAtlasModMenu"
]
},
"environment": "*",
Expand Down

3 comments on commit f85a7c2

@SylisMC
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the best way to go about adding this to the game files? should I just do it manually in the jar file? or is there a compiled jar hiding somewhere?

@tyra314
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be part of the next release, though I can't tell when that will be. The easiest way to get your hands on the jar, for now, is using the one generated by the CI.

Go here and open the artifact, which will contain the jar file.

@SylisMC
Copy link

@SylisMC SylisMC commented on f85a7c2 Jan 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! thanks, Is bug-testing relevant for this version? or would you prefer I wait for its official release?
thank you for all your hard work.

Please sign in to comment.