Use saw icon for level editor
This commit is contained in:
parent
a3f9f9ad36
commit
5209e1ff01
@ -30,7 +30,7 @@ All levels by Wuzzy.
|
||||
- Hanging candle by Wuzzy (CC0)
|
||||
- Raindrop by Wuzzy (CC0)
|
||||
- Textures in `lzr_decor` mod made by jp (CC0)
|
||||
- Barricade, dark chest made by jp (CC0)
|
||||
- Barricade, dark chest, saw made by jp (CC0)
|
||||
- Skulls by Mikita "rudzik8" Wiśniewski (CC BY-SA 3.0)
|
||||
- Thatch by Mossmanikin and Neuromancer (CC BY-SA 4.0)
|
||||
- Coconut and coconut tree by Neuromancer (CC BY-SA 4.0)
|
||||
|
@ -163,7 +163,7 @@ lzr_gui.show_menu_markers = function(player)
|
||||
{
|
||||
"editor",
|
||||
S("Level editor"),
|
||||
vector.offset(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_EDITOR_OFFSET), book_offset_hor, book_offset_ver, 0),
|
||||
vector.offset(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_EDITOR_OFFSET), 0, -0.15, 0),
|
||||
},
|
||||
{
|
||||
"ambience",
|
||||
|
@ -52,7 +52,7 @@ local build_ship = function()
|
||||
minetest.place_schematic(lzr_globals.MENU_SHIP_POS, minetest.get_modpath("lzr_menu").."/schematics/lzr_menu_ship.mts", "0", {}, true, "")
|
||||
minetest.set_node(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_STARTBOOK_OFFSET), {name="lzr_menu:startbook", param2=0})
|
||||
minetest.set_node(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_CUSTOMBOOK_OFFSET), {name="lzr_menu:startbook_custom", param2=0})
|
||||
minetest.set_node(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_EDITOR_OFFSET), {name="lzr_menu:editorbook", param2=3})
|
||||
minetest.set_node(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_EDITOR_OFFSET), {name="lzr_menu:editor_starter", param2=1})
|
||||
minetest.set_node(SPEAKER_POS, {name="lzr_menu:speaker", param2=2})
|
||||
minetest.set_node(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_TELEVISION_OFFSET), {name="lzr_menu:television", param2=2})
|
||||
minetest.set_node(vector.add(lzr_globals.MENU_SHIP_POS, lzr_globals.MENU_SHIP_HOWTO_BOOKSHELF_OFFSET), {name="lzr_menu:bookshelf_info", param2=1})
|
||||
@ -203,19 +203,21 @@ local on_rightclick_editor = function(self, node, clicker)
|
||||
end
|
||||
lzr_editor.enter_editor(clicker)
|
||||
end
|
||||
minetest.register_node("lzr_menu:editorbook", {
|
||||
description = S("Level Editor Book"),
|
||||
tiles = { "lzr_menu_book_editor_top.png", "lzr_menu_book_editor_bottom.png", "lzr_menu_book_editor_side.png", "lzr_menu_book_editor_side.png", "lzr_menu_book_editor_end.png", "lzr_menu_book_editor_end.png" },
|
||||
|
||||
minetest.register_node("lzr_menu:editor_starter", {
|
||||
description = S("Level Editor Starter"),
|
||||
-- The level editor starter is represented by a saw
|
||||
tiles = { "lzr_menu_saw.png", "blank.png" },
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
paramtype2 = "4dir",
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.4375, -0.5, -0.375, 0.4375, -0.4375, 0.1875 },
|
||||
{ -0.375, -0.4375, -0.375, 0.375, -0.375, 0.1875 }
|
||||
{ -0.5, -0.5, -0.5, 0.5, -63/128, 0.5 },
|
||||
}
|
||||
},
|
||||
use_texture_alpha = "clip",
|
||||
walkable = false,
|
||||
sunlight_propagates = true,
|
||||
on_construct = function(pos)
|
||||
@ -224,7 +226,7 @@ minetest.register_node("lzr_menu:editorbook", {
|
||||
end,
|
||||
on_punch = on_punch_editor,
|
||||
on_rightclick = on_rightclick_editor,
|
||||
groups = { snappy = 3, not_in_creative_inventory = 1, },
|
||||
groups = { breakable = 1, rotatable = 1, not_in_creative_inventory = 1, },
|
||||
})
|
||||
|
||||
local use_speaker = function(speaker_pos, user)
|
||||
@ -788,3 +790,5 @@ local function forceload()
|
||||
end
|
||||
end
|
||||
forceload()
|
||||
|
||||
minetest.register_alias("lzr_menu:editorbook", "lzr_menu:editor_starter")
|
||||
|
Binary file not shown.
BIN
mods/lzr_menu/textures/lzr_menu_saw.png
Normal file
BIN
mods/lzr_menu/textures/lzr_menu_saw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 187 B |
Loading…
x
Reference in New Issue
Block a user