diff --git a/TomTom.lua b/TomTom.lua index d26c645..ae352a1 100755 --- a/TomTom.lua +++ b/TomTom.lua @@ -77,6 +77,7 @@ function TomTom:ADDON_LOADED(event, addon) middlecolor = {1, 1, 0}, arrival = 15, lock = false, + noclick = false, showtta = true, autoqueue = true, menu = true, @@ -84,6 +85,8 @@ function TomTom:ADDON_LOADED(event, addon) alpha = 1.0, title_width = 0, title_height = 0, + title_scale = 1, + title_alpha = 1, }, minimap = { enable = true, diff --git a/TomTom_Config.lua b/TomTom_Config.lua index a289ca2..ff419b9 100644 --- a/TomTom_Config.lua +++ b/TomTom_Config.lua @@ -178,8 +178,16 @@ local function createconfig() width = "double", arg = "arrow.menu", }, - heredistance = { + disableclick = { order = 7, + type = "toggle", + name = L["Disable all mouse input"], + desc = L["Disables the crazy taxi arrow for mouse input, allowing all clicks to pass through"], + width = "double", + arg = "arrow.noclick", + }, + heredistance = { + order = 8, type = "range", name = L["\"Arrival Distance\""], desc = L["This setting will control the distance at which the waypoint arrow switches to a downwards arrow, indicating you have arrived at your destination"], @@ -189,7 +197,7 @@ local function createconfig() display = { type = "group", name = L["Arrow display"], - order = 8, + order = 9, inline = true, args = { help = { @@ -229,8 +237,24 @@ local function createconfig() min = 0, max = 300, step = 1, arg = "arrow.title_height", }, - reset_position = { + title_scale = { + type = "range", order = 6, + name = L["Title Scale"], + desc = L["This setting allows you to specify the scale of the title text."], + min = 0, max = 3, step = 0.05, + arg = "arrow.title_scale", + }, + title_alpha = { + type = "range", + order = 7, + name = L["Title Alpha"], + desc = L["This setting allows you to change the opacity of the title text, making it transparent or opaque"], + min = 0, max = 1.0, step = 0.05, + arg = "arrow.title_alpha", + }, + reset_position = { + order = 8, type = "execute", name = L["Reset Position"], desc = L["Resets the position of the waypoint arrow if its been dragged off screen"], @@ -244,7 +268,7 @@ local function createconfig() color = { type = "group", name = L["Arrow colors"], - order = 9, + order = 10, inline = true, args = { help = { diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua index 1fc389b..93c9ed8 100644 --- a/TomTom_CrazyArrow.lua +++ b/TomTom_CrazyArrow.lua @@ -233,14 +233,23 @@ function TomTom:ShowHideCrazyArrow() if self.profile.arrow.enable then wayframe:Show() + if self.profile.arrow.noclick then + wayframe:Disable() + else + wayframe:Enable() + end + -- Set the scale and alpha wayframe:SetScale(TomTom.db.profile.arrow.scale) wayframe:SetAlpha(TomTom.db.profile.arrow.alpha) local width = TomTom.db.profile.arrow.title_width local height = TomTom.db.profile.arrow.title_height + local scale = TomTom.db.profile.arrow.title_scale wayframe.title:SetWidth(width) wayframe.title:SetHeight(height) + wayframe.title:SetScale(scale) + wayframe.title:SetAlpha(TomTom.db.profile.arrow.title_alpha) if self.profile.arrow.showtta then tta:Show()