1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

Fix HUD image (waypoint) docs

This commit is contained in:
Lars Müller 2024-01-10 19:32:49 +01:00 committed by GitHub
parent 4bf95703a0
commit 7bae8ab838
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View file

@ -152,7 +152,8 @@ minetest.register_chatcommand("hudwaypoints", {
type = "image_waypoint",
text = "testhud_waypoint.png",
world_pos = player:get_pos(),
scale = {x = 3, y = 3},
-- 20% of screen width, 3x image height
scale = {x = -20, y = 3},
offset = {x = 0, y = -32}
}
if not player_waypoints[name] then