Skip to content

Commit

Permalink
fix: Change of OrbitCamera to ModelScene.ControlFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
arnvid committed Nov 9, 2023
1 parent b4dcee1 commit a35851c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Skin/Interface/AddOns/Blizzard_Collections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ function private.AddOns.Blizzard_Collections()
MountDisplay.NoMountsTex:SetAlpha(0)
MountDisplay.ShadowOverlay:Hide()
Base.CropIcon(MountDisplay.InfoButton.Icon, MountDisplay.InfoButton)
Skin.RotateOrbitCameraLeftButtonTemplate(MountDisplay.ModelScene.RotateLeftButton)
Skin.RotateOrbitCameraRightButtonTemplate(MountDisplay.ModelScene.RotateRightButton)
Skin.ModelSceneControlFrameTemplateLeftButtonTemplate(MountDisplay.ModelScene.ControlFrame.rotateLeftButton)
Skin.ModelSceneControlFrameTemplateRightButtonTemplate(MountDisplay.ModelScene.ControlFrame.rotateRightButton)
Skin.UICheckButtonTemplate(MountDisplay.ModelScene.TogglePlayer)

Skin.WowScrollBoxList(MountJournal.ScrollBox)
Expand Down
4 changes: 2 additions & 2 deletions Skin/Interface/SharedXML/ModelPreviewFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function private.SharedXML.ModelPreviewFrame()
ModelPreviewFrame.Display.ShadowOverlay:Hide()

local ModelScene = ModelPreviewFrame.Display.ModelScene
Skin.RotateOrbitCameraLeftButtonTemplate(ModelScene.RotateLeftButton)
Skin.RotateOrbitCameraRightButtonTemplate(ModelScene.RotateRightButton)
Skin.ModelSceneControlFrameTemplateLeftButtonTemplate(ModelScene.ControlFrame.rotateLeftButton)
Skin.ModelSceneControlFrameTemplateRightButtonTemplate(ModelScene.ControlFrame.rotateRightButton)
Skin.NavButtonPrevious(ModelScene.CarouselLeftButton)
Skin.NavButtonNext(ModelScene.CarouselRightButton)
end
12 changes: 6 additions & 6 deletions Skin/Interface/SharedXML/ModelSceneTemplates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ local Skin = Aurora.Skin
--end

do --[[ SharedXML\ModelSceneTemplates.xml ]]
function Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
Skin.FrameTypeButton(Button)
function Skin.ModifyModelSceneControlFrameBaseButtonTemplate(Button)
Skin.FrameTypeButton(Button)
Button:SetBackdropOption("offsets", {
left = 5,
right = 5,
top = 5,
bottom = 5,
})
end
function Skin.RotateOrbitCameraLeftButtonTemplate(Button)
Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
function Skin.ModelSceneControlFrameTemplateLeftButtonTemplate(Button)
Skin.ModifyModelSceneControlFrameBaseButtonTemplate(Button)

local bg = Button:GetBackdropTexture("bg")
local arrow = Button:CreateTexture(nil, "ARTWORK")
Expand All @@ -33,8 +33,8 @@ do --[[ SharedXML\ModelSceneTemplates.xml ]]

Button._auroraTextures = {arrow}
end
function Skin.RotateOrbitCameraRightButtonTemplate(Button)
Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
function Skin.ModelSceneControlFrameTemplateRightButtonTemplate(Button)
Skin.ModifyModelSceneControlFrameBaseButtonTemplate(Button)

local bg = Button:GetBackdropTexture("bg")
local arrow = Button:CreateTexture(nil, "ARTWORK")
Expand Down

0 comments on commit a35851c

Please sign in to comment.