Skip to content

Commit

Permalink
Added option to hide helptips for broadcasters. /note stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 9, 2024
1 parent c72ebe7 commit 05496bb
Show file tree
Hide file tree
Showing 6 changed files with 267 additions and 43 deletions.
3 changes: 2 additions & 1 deletion Libs/DF/buildmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ local setColorProperties = function(parent, widget, widgetTable, currentXOffset,
end

local setExecuteProperties = function(parent, widget, widgetTable, currentXOffset, currentYOffset, template, widgetWidth, widgetHeight, bAlignAsPairs, nAlignAsPairsLength, valueChangeHook, maxColumnWidth, maxWidgetWidth, textTemplate, latestInlineWidget)
---@cast widget df_button
widget._get = widgetTable.get
widget.widget_type = "execute"
widget:SetTemplate(template)
Expand All @@ -595,7 +596,7 @@ local setExecuteProperties = function(parent, widget, widgetTable, currentXOffse

--button icon
if (widgetTable.icontexture) then
widget:SetIcon(widgetTable.icontexture, nil, nil, nil, widgetTable.icontexcoords, nil, nil, 2)
widget:SetIcon(widgetTable.icontexture, widget:GetHeight()-2, widget:GetHeight()-2, nil, widgetTable.icontexcoords, nil, nil, 2)
end

textTemplate = widgetTable.text_template or textTemplate or detailsFramework.font_templates["ORANGE_FONT_TEMPLATE"]
Expand Down
4 changes: 3 additions & 1 deletion Libs/LibOpenRaid/ThingsToMantain_WarWithin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ do
[218164] = {cooldown = 8, duration = 0, specs = {269,268}, talent = false, charges = 1, class = "MONK", type = 7}, --Detox (DPS/Tank)
[325153] = {cooldown = 60, duration = 3, specs = {268}, talent = false, charges = 1, class = "MONK", type = 2}, --Exploding Keg
[115078] = {cooldown = 45, duration = 60, specs = {268, 269, 270}, talent = false, charges = 1, class = "MONK", type = 8}, --Paralysis
[443028] = {cooldown = 90, duration = 4, specs = {269, 270}, talent = false, charges = 1, class = "MONK", type = 4}, --Celestial Conduit


--~hunter
Expand Down Expand Up @@ -669,6 +670,7 @@ do
[213634] = {cooldown = 8, duration = 0, specs = {258}, talent = false, charges = 1, class = "PRIEST", type = 7}, --Purify Disease
[108920] = {cooldown = 60, duration = 20, specs = {256, 257, 258}, talent = false, charges = 1, class = "PRIEST", type = 8}, --Void Tendrils
[451235] = {cooldown = 120, duration = 15, specs = {256,258}, talent = false, charges = 1, class = "PRIEST", type = 1}, --Voidwraith
[120644] = {cooldown = 60, duration = 0, specs = {256, 257, 258}, talent = false, charges = 1, class = "PRIEST", type = 4}, --Halo

--~rogue
-- 259 - Assasination
Expand Down Expand Up @@ -1121,4 +1123,4 @@ do
end
end)
loadLibDatabase()
end
end
12 changes: 12 additions & 0 deletions frames/window_options2_sections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6380,6 +6380,18 @@ do
desc = "Clear Cache Regularly",
},

{--hide helptips
type = "toggle",
get = function() return Details.streamer_config.no_helptips end,
set = function(self, fixedparam, value)
Details.streamer_config.no_helptips = value
afterUpdate()
end,
name = "Hide Yellow Helptips", --localize-me
desc = "Those yellow boxes with an arrow and a text showing a text with tips.",
},


}

sectionFrame.sectionOptions = sectionOptions
Expand Down
1 change: 1 addition & 0 deletions functions/profiles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ local default_profile = {
quick_detection = false,
faster_updates = false,
use_animation_accel = true,
no_helptips = false,
},

--tooltip
Expand Down
Loading

0 comments on commit 05496bb

Please sign in to comment.