Skip to content

Commit

Permalink
Merge pull request #19 from superstyro/18-misc-tab-update-changes-but…
Browse files Browse the repository at this point in the history
…ton-no-tooltip

18 misc tab update changes button no tooltip
  • Loading branch information
superstyro authored May 5, 2024
2 parents 5b1e300 + 59772f0 commit 4d2b888
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Commands/Commands_Misc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
-- Repository: https://gitlab.superstyro.com/superstyro/azerothadmin
-------------------------------------------------------------------------------------------------------------

function ApplyStyleChanges()
function UpdateChanges()
if MangAdmin.db.account.style.color.buffer.backgrounds then
MangAdmin.db.account.style.color.backgrounds = MangAdmin.db.account.style.color.buffer.backgrounds
end
Expand Down
4 changes: 2 additions & 2 deletions Frames/MangFrames_SectionMisc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,11 @@ function MangAdmin:CreateMiscSection()
})

FrameLib:BuildButton({
name = "ma_applystylebutton",
name = "ma_updatechangesbutton",
group = "misc",
parent = ma_midframe,
texture = {
name = "ma_applystylebutton_texture",
name = "ma_updatechangesbutton_texture",
color = {color.btn.r, color.btn.g, color.btn.b, transparency.btn}
},
size = {
Expand Down
2 changes: 1 addition & 1 deletion FunctionInit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function InitControls()
MangAdmin:PrepareScript(ma_frmcolorshowbutton , nil , function() ShowColorPicker("frm") end)
MangAdmin:PrepareScript(ma_btncolorshowbutton , nil , function() ShowColorPicker("btn") end)
MangAdmin:PrepareScript(ma_linkifiercolorbutton , nil , function() ShowColorPicker("linkifier") end)
MangAdmin:PrepareScript(ma_applystylebutton , nil , function() ApplyStyleChanges() end)
MangAdmin:PrepareScript(ma_updatechangesbutton , Locale["tt_updatechanges"] , function() UpdateChanges() end)
--MangAdmin:PrepareScript(ma_windowismovable , nil , function() AllowMovableWindow() end)
MangAdmin:PrepareScript(ma_changeweatherbutton , nil , function() ChangeWeather(UIDropDownMenu_GetSelectedValue(ma_weatherdropdown)) end)

Expand Down
5 changes: 3 additions & 2 deletions Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,10 @@ function Return_enUS()
["tabmenu_Misc"] = "MISC",
["tt_MiscButton"] = "Toggle a window with miscellaneous actions.",
--[[Tooltips]]
["tt_FrmTrSlider"] = "Change frame transparency.",
["tt_BtnTrSlider"] = "Change button transparency.",
["tt_FrmTrSlider"] = "Change frame transparency",
["tt_BtnTrSlider"] = "Change button transparency",
["tt_windowismovable"] = "Allow a movable window",
["tt_updatechanges"] = "Apply changes made to settings. Reloads screen.",
--[[Control Labels]]
["cmd_toggle"] = "Toggle the main window",
["cmd_transparency"] = "Toggle the basic transparency (0.5 or 1.0)",
Expand Down

0 comments on commit 4d2b888

Please sign in to comment.