Skip to content

Commit

Permalink
1.20.1 update without Omega Config GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Draylar committed Jul 1, 2023
1 parent 505d3e7 commit 5f19348
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 321 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ allprojects {
// Main project depends on the base & gui module for testing
dependencies {
implementation project(path: ":omega-config-base", configuration: "namedElements")
implementation project(path: ":omega-config-gui", configuration: "namedElements")

afterEvaluate {
testmodImplementation sourceSets.main.output
Expand Down
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G

# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
loader_version=0.14.14
fabric_version=0.75.1+1.19.2
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.9
loader_version=0.14.21
fabric_version=0.84.0+1.20.1

# Mod Properties
mod_version=1.3.0
mod_version=1.4.0
maven_group=dev.draylar
archives_base_name=omega-config

modmenu_version=3.0.1
modmenu_version=7.1.0
29 changes: 0 additions & 29 deletions omega-config-gui/build.gradle

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
33 changes: 0 additions & 33 deletions omega-config-gui/src/main/resources/fabric.mod.json

This file was deleted.

14 changes: 0 additions & 14 deletions omega-config-gui/src/main/resources/omega-config-gui.mixins.json

This file was deleted.

3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ pluginManagement {

rootProject.name = 'omega-config'

include 'omega-config-base'
include 'omega-config-gui'
include 'omega-config-base'
11 changes: 5 additions & 6 deletions src/testmod/java/draylar/omegatest/OmegaTestClient.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
package draylar.omegatest;

import draylar.omegaconfiggui.OmegaConfigGui;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.font.TextRenderer;
import net.minecraft.text.Text;

public class OmegaTestClient implements ClientModInitializer {

@Override
public void onInitializeClient() {
OmegaConfigGui.registerConfigScreen(OmegaTestMain.CONFIG);

HudRenderCallback.EVENT.register((stack, delta) -> {
MinecraftClient.getInstance().textRenderer.draw(stack, Text.literal(String.valueOf(OmegaTestMain.CONFIG.v)), 15, 15, 0xffffff);
MinecraftClient.getInstance().textRenderer.draw(stack, Text.literal(String.valueOf(OmegaTestMain.CONFIG.doubleTest)), 15, 30, 0xffffff);
HudRenderCallback.EVENT.register((context, delta) -> {
TextRenderer tr = MinecraftClient.getInstance().textRenderer;
context.drawText(tr, Text.literal(String.valueOf(OmegaTestMain.CONFIG.v)), 15, 15, 0xffffff, true);
context.drawText(tr, Text.literal(String.valueOf(OmegaTestMain.CONFIG.doubleTest)), 15, 25, 0xffffff, true);
});
}
}

0 comments on commit 5f19348

Please sign in to comment.