diff --git a/chatroom_tutorial/init.lua b/chatroom_tutorial/init.lua index 0f92631..e162d0e 100644 --- a/chatroom_tutorial/init.lua +++ b/chatroom_tutorial/init.lua @@ -1,59 +1,59 @@ -- twi_mods/chatroom_tutorial/init.lua -- Tutorial of how to open chat, and hud message -- Copyright (C) 2024 1F616EMO -- SPDX-License-Identifier: LGPL-3.0-or-later local S = minetest.get_translator("chatroom_tutorial") local hud = mhud.init() teacher.register_turorial("chatroom_tutorial:chatroom", { title = S("How to find help?"), { - texture = "chat_grant_interact_teacher_1.png", + texture = "chat_grant_interact_teacher_1.jpg", text = S("To seek help, use the chatroom. To start chatting:") .. "\n\n" .. S("On Mobile Phones or iPads: Look at the top right corner of your screen. " .. "Tap the chat box icon.") .. "\n\n" .. S("On PC or Mac: Press the \"T\" key on your keyboard to open the chat box."), }, }) local function show_to(name) local player = minetest.get_player_by_name(name) if player then teacher.unlock_and_show(player, "chatroom_tutorial:chatroom", nil) end end minetest.register_on_newplayer(function(player) player:get_meta():set_int("chatroom_tutorial_show_msg", 1) minetest.after(-1, show_to, player:get_player_name()) end) minetest.register_on_joinplayer(function(player) if player:get_meta():get_int("chatroom_tutorial_show_msg") ~= 0 then hud:add(player, "chatroom_tutorial_show_msg", { hud_elem_type = "text", position = {x = 0.5, y = 0.5}, offset = {x = 0, y = 42}, text = S("Click on the top-right speech bubble icon to get help. (T on PC)"), text_scale = 1, color = 0xFFD700, }) end end) local register_on_chat_message = minetest.global_exists("beerchat") and beerchat.register_on_chat_message or minetest.register_on_chat_message register_on_chat_message(function(name, message) if string.sub(message, 1, 1) == "/" then return end local player = minetest.get_player_by_name(name) if not player then return end if hud:exists(player, "chatroom_tutorial_show_msg") then player:get_meta():set_int("chatroom_tutorial_show_msg", 0) hud:remove(player, "chatroom_tutorial_show_msg") end end) diff --git a/chatroom_tutorial/textures/chat_grant_interact_teacher_1.jpg b/chatroom_tutorial/textures/chat_grant_interact_teacher_1.jpg new file mode 100644 index 0000000..eeaf57a Binary files /dev/null and b/chatroom_tutorial/textures/chat_grant_interact_teacher_1.jpg differ diff --git a/chatroom_tutorial/textures/chat_grant_interact_teacher_1.png b/chatroom_tutorial/textures/chat_grant_interact_teacher_1.png deleted file mode 100644 index 6d995c8..0000000 Binary files a/chatroom_tutorial/textures/chat_grant_interact_teacher_1.png and /dev/null differ diff --git a/teacher_tutorial_post_buying_plot/init.lua b/teacher_tutorial_post_buying_plot/init.lua index 271f069..13a889c 100644 --- a/teacher_tutorial_post_buying_plot/init.lua +++ b/teacher_tutorial_post_buying_plot/init.lua @@ -1,55 +1,55 @@ -- twi_mods/teacher_tutorial_post_buying_plot/init.lua -- Tutorials shown after buying first plot --[[ Copyright (C) 2024 1F616EMO This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . ]] local S = minetest.get_translator("teacher_tutorial_post_buying_plot") teacher.register_turorial("teacher_tutorial_post_buying_plot:post_buy", { title = S("After buying a plot..."), show_on_unlock = true, { - texture = "teacher_tutorial_post_buying_plot_1.png", + texture = "teacher_tutorial_post_buying_plot_1.jpg", text = S("Congratulations! You bought your first plot on the 1F616EMO Survival Server! " .. "You can build your dream house here.") .. "\n\n" .. S("You should start your construction in 4 days, and make it feel like a building in 30 days.") }, { - texture = "teacher_tutorial_post_buying_plot_2.png", + texture = "teacher_tutorial_post_buying_plot_2.jpg", text = S("To start building, chop down the tree on your plot's land. " .. "Craft the tree trunks into wood planks in your inventory.") }, { - texture = "teacher_tutorial_post_buying_plot_3.png", + texture = "teacher_tutorial_post_buying_plot_3.jpg", text = S("If you want more wood, visit the public tree farm next to the Spawnpoint. " .. "Don't forget to replant the saplings!") .. "\n\n" .. S("For more variants, step on the teleport pad next to the entrance of the public tree farm.") }, }) um_area_forsale.register_on_area_tx(function(original_owner, new_owner, price, pos, list_areas, description) minetest.after(1, function() local player = minetest.get_player_by_name(new_owner) if player then teacher.unlock_entry_for_player(player, "teacher_tutorial_post_buying_plot:post_buy") end end) end) diff --git a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_1.jpg b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_1.jpg new file mode 100644 index 0000000..c10b437 Binary files /dev/null and b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_1.jpg differ diff --git a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_1.png b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_1.png deleted file mode 100644 index 7bbf9fc..0000000 Binary files a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_1.png and /dev/null differ diff --git a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_2.jpg b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_2.jpg new file mode 100644 index 0000000..cbcf9a2 Binary files /dev/null and b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_2.jpg differ diff --git a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_2.png b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_2.png deleted file mode 100644 index 7a2a9f9..0000000 Binary files a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_2.png and /dev/null differ diff --git a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_3.jpg b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_3.jpg new file mode 100644 index 0000000..e40ac02 Binary files /dev/null and b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_3.jpg differ diff --git a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_3.png b/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_3.png deleted file mode 100644 index da8ccd9..0000000 Binary files a/teacher_tutorial_post_buying_plot/textures/teacher_tutorial_post_buying_plot_3.png and /dev/null differ diff --git a/teacher_tutorial_protection_violation/init.lua b/teacher_tutorial_protection_violation/init.lua index fbd9601..5ec31b9 100644 --- a/teacher_tutorial_protection_violation/init.lua +++ b/teacher_tutorial_protection_violation/init.lua @@ -1,41 +1,41 @@ -- twi_mods/teacher_tutorial_protection_violation/init.lua -- Tutorial on protection violation -- Copyright (C) 2024 1F616EMO -- SPDX-License-Identifier: LGPL-3.0-or-later local S = minetest.get_translator("teacher_tutorial_protection_violation") teacher.register_turorial("teacher_tutorial_protection_violation:on_violation", { title = S("Position is protected..."), show_on_unlock = true, show_disallow_close = true, { - texture = "teacher_tutorial_protection_violation_1.png", + texture = "teacher_tutorial_protection_violation_1.jpg", text = S("You can't dig or build here in a protected area. " .. "Area protections keep unauthorized players from modifying blocks within the area.") }, { - texture = "teacher_tutorial_protection_violation_2.png", + texture = "teacher_tutorial_protection_violation_2.jpg", text = S("Follow the \"Are you new?\" signs from the spawn point to go to a place where you can build. " .. "Type /spawn to go back to the spawn point.") }, { - texture = "teacher_tutorial_protection_violation_3.png", + texture = "teacher_tutorial_protection_violation_3.jpg", text = S("To check whether you can build or place, check the bottom-left corner. " .. "If the bracket of all lines say a player name that is not you, " .. "where you are is protected.") .. "\n\n" .. S("However, if you see \"@1\" after the player's name, you can build or place blocks here, " .. "but you can't claim the area as yours. This usually happens in public farms and public tree farms.", minetest.translate("areas", ":open")) }, }) minetest.register_on_protection_violation(function(_, name) local player = minetest.get_player_by_name(name) if player then teacher.unlock_entry_for_player(player, "teacher_tutorial_protection_violation:on_violation") end end) diff --git a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_1.jpg b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_1.jpg new file mode 100644 index 0000000..a7b568d Binary files /dev/null and b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_1.jpg differ diff --git a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_1.png b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_1.png deleted file mode 100644 index d30f2bc..0000000 Binary files a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_1.png and /dev/null differ diff --git a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_2.jpg b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_2.jpg new file mode 100644 index 0000000..3df1d10 Binary files /dev/null and b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_2.jpg differ diff --git a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_2.png b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_2.png deleted file mode 100644 index f1aa9b2..0000000 Binary files a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_2.png and /dev/null differ diff --git a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_3.jpg b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_3.jpg new file mode 100644 index 0000000..4935a03 Binary files /dev/null and b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_3.jpg differ diff --git a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_3.png b/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_3.png deleted file mode 100644 index 760b3b3..0000000 Binary files a/teacher_tutorial_protection_violation/textures/teacher_tutorial_protection_violation_3.png and /dev/null differ