-
Notifications
You must be signed in to change notification settings - Fork 1
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
20 changed files
with
125 additions
and
37 deletions.
There are no files selected for viewing
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
23 changes: 23 additions & 0 deletions
23
common/src/main/java/com/wulian/chatimpressiveanimation/config/ModConfigs.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,23 @@ | ||
package com.wulian.chatimpressiveanimation.config; | ||
|
||
import com.wulian.chatimpressiveanimation.ChatImpressiveAnimation; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import me.shedaniel.autoconfig.ConfigData; | ||
import me.shedaniel.autoconfig.annotation.Config; | ||
import me.shedaniel.autoconfig.serializer.GsonConfigSerializer; | ||
import net.minecraft.client.gui.screen.Screen; | ||
|
||
@Config(name = ChatImpressiveAnimation.MOD_ID) | ||
public class ModConfigs implements ConfigData { | ||
public boolean enableOpenChatAnimation = true; | ||
public boolean enableChatSendingAnimation = true; | ||
public boolean removeMessageIndicator = true; | ||
|
||
public static ModConfigs createConfig() { | ||
return AutoConfig.register(ModConfigs.class, GsonConfigSerializer::new).getConfig(); | ||
} | ||
|
||
public static Screen createConfigScreen(Screen parent) { | ||
return AutoConfig.getConfigScreen(ModConfigs.class, parent).get(); | ||
} | ||
} |
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
9 changes: 9 additions & 0 deletions
9
common/src/main/resources/assets/chatimpressiveanimation/lang/en_us.json
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,9 @@ | ||
{ | ||
"modmenu.nameTranslation.chatimpressiveanimation": "Chat Impressive Animation", | ||
"modmenu.descriptionTranslation.chatimpressiveanimation": "This mod makes the chat look better by adding animations. Such as opening chat, sending messages. It also removes the message indicator.", | ||
|
||
"text.autoconfig.chatimpressiveanimation.title": "Chat Impressive Animation", | ||
"text.autoconfig.chatimpressiveanimation.option.enableOpenChatAnimation": "Enable open chat animation", | ||
"text.autoconfig.chatimpressiveanimation.option.enableChatSendingAnimation": "Enable message sending animation", | ||
"text.autoconfig.chatimpressiveanimation.option.removeMessageIndicator": "Removes the message indicator" | ||
} |
9 changes: 9 additions & 0 deletions
9
common/src/main/resources/assets/chatimpressiveanimation/lang/zh_cn.json
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,9 @@ | ||
{ | ||
"modmenu.nameTranslation.chatimpressiveanimation": "聊动魅影", | ||
"modmenu.descriptionTranslation.chatimpressiveanimation": "添加了一些关于聊天栏的动画,如打开聊天栏,发送消息等。同时删除了提示类消息左侧的白条", | ||
|
||
"text.autoconfig.chatimpressiveanimation.title": "聊动魅影", | ||
"text.autoconfig.chatimpressiveanimation.option.enableOpenChatAnimation": "启用打开聊天栏动画", | ||
"text.autoconfig.chatimpressiveanimation.option.enableChatSendingAnimation": "启用消息发送动画", | ||
"text.autoconfig.chatimpressiveanimation.option.removeMessageIndicator": "删除提示类消息左侧的白条" | ||
} |
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
16 changes: 16 additions & 0 deletions
16
fabric/src/main/java/com/wulian/chatimpressiveanimation/fabric/ModMenuCompat.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,16 @@ | ||
package com.wulian.chatimpressiveanimation.fabric; | ||
|
||
import com.terraformersmc.modmenu.api.ConfigScreenFactory; | ||
import com.terraformersmc.modmenu.api.ModMenuApi; | ||
import me.shedaniel.autoconfig.AutoConfig; | ||
import com.wulian.chatimpressiveanimation.config.ModConfigs; | ||
|
||
public class ModMenuCompat implements ModMenuApi{ | ||
@Override | ||
public ConfigScreenFactory<?> getModConfigScreenFactory() { | ||
return screen -> AutoConfig.getConfigScreen(ModConfigs.class, screen).get(); | ||
} | ||
} | ||
|
||
|
||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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