Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed Jan 4, 2024
1 parent a431f73 commit 6fe7135
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The content will be truncated if too long (configurable).

## Configuration

You can now configure **I've Spoken** by editing the configuration file at `/config/ive_spoken.toml`. You shall restart the game in order to reload the configurations.
You can now configure **I've Spoken** by editing the configuration file at `/config/ivespoken.toml`. You shall restart the game in order to reload the configurations.

## License

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ loader_version = 0.14.22

mod_version = 2.0.0
maven_group = net.krlite
archives_base_name = ive_spoken
archives_base_name = ivespoken

# Dependencies
fabric_version = 0.83.0+1.20
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package net.krlite.ive_spoken;
package net.krlite.ivespoken;

import com.google.common.collect.ImmutableMap;
import com.mojang.blaze3d.systems.RenderSystem;
import net.fabricmc.api.ModInitializer;
import net.krlite.ive_spoken.config.IveSpokenConfig;
import net.krlite.ivespoken.config.IveSpokenConfig;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.font.TextRenderer;
import net.minecraft.client.network.AbstractClientPlayerEntity;
Expand All @@ -24,7 +24,7 @@
import java.util.UUID;

public class IveSpoken implements ModInitializer {
public static final String NAME = "I've Spoken", ID = "ive_spoken";
public static final String NAME = "I've Spoken", ID = "ivespoken";
public static final Logger LOGGER = LoggerFactory.getLogger(ID);

public static final IveSpokenConfig CONFIG = new IveSpokenConfig();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.krlite.ive_spoken;
package net.krlite.ivespoken;

import net.minecraft.text.Text;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package net.krlite.ive_spoken.config;
package net.krlite.ivespoken.config;

import net.fabricmc.loader.api.FabricLoader;
import net.krlite.ivespoken.IveSpoken;
import net.krlite.pierced.annotation.Silent;
import net.krlite.pierced.config.Pierced;

import java.io.File;

public class IveSpokenConfig extends Pierced {
private static final @Silent File file = FabricLoader.getInstance().getConfigDir().resolve("ive_spoken.toml").toFile();
private static final @Silent File file = FabricLoader.getInstance().getConfigDir().resolve(IveSpoken.ID + ".toml").toFile();

public IveSpokenConfig() {
super(IveSpokenConfig.class, file);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package net.krlite.ive_spoken.config.modmenu;
package net.krlite.ivespoken.config.modmenu;

import me.shedaniel.clothconfig2.api.ConfigBuilder;
import me.shedaniel.clothconfig2.api.ConfigCategory;
import me.shedaniel.clothconfig2.api.ConfigEntryBuilder;
import net.krlite.ive_spoken.IveSpoken;
import net.krlite.ivespoken.IveSpoken;
import net.minecraft.client.gui.screen.Screen;

public class IveSpokenConfigScreen {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.krlite.ive_spoken.config.modmenu;
package net.krlite.ivespoken.config.modmenu;

import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.krlite.ive_spoken.mixin;
package net.krlite.ivespoken.mixin;

import net.krlite.ive_spoken.IveSpoken;
import net.krlite.ivespoken.IveSpoken;
import net.minecraft.client.gui.hud.ChatHud;
import net.minecraft.client.gui.hud.MessageIndicator;
import net.minecraft.network.message.MessageSignatureData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.krlite.ive_spoken.mixin;
package net.krlite.ivespoken.mixin;

import net.krlite.ive_spoken.IveSpoken;
import net.krlite.ivespoken.IveSpoken;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.entity.EntityRenderer;
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/assets/ive_spoken/lang/en_us.json

This file was deleted.

6 changes: 0 additions & 6 deletions src/main/resources/assets/ive_spoken/lang/zh_cn.json

This file was deleted.

6 changes: 6 additions & 0 deletions src/main/resources/assets/ivespoken/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"screen.ivespoken.config": "I've Spoken",

"config.ivespoken.general.lasting_time": "Dialog Lasting Time (ms)",
"config.ivespoken.general.max_width": "Max Dialog Width (pixels)"
}
6 changes: 6 additions & 0 deletions src/main/resources/assets/ivespoken/lang/zh_cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"screen.ivespoken.config": "I've Spoken",

"config.ivespoken.general.lasting_time": "对话框显示时间(毫秒)",
"config.ivespoken.general.max_width": "对话框最大宽度(像素)"
}
14 changes: 7 additions & 7 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"schemaVersion": 1,
"id": "ive_spoken",
"id": "ivespoken",
"version": "${version}",

"name": "I've Spoken",
"description": "Displays RPG-Like Dialogs Beyond Players' Names. I've Spoken.",
"description": "Displays RPG-like dialogs above players' names. I've spoken.",
"authors": [
"KrLite"
],
"contact": {
"homepage": "https://github.com/KrLite",
"sources": "https://github.com/KrLite/Ive-Spoken"
"sources": "https://github.com/KrLite/Mod.Ive-Spoken"
},

"license": "GPL-3.0",
"icon": "assets/ive_spoken/icon.png",
"icon": "assets/ivespoken/icon.png",

"environment": "client",
"entrypoints": {
"main": [
"net.krlite.ive_spoken.IveSpoken"
"net.krlite.ivespoken.IveSpoken"
],
"modmenu": [
"net.krlite.ive_spoken.config.modmenu.IveSpokenModMenuImpl"
"net.krlite.ivespoken.config.modmenu.IveSpokenModMenuImpl"
]
},
"mixins": [
"ive_spoken.mixins.json"
"ivespoken.mixins.json"
],

"depends": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "net.krlite.ive_spoken.mixin",
"package": "net.krlite.ivespoken.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
],
Expand Down

0 comments on commit 6fe7135

Please sign in to comment.