From 3f4ae4c8d5ec9d0c66e1acef97ebaf7d787c7601 Mon Sep 17 00:00:00 2001 From: smariot Date: Tue, 6 May 2008 22:16:30 -0400 Subject: [PATCH] Added TomTom to menu button. If both TomTom and Cartographer are available, the names are appended to the menu items. --- mapbutton.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mapbutton.lua b/mapbutton.lua index 7187a82..328aa5c 100644 --- a/mapbutton.lua +++ b/mapbutton.lua @@ -32,10 +32,16 @@ function QuestHelper:DoSettingsMenu() -- Cartographer Waypoints if Cartographer_Waypoints then - self:CreateMenuItem(menu, QHFormat("MENU_WAYPOINT_ARROW", QuestHelper_Pref.cart_wp and QHText("MENU_DISABLE") or QHText("MENU_ENABLE"))) + self:CreateMenuItem(menu, QHFormat("MENU_WAYPOINT_ARROW", QuestHelper_Pref.cart_wp and QHText("MENU_DISABLE") or QHText("MENU_ENABLE"))..(TomTom and " (Cartographer Waypoints)" or "")) :SetFunction(self.ToggleCartWP, self) end + -- TomTom + if TomTom then + self:CreateMenuItem(menu, QHFormat("MENU_WAYPOINT_ARROW", QuestHelper_Pref.tomtom_wp and QHText("MENU_DISABLE") or QHText("MENU_ENABLE"))..(Cartographer_Waypoints and " (TomTom)" or "")) + :SetFunction(self.ToggleTomTomWP, self) + end + -- Map frame button self:CreateMenuItem(menu, QHFormat("MENU_MAP_BUTTON", QuestHelper_Pref.map_button and QHText("MENU_DISABLE") or QHText("MENU_ENABLE"))) :SetFunction(self.ToggleMapButton, self) -- 2.11.4.GIT