getglobal(InnerPanelPixelPerfect:GetName() .. "Text"):SetText("Pixel Perfect Mode |cff606060(requires reload)") if BFAUI_SavedVars.Options.PixelPerfect == true then self:SetChecked(true) end if this:GetChecked() == true then BFAUI_SavedVars.Options.PixelPerfect = true else BFAUI_SavedVars.Options.PixelPerfect = false end StaticPopup_Show("ReloadUI_Popup") --[[ local IsChecked = this:GetChecked() if IsChecked == 1 then BFAUI_SavedVars.Options.PixelPerfect = true -- set system to true BEFORE setting to false (fixes bug) Advanced_UseUIScale:Click() Advanced_UseUIScale:SetChecked(true) VideoOptionsFrameApply:Click() -- set system to false Advanced_UseUIScale:Click() Advanced_UseUIScale:SetChecked(false) VideoOptionsFrameApply:Click() -- enable system button, hide text Advanced_UseUIScale:Disable() getglobal(Advanced_UseUIScale:GetName() .. "Text"):Show() else BFAUI_SavedVars.Options.PixelPerfect = false -- make sure system is enabled so click will work Advanced_UseUIScale:Enable() -- set system to false BEFORE setting to true (fixes bug) Advanced_UseUIScale:Click() Advanced_UseUIScale:SetChecked(false) VideoOptionsFrameApply:Click() -- set system to true Advanced_UseUIScale:Click() Advanced_UseUIScale:SetChecked(true) VideoOptionsFrameApply:Click() -- disable system button, show text Advanced_UseUIScale:Enable() getglobal(Advanced_UseUIScale:GetName() .. "Text"):Hide() end SetPixelPerfect() ]] GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Check this option to scale your UI to Pixel Perfect scaling." .. "\n" .. "This means your interface will look much more crisp." .. "\n" .. "Recommended for 1080p and lower resolutions.") getglobal(InnerPanelXPBarText:GetName() .. "Text"):SetText("Experience Bar Text |cff606060(requires reload)") if BFAUI_SavedVars.Options.XPBarText == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then SetCVar("xpBarText", true) BFAUI_SavedVars.Options.XPBarText = true else SetCVar("xpBarText", false) BFAUI_SavedVars.Options.XPBarText = false end StaticPopup_Show("ReloadUI_Popup") GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Always display the text on your XP bar.") getglobal(InnerPanelHideGryphons:GetName() .. "Text"):SetText("Hide Gryphons") if BFAUI_SavedVars.Options.HideGryphons == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then BFAUI_SavedVars.Options.HideGryphons = true MainMenuBarLeftEndCap:Hide() MainMenuBarRightEndCap:Hide() else BFAUI_SavedVars.Options.HideGryphons = false MainMenuBarLeftEndCap:Show() MainMenuBarRightEndCap:Show() end GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Hide gryphons from displaying beside the main action bar.") getglobal(InnerPanelKeybindVisibilityPrimaryBar:GetName() .. "Text"):SetText("Primary Bar") if BFAUI_SavedVars.Options.KeybindVisibility.PrimaryBar == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then a = 1 BFAUI_SavedVars.Options.KeybindVisibility.PrimaryBar = true else a = 0 BFAUI_SavedVars.Options.KeybindVisibility.PrimaryBar = false end for i = 1, 12 do _G["ActionButton" .. i .. "HotKey"]:SetAlpha(a) end GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Toggles the keybind text visibility on the primary bar.") getglobal(InnerPanelKeybindVisibilityBottomLeftBar:GetName() .. "Text"):SetText("Bottom Left Bar") if BFAUI_SavedVars.Options.KeybindVisibility.BottomLeftBar == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then a = 1 BFAUI_SavedVars.Options.KeybindVisibility.BottomLeftBar = true else a = 0 BFAUI_SavedVars.Options.KeybindVisibility.BottomLeftBar = false end for i = 1, 12 do _G["MultiBarBottomLeftButton" .. i .. "HotKey"]:SetAlpha(a) end GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Toggles the keybind text visibility on the bottom left bar.") getglobal(InnerPanelKeybindVisibilityBottomRightBar:GetName() .. "Text"):SetText("Bottom Right Bar") if BFAUI_SavedVars.Options.KeybindVisibility.BottomRightBar == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then a = 1 BFAUI_SavedVars.Options.KeybindVisibility.BottomRightBar = true else a = 0 BFAUI_SavedVars.Options.KeybindVisibility.BottomRightBar = false end for i = 1, 12 do _G["MultiBarBottomRightButton" .. i .. "HotKey"]:SetAlpha(a) end GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Toggles the keybind text visibility on the bottom right bar.") getglobal(InnerPanelKeybindVisibilityRightBar:GetName() .. "Text"):SetText("Right Bar") if BFAUI_SavedVars.Options.KeybindVisibility.RightBar == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then a = 1 BFAUI_SavedVars.Options.KeybindVisibility.RightBar = true else a = 0 BFAUI_SavedVars.Options.KeybindVisibility.RightBar = false end for i = 1, 12 do _G["MultiBarRightButton" .. i .. "HotKey"]:SetAlpha(a) end GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Toggles the keybind text visibility on the right bar.") getglobal(InnerPanelKeybindVisibilityRightBar2:GetName() .. "Text"):SetText("Right Bar 2") if BFAUI_SavedVars.Options.KeybindVisibility.RightBar2 == true then self:SetChecked(true) end local IsChecked = this:GetChecked() if IsChecked == 1 then a = 1 BFAUI_SavedVars.Options.KeybindVisibility.RightBar2 = true else a = 0 BFAUI_SavedVars.Options.KeybindVisibility.RightBar2 = false end for i = 1, 12 do _G["MultiBarLeftButton" .. i .. "HotKey"]:SetAlpha(a) end GameTooltip:SetOwner(self, "ANCHOR_RIGHT") GameTooltip:SetText("Toggles the keybind text visibility on the right bar 2.")