mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
remove IsMacClient in Misc. Tested
This commit is contained in:
@@ -286,82 +286,6 @@ local function LoadSkin()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- mac menu/option panel, made by affli.
|
|
||||||
if IsMacClient() then
|
|
||||||
S:HandleButton(GameMenuButtonMacOptions)
|
|
||||||
|
|
||||||
-- Skin main frame and reposition the header
|
|
||||||
MacOptionsFrame:SetTemplate("Default", true)
|
|
||||||
MacOptionsFrameHeader:SetTexture("")
|
|
||||||
MacOptionsFrameHeader:ClearAllPoints()
|
|
||||||
MacOptionsFrameHeader:SetPoint("TOP", MacOptionsFrame, 0, 0)
|
|
||||||
|
|
||||||
S:HandleDropDownBox(MacOptionsFrameResolutionDropDown)
|
|
||||||
S:HandleDropDownBox(MacOptionsFrameFramerateDropDown)
|
|
||||||
S:HandleDropDownBox(MacOptionsFrameCodecDropDown)
|
|
||||||
|
|
||||||
S:HandleSliderFrame(MacOptionsFrameQualitySlider)
|
|
||||||
|
|
||||||
for i = 1, 8 do
|
|
||||||
S:HandleCheckBox(_G["MacOptionsFrameCheckButton"..i])
|
|
||||||
end
|
|
||||||
|
|
||||||
--Skin internal frames
|
|
||||||
MacOptionsFrameMovieRecording:SetTemplate("Default", true)
|
|
||||||
MacOptionsITunesRemote:SetTemplate("Default", true)
|
|
||||||
|
|
||||||
--Skin buttons
|
|
||||||
S:HandleButton(MacOptionsFrameCancel)
|
|
||||||
S:HandleButton(MacOptionsFrameOkay)
|
|
||||||
S:HandleButton(MacOptionsButtonKeybindings)
|
|
||||||
S:HandleButton(MacOptionsFrameDefaults)
|
|
||||||
S:HandleButton(MacOptionsButtonCompress)
|
|
||||||
|
|
||||||
--Reposition and resize buttons
|
|
||||||
local tPoint, tRTo, tRP, _, tY = MacOptionsButtonCompress:GetPoint()
|
|
||||||
MacOptionsButtonCompress:SetWidth(136)
|
|
||||||
MacOptionsButtonCompress:ClearAllPoints()
|
|
||||||
MacOptionsButtonCompress:SetPoint(tPoint, tRTo, tRP, 4, tY)
|
|
||||||
|
|
||||||
MacOptionsFrameCancel:SetWidth(96)
|
|
||||||
MacOptionsFrameCancel:SetHeight(22)
|
|
||||||
tPoint, tRTo, tRP, _, tY = MacOptionsFrameCancel:GetPoint()
|
|
||||||
MacOptionsFrameCancel:ClearAllPoints()
|
|
||||||
MacOptionsFrameCancel:SetPoint(tPoint, tRTo, tRP, -14, tY)
|
|
||||||
|
|
||||||
MacOptionsFrameOkay:ClearAllPoints()
|
|
||||||
MacOptionsFrameOkay:SetWidth(96)
|
|
||||||
MacOptionsFrameOkay:SetHeight(22)
|
|
||||||
MacOptionsFrameOkay:SetPoint("LEFT",MacOptionsFrameCancel, -99,0)
|
|
||||||
|
|
||||||
MacOptionsButtonKeybindings:ClearAllPoints()
|
|
||||||
MacOptionsButtonKeybindings:SetWidth(96)
|
|
||||||
MacOptionsButtonKeybindings:SetHeight(22)
|
|
||||||
MacOptionsButtonKeybindings:SetPoint("LEFT",MacOptionsFrameOkay, -99,0)
|
|
||||||
|
|
||||||
MacOptionsFrameDefaults:SetWidth(96)
|
|
||||||
MacOptionsFrameDefaults:SetHeight(22)
|
|
||||||
|
|
||||||
MacOptionsCompressFrame:SetTemplate("Default", true)
|
|
||||||
|
|
||||||
MacOptionsCompressFrameHeader:SetTexture("")
|
|
||||||
MacOptionsCompressFrameHeader:ClearAllPoints()
|
|
||||||
MacOptionsCompressFrameHeader:SetPoint("TOP", MacOptionsCompressFrame, 0, 0)
|
|
||||||
|
|
||||||
S:HandleButton(MacOptionsCompressFrameDelete)
|
|
||||||
S:HandleButton(MacOptionsCompressFrameSkip)
|
|
||||||
S:HandleButton(MacOptionsCompressFrameCompress)
|
|
||||||
|
|
||||||
MacOptionsCancelFrame:SetTemplate("Default", true)
|
|
||||||
|
|
||||||
MacOptionsCancelFrameHeader:SetTexture("")
|
|
||||||
MacOptionsCancelFrameHeader:ClearAllPoints()
|
|
||||||
MacOptionsCancelFrameHeader:SetPoint("TOP", MacOptionsCancelFrame, 0, 0)
|
|
||||||
|
|
||||||
S:HandleButton(MacOptionsCancelFrameNo)
|
|
||||||
S:HandleButton(MacOptionsCancelFrameYes)
|
|
||||||
end
|
|
||||||
|
|
||||||
if GetLocale() == "koKR" then
|
if GetLocale() == "koKR" then
|
||||||
S:HandleButton(GameMenuButtonRatings)
|
S:HandleButton(GameMenuButtonRatings)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user