-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
535 additions
and
511 deletions.
There are no files selected for viewing
6 changes: 0 additions & 6 deletions
6
common/src/main/java/xaeroplus/event/DimensionSwitchEvent.java
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
common/src/main/java/xaeroplus/feature/extensions/GuiXaeroPlusOverlaySettings.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package xaeroplus.feature.extensions; | ||
|
||
import net.minecraft.client.gui.GuiGraphics; | ||
import net.minecraft.client.gui.screens.Screen; | ||
import net.minecraft.network.chat.Component; | ||
import xaero.map.gui.GuiSettings; | ||
import xaero.map.gui.ScreenSwitchSettingEntry; | ||
import xaeroplus.settings.SettingLocation; | ||
import xaeroplus.settings.Settings; | ||
|
||
public class GuiXaeroPlusOverlaySettings extends GuiSettings { | ||
public GuiXaeroPlusOverlaySettings(Screen parent, Screen escapeScreen) { | ||
super(Component.translatable("xaeroplus.gui.overlay_settings"), parent, escapeScreen); | ||
this.entries = Settings.REGISTRY.getWorldmapConfigSettingEntries(SettingLocation.OVERLAYS); | ||
} | ||
|
||
@Override | ||
public void render(GuiGraphics guiGraphics, int par1, int par2, float par3) { | ||
this.renderEscapeScreen(guiGraphics, par1, par2, par3); | ||
super.render(guiGraphics, par1, par2, par3); | ||
} | ||
|
||
public static ScreenSwitchSettingEntry getScreenSwitchSettingEntry(Screen parent) { | ||
return new ScreenSwitchSettingEntry( | ||
"xaeroplus.gui.overlay_settings", | ||
GuiXaeroPlusOverlaySettings::new, | ||
null, | ||
true | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.