rename textures to avoid name collisions
6
init.lua
@ -5,7 +5,7 @@ local TARGET_ABOVE = false -- place waypoint inside the block or above it
|
||||
local POINT_TO_OBJECTS = false -- unimplemented
|
||||
local POINT_TO_LIQUIDS = true
|
||||
local COMPASS_RANGE = 180
|
||||
local WAYPOINT_ICON = "waypoint.png"
|
||||
local WAYPOINT_ICON = "waypoint_compass_waypoint.png"
|
||||
local WAYPOINT_SCALE = {x=-1/16*9,y=-1}
|
||||
|
||||
local waypoint_lib = dofile(minetest.get_modpath("waypoint_compass") .. "/waypoint_lib.lua")
|
||||
@ -110,7 +110,7 @@ local function show_hud_waypoint(player, compass_item_meta)
|
||||
local waypoint = waypoint_lib.WaypointHUD:new(player, waypoint_pos,
|
||||
waypoint_name, waypoint_color,
|
||||
WAYPOINT_ICON, WAYPOINT_SCALE, hexcolor,
|
||||
size, alignment, "arrow_%03d.png", hexcolor, 9,
|
||||
size, alignment, "waypoint_compass_arrow_%03d.png", hexcolor, 9,
|
||||
true)
|
||||
|
||||
waypoint:show(player)
|
||||
@ -340,7 +340,7 @@ minetest.register_tool(
|
||||
"waypoint_compass:compass", {
|
||||
description = "Waypoint compass\n(sneak+place to set point)",
|
||||
--short_description = "Waypoint compass",
|
||||
inventory_image = "Waypoint_compass_inventory_image.png",
|
||||
inventory_image = "waypoint_compass_inventory_image.png",
|
||||
wield_scale = {x = 0.5, y = 0.5, z = 0.5},
|
||||
range = 2.0, -- TODO what's the good range?
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 932 B |
Before Width: | Height: | Size: 933 B After Width: | Height: | Size: 933 B |
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 900 B |
Before Width: | Height: | Size: 939 B After Width: | Height: | Size: 939 B |
Before Width: | Height: | Size: 925 B After Width: | Height: | Size: 925 B |
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 935 B |
Before Width: | Height: | Size: 887 B After Width: | Height: | Size: 887 B |
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 898 B |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 501 B After Width: | Height: | Size: 501 B |