From 65e1ed0069d65b378c211a836b860084ee4e6ba3 Mon Sep 17 00:00:00 2001 From: tartaric_acid Date: Tue, 29 Oct 2024 01:07:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maid/task/DefaultMaidTaskConfigGui.java | 17 +++++++++++++++++ .../assets/touhou_little_maid/lang/en_us.json | 1 + .../assets/touhou_little_maid/lang/zh_cn.json | 1 + .../textures/gui/default_task_config.png | Bin 0 -> 5112 bytes 4 files changed, 19 insertions(+) create mode 100644 src/main/resources/assets/touhou_little_maid/textures/gui/default_task_config.png diff --git a/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/gui/entity/maid/task/DefaultMaidTaskConfigGui.java b/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/gui/entity/maid/task/DefaultMaidTaskConfigGui.java index 45e82bee1..12b30029a 100644 --- a/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/gui/entity/maid/task/DefaultMaidTaskConfigGui.java +++ b/src/main/java/com/github/tartaricacid/touhoulittlemaid/client/gui/entity/maid/task/DefaultMaidTaskConfigGui.java @@ -1,7 +1,11 @@ package com.github.tartaricacid.touhoulittlemaid.client.gui.entity.maid.task; +import com.github.tartaricacid.touhoulittlemaid.TouhouLittleMaid; import com.github.tartaricacid.touhoulittlemaid.inventory.container.task.TaskConfigContainer; +import net.minecraft.ChatFormatting; +import net.minecraft.client.gui.GuiGraphics; import net.minecraft.network.chat.Component; +import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Inventory; import org.anti_ad.mc.ipn.api.IPNButton; import org.anti_ad.mc.ipn.api.IPNGuiHint; @@ -14,7 +18,20 @@ @IPNGuiHint(button = IPNButton.SHOW_EDITOR, horizontalOffset = -5) @IPNGuiHint(button = IPNButton.SETTINGS, horizontalOffset = -5) public class DefaultMaidTaskConfigGui extends MaidTaskConfigGui { + private static final ResourceLocation BG = ResourceLocation.fromNamespaceAndPath(TouhouLittleMaid.MOD_ID, "textures/gui/default_task_config.png"); + public DefaultMaidTaskConfigGui(TaskConfigContainer screenContainer, Inventory inv, Component titleIn) { super(screenContainer, inv, titleIn); } + + @Override + protected void renderBg(GuiGraphics graphics, float partialTicks, int x, int y) { + super.renderBg(graphics, partialTicks, x, y); + graphics.blit(BG, leftPos + 80, topPos + 28, 0, 0, imageWidth, 137); + } + + @Override + protected void renderAddition(GuiGraphics graphics, int mouseX, int mouseY, float partialTicks) { + graphics.drawWordWrap(font, Component.translatable("gui.touhou_little_maid.default_task_config.title"), leftPos + 88, topPos + 38, 160, ChatFormatting.DARK_GRAY.getColor()); + } } \ No newline at end of file diff --git a/src/main/resources/assets/touhou_little_maid/lang/en_us.json b/src/main/resources/assets/touhou_little_maid/lang/en_us.json index 67a36a569..676fff2e0 100644 --- a/src/main/resources/assets/touhou_little_maid/lang/en_us.json +++ b/src/main/resources/assets/touhou_little_maid/lang/en_us.json @@ -399,6 +399,7 @@ "gui.touhou_little_maid.monster_type.hostile": "§cHostile", "gui.touhou_little_maid.monster_type.title": "Maid Attack List", "gui.touhou_little_maid.monster_type.add": "Add", + "gui.touhou_little_maid.default_task_config.title": "Current task does not have any config...", "chat_bubble.touhou_little_maid.inner.feed_animal.max_number": "So many animals... I don't feed them anymore!", "chat_bubble.touhou_little_maid.inner.home_meal.two_hand_is_full": "My hands were full of items... I couldn't eat!", "chat_bubble.touhou_little_maid.inner.home_meal.meal_is_empty": "Hurry up, Hurry up, I don't have anything to eat!", diff --git a/src/main/resources/assets/touhou_little_maid/lang/zh_cn.json b/src/main/resources/assets/touhou_little_maid/lang/zh_cn.json index 81aadc4f6..9386d7b1e 100644 --- a/src/main/resources/assets/touhou_little_maid/lang/zh_cn.json +++ b/src/main/resources/assets/touhou_little_maid/lang/zh_cn.json @@ -399,6 +399,7 @@ "gui.touhou_little_maid.monster_type.hostile": "§c敌对", "gui.touhou_little_maid.monster_type.title": "女仆攻击列表", "gui.touhou_little_maid.monster_type.add": "添加", + "gui.touhou_little_maid.default_task_config.title": "当前工作任务没有任何配置项……", "chat_bubble.touhou_little_maid.inner.feed_animal.max_number": "动物太多了……我不再喂养它们了!", "chat_bubble.touhou_little_maid.inner.home_meal.two_hand_is_full": "我的双手根本空不出来……我没法吃饭了!", "chat_bubble.touhou_little_maid.inner.home_meal.meal_is_empty": "快上菜、快上菜,我都没东西吃了!", diff --git a/src/main/resources/assets/touhou_little_maid/textures/gui/default_task_config.png b/src/main/resources/assets/touhou_little_maid/textures/gui/default_task_config.png new file mode 100644 index 0000000000000000000000000000000000000000..f9ff35a1b8322f6a184dbbb737c394e8d4bc47a9 GIT binary patch literal 5112 zcmeHLX;f2Zw>~)#h5!Z-LC_`vt0EAvQk)nPrdq2NL`6w}&^l506spLO07(dfN)=i^ ziMBw3h^PobrYKVaScak`76l3j0mPsTIgAOA;S1reb=UoWf8BL|<*c0d?BUtZe)c}+ zy8n>_MhGhe002e@zx4?K0GRp`2I%Rie}XSPItKvjc?W$wkH?2j4ftKdehO)s`R9gd zg~^*&8%J<$SMfVBM|L|K=bkb3%>BXmuy$O^wc;#oPwS2#tI?LLkrp;zTC)v2eOhkn zA-sY=*lo$KJVu6&>+ABf&>#@}lO z97zW^ri1)X{=ld|u=fi@*k%M!o=JU zn)LVHSiNz#_gHG2_Nwc!0F{C}^a4ugaJd6t4K~_4+e?wlp-vo;l}UmF=TK#lyvxIIV|pg1K-()Zw_;#B z_NsAz`@-eg(9M}9WZzXx-O3FKc{47LmgCc2_aLnn4S(*83BhhMqO_R`?NbKw(s&O~ z0AvbVFttK8Tg@M8vzfQthy}!O_C(1Bd|D^>-en`|?AeqwkA`k>TT(mtCJ8|>R$6Ud zv%kxzJl(lDC%Qe#`=y46VEcg{nTy)gELJ%UR1$Rn)nHQ!qBoz`S6!iDc6 z-x!O8vroe8dLD0}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