diff --git a/textures/ui_xyz_off_icon.png b/textures/ui_xyz_off_icon.png deleted file mode 100644 index 3c1836e..0000000 Binary files a/textures/ui_xyz_off_icon.png and /dev/null differ diff --git a/textures/ui_xyz_on_icon.png b/textures/ui_xyz_on_icon.png deleted file mode 100644 index 003ea63..0000000 Binary files a/textures/ui_xyz_on_icon.png and /dev/null differ diff --git a/waypoints.lua b/waypoints.lua index 74ad2da..be7bf2f 100644 --- a/waypoints.lua +++ b/waypoints.lua @@ -58,7 +58,7 @@ ui.register_page("waypoints", { local btnlist = { { "ui_waypoint_set_icon.png", "set_waypoint", S("Set waypoint to current location") }, { waypoint.active and "ui_on_icon.png" or "ui_off_icon.png", "toggle_waypoint", S("Make waypoint @1", waypoint.active and "invisible" or "visible") }, - { waypoint.display_pos and "ui_green_icon_background.png" or "ui_red_icon_background.png", "toggle_display_pos", S("@1 display of waypoint coordinates", waypoint.display_pos and "Disable" or "Enable") }, + { waypoint.display_pos and "ui_green_icon_background.png^ui_xyz_icon.png" or "ui_red_icon_background.png^ui_xyz_icon.png^(ui_no.png^[transformR90)", "toggle_display_pos", S("@1 display of waypoint coordinates", waypoint.display_pos and "Disable" or "Enable") }, { "ui_circular_arrows_icon.png", "toggle_color", S("Change color of waypoint display") }, { "ui_pencil_icon.png", "rename_waypoint", S("Edit waypoint name") } } @@ -73,6 +73,7 @@ ui.register_page("waypoints", { x = x - 1 n = n + 2 end + -- Waypoint's info: formspec[n] = "label["..wp_info_x..","..(wp_info_y+1.1)..";"