├── .github
├── ISSUE_TEMPLATE
│ ├── bug-report.md
│ ├── config.yml
│ ├── feature_request.md
│ └── question.md
├── PULL_REQUEST_TEMPLATE.md
└── workflows
│ ├── package_beta.yml
│ ├── package_release.yml
│ ├── parse_docs.yml
│ ├── pull_request.yml
│ ├── tag_beta.yml
│ └── tag_release.yml
├── .gitignore
├── .luacheckrc
├── .pkgmeta
├── .pkgmeta-bcc
├── .pkgmeta-classic
├── Aurora.sublime-project
├── Aurora.toc
├── CHANGELOG.md
├── LICENSE.md
├── README.md
├── Skin
├── AddOns
│ ├── AddOns.lua
│ └── AddOns.xml
├── BCC
│ ├── AddOns
│ │ ├── AddOns.xml
│ │ ├── Blizzard_AuctionUI.lua
│ │ ├── Blizzard_BattlefieldMap.lua
│ │ ├── Blizzard_BindingUI.lua
│ │ ├── Blizzard_CUFProfiles.lua
│ │ ├── Blizzard_Channels.lua
│ │ ├── Blizzard_Communities.lua
│ │ ├── Blizzard_CompactRaidFrames.lua
│ │ ├── Blizzard_CraftUI.lua
│ │ ├── Blizzard_DebugTools.lua
│ │ ├── Blizzard_EventTrace.lua
│ │ ├── Blizzard_InspectUI.lua
│ │ ├── Blizzard_MacroUI.lua
│ │ ├── Blizzard_RaidUI.lua
│ │ ├── Blizzard_TalentUI.lua
│ │ ├── Blizzard_TimeManager.lua
│ │ ├── Blizzard_TradeSkillUI.lua
│ │ ├── Blizzard_TrainerUI.lua
│ │ ├── Blizzard_UIWidgets.lua
│ │ └── Blizzard_WorldMap.lua
│ ├── FrameXML
│ │ ├── ActionBarController.lua
│ │ ├── AudioOptionsPanels.lua
│ │ ├── AutoComplete.lua
│ │ ├── BNet.lua
│ │ ├── BankFrame.lua
│ │ ├── CastingBarFrame.lua
│ │ ├── CharacterFrame.lua
│ │ ├── CharacterFrameTemplates.lua
│ │ ├── ChatBubbleTemplates.lua
│ │ ├── ChatConfigFrame.lua
│ │ ├── ChatFrame.lua
│ │ ├── CinematicFrame.lua
│ │ ├── ClassTrainerFrameTemplates.lua
│ │ ├── ColorPickerFrame.lua
│ │ ├── CompactUnitFrame.lua
│ │ ├── Constants.lua
│ │ ├── ContainerFrame.lua
│ │ ├── DressUpFrames.lua
│ │ ├── FloatingChatFrame.lua
│ │ ├── Fonts.lua
│ │ ├── FrameXML.xml
│ │ ├── FriendsFrame.lua
│ │ ├── GameMenuFrame.lua
│ │ ├── GameTooltip.lua
│ │ ├── GossipFrame.lua
│ │ ├── GuildRegistrarFrame.lua
│ │ ├── HelpFrame.lua
│ │ ├── InterfaceOptionsFrame.lua
│ │ ├── InterfaceOptionsPanels.lua
│ │ ├── ItemButtonTemplate.lua
│ │ ├── ItemRef.lua
│ │ ├── ItemTextFrame.lua
│ │ ├── LootFrame.lua
│ │ ├── LootHistory.lua
│ │ ├── MailFrame.lua
│ │ ├── MainMenuBarBagButtons.lua
│ │ ├── MerchantFrame.lua
│ │ ├── MirrorTimer.lua
│ │ ├── MoneyFrame.lua
│ │ ├── MoneyInputFrame.lua
│ │ ├── MovieFrame.lua
│ │ ├── NavigationBar.lua
│ │ ├── OptionsFrameTemplates.lua
│ │ ├── OptionsPanelTemplates.lua
│ │ ├── PVPFrame.lua
│ │ ├── PVPHelper.lua
│ │ ├── PaperDollFrame.lua
│ │ ├── PetActionBarFrame.lua
│ │ ├── PetPaperDollFrame.lua
│ │ ├── PetStable.lua
│ │ ├── PetitionFrame.lua
│ │ ├── QuestFrame.lua
│ │ ├── QuestInfo.lua
│ │ ├── QuestLogFrame.lua
│ │ ├── QuestTimerFrame.lua
│ │ ├── RaidFrame.lua
│ │ ├── RatingMenuFrame.lua
│ │ ├── ReadyCheck.lua
│ │ ├── ReputationFrame.lua
│ │ ├── SkillFrame.lua
│ │ ├── SocialToast.lua
│ │ ├── SpellBookFrame.lua
│ │ ├── StackSplitFrame.lua
│ │ ├── StaticPopup.lua
│ │ ├── StaticPopupSpecial.lua
│ │ ├── TabardFrame.lua
│ │ ├── TaxiFrame.lua
│ │ ├── TradeFrame.lua
│ │ ├── TutorialFrame.lua
│ │ ├── UIDropDownMenu.lua
│ │ ├── UIMenu.lua
│ │ ├── UIOptions.lua
│ │ ├── UIPanelTemplates.lua
│ │ ├── UIParent.lua
│ │ ├── UnitPopupCustomControls.lua
│ │ ├── UnitPopupSlider.lua
│ │ ├── VideoOptionsFrame.lua
│ │ └── VoiceToggleButton.lua
│ └── SharedXML
│ │ ├── AddonList.lua
│ │ ├── Backdrop.lua
│ │ ├── HybridScrollFrame.lua
│ │ ├── ModelPreviewFrame.lua
│ │ ├── ModelSceneTemplates.lua
│ │ ├── NineSlice.lua
│ │ ├── Pools.lua
│ │ ├── PropertyButton.lua
│ │ ├── PropertySlider.lua
│ │ ├── Scroll
│ │ ├── ScrollBar.lua
│ │ ├── ScrollBox.lua
│ │ └── ScrollTemplates.lua
│ │ ├── SecureUIPanelTemplates.lua
│ │ ├── SharedBasicControls.lua
│ │ ├── SharedTooltipTemplates.lua
│ │ ├── SharedUIPanelTemplates.lua
│ │ └── VideoOptionsPanels.lua
├── Classic
│ ├── AddOns
│ │ ├── AddOns.xml
│ │ ├── Blizzard_AuctionUI.lua
│ │ ├── Blizzard_BattlefieldMap.lua
│ │ ├── Blizzard_BindingUI.lua
│ │ ├── Blizzard_CUFProfiles.lua
│ │ ├── Blizzard_Channels.lua
│ │ ├── Blizzard_Communities.lua
│ │ ├── Blizzard_CompactRaidFrames.lua
│ │ ├── Blizzard_CraftUI.lua
│ │ ├── Blizzard_DebugTools.lua
│ │ ├── Blizzard_EventTrace.lua
│ │ ├── Blizzard_InspectUI.lua
│ │ ├── Blizzard_MacroUI.lua
│ │ ├── Blizzard_RaidUI.lua
│ │ ├── Blizzard_TalentUI.lua
│ │ ├── Blizzard_TimeManager.lua
│ │ ├── Blizzard_TradeSkillUI.lua
│ │ ├── Blizzard_TrainerUI.lua
│ │ ├── Blizzard_UIWidgets.lua
│ │ └── Blizzard_WorldMap.lua
│ ├── FrameXML
│ │ ├── ActionBarController.lua
│ │ ├── AudioOptionsPanels.lua
│ │ ├── AutoComplete.lua
│ │ ├── BNet.lua
│ │ ├── BankFrame.lua
│ │ ├── CastingBarFrame.lua
│ │ ├── CharacterFrame.lua
│ │ ├── CharacterFrameTemplates.lua
│ │ ├── ChatBubbles.lua
│ │ ├── ChatConfigFrame.lua
│ │ ├── ChatFrame.lua
│ │ ├── CinematicFrame.lua
│ │ ├── ClassTrainerFrameTemplates.lua
│ │ ├── ColorPickerFrame.lua
│ │ ├── CompactUnitFrame.lua
│ │ ├── Constants.lua
│ │ ├── ContainerFrame.lua
│ │ ├── DressUpFrames.lua
│ │ ├── FloatingChatFrame.lua
│ │ ├── Fonts.lua
│ │ ├── FrameXML.xml
│ │ ├── FriendsFrame.lua
│ │ ├── GameMenuFrame.lua
│ │ ├── GameTooltip.lua
│ │ ├── GossipFrame.lua
│ │ ├── GuildRegistrarFrame.lua
│ │ ├── HelpFrame.lua
│ │ ├── HonorFrame.lua
│ │ ├── InterfaceOptionsFrame.lua
│ │ ├── InterfaceOptionsPanels.lua
│ │ ├── ItemButtonTemplate.lua
│ │ ├── ItemRef.lua
│ │ ├── ItemTextFrame.lua
│ │ ├── LootFrame.lua
│ │ ├── LootHistory.lua
│ │ ├── MailFrame.lua
│ │ ├── MainMenuBarBagButtons.lua
│ │ ├── MerchantFrame.lua
│ │ ├── MirrorTimer.lua
│ │ ├── MoneyFrame.lua
│ │ ├── MoneyInputFrame.lua
│ │ ├── MovieFrame.lua
│ │ ├── NavigationBar.lua
│ │ ├── OptionsFrameTemplates.lua
│ │ ├── OptionsPanelTemplates.lua
│ │ ├── PVPHelper.lua
│ │ ├── PaperDollFrame.lua
│ │ ├── PetActionBarFrame.lua
│ │ ├── PetPaperDollFrame.lua
│ │ ├── PetStable.lua
│ │ ├── PetitionFrame.lua
│ │ ├── QuestFrame.lua
│ │ ├── QuestInfo.lua
│ │ ├── QuestLogFrame.lua
│ │ ├── QuestTimerFrame.lua
│ │ ├── RaidFrame.lua
│ │ ├── RatingMenuFrame.lua
│ │ ├── ReadyCheck.lua
│ │ ├── ReputationFrame.lua
│ │ ├── SkillFrame.lua
│ │ ├── SocialToast.lua
│ │ ├── SpellBookFrame.lua
│ │ ├── StackSplitFrame.lua
│ │ ├── StaticPopup.lua
│ │ ├── StaticPopupSpecial.lua
│ │ ├── TabardFrame.lua
│ │ ├── TaxiFrame.lua
│ │ ├── TradeFrame.lua
│ │ ├── TutorialFrame.lua
│ │ ├── UIDropDownMenu.lua
│ │ ├── UIMenu.lua
│ │ ├── UIOptions.lua
│ │ ├── UIPanelTemplates.lua
│ │ ├── UIParent.lua
│ │ ├── UnitPopupCustomControls.lua
│ │ ├── UnitPopupSlider.lua
│ │ ├── VideoOptionsFrame.lua
│ │ └── VoiceToggleButton.lua
│ └── SharedXML
│ │ ├── AddonList.lua
│ │ ├── HybridScrollFrame.lua
│ │ ├── ModelPreviewFrame.lua
│ │ ├── ModelSceneTemplates.lua
│ │ ├── Pools.lua
│ │ ├── PropertyButton.lua
│ │ ├── PropertySlider.lua
│ │ ├── Scroll
│ │ ├── ScrollBar.lua
│ │ ├── ScrollBox.lua
│ │ └── ScrollTemplates.lua
│ │ ├── SecureUIPanelTemplates.lua
│ │ ├── SharedBasicControls.lua
│ │ ├── SharedUIPanelTemplates.lua
│ │ └── VideoOptionsPanels.lua
├── FrameXML
│ ├── FrameXML.lua
│ └── FrameXML.xml
├── Retail
│ ├── AddOns
│ │ ├── AddOns.xml
│ │ ├── Blizzard_AchievementUI.lua
│ │ ├── Blizzard_AdventureMap.lua
│ │ ├── Blizzard_AnimaDiversionUI.lua
│ │ ├── Blizzard_ArchaeologyUI.lua
│ │ ├── Blizzard_ArtifactUI.lua
│ │ ├── Blizzard_AuctionHouseUI.lua
│ │ ├── Blizzard_AzeriteEssenceUI.lua
│ │ ├── Blizzard_AzeriteRespecUI.lua
│ │ ├── Blizzard_AzeriteUI.lua
│ │ ├── Blizzard_BarbershopUI.lua
│ │ ├── Blizzard_BattlefieldMap.lua
│ │ ├── Blizzard_BindingUI.lua
│ │ ├── Blizzard_BlackMarketUI.lua
│ │ ├── Blizzard_CUFProfiles.lua
│ │ ├── Blizzard_Calendar.lua
│ │ ├── Blizzard_ChallengesUI.lua
│ │ ├── Blizzard_Channels.lua
│ │ ├── Blizzard_ChromieTimeUI.lua
│ │ ├── Blizzard_Collections.lua
│ │ ├── Blizzard_Communities.lua
│ │ ├── Blizzard_CompactRaidFrames.lua
│ │ ├── Blizzard_Contribution.lua
│ │ ├── Blizzard_CovenantPreviewUI.lua
│ │ ├── Blizzard_CovenantRenown.lua
│ │ ├── Blizzard_CovenantSanctum.lua
│ │ ├── Blizzard_DeathRecap.lua
│ │ ├── Blizzard_DebugTools.lua
│ │ ├── Blizzard_EncounterJournal.lua
│ │ ├── Blizzard_EventTrace.lua
│ │ ├── Blizzard_FlightMap.lua
│ │ ├── Blizzard_GarrisonTemplates.lua
│ │ ├── Blizzard_GarrisonUI.lua
│ │ ├── Blizzard_GuildBankUI.lua
│ │ ├── Blizzard_GuildControlUI.lua
│ │ ├── Blizzard_GuildUI.lua
│ │ ├── Blizzard_InspectUI.lua
│ │ ├── Blizzard_IslandsPartyPoseUI.lua
│ │ ├── Blizzard_IslandsQueueUI.lua
│ │ ├── Blizzard_ItemInteractionUI.lua
│ │ ├── Blizzard_ItemSocketingUI.lua
│ │ ├── Blizzard_ItemUpgradeUI.lua
│ │ ├── Blizzard_LandingSoulbinds.lua
│ │ ├── Blizzard_MacroUI.lua
│ │ ├── Blizzard_MapCanvas.lua
│ │ ├── Blizzard_MawBuffs.lua
│ │ ├── Blizzard_NewPlayerExperienceGuide.lua
│ │ ├── Blizzard_ObjectiveTracker.lua
│ │ ├── Blizzard_OrderHallUI.lua
│ │ ├── Blizzard_PVPMatch.lua
│ │ ├── Blizzard_PVPUI.lua
│ │ ├── Blizzard_PartyPoseUI.lua
│ │ ├── Blizzard_PetBattleUI.lua
│ │ ├── Blizzard_PlayerChoiceUI.lua
│ │ ├── Blizzard_RaidUI.lua
│ │ ├── Blizzard_ScrappingMachineUI.lua
│ │ ├── Blizzard_SharedMapDataProviders.lua
│ │ ├── Blizzard_Soulbinds.lua
│ │ ├── Blizzard_TalentUI.lua
│ │ ├── Blizzard_TimeManager.lua
│ │ ├── Blizzard_TokenUI.lua
│ │ ├── Blizzard_TorghastLevelPicker.lua
│ │ ├── Blizzard_TradeSkillUI.lua
│ │ ├── Blizzard_TrainerUI.lua
│ │ ├── Blizzard_UIWidgets.lua
│ │ ├── Blizzard_VoidStorageUI.lua
│ │ ├── Blizzard_WarfrontsPartyPoseUI.lua
│ │ └── Blizzard_WorldMap.lua
│ ├── FrameXML
│ │ ├── ActionBarController.lua
│ │ ├── AdventuresFollowerTooltip.lua
│ │ ├── AlertFrameSystems.lua
│ │ ├── AlertFrames.lua
│ │ ├── AutoComplete.lua
│ │ ├── BNet.lua
│ │ ├── BankFrame.lua
│ │ ├── BattlePetTooltip.lua
│ │ ├── BossBannerToast.lua
│ │ ├── CampaignOverview.lua
│ │ ├── CastingBarFrame.lua
│ │ ├── CharacterFrame.lua
│ │ ├── CharacterFrameTemplates.lua
│ │ ├── ChatBubbleTemplates.lua
│ │ ├── ChatConfigFrame.lua
│ │ ├── ChatFrame.lua
│ │ ├── CinematicFrame.lua
│ │ ├── ColorPickerFrame.lua
│ │ ├── CompactUnitFrame.lua
│ │ ├── Constants.lua
│ │ ├── ContainerFrame.lua
│ │ ├── DressUpFrames.lua
│ │ ├── EquipmentFlyout.lua
│ │ ├── FloatingChatFrame.lua
│ │ ├── FloatingGarrisonFollowerTooltip.lua
│ │ ├── FloatingPetBattleTooltip.lua
│ │ ├── Fonts.lua
│ │ ├── FrameXML.xml
│ │ ├── FriendsFrame.lua
│ │ ├── GameMenuFrame.lua
│ │ ├── GameTooltip.lua
│ │ ├── GarrisonBaseUtils.lua
│ │ ├── GhostFrame.lua
│ │ ├── GossipFrame.lua
│ │ ├── GuildInviteFrame.lua
│ │ ├── GuildRegistrarFrame.lua
│ │ ├── HelpFrame.lua
│ │ ├── InterfaceOptionsFrame.lua
│ │ ├── InterfaceOptionsPanels.lua
│ │ ├── ItemButtonTemplate.lua
│ │ ├── ItemRef.lua
│ │ ├── ItemTextFrame.lua
│ │ ├── LFDFrame.lua
│ │ ├── LFGFrame.lua
│ │ ├── LFGList.lua
│ │ ├── LootFrame.lua
│ │ ├── LootHistory.lua
│ │ ├── MailFrame.lua
│ │ ├── MainMenuBarBagButtons.lua
│ │ ├── MerchantFrame.lua
│ │ ├── MirrorTimer.lua
│ │ ├── MoneyFrame.lua
│ │ ├── MoneyInputFrame.lua
│ │ ├── MovieFrame.lua
│ │ ├── NavigationBar.lua
│ │ ├── PVEFrame.lua
│ │ ├── PVPHelper.lua
│ │ ├── PVPHonorSystem.lua
│ │ ├── PVPUITemplates.lua
│ │ ├── PaperDollFrame.lua
│ │ ├── PetActionBarFrame.lua
│ │ ├── PetStable.lua
│ │ ├── PetitionFrame.lua
│ │ ├── QuestFrame.lua
│ │ ├── QuestInfo.lua
│ │ ├── QuestMapFrame.lua
│ │ ├── QuestPOI.lua
│ │ ├── QueueStatusFrame.lua
│ │ ├── QuickJoin.lua
│ │ ├── QuickJoinToast.lua
│ │ ├── RaidFinder.lua
│ │ ├── RaidFrame.lua
│ │ ├── RatingMenuFrame.lua
│ │ ├── ReadyCheck.lua
│ │ ├── RecruitAFriendFrame.lua
│ │ ├── ReputationFrame.lua
│ │ ├── RolePoll.lua
│ │ ├── SharedPetBattleTemplates.lua
│ │ ├── SocialToast.lua
│ │ ├── SpellBookFrame.lua
│ │ ├── SplashFrame.lua
│ │ ├── StackSplitFrame.lua
│ │ ├── StaticPopup.lua
│ │ ├── StaticPopupSpecial.lua
│ │ ├── TabardFrame.lua
│ │ ├── TalentFrameBase.lua
│ │ ├── TalentFrameTemplates.lua
│ │ ├── Timer.lua
│ │ ├── TradeFrame.lua
│ │ ├── TutorialFrame.lua
│ │ ├── UIMenu.lua
│ │ ├── UIPanelTemplates.lua
│ │ ├── UIParent.lua
│ │ ├── UnitPopupCustomControls.lua
│ │ ├── UnitPopupSlider.lua
│ │ ├── VoiceToggleButton.lua
│ │ ├── WarCampaignTemplates.lua
│ │ ├── WardrobeOutfits.lua
│ │ ├── WorldMapFrame.lua
│ │ └── ZoneAbility.lua
│ └── SharedXML
│ │ ├── AddonList.lua
│ │ ├── AudioOptionsPanels.lua
│ │ ├── AudioOptionsPanelsVoice.lua
│ │ ├── Backdrop.lua
│ │ ├── HelpTip.lua
│ │ ├── HybridScrollFrame.lua
│ │ ├── ModelPreviewFrame.lua
│ │ ├── ModelSceneTemplates.lua
│ │ ├── NineSlice.lua
│ │ ├── OptionsFrameTemplates.lua
│ │ ├── OptionsPanelTemplates.lua
│ │ ├── Pools.lua
│ │ ├── PropertyButton.lua
│ │ ├── PropertySlider.lua
│ │ ├── Scroll
│ │ ├── ScrollBar.lua
│ │ ├── ScrollBox.lua
│ │ └── ScrollTemplates.lua
│ │ ├── ScrollList.lua
│ │ ├── SecureUIPanelTemplates.lua
│ │ ├── SharedBasicControls.lua
│ │ ├── SharedColorConstants.lua
│ │ ├── SharedTooltipTemplates.lua
│ │ ├── SharedUIPanelTemplates.lua
│ │ ├── TemplatedList.lua
│ │ ├── UIDropDownMenu.lua
│ │ ├── VideoOptionsFrame.lua
│ │ └── VideoOptionsPanels.lua
├── api.lua
├── backdrop.lua
├── cleanup.lua
├── color.lua
├── deprecated.lua
├── init.lua
├── skin.lua
├── skin.xml
├── texture.lua
└── util.lua
├── aurora.lua
├── gui.lua
├── media
├── CheckButtonHilight.blp
├── UI-LFG-ICON-ROLES.blp
├── arrow-down-active.BLP
├── arrow-left-active.BLP
├── arrow-right-active.BLP
├── arrow-up-active.BLP
├── font.ttf
└── gradient.BLP
├── package.bat
└── test.lua
/.github/ISSUE_TEMPLATE/bug-report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: "[Bug]"
5 | labels: bug
6 | assignees: Gethe
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Additional context**
27 | Add any other context about the problem here.
28 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: "[Feature]"
5 | labels: enhancement
6 | assignees: Gethe
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/question.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Question
3 | about: Ask a question
4 | title: "[Qustion]"
5 | labels: question
6 | assignees: Gethe
7 |
8 | ---
9 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | **What does this PR implement or fix? Explain your changes**
2 |
3 | **Does this close any currently open issues?**
4 | Link to the issues here
5 | #1 #5
6 |
7 | **Any relevant logs, error output, etc?**
8 | (If it’s long, please paste to https://ghostbin.com/ and insert the link here.)
9 |
10 | **Any other comments?**
11 |
--------------------------------------------------------------------------------
/.github/workflows/package_beta.yml:
--------------------------------------------------------------------------------
1 | name: Create Beta Package
2 |
3 | on:
4 | create:
5 |
6 | jobs:
7 | is_beta:
8 | if: contains(github.ref, 'beta') == true
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - name: Check
13 | run: |
14 | echo ${{ github.event }}
15 | echo ${{ github.event_name }}
16 | echo ${{ github.event_path }}
17 | echo ${{ github.ref }}
18 |
19 | - name: Remove Changelog
20 | run: rm -f CHANGELOG.md
21 |
22 | mainline:
23 | needs: is_beta
24 | runs-on: ubuntu-latest
25 |
26 | steps:
27 | - uses: actions/checkout@v1
28 |
29 | - name: Create Mainline Package
30 | uses: BigWigsMods/packager@master
31 | with:
32 | args: -o
33 |
34 | bcc:
35 | needs: is_beta
36 | runs-on: ubuntu-latest
37 |
38 | steps:
39 | - uses: actions/checkout@v1
40 |
41 | - name: Create BCC Package
42 | uses: BigWigsMods/packager@master
43 | with:
44 | args: -o -g bcc -m .pkgmeta-bcc
45 |
46 | classic:
47 | needs: is_beta
48 | runs-on: ubuntu-latest
49 |
50 | steps:
51 | - uses: actions/checkout@v1
52 |
53 | - name: Create Classic Package
54 | uses: BigWigsMods/packager@master
55 | with:
56 | args: -o -g classic -m .pkgmeta-classic
57 |
--------------------------------------------------------------------------------
/.github/workflows/package_release.yml:
--------------------------------------------------------------------------------
1 | name: Create Release Package
2 |
3 | on:
4 | create:
5 |
6 | jobs:
7 | is_release:
8 | if: contains(github.ref, 'beta') != true
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - name: Check
13 | run: |
14 | echo ${{ github.event }}
15 | echo ${{ github.event_name }}
16 | echo ${{ github.event_path }}
17 | echo ${{ github.ref }}
18 |
19 | mainline:
20 | needs: is_release
21 | runs-on: ubuntu-latest
22 |
23 | steps:
24 | - uses: actions/checkout@v1
25 |
26 | - name: Create Mainline Package
27 | uses: BigWigsMods/packager@master
28 | with:
29 | args: -o
30 |
31 | bcc:
32 | needs: is_release
33 | runs-on: ubuntu-latest
34 |
35 | steps:
36 | - uses: actions/checkout@v1
37 |
38 | - name: Create BCC Package
39 | uses: BigWigsMods/packager@master
40 | with:
41 | args: -o -g bcc -m .pkgmeta-bcc
42 |
43 | classic:
44 | needs: is_release
45 | runs-on: ubuntu-latest
46 |
47 | steps:
48 | - uses: actions/checkout@v1
49 |
50 | - name: Create Classic Package
51 | uses: BigWigsMods/packager@master
52 | with:
53 | args: -o -g classic -m .pkgmeta-classic
54 |
--------------------------------------------------------------------------------
/.github/workflows/parse_docs.yml:
--------------------------------------------------------------------------------
1 | name: Parse Documentation
2 |
3 | on:
4 | push:
5 | branches:
6 | - master
7 |
8 | jobs:
9 | build:
10 | runs-on: ubuntu-latest
11 |
12 | env:
13 | CF_API_KEY: ${{ secrets.CF_API_KEY }}
14 | WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }}
15 | GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }}
16 |
17 | steps:
18 | - uses: actions/checkout@v1
19 |
20 | - uses: actions/setup-python@v1
21 | with:
22 | python-version: '3.8'
23 | architecture: 'x64'
24 |
25 | - name: Parse Docs
26 | env:
27 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 | run: |
29 | curl -s https://raw.githubusercontent.com/Gethe/lua-doc-parser/https/parse.py -o parse.py
30 | curl -s https://raw.githubusercontent.com/Gethe/lua-doc-parser/https/build.sh | bash
31 |
--------------------------------------------------------------------------------
/.github/workflows/pull_request.yml:
--------------------------------------------------------------------------------
1 | name: Pull Request
2 |
3 | on: pull_request
4 |
5 | jobs:
6 | pull_request:
7 | runs-on: ubuntu-latest
8 |
9 | steps:
10 | - uses: actions/checkout@v1
11 |
12 | - name: Run Luacheck
13 | uses: nebularg/actions-luacheck@v1
14 | with:
15 | args: --no-color -q
16 | annotate: warning
17 |
--------------------------------------------------------------------------------
/.github/workflows/tag_beta.yml:
--------------------------------------------------------------------------------
1 | name: Tag Beta
2 |
3 | on:
4 | workflow_dispatch:
5 | push:
6 | branches:
7 | - main
8 |
9 | jobs:
10 | release:
11 | runs-on: ubuntu-latest
12 |
13 | steps:
14 | - uses: actions/checkout@v1
15 |
16 | - name: Run Luacheck
17 | uses: nebularg/actions-luacheck@v1
18 | with:
19 | args: --no-color -q
20 | annotate: warning
21 |
22 | - name: Check variables
23 | run: |
24 | echo ${{ github.event }}
25 | echo ${{ github.event.head_commit.message }}
26 | echo ${{ github.event_name }}
27 | echo ${{ github.event_path }}
28 | echo ${{ github.ref }}
29 |
30 | - name: Check for release version
31 | uses: actions/github-script@v2
32 | id: check
33 | with:
34 | script: |
35 | const { owner, repo } = context.repo
36 | const regex = /\d+\.\d+\.\d+\.\d+/g;
37 | if (regex.test(${{ github.event.head_commit.message }})) {
38 | console.log('Release build, cancelling ...');
39 | const run_id = "${{ github.run_id }}";
40 | await github.actions.cancelWorkflowRun({ owner, repo, run_id });
41 | return 'stop'
42 | } else {
43 | return 'build'
44 | }
45 | result-encoding: string
46 |
47 | - name: Set beta
48 | if: steps.check.outputs.result == 'build'
49 | uses: mathieudutour/github-tag-action@v5.5
50 | with:
51 | github_token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
52 | custom_tag: "${{ github.event.head_commit.message }}.${{ github.run_number }}-beta"
53 | create_annotated_tag: true
54 |
--------------------------------------------------------------------------------
/.github/workflows/tag_release.yml:
--------------------------------------------------------------------------------
1 | name: Tag Release
2 |
3 | on:
4 | workflow_dispatch:
5 | push:
6 | branches:
7 | - main
8 |
9 | jobs:
10 | release:
11 | runs-on: ubuntu-latest
12 |
13 | steps:
14 | - uses: actions/checkout@v1
15 |
16 | - name: Run Luacheck
17 | uses: nebularg/actions-luacheck@v1
18 | with:
19 | args: --no-color -q
20 | annotate: warning
21 |
22 | - name: Check variables
23 | run: |
24 | echo ${{ github.event }}
25 | echo ${{ github.event.head_commit.message }}
26 | echo ${{ github.event_name }}
27 | echo ${{ github.event_path }}
28 | echo ${{ github.ref }}
29 |
30 | - name: Check for release version
31 | uses: actions/github-script@v2
32 | id: check
33 | with:
34 | script: |
35 | const { owner, repo } = context.repo
36 | const regex = /\d+\.\d+\.\d+\.\d+/g;
37 | if (regex.test(${{ github.event.head_commit.message }})) {
38 | return 'build'
39 | } else {
40 | console.log('Beta build, cancelling ...');
41 | const run_id = "${{ github.run_id }}";
42 | await github.actions.cancelWorkflowRun({ owner, repo, run_id });
43 | return 'stop'
44 | }
45 | result-encoding: string
46 |
47 | - name: Set release
48 | if: steps.check.outputs.result == 'build'
49 | uses: mathieudutour/github-tag-action@v5.5
50 | with:
51 | github_token: ${{ secrets.REPOSITORY_ACCESS_TOKEN }}
52 | custom_tag: ${{ github.event.head_commit.message }}
53 | create_annotated_tag: true
54 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .release
2 | .wiki
3 | *.ini
4 |
5 | ## Sublime Text ##
6 | *.sublime-workspace
7 |
--------------------------------------------------------------------------------
/.luacheckrc:
--------------------------------------------------------------------------------
1 | max_line_length = false
2 | max_cyclomatic_complexity = 37
3 | self = false
4 | unused_args = false
5 | std = "none"
6 | globals = {
7 | "_G"
8 | }
9 |
--------------------------------------------------------------------------------
/.pkgmeta:
--------------------------------------------------------------------------------
1 | package-as: Aurora
2 |
3 | ignore:
4 | - *.sublime*
5 | - *.bat
6 | - test.lua
7 | - Skin/Classic
8 | - Skin/BCC
9 |
10 | manual-changelog:
11 | filename: CHANGELOG.md
12 | markup-type: markdown
13 |
14 | move-folders:
15 | Aurora/Skin/Retail/AddOns: Aurora/Skin/AddOns
16 | Aurora/Skin/Retail/FrameXML: Aurora/Skin/FrameXML
17 | Aurora/Skin/Retail/SharedXML: Aurora/Skin/SharedXML
18 |
--------------------------------------------------------------------------------
/.pkgmeta-bcc:
--------------------------------------------------------------------------------
1 | package-as: Aurora
2 |
3 | ignore:
4 | - *.sublime*
5 | - *.bat
6 | - test.lua
7 | - Skin/Retail
8 | - Skin/Classic
9 |
10 | manual-changelog:
11 | filename: CHANGELOG.md
12 | markup-type: markdown
13 |
14 | move-folders:
15 | Aurora/Skin/BCC/AddOns: Aurora/Skin/AddOns
16 | Aurora/Skin/BCC/FrameXML: Aurora/Skin/FrameXML
17 | Aurora/Skin/BCC/SharedXML: Aurora/Skin/SharedXML
18 |
--------------------------------------------------------------------------------
/.pkgmeta-classic:
--------------------------------------------------------------------------------
1 | package-as: Aurora
2 |
3 | ignore:
4 | - *.sublime*
5 | - *.bat
6 | - test.lua
7 | - Skin/Retail
8 | - Skin/BCC
9 |
10 | manual-changelog:
11 | filename: CHANGELOG.md
12 | markup-type: markdown
13 |
14 | move-folders:
15 | Aurora/Skin/Classic/AddOns: Aurora/Skin/AddOns
16 | Aurora/Skin/Classic/FrameXML: Aurora/Skin/FrameXML
17 | Aurora/Skin/Classic/SharedXML: Aurora/Skin/SharedXML
18 |
--------------------------------------------------------------------------------
/Aurora.sublime-project:
--------------------------------------------------------------------------------
1 | {
2 | "folders":
3 | [
4 | {
5 | "path": ".",
6 | "file_exclude_patterns":
7 | [
8 | "*.sublime*",
9 | ],
10 | "folder_exclude_patterns":
11 | [
12 | ".release",
13 | ],
14 | }
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/Aurora.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 90005
2 | ## Interface-Retail: 90005
3 | ## Interface-Classic: 11307
4 | ## Interface-BCC: 20501
5 | ## Title: Aurora
6 | ## Notes: Minimalistic window theme.
7 | ## Author: Haleth/Lightsword, Gethe
8 | ## Version: 9.0.5.0
9 | ## LoadWith: Blizzard_CompactRaidFrames
10 | ## OptionalDeps: Ace3, LibTextDump-1.0, BugSack
11 | ## SavedVariables: AuroraConfig
12 | ## X-Website: http://www.wowinterface.com/downloads/info18589.html
13 | ## X-Curse-Project-ID: 278735
14 | ## X-WoWI-ID: 18589
15 |
16 | Skin\skin.xml
17 |
18 | aurora.lua
19 | gui.lua
20 |
21 | #@do-not-package@
22 | test.lua
23 | #@end-do-not-package@
24 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright (c) 2010-2021 [Haleth/Lightsword](http://www.wowinterface.com/forums/member.php?u=110142), [Gethe](http://www.wowinterface.com/forums/member.php?u=111611). All rights reserved.
2 |
3 | The contents of this software (the "AddOn"), excluding third-party resources,
4 | fall under the aforementioned copyright. The author(s) of this AddOn hereby
5 | grant the following permissions:
6 |
7 | * Permission to use, read or otherwise interpret this AddOn for personal use,
8 | without restrictions.
9 |
10 | * Permission to include this AddOn with other works not derived from this
11 | AddOn for the purpose of creating "user interface compilations" or "addon
12 | packs" for the "World of Warcraft" game client and to distribute such
13 | collective works on websites operated by Curse, Inc or Good Game Mods, LLC
14 | (including curse.com, curseforge.com, wowace.com and wowinterface.com) as
15 | long as the AddOn is distributed intact and unmodified.
16 |
17 | * This AddOn may not be redistributed by itself or in any other way, in whole
18 | or in part, modified or unmodified, without specific prior written
19 | permission from the author(s) of this AddOn.
20 |
21 | * The names of this AddOn and/or its author(s) may not be used to promote or
22 | endorse works derived from this AddOn without specific prior written
23 | permission from the author(s) of this AddOn.
24 |
25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 | AUTHOR(S) OR COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31 | SOFTWARE.
32 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | Aurora [](https://travis-ci.org/Gethe/Aurora)
2 | ======
3 |
4 | Aurora is an addon which restyles the default Blizzard interface to a clean, minimalistic theme which is consistent across the entire UI.
5 |
6 | A lot of time has been spent on not only basic development and updates, but also refining and perfecting the appearance of each window and every frame.
7 |
8 | A single color, that either matches your current class or is a color of your choosing, is used for highlights and emphasis.
9 |
10 | Options
11 | -------
12 |
13 | Open the Aurora options from the in-game addon options, or type /aurora.
14 |
15 | Bug reports
16 | -----------
17 |
18 | Please report all issues on [GitHub](https://github.com/Haleth/Aurora).
19 |
--------------------------------------------------------------------------------
/Skin/AddOns/AddOns.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 |
3 | private.AddOns = {}
4 |
5 | --[==[ Some boilerplate stuff for new files
6 | local _, private = ...
7 | if not private.isRetail then return end
8 | if not private.isClassic then return end
9 |
10 | --[[ Lua Globals ]]
11 | -- luacheck: globals
12 |
13 | --[[ Core ]]
14 | local Aurora = private.Aurora
15 | local Base = Aurora.Base
16 | local Hook, Skin = Aurora.Hook, Aurora.Skin
17 | local Color, Util = Aurora.Color, Aurora.Util
18 |
19 | --do --[[ AddOns\Blizzard_FileUI.lua ]]
20 | --end
21 |
22 | --do --[[ AddOns\Blizzard_FileUI.xml ]]
23 | --end
24 |
25 | function private.AddOns.Blizzard_FileUI()
26 | ----====####$$$$%%%%$$$$####====----
27 | -- File --
28 | ----====####$$$$%%%%$$$$####====----
29 |
30 | -------------
31 | -- Section --
32 | -------------
33 | end
34 | ]==]
35 |
--------------------------------------------------------------------------------
/Skin/AddOns/AddOns.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Skin/BCC/AddOns/Blizzard_BattlefieldMap.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --[[ do AddOns\Blizzard_BattlefieldMap.lua
14 | end ]]
15 |
16 | --[[ do AddOns\Blizzard_BattlefieldMap.xml
17 | end ]]
18 |
19 | function private.AddOns.Blizzard_BattlefieldMap()
20 | -----------------------
21 | -- BattlefieldMapTab --
22 | -----------------------
23 | _G.BattlefieldMapTab.Left:Hide()
24 | _G.BattlefieldMapTab.Middle:Hide()
25 | _G.BattlefieldMapTab.Right:Hide()
26 |
27 | -------------------------
28 | -- BattlefieldMapFrame --
29 | -------------------------
30 | local BattlefieldMapFrame = _G.BattlefieldMapFrame
31 | BattlefieldMapFrame.ScrollContainer:SetAllPoints()
32 |
33 | local BorderFrame = BattlefieldMapFrame.BorderFrame
34 | BorderFrame.CloseButtonBorder:Hide()
35 | Base.CreateBackdrop(BorderFrame, private.backdrop, {
36 | tl = BorderFrame.TopLeft,
37 | tr = BorderFrame.TopRight,
38 | bl = BorderFrame.BottomLeft,
39 | br = BorderFrame.BottomRight,
40 |
41 | t = BorderFrame.Top,
42 | b = BorderFrame.Bottom,
43 | l = BorderFrame.Left,
44 | r = BorderFrame.Right,
45 | })
46 | Base.SetBackdrop(BorderFrame, Color.frame, 0)
47 |
48 | Skin.UIPanelCloseButton(BorderFrame.CloseButton)
49 | BorderFrame.CloseButton:SetPoint("TOPRIGHT", 10, 9)
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/BCC/AddOns/Blizzard_TimeManager.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local F, C = _G.unpack(private.Aurora)
9 |
10 | function private.AddOns.Blizzard_TimeManager()
11 | _G.TimeManagerGlobe:Hide()
12 | _G.StopwatchFrameBackgroundLeft:Hide()
13 | _G.select(2, _G.StopwatchFrame:GetRegions()):Hide()
14 | _G.StopwatchTabFrameLeft:Hide()
15 | _G.StopwatchTabFrameMiddle:Hide()
16 | _G.StopwatchTabFrameRight:Hide()
17 |
18 | _G.TimeManagerStopwatchCheck:GetNormalTexture():SetTexCoord(.08, .92, .08, .92)
19 | _G.TimeManagerStopwatchCheck:SetCheckedTexture(C.media.checked)
20 | F.CreateBG(_G.TimeManagerStopwatchCheck)
21 |
22 | _G.TimeManagerAlarmHourDropDown:SetWidth(80)
23 | _G.TimeManagerAlarmMinuteDropDown:SetWidth(80)
24 | _G.TimeManagerAlarmAMPMDropDown:SetWidth(90)
25 |
26 | F.ReskinPortraitFrame(_G.TimeManagerFrame, true)
27 |
28 | F.CreateBD(_G.StopwatchFrame)
29 | F.ReskinDropDown(_G.TimeManagerAlarmHourDropDown)
30 | F.ReskinDropDown(_G.TimeManagerAlarmMinuteDropDown)
31 | F.ReskinDropDown(_G.TimeManagerAlarmAMPMDropDown)
32 | F.ReskinInput(_G.TimeManagerAlarmMessageEditBox)
33 | F.ReskinCheck(_G.TimeManagerAlarmEnabledButton)
34 | F.ReskinCheck(_G.TimeManagerMilitaryTimeCheck)
35 | F.ReskinCheck(_G.TimeManagerLocalTimeCheck)
36 | F.ReskinClose(_G.StopwatchCloseButton, "TOPRIGHT", _G.StopwatchFrame, "TOPRIGHT", -2, -2)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/BCC/AddOns/Blizzard_WorldMap.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_WorldMap.lua ]]
12 | --end
13 |
14 | do --[[ AddOns\Blizzard_WorldMap.xml ]]
15 | do --[[ Blizzard_WorldMap.xml ]]
16 | function Skin.WorldMapFrameTemplate(Frame)
17 | end
18 | end
19 |
20 | end
21 |
22 | function private.AddOns.Blizzard_WorldMap()
23 | ----====####$$$$%%%%%$$$$####====----
24 | -- Blizzard_WorldMap --
25 | ----====####$$$$%%%%%$$$$####====----
26 | local WorldMapFrame = _G.WorldMapFrame
27 | Skin.WorldMapFrameTemplate(WorldMapFrame)
28 | Skin.FrameTypeFrame(WorldMapFrame.BorderFrame)
29 |
30 | local top1, top2, top3, top4, mid1, mid2, mid3, mid4, bot1, bot2, bot3, bot4, title = WorldMapFrame.BorderFrame:GetRegions()
31 | top1:Hide()
32 | top2:Hide()
33 | top3:Hide()
34 | top4:Hide()
35 | mid1:Hide()
36 | mid2:Hide()
37 | mid3:Hide()
38 | mid4:Hide()
39 | bot1:Hide()
40 | bot2:Hide()
41 | bot3:Hide()
42 | bot4:Hide()
43 |
44 | local bg = WorldMapFrame.BorderFrame:GetBackdropTexture("bg")
45 | title:ClearAllPoints()
46 | title:SetPoint("TOPLEFT", bg)
47 | title:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
48 |
49 | Skin.UIDropDownMenuTemplate(WorldMapFrame.ContinentDropDown)
50 | Skin.UIDropDownMenuTemplate(WorldMapFrame.ZoneDropDown)
51 | Skin.UIPanelButtonTemplate(_G.WorldMapZoomOutButton)
52 | Skin.UIPanelCloseButton(_G.WorldMapFrameCloseButton)
53 | end
54 |
55 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/AutoComplete.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\AutoComplete.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\AutoComplete.xml ]]
16 | function Skin.AutoCompleteButtonTemplate(Button)
17 | local highlight = Button:GetHighlightTexture()
18 | highlight:ClearAllPoints()
19 | highlight:SetPoint("LEFT", _G.AutoCompleteBox, 1, 0)
20 | highlight:SetPoint("RIGHT", _G.AutoCompleteBox, -1, 0)
21 | highlight:SetPoint("TOP", 0, 0)
22 | highlight:SetPoint("BOTTOM", 0, 0)
23 | highlight:SetColorTexture(Color.highlight.r, Color.highlight.g, Color.highlight.b, .2)
24 | end
25 | end
26 |
27 | function private.FrameXML.AutoComplete()
28 | local AutoCompleteBox = _G.AutoCompleteBox
29 | Skin.FrameTypeFrame(AutoCompleteBox)
30 |
31 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton1)
32 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton2)
33 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton3)
34 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton4)
35 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton5)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/BNet.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\BNet.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\BNet.xml ]]
15 | --end
16 |
17 | function private.FrameXML.BNet()
18 | ------------------
19 | -- BNToastFrame --
20 | ------------------
21 | Skin.SocialToastTemplate(_G.BNToastFrame)
22 |
23 |
24 | --------------------
25 | -- TimeAlertFrame --
26 | --------------------
27 | Skin.SocialToastTemplate(_G.TimeAlertFrame)
28 | end
29 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/CastingBarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\CastingBarFrame.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\CastingBarFrame.xml ]]
17 | function Skin.CastingBarFrameTemplate(StatusBar)
18 | Skin.FrameTypeStatusBar(StatusBar)
19 | Base.SetBackdropColor(StatusBar, Color.frame)
20 |
21 | StatusBar:GetRegions():Hide()
22 | StatusBar.Border:Hide()
23 | StatusBar.Text:ClearAllPoints()
24 | StatusBar.Text:SetPoint("CENTER")
25 | StatusBar.Spark:SetAlpha(0)
26 |
27 | StatusBar.Flash:SetAllPoints(StatusBar)
28 | StatusBar.Flash:SetColorTexture(1, 1, 1)
29 | end
30 | function Skin.SmallCastingBarFrameTemplate(StatusBar)
31 | Skin.FrameTypeStatusBar(StatusBar)
32 |
33 | StatusBar:GetRegions():Hide()
34 | StatusBar.Border:Hide()
35 | StatusBar.Text:ClearAllPoints()
36 | StatusBar.Text:SetPoint("CENTER")
37 | StatusBar.Spark:SetAlpha(0)
38 |
39 | StatusBar.Flash:SetAllPoints(StatusBar)
40 | StatusBar.Flash:SetColorTexture(1, 1, 1)
41 | end
42 | end
43 |
44 | function private.FrameXML.CastingBarFrame()
45 | Skin.CastingBarFrameTemplate(_G.CastingBarFrame)
46 | end
47 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/CharacterFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | --do --[[ FrameXML\CharacterFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\CharacterFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.CharacterFrame()
19 | local CharacterFrame = _G.CharacterFrame
20 | Skin.FrameTypeFrame(CharacterFrame)
21 | CharacterFrame:SetBackdropOption("offsets", {
22 | left = 14,
23 | right = 34,
24 | top = 14,
25 | bottom = 75,
26 | })
27 |
28 | local portrait = CharacterFrame:GetRegions()
29 | portrait:Hide()
30 |
31 | local bg = CharacterFrame:GetBackdropTexture("bg")
32 | _G.CharacterNameText:ClearAllPoints()
33 | _G.CharacterNameText:SetPoint("TOPLEFT", bg)
34 | _G.CharacterNameText:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
35 |
36 | Skin.UIPanelCloseButton(_G.CharacterFrameCloseButton)
37 |
38 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab1)
39 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab2)
40 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab3)
41 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab4)
42 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab5)
43 | Util.PositionRelative("TOPLEFT", bg, "BOTTOMLEFT", 20, -1, 1, "Right", {
44 | _G.CharacterFrameTab1,
45 | _G.CharacterFrameTab2,
46 | _G.CharacterFrameTab3,
47 | _G.CharacterFrameTab4,
48 | _G.CharacterFrameTab5,
49 | })
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/CharacterFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | do --[[ FrameXML\CharacterFrameTemplates.xml ]]
13 | function Skin.CharacterFrameTabButtonTemplate(Button)
14 | Skin.FrameTypeButton(Button)
15 | Button:SetButtonColor(Color.frame, nil, false)
16 |
17 | local name = Button:GetName()
18 | Button:SetHeight(28)
19 |
20 | _G[name.."LeftDisabled"]:SetTexture("")
21 | _G[name.."MiddleDisabled"]:SetTexture("")
22 | _G[name.."RightDisabled"]:SetTexture("")
23 | _G[name.."Left"]:SetTexture("")
24 | _G[name.."Middle"]:SetTexture("")
25 | _G[name.."Right"]:SetTexture("")
26 | _G[name.."Text"]:SetPoint("CENTER", Button, "CENTER")
27 | Button:SetHighlightTexture("")
28 |
29 | Button._auroraTabResize = true
30 | end
31 | end
32 |
33 | --function private.FrameXML.CharacterFrameTemplates()
34 | --end
35 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/CinematicFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | do --[[ FrameXML\CinematicFrame.lua ]]
14 | function Hook.CinematicFrameCloseDialog_OnShow(self)
15 | self:SetScale(_G.UIParent:GetScale())
16 | end
17 | end
18 |
19 | do --[[ FrameXML\CinematicFrame.xml ]]
20 | function Skin.CinematicDialogButtonTemplate(Button)
21 | Button:SetNormalTexture("")
22 | Button:SetPushedTexture("")
23 | Button:SetDisabledTexture("")
24 | Button:SetHighlightTexture("")
25 |
26 | Base.SetBackdrop(Button, Color.button)
27 | Base.SetHighlight(Button)
28 | end
29 | end
30 |
31 | function private.FrameXML.CinematicFrame()
32 | _G.CinematicFrame.closeDialog:HookScript("OnShow", Hook.CinematicFrameCloseDialog_OnShow)
33 |
34 | Skin.DialogBorderTemplate(_G.CinematicFrame.closeDialog)
35 | Skin.CinematicDialogButtonTemplate(_G.CinematicFrameCloseDialogConfirmButton)
36 | Skin.CinematicDialogButtonTemplate(_G.CinematicFrameCloseDialogResumeButton)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/ClassTrainerFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ClassTrainerFrameTemplates.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\ClassTrainerFrameTemplates.xml ]]
15 | function Skin.ClassTrainerSkillButtonTemplate(Button)
16 | Skin.ExpandOrCollapse(Button)
17 | Button:SetBackdropOption("offsets", {
18 | left = 3,
19 | right = 307,
20 | top = 0,
21 | bottom = 3,
22 | })
23 | end
24 | function Skin.ClassTrainerDetailScrollFrameTemplate(ScrollFrame)
25 | Skin.UIPanelScrollFrameTemplate(ScrollFrame)
26 | local name = ScrollFrame:GetName()
27 | _G[name.."Top"]:SetAlpha(0)
28 | _G[name.."Bottom"]:SetAlpha(0)
29 | end
30 | function Skin.ClassTrainerListScrollFrameTemplate(ScrollFrame)
31 | Skin.FauxScrollFrameTemplate(ScrollFrame)
32 | local top, bottom = ScrollFrame:GetRegions()
33 | top:Hide()
34 | bottom:Hide()
35 | end
36 | end
37 |
38 | function private.FrameXML.ClassTrainerFrameTemplates()
39 | ----====####$$$$%%%%$$$$####====----
40 | -- ClassTrainerFrameTemplates --
41 | ----====####$$$$%%%%$$$$####====----
42 |
43 | -------------
44 | -- Section --
45 | -------------
46 | end
47 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/CompactUnitFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | do --[[ FrameXML\CompactUnitFrame.lua ]]
12 | function Hook.CompactUnitFrame_UpdateHealthColor(frame)
13 | if frame:IsForbidden() then return end
14 |
15 | if _G.UnitIsConnected(frame.unit) then
16 | local opts = frame.optionTable
17 | if not opts.healthBarColorOverride then
18 | local _, classToken = _G.UnitClass(frame.unit)
19 | local classColor = classToken and _G.CUSTOM_CLASS_COLORS[classToken]
20 | if (frame.optionTable.allowClassColorsForNPCs or _G.UnitIsPlayer(frame.unit)) and classColor and frame.optionTable.useClassColors then
21 | frame.healthBar:SetStatusBarColor(classColor.r, classColor.g, classColor.b)
22 | if frame.optionTable.colorHealthWithExtendedColors then
23 | frame.selectionHighlight:SetVertexColor(classColor.r, classColor.g, classColor.b)
24 | end
25 | end
26 | end
27 | end
28 | end
29 | end
30 |
31 | --do --[[ FrameXML\CompactUnitFrame.xml ]]
32 | --end
33 |
34 | function private.FrameXML.CompactUnitFrame()
35 | _G.hooksecurefunc("CompactUnitFrame_UpdateHealthColor", Hook.CompactUnitFrame_UpdateHealthColor)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/GameMenuFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | function private.FrameXML.GameMenuFrame()
12 | local GameMenuFrame = _G.GameMenuFrame
13 | Skin.DialogBorderTemplate(GameMenuFrame)
14 |
15 | local header, text = GameMenuFrame:GetRegions()
16 | header:Hide()
17 | text:ClearAllPoints()
18 | text:SetPoint("TOPLEFT")
19 | text:SetPoint("BOTTOMRIGHT", _G.GameMenuFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
20 |
21 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonHelp)
22 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonStore)
23 |
24 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonOptions)
25 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonUIOptions)
26 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonKeybindings)
27 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonMacros)
28 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonAddons)
29 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonRatings) -- Used in Korean locale
30 |
31 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonLogout)
32 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonQuit)
33 |
34 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonContinue)
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/GuildRegistrarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\GuildRegistrarFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\GuildRegistrarFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.GuildRegistrarFrame()
19 | local GuildRegistrarFrame = _G.GuildRegistrarFrame
20 | Skin.FrameTypeFrame(GuildRegistrarFrame)
21 | GuildRegistrarFrame:SetBackdropOption("offsets", {
22 | left = 14,
23 | right = 34,
24 | top = 14,
25 | bottom = 75,
26 | })
27 |
28 | local portrait, tl, tr, bl, br = GuildRegistrarFrame:GetRegions()
29 | portrait:Hide()
30 | tl:Hide()
31 | tr:Hide()
32 | bl:Hide()
33 | br:Hide()
34 |
35 | local bg = GuildRegistrarFrame:GetBackdropTexture("bg")
36 | _G.GuildRegistrarFrameNpcNameText:ClearAllPoints()
37 | _G.GuildRegistrarFrameNpcNameText:SetPoint("TOPLEFT", bg)
38 | _G.GuildRegistrarFrameNpcNameText:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
39 |
40 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFrameGoodbyeButton)
41 |
42 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFrameCancelButton)
43 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFramePurchaseButton)
44 |
45 | _G.GuildRegistrarFrameEditBox:SetHeight(20)
46 | Base.SetBackdrop(_G.GuildRegistrarFrameEditBox, Color.frame)
47 | local _, _, left, right = _G.GuildRegistrarFrameEditBox:GetRegions()
48 | left:Hide()
49 | right:Hide()
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/ItemRef.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ItemRef.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\ItemRef.xml ]]
15 | --end
16 |
17 | function private.FrameXML.ItemRef()
18 | if private.disabled.tooltips then return end
19 |
20 | Skin.ShoppingTooltipTemplate(_G.ItemRefShoppingTooltip1)
21 | Skin.ShoppingTooltipTemplate(_G.ItemRefShoppingTooltip2)
22 |
23 | Skin.GameTooltipTemplate(_G.ItemRefTooltip)
24 | Skin.UIPanelCloseButton(_G.ItemRefCloseButton)
25 | end
26 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/MirrorTimer.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\MirrorTimer.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\MirrorTimer.xml ]]
15 | function Skin.MirrorTimerTemplate(Frame)
16 | local name = Frame:GetName()
17 | Skin.FrameTypeStatusBar(_G[name.."StatusBar"])
18 |
19 | Frame:GetRegions():Hide()
20 | _G[name.."Text"]:ClearAllPoints()
21 | _G[name.."Text"]:SetPoint("CENTER", _G[name.."StatusBar"])
22 | _G[name.."Border"]:Hide()
23 | end
24 | end
25 |
26 | function private.FrameXML.MirrorTimer()
27 | Skin.MirrorTimerTemplate(_G.MirrorTimer1)
28 | Skin.MirrorTimerTemplate(_G.MirrorTimer2)
29 | Skin.MirrorTimerTemplate(_G.MirrorTimer3)
30 | end
31 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/MoneyFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals type floor mod
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ FrameXML\MoneyFrame.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\MoneyFrame.xml ]]
16 | Skin.SmallMoneyFrameTemplate = private.nop
17 | function Skin.SmallDenominationTemplate(Button)
18 | local name = Button:GetName()
19 | Base.CropIcon(_G[name.."Texture"], Button)
20 | end
21 | function Skin.SmallAlternateCurrencyFrameTemplate(Frame)
22 | local name = Frame:GetName()
23 | Skin.SmallDenominationTemplate(_G[name.."Item1"])
24 | Skin.SmallDenominationTemplate(_G[name.."Item2"])
25 | Skin.SmallDenominationTemplate(_G[name.."Item3"])
26 | end
27 | end
28 |
29 | --function private.FrameXML.MoneyFrame()
30 | --end
31 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/MoneyInputFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\MoneyInputFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\MoneyInputFrame.xml ]]
15 | local money = {"gold", "silver", "copper"}
16 | function Skin.MoneyInputFrameTemplate(Frame)
17 | for i = 1, #money do
18 | local EditBox = Frame[money[i]]
19 | Skin.FrameTypeEditBox(EditBox)
20 | EditBox:SetBackdropOption("offsets", {
21 | left = -5,
22 | right = 15,
23 | top = 0,
24 | bottom = 0,
25 | })
26 |
27 | local name = EditBox:GetName()
28 | _G[name.."Left"]:Hide()
29 | _G[name.."Middle"]:Hide()
30 | _G[name.."Right"]:Hide()
31 |
32 | local bg = EditBox:GetBackdropTexture("bg")
33 | EditBox.texture:ClearAllPoints()
34 | EditBox.texture:SetPoint("LEFT", bg, "RIGHT", 2, 0)
35 |
36 | if i > 1 then
37 | EditBox:SetPoint("LEFT", Frame[money[i - 1]], "RIGHT", 6, 0)
38 | EditBox:SetSize(35, 20)
39 | else
40 | EditBox:SetSize(70, 20)
41 | end
42 | end
43 | end
44 | function Skin.LargeMoneyInputBoxTemplate(Frame)
45 | Skin.LargeInputBoxTemplate(Frame)
46 | end
47 | function Skin.LargeMoneyInputFrameTemplate(Frame)
48 | Skin.LargeMoneyInputBoxTemplate(Frame.CopperBox)
49 | Skin.LargeMoneyInputBoxTemplate(Frame.SilverBox)
50 | Skin.LargeMoneyInputBoxTemplate(Frame.GoldBox)
51 | end
52 | end
53 |
54 | --function private.FrameXML.MoneyInputFrame()
55 | --end
56 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/MovieFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\MovieFrame.lua ]]
12 | function Hook.MovieFrameCloseDialog_OnShow(self)
13 | self:SetScale(_G.UIParent:GetScale())
14 | end
15 | end
16 |
17 | --do --[[ FrameXML\MovieFrame.xml ]]
18 | --end
19 |
20 | function private.FrameXML.MovieFrame()
21 | _G.MovieFrame.CloseDialog:HookScript("OnShow", Hook.MovieFrameCloseDialog_OnShow)
22 |
23 | Skin.DialogBorderTemplate(_G.MovieFrame.CloseDialog)
24 | Skin.CinematicDialogButtonTemplate(_G.MovieFrame.CloseDialog.ConfirmButton)
25 | Skin.CinematicDialogButtonTemplate(_G.MovieFrame.CloseDialog.ResumeButton)
26 | end
27 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/OptionsPanelTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\OptionsPanelTemplates.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\OptionsPanelTemplates.xml ]]
16 | function Skin.OptionsButtonTemplate(Button)
17 | Skin.UIPanelButtonTemplate(Button)
18 | end
19 | function Skin.OptionsBaseCheckButtonTemplate(CheckButton)
20 | Skin.UICheckButtonTemplate(CheckButton) -- BlizzWTF: Doesn't use the template
21 | end
22 |
23 | function Skin.OptionsCheckButtonTemplate(CheckButton)
24 | Skin.OptionsBaseCheckButtonTemplate(CheckButton)
25 | CheckButton.Text = _G[CheckButton:GetName().."Text"]
26 | CheckButton.Text:SetPoint("LEFT", CheckButton, "RIGHT", 3, 0)
27 | end
28 | function Skin.OptionsSmallCheckButtonTemplate(CheckButton)
29 | Skin.OptionsBaseCheckButtonTemplate(CheckButton)
30 | CheckButton.Text = _G[CheckButton:GetName().."Text"]
31 | CheckButton.Text:SetPoint("LEFT", CheckButton, "RIGHT", 3, 0)
32 | end
33 | function Skin.OptionsSliderTemplate(Slider)
34 | Skin.HorizontalSliderTemplate(Slider)
35 | end
36 | function Skin.OptionsDropdownTemplate(Frame)
37 | Skin.UIDropDownMenuTemplate(Frame)
38 | end
39 | function Skin.OptionsBoxTemplate(Frame)
40 | Base.SetBackdrop(Frame, Color.frame)
41 | end
42 | end
43 |
44 | --function private.FrameXML.OptionsPanelTemplates()
45 | --end
46 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/PVPFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | --local Aurora = private.Aurora
9 |
10 | --do --[[ FrameXML\PVPFrame.lua ]]
11 | --end
12 |
13 | --do --[[ FrameXML\PVPFrame.xml ]]
14 | --end
15 |
16 | function private.FrameXML.PVPFrame()
17 | local tl, tr, bl, br, bg = _G.PVPFrame:GetRegions()
18 | tl:Hide()
19 | tr:Hide()
20 | bl:Hide()
21 | br:Hide()
22 | bg:Hide()
23 | end
24 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/PVPHelper.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | --local Aurora = private.Aurora
9 | --local Base, Hook, Skin = Aurora.Base, Aurora.Hook, Aurora.Skin
10 |
11 | --do --[[ FrameXML\PVPHelper.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\PVPHelper.xml ]]
15 | --end
16 |
17 | function private.FrameXML.PVPHelper()
18 | --[[ PVPFramePopup ]]--
19 | end
20 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/PetActionBarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\PetActionBarFrame.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\PetActionBarFrame.xml ]]
17 | function Skin.PetActionButtonTemplate(CheckButton)
18 | Skin.ActionButtonTemplate(CheckButton)
19 |
20 | Base.CreateBackdrop(CheckButton, {
21 | bgFile = [[Interface\PaperDoll\UI-Backpack-EmptySlot]],
22 | tile = false,
23 | offsets = {
24 | left = -1,
25 | right = -1,
26 | top = -1,
27 | bottom = -1,
28 | }
29 | })
30 | CheckButton:SetBackdropColor(1, 1, 1, 0.75)
31 | CheckButton:SetBackdropBorderColor(Color.frame:GetRGB())
32 | Base.CropIcon(CheckButton:GetBackdropTexture("bg"))
33 |
34 | local name = CheckButton:GetName()
35 | _G[name.."NormalTexture2"]:Hide()
36 | --Base.CropIcon(_G[name.."NormalTexture2"])
37 | end
38 | end
39 |
40 | function private.FrameXML.PetActionBarFrame()
41 | if private.disabled.mainmenubar then return end
42 | _G.SlidingActionBarTexture0:SetAlpha(0)
43 | _G.SlidingActionBarTexture1:SetAlpha(0)
44 |
45 | for i = 1, _G.NUM_PET_ACTION_SLOTS do
46 | Skin.PetActionButtonTemplate(_G["PetActionButton"..i])
47 | end
48 | end
49 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/QuestTimerFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\QuestTimerFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\QuestTimerFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.QuestTimerFrame()
18 | local QuestTimerFrame = _G.QuestTimerFrame
19 | Skin.FrameTypeFrame(QuestTimerFrame)
20 | QuestTimerFrame:SetBackdropOption("offsets", {
21 | left = 5,
22 | right = 5,
23 | top = 0,
24 | bottom = 0,
25 | })
26 |
27 | local bg = QuestTimerFrame:GetBackdropTexture("bg")
28 | local header, text = QuestTimerFrame:GetRegions()
29 | header:Hide()
30 | text:ClearAllPoints()
31 | text:SetPoint("TOPLEFT", bg)
32 | text:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
33 | end
34 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/RaidFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\RaidFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\RaidFrame.xml ]]
15 | function Skin.RaidInfoHeaderTemplate(Frame)
16 | Frame:DisableDrawLayer("BACKGROUND")
17 | end
18 | end
19 |
20 | function private.FrameXML.RaidFrame()
21 | Skin.UICheckButtonTemplate(_G.RaidFrameAllAssistCheckButton)
22 | Skin.UIPanelButtonTemplate(_G.RaidFrameConvertToRaidButton)
23 | Skin.UIPanelButtonTemplate(_G.RaidFrameRaidInfoButton)
24 |
25 |
26 | Skin.DialogBorderDarkTemplate(_G.RaidInfoFrame)
27 |
28 | _G.RaidInfoDetailHeader:Hide()
29 | _G.RaidInfoDetailCorner:Hide()
30 | _G.RaidInfoHeader:ClearAllPoints()
31 | _G.RaidInfoHeader:SetPoint("TOPLEFT")
32 | _G.RaidInfoHeader:SetPoint("BOTTOMRIGHT", _G.RaidInfoFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
33 | _G.RaidInfoFrame:SetPoint("TOPLEFT", _G.RaidFrame, "TOPRIGHT", 1, -28)
34 |
35 | Skin.UIPanelCloseButton(_G.RaidInfoCloseButton)
36 | Skin.UIPanelScrollFrameTemplate(_G.RaidInfoScrollFrame)
37 | _G.RaidInfoScrollFrameTop:Hide()
38 | _G.RaidInfoScrollFrameBottom:Hide()
39 | end
40 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/RatingMenuFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\RatingMenuFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\RatingMenuFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.RatingMenuFrame()
18 | local RatingMenuFrame = _G.RatingMenuFrame
19 | Skin.DialogBorderTemplate(RatingMenuFrame)
20 |
21 | _G.RatingMenuFrameHeader:Hide()
22 | _G.RatingMenuFrameText:ClearAllPoints()
23 | _G.RatingMenuFrameText:SetPoint("TOPLEFT")
24 | _G.RatingMenuFrameText:SetPoint("BOTTOMRIGHT", _G.RatingMenuFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
25 |
26 | Skin.OptionsButtonTemplate(_G.RatingMenuButtonOkay)
27 | end
28 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/ReadyCheck.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local F = Aurora[1]
10 |
11 | function private.FrameXML.ReadyCheck()
12 | _G.ReadyCheckFrame:SetSize(300, 80)
13 |
14 | F.CreateBD(_G.ReadyCheckListenerFrame)
15 | _G.ReadyCheckPortrait:SetAlpha(0)
16 | _G.select(2, _G.ReadyCheckListenerFrame:GetRegions()):Hide()
17 | _G.ReadyCheckFrameText:SetPoint("CENTER", _G.ReadyCheckListenerFrame, "TOP", 0, -25)
18 |
19 | F.Reskin(_G.ReadyCheckFrameYesButton)
20 | _G.ReadyCheckFrameYesButton:SetPoint("TOPRIGHT", _G.ReadyCheckListenerFrame, "TOP", -5, -45)
21 | F.Reskin(_G.ReadyCheckFrameNoButton)
22 | _G.ReadyCheckFrameNoButton:SetPoint("TOPLEFT", _G.ReadyCheckListenerFrame, "TOP", 5, -45)
23 | end
24 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/SocialToast.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SocialToast.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SocialToast.xml ]]
15 | function Skin.SocialToastTemplate(ContainedAlertFrame)
16 | end
17 | end
18 |
19 | --function private.FrameXML.SocialToast()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/StackSplitFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\StackSplitFrame.lua ]]
14 | --end
15 |
16 | --do --[[ FrameXML\StackSplitFrame.xml ]]
17 | --end
18 |
19 | function private.FrameXML.StackSplitFrame()
20 | local StackSplitFrame = _G.StackSplitFrame
21 | Skin.FrameTypeFrame(StackSplitFrame)
22 | StackSplitFrame:SetBackdropOption("offsets", {
23 | left = 14,
24 | right = 12,
25 | top = 10,
26 | bottom = 15,
27 | })
28 |
29 | local bg = StackSplitFrame:GetBackdropTexture("bg")
30 | local textBG = _G.CreateFrame("Frame", nil, StackSplitFrame)
31 | textBG:SetPoint("TOPLEFT", bg, 20, -10)
32 | textBG:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", -20, -30)
33 | Base.SetBackdrop(textBG, Color.frame)
34 | textBG:SetBackdropBorderColor(Color.button)
35 | _G.StackSplitText:SetParent(textBG)
36 |
37 | Skin.UIPanelButtonTemplate(_G.StackSplitOkayButton)
38 | Skin.UIPanelButtonTemplate(_G.StackSplitCancelButton)
39 | end
40 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/StaticPopupSpecial.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ FrameXML\StaticPopupSpecial.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\StaticPopupSpecial.xml ]]
16 | function Skin.PlayerReportFrameTemplate(Frame)
17 | Skin.DialogBorderTemplate(Frame)
18 |
19 | local EditBox = Frame.Comment
20 | Base.CreateBackdrop(EditBox, private.backdrop, {
21 | tl = EditBox.TopLeft,
22 | tr = EditBox.TopRight,
23 | t = EditBox.Top,
24 |
25 | bl = EditBox.BottomLeft,
26 | br = EditBox.BottomRight,
27 | b = EditBox.Bottom,
28 |
29 | l = EditBox.Left,
30 | r = EditBox.Right,
31 |
32 | bg = EditBox.Middle
33 | })
34 | Skin.FrameTypeEditBox(EditBox)
35 |
36 | local scrollframe = EditBox.ScrollFrame
37 | Skin.UIPanelScrollFrameTemplate(scrollframe)
38 |
39 | scrollframe.ScrollBar:ClearAllPoints()
40 | scrollframe.ScrollBar:SetPoint("TOPLEFT", scrollframe, "TOPRIGHT", -18, -13)
41 | scrollframe.ScrollBar:SetPoint("BOTTOMLEFT", scrollframe, "BOTTOMRIGHT", -18, 13)
42 |
43 | scrollframe.ScrollBar.ScrollUpButton:SetPoint("BOTTOM", scrollframe.ScrollBar, "TOP")
44 | scrollframe.ScrollBar.ScrollDownButton:SetPoint("TOP", scrollframe.ScrollBar, "BOTTOM")
45 |
46 | Skin.UIPanelButtonTemplate(Frame.ReportButton)
47 | Skin.UIPanelButtonTemplate(Frame.CancelButton)
48 | end
49 | end
50 |
51 | function private.FrameXML.StaticPopupSpecial()
52 | Skin.PlayerReportFrameTemplate(_G.PlayerReportFrame)
53 | end
54 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/TaxiFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | function private.FrameXML.TaxiFrame()
12 | local TaxiFrame = _G.TaxiFrame
13 | Skin.FrameTypeFrame(TaxiFrame)
14 | TaxiFrame:SetBackdropOption("offsets", {
15 | left = 20,
16 | right = 46,
17 | top = 74,
18 | bottom = 84,
19 | })
20 |
21 | local portrait, tl, tr, bl, br = TaxiFrame:GetRegions()
22 | portrait:Hide()
23 | tl:Hide()
24 | tr:Hide()
25 | bl:Hide()
26 | br:Hide()
27 |
28 | local bg = TaxiFrame:GetBackdropTexture("bg")
29 | _G.TaxiMerchant:ClearAllPoints()
30 | _G.TaxiMerchant:SetPoint("TOPLEFT", bg)
31 | _G.TaxiMerchant:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
32 | _G.TaxiMerchant:SetDrawLayer("OVERLAY", 5)
33 |
34 | Skin.UIPanelCloseButton(_G.TaxiCloseButton)
35 | _G.TaxiCloseButton:SetPoint("TOPRIGHT", bg, 5.6, 5)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/UIMenu.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 |
12 | do --[[ FrameXML\UIMenu.lua ]]
13 | function Hook.UIMenuTemplate_OnShow(self)
14 | Base.SetBackdropColor(self)
15 | end
16 | end
17 |
18 | do --[[ FrameXML\UIMenu.xml ]]
19 | function Skin.UIMenuTemplate(Frame)
20 | Frame:HookScript("OnShow", Hook.UIMenuTemplate_OnShow)
21 |
22 | Skin.FrameTypeFrame(Frame)
23 | end
24 | end
25 |
26 | --function private.FrameXML.UIMenu()
27 | --end
28 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/UIOptions.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | function private.FrameXML.UIOptions()
12 | _G.hooksecurefunc("VideoOptionsDropDownMenu_AddButton", Hook.UIDropDownMenu_AddButton)
13 | _G.hooksecurefunc("VideoOptionsDropDownMenu_DisableDropDown", Hook.UIDropDownMenu_DisableDropDown)
14 | _G.hooksecurefunc("VideoOptionsDropDownMenu_EnableDropDown", Hook.UIDropDownMenu_EnableDropDown)
15 | end
16 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/UIParent.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\UIParent.lua ]]
12 | function Hook.SetPortraitToTexture(texture, path)
13 | texture = _G[texture] or texture
14 | if not texture:IsForbidden() and texture._auroraResetPortrait then
15 | texture:SetTexture(path)
16 | end
17 | end
18 | function Hook.BuildIconArray(parent, baseName, template, rowSize, numRows, onButtonCreated)
19 | if Skin[template] then
20 | for i = 1, rowSize * numRows do
21 | Skin[template](_G[baseName..i])
22 | end
23 | end
24 | end
25 | end
26 |
27 | function private.FrameXML.UIParent()
28 | _G.hooksecurefunc("SetPortraitToTexture", Hook.SetPortraitToTexture)
29 | _G.hooksecurefunc("BuildIconArray", Hook.BuildIconArray)
30 |
31 | -- Blizzard doesn't create the chat bubbles in lua, so we're calling it here
32 | if private.FrameXML.ChatBubbles then
33 | private.FrameXML.ChatBubbles()
34 | end
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/UnitPopupCustomControls.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\UnitPopupCustomControls.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\UnitPopupCustomControls.xml ]]
15 | function Skin.UnitPopupVoiceToggleButtonTemplate(Button)
16 | Skin.VoiceToggleButtonTemplate(Button)
17 | end
18 | function Skin.UnitPopupVoiceSliderTemplate(Slider)
19 | Skin.UnitPopupSliderTemplate(Slider)
20 | end
21 | end
22 |
23 | function private.FrameXML.UnitPopupCustomControls()
24 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceSpeakerVolume.Slider)
25 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceSpeakerVolume.Toggle)
26 |
27 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceMicrophoneVolume.Slider)
28 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceMicrophoneVolume.Toggle)
29 |
30 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceUserVolume.Slider)
31 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceUserVolume.Toggle)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/UnitPopupSlider.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\UnitPopupSlider.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\UnitPopupSlider.xml ]]
15 | function Skin.UnitPopupSliderTemplate(Slider)
16 | Skin.PropertySliderTemplate(Slider)
17 | end
18 | end
19 |
20 | --function private.FrameXML.UnitPopupSlider()
21 | --end
22 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/VideoOptionsFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | --do --[[ FrameXML\VideoOptionsFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\VideoOptionsFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.VideoOptionsFrame()
19 | Skin.OptionsFrameTemplate(_G.VideoOptionsFrame)
20 |
21 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameApply)
22 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameCancel)
23 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameOkay)
24 | Util.PositionRelative("BOTTOMRIGHT", _G.VideoOptionsFrame, "BOTTOMRIGHT", -15, 15, 5, "Left", {
25 | _G.VideoOptionsFrameCancel,
26 | _G.VideoOptionsFrameOkay,
27 | })
28 |
29 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameDefaults)
30 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameClassic)
31 | Util.PositionRelative("BOTTOMLEFT", _G.VideoOptionsFrame, "BOTTOMLEFT", 15, 15, 5, "Right", {
32 | _G.VideoOptionsFrameDefaults,
33 | _G.VideoOptionsFrameClassic,
34 | })
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/BCC/FrameXML/VoiceToggleButton.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\VoiceToggleButton.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\VoiceToggleButton.xml ]]
17 | function Skin.VoiceToggleButtonTemplate(Button)
18 | Skin.PropertyButtonTemplate(Button)
19 |
20 | Button:SetSize(23, 23)
21 | Button:SetNormalTexture("")
22 | Button:SetPushedTexture("")
23 | Button:SetHighlightTexture("")
24 | local disabled = Button:GetDisabledTexture()
25 | if disabled then
26 | disabled:SetColorTexture(0, 0, 0, .4)
27 | disabled:SetDrawLayer("OVERLAY")
28 | disabled:SetAllPoints()
29 | end
30 |
31 | Button.Icon:SetPoint("CENTER", 0, 1)
32 |
33 | Base.SetBackdrop(Button, Color.button, 0.3)
34 | Base.SetHighlight(Button)
35 | end
36 | function Skin.ToggleVoiceDeafenButtonTemplate(Button)
37 | Skin.VoiceToggleButtonTemplate(Button)
38 | end
39 | function Skin.ToggleVoiceMuteButtonTemplate(Button)
40 | Skin.VoiceToggleButtonTemplate(Button)
41 | end
42 | end
43 |
44 | --function private.FrameXML.VoiceToggleButton()
45 | --end
46 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/Backdrop.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\Backdrop.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\Backdrop.xml ]]
16 | function Skin.TooltipBackdropTemplate(Frame)
17 | Skin.FrameTypeFrame(Frame)
18 | end
19 | function Skin.TooltipBorderBackdropTemplate(Frame)
20 | Skin.FrameTypeFrame(Frame)
21 | Frame:SetBackdropColor(Color.frame, 0)
22 | end
23 | end
24 |
25 | --function private.SharedXML.Backdrop()
26 | --end
27 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/ModelPreviewFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ModelPreviewFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\ModelPreviewFrame.xml ]]
15 | --end
16 |
17 | function private.SharedXML.ModelPreviewFrame()
18 | local ModelPreviewFrame = _G.ModelPreviewFrame
19 |
20 | --BlizzWTF: The close button added in this frame interferes with the one created in the template.
21 | local closeButton = ModelPreviewFrame.CloseButton
22 | ModelPreviewFrame.CloseButton = ModelPreviewFrame:GetChildren()
23 | Skin.ButtonFrameTemplate(ModelPreviewFrame)
24 | Skin.MagicButtonTemplate(closeButton)
25 | closeButton:SetPoint("BOTTOMRIGHT", -5, 5)
26 |
27 | ModelPreviewFrame.Display.YesMountsTex:Hide()
28 | ModelPreviewFrame.Display.ShadowOverlay:Hide()
29 |
30 | local ModelScene = ModelPreviewFrame.Display.ModelScene
31 | Skin.RotateOrbitCameraLeftButtonTemplate(ModelScene.RotateLeftButton)
32 | Skin.RotateOrbitCameraRightButtonTemplate(ModelScene.RotateRightButton)
33 | Skin.NavButtonPrevious(ModelScene.CarouselLeftButton)
34 | Skin.NavButtonNext(ModelScene.CarouselRightButton)
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/ModelSceneTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ SharedXML\ModelSceneTemplates.lua ]]
13 | --end
14 |
15 | do --[[ SharedXML\ModelSceneTemplates.xml ]]
16 | function Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
17 | Skin.FrameTypeButton(Button)
18 | Button:SetBackdropOption("offsets", {
19 | left = 5,
20 | right = 5,
21 | top = 5,
22 | bottom = 5,
23 | })
24 | end
25 | function Skin.RotateOrbitCameraLeftButtonTemplate(Button)
26 | Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
27 |
28 | local bg = Button:GetBackdropTexture("bg")
29 | local arrow = Button:CreateTexture(nil, "ARTWORK")
30 | arrow:SetPoint("TOPLEFT", bg, 8, -5)
31 | arrow:SetPoint("BOTTOMRIGHT", bg, -8, 4)
32 | Base.SetTexture(arrow, "arrowLeft")
33 |
34 | Button._auroraTextures = {arrow}
35 | end
36 | function Skin.RotateOrbitCameraRightButtonTemplate(Button)
37 | Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
38 |
39 | local bg = Button:GetBackdropTexture("bg")
40 | local arrow = Button:CreateTexture(nil, "ARTWORK")
41 | arrow:SetPoint("TOPLEFT", bg, 8, -5)
42 | arrow:SetPoint("BOTTOMRIGHT", bg, -8, 4)
43 | Base.SetTexture(arrow, "arrowRight")
44 |
45 | Button._auroraTextures = {arrow}
46 | end
47 | end
48 |
49 | --function private.SharedXML.ModelSceneTemplates()
50 | --end
51 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/Pools.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | -- [[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | do --[[ SharedXML\Pools.lua ]]
13 | local function CheckTemplate(pool, ...)
14 | for i = 1, select("#", ...) do
15 | local template = select(i, ...)
16 | --print("CheckTemplate", i, template)
17 | if Skin[template] then
18 | for obj in pool:EnumerateActive() do
19 | if not obj._auroraSkinned then
20 | Skin[template](obj)
21 | obj._auroraSkinned = true
22 | end
23 | end
24 | elseif private.isDev then
25 | private.debug("Missing template:", template)
26 | end
27 | end
28 | end
29 |
30 | Hook.ObjectPoolMixin = {}
31 | function Hook.ObjectPoolMixin:Acquire()
32 | local template = self.frameTemplate or self.textureTemplate or self.fontStringTemplate or self.actorTemplate
33 | if not template then return end
34 |
35 | --local templates = {(", "):split(template)}
36 | --print("Acquire", template)
37 | CheckTemplate(self, (", "):split(template))
38 | end
39 | end
40 |
41 |
42 | function private.SharedXML.Pools()
43 | --Util.Mixin(objectPool, Hook.ObjectPoolMixin)
44 | Util.Mixin(_G.ObjectPoolMixin, Hook.ObjectPoolMixin)
45 |
46 | Util.Mixin(_G.FramePoolMixin, Hook.ObjectPoolMixin)
47 | Util.Mixin(_G.TexturePoolMixin, Hook.ObjectPoolMixin)
48 | Util.Mixin(_G.FontStringPoolMixin, Hook.ObjectPoolMixin)
49 | Util.Mixin(_G.ActorPoolMixin, Hook.ObjectPoolMixin)
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/PropertyButton.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\PropertyButton.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\PropertyButton.xml ]]
15 | function Skin.PropertyButtonTemplate(Button)
16 | end
17 | end
18 |
19 | --function private.FrameXML.PropertyButton()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/PropertySlider.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ SharedXML\PropertySlider.lua ]]
12 | --end
13 |
14 | do --[[ SharedXML\PropertySlider.xml ]]
15 | function Skin.PropertySliderTemplate(Slider)
16 | Skin.HorizontalSliderTemplate(Slider)
17 | end
18 | end
19 |
20 | --function private.SharedXML.PropertySlider()
21 | --end
22 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/Scroll/ScrollBox.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ScrollBox.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\ScrollBox.xml ]]
15 | function Skin.ScrollBoxBaseTemplate(Frame)
16 | end
17 | end
18 |
19 | function private.SharedXML.ScrollBox()
20 | end
21 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/SharedBasicControls.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SharedBasicControls.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SharedBasicControls.xml ]]
15 | function Skin.UIPanelDialogTemplate(Frame)
16 | local name = Frame:GetName()
17 |
18 | _G[name.."TopLeft"]:Hide()
19 | _G[name.."TopRight"]:Hide()
20 | _G[name.."Top"]:Hide()
21 | _G[name.."BottomLeft"]:Hide()
22 | _G[name.."BottomRight"]:Hide()
23 | _G[name.."Bottom"]:Hide()
24 | _G[name.."Left"]:Hide()
25 | _G[name.."Right"]:Hide()
26 |
27 | Skin.FrameTypeFrame(Frame)
28 |
29 | Frame.Title:ClearAllPoints()
30 | Frame.Title:SetPoint("TOPLEFT")
31 | Frame.Title:SetPoint("BOTTOMRIGHT", Frame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
32 |
33 | local titleBG = _G[name.."TitleBG"]
34 | titleBG:SetAllPoints(Frame.Title)
35 | titleBG:Hide()
36 |
37 | _G[name.."DialogBG"]:Hide()
38 |
39 | Skin.UIPanelCloseButton(_G[name.."Close"])
40 | end
41 | end
42 |
43 | function private.SharedXML.SharedBasicControls()
44 | local ScriptErrorsFrame = _G.ScriptErrorsFrame
45 |
46 | ScriptErrorsFrame:SetScale(_G.UIParent:GetScale())
47 | Skin.UIPanelDialogTemplate(ScriptErrorsFrame)
48 | Skin.UIPanelScrollFrameTemplate(ScriptErrorsFrame.ScrollFrame)
49 | Skin.UIPanelButtonTemplate(ScriptErrorsFrame.Reload)
50 | Skin.NavButtonPrevious(ScriptErrorsFrame.PreviousError)
51 | Skin.NavButtonNext(ScriptErrorsFrame.NextError)
52 | Skin.UIPanelButtonTemplate(ScriptErrorsFrame.Close)
53 | end
54 |
--------------------------------------------------------------------------------
/Skin/BCC/SharedXML/SharedTooltipTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isBCC then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\SharedTooltipTemplates.lua ]]
12 | function Hook.SharedTooltip_SetBackdropStyle(self, style)
13 | if not self.IsEmbedded then
14 | Skin.FrameTypeFrame(self)
15 | end
16 | end
17 | end
18 |
19 | do --[[ FrameXML\SharedTooltipTemplates.xml ]]
20 | function Skin.SharedTooltipTemplate(GameTooltip)
21 | Skin.FrameTypeFrame(GameTooltip)
22 | end
23 | function Skin.SharedNoHeaderTooltipTemplate(GameTooltip)
24 | Skin.SharedTooltipTemplate(GameTooltip)
25 | end
26 | end
27 |
28 | function private.SharedXML.SharedTooltipTemplates()
29 | if private.disabled.tooltips then return end
30 |
31 | _G.hooksecurefunc("SharedTooltip_SetBackdropStyle", Hook.SharedTooltip_SetBackdropStyle)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/Classic/AddOns/Blizzard_BattlefieldMap.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --[[ do AddOns\Blizzard_BattlefieldMap.lua
14 | end ]]
15 |
16 | --[[ do AddOns\Blizzard_BattlefieldMap.xml
17 | end ]]
18 |
19 | function private.AddOns.Blizzard_BattlefieldMap()
20 | -----------------------
21 | -- BattlefieldMapTab --
22 | -----------------------
23 | _G.BattlefieldMapTab.Left:Hide()
24 | _G.BattlefieldMapTab.Middle:Hide()
25 | _G.BattlefieldMapTab.Right:Hide()
26 |
27 | -------------------------
28 | -- BattlefieldMapFrame --
29 | -------------------------
30 | local BattlefieldMapFrame = _G.BattlefieldMapFrame
31 | BattlefieldMapFrame.ScrollContainer:SetAllPoints()
32 |
33 | local BorderFrame = BattlefieldMapFrame.BorderFrame
34 | BorderFrame.CloseButtonBorder:Hide()
35 | Base.CreateBackdrop(BorderFrame, private.backdrop, {
36 | tl = BorderFrame.TopLeft,
37 | tr = BorderFrame.TopRight,
38 | bl = BorderFrame.BottomLeft,
39 | br = BorderFrame.BottomRight,
40 |
41 | t = BorderFrame.Top,
42 | b = BorderFrame.Bottom,
43 | l = BorderFrame.Left,
44 | r = BorderFrame.Right,
45 | })
46 | Base.SetBackdrop(BorderFrame, Color.frame, 0)
47 |
48 | Skin.UIPanelCloseButton(BorderFrame.CloseButton)
49 | BorderFrame.CloseButton:SetPoint("TOPRIGHT", 10, 9)
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/Classic/AddOns/Blizzard_DebugTools.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_DebugTools.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_DebugTools.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_DebugTools()
18 | private.AddOns.Blizzard_EventTrace()
19 |
20 | if not private.disabled.tooltips then
21 | Skin.GameTooltipTemplate(_G.FrameStackTooltip)
22 | end
23 | end
24 |
--------------------------------------------------------------------------------
/Skin/Classic/AddOns/Blizzard_TimeManager.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local F, C = _G.unpack(private.Aurora)
9 |
10 | function private.AddOns.Blizzard_TimeManager()
11 | _G.TimeManagerGlobe:Hide()
12 | _G.StopwatchFrameBackgroundLeft:Hide()
13 | _G.select(2, _G.StopwatchFrame:GetRegions()):Hide()
14 | _G.StopwatchTabFrameLeft:Hide()
15 | _G.StopwatchTabFrameMiddle:Hide()
16 | _G.StopwatchTabFrameRight:Hide()
17 |
18 | _G.TimeManagerStopwatchCheck:GetNormalTexture():SetTexCoord(.08, .92, .08, .92)
19 | _G.TimeManagerStopwatchCheck:SetCheckedTexture(C.media.checked)
20 | F.CreateBG(_G.TimeManagerStopwatchCheck)
21 |
22 | _G.TimeManagerAlarmHourDropDown:SetWidth(80)
23 | _G.TimeManagerAlarmMinuteDropDown:SetWidth(80)
24 | _G.TimeManagerAlarmAMPMDropDown:SetWidth(90)
25 |
26 | F.ReskinPortraitFrame(_G.TimeManagerFrame, true)
27 |
28 | F.CreateBD(_G.StopwatchFrame)
29 | F.ReskinDropDown(_G.TimeManagerAlarmHourDropDown)
30 | F.ReskinDropDown(_G.TimeManagerAlarmMinuteDropDown)
31 | F.ReskinDropDown(_G.TimeManagerAlarmAMPMDropDown)
32 | F.ReskinInput(_G.TimeManagerAlarmMessageEditBox)
33 | F.ReskinCheck(_G.TimeManagerAlarmEnabledButton)
34 | F.ReskinCheck(_G.TimeManagerMilitaryTimeCheck)
35 | F.ReskinCheck(_G.TimeManagerLocalTimeCheck)
36 | F.ReskinClose(_G.StopwatchCloseButton, "TOPRIGHT", _G.StopwatchFrame, "TOPRIGHT", -2, -2)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/Classic/AddOns/Blizzard_WorldMap.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_WorldMap.lua ]]
12 | --end
13 |
14 | do --[[ AddOns\Blizzard_WorldMap.xml ]]
15 | do --[[ Blizzard_WorldMap.xml ]]
16 | function Skin.WorldMapFrameTemplate(Frame)
17 | end
18 | end
19 |
20 | end
21 |
22 | function private.AddOns.Blizzard_WorldMap()
23 | ----====####$$$$%%%%%$$$$####====----
24 | -- Blizzard_WorldMap --
25 | ----====####$$$$%%%%%$$$$####====----
26 | local WorldMapFrame = _G.WorldMapFrame
27 | Skin.WorldMapFrameTemplate(WorldMapFrame)
28 | Skin.FrameTypeFrame(WorldMapFrame.BorderFrame)
29 |
30 | local top1, top2, top3, top4, mid1, mid2, mid3, mid4, bot1, bot2, bot3, bot4, title = WorldMapFrame.BorderFrame:GetRegions()
31 | top1:Hide()
32 | top2:Hide()
33 | top3:Hide()
34 | top4:Hide()
35 | mid1:Hide()
36 | mid2:Hide()
37 | mid3:Hide()
38 | mid4:Hide()
39 | bot1:Hide()
40 | bot2:Hide()
41 | bot3:Hide()
42 | bot4:Hide()
43 |
44 | local bg = WorldMapFrame.BorderFrame:GetBackdropTexture("bg")
45 | title:ClearAllPoints()
46 | title:SetPoint("TOPLEFT", bg)
47 | title:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
48 |
49 | Skin.UIDropDownMenuTemplate(WorldMapFrame.ContinentDropDown)
50 | Skin.UIDropDownMenuTemplate(WorldMapFrame.ZoneDropDown)
51 | Skin.UIPanelButtonTemplate(_G.WorldMapZoomOutButton)
52 | Skin.UIPanelCloseButton(_G.WorldMapFrameCloseButton)
53 | end
54 |
55 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/AutoComplete.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\AutoComplete.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\AutoComplete.xml ]]
16 | function Skin.AutoCompleteButtonTemplate(Button)
17 | local highlight = Button:GetHighlightTexture()
18 | highlight:ClearAllPoints()
19 | highlight:SetPoint("LEFT", _G.AutoCompleteBox, 1, 0)
20 | highlight:SetPoint("RIGHT", _G.AutoCompleteBox, -1, 0)
21 | highlight:SetPoint("TOP", 0, 0)
22 | highlight:SetPoint("BOTTOM", 0, 0)
23 | highlight:SetColorTexture(Color.highlight.r, Color.highlight.g, Color.highlight.b, .2)
24 | end
25 | end
26 |
27 | function private.FrameXML.AutoComplete()
28 | local AutoCompleteBox = _G.AutoCompleteBox
29 | Skin.FrameTypeFrame(AutoCompleteBox)
30 |
31 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton1)
32 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton2)
33 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton3)
34 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton4)
35 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton5)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/BNet.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\BNet.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\BNet.xml ]]
15 | --end
16 |
17 | function private.FrameXML.BNet()
18 | ------------------
19 | -- BNToastFrame --
20 | ------------------
21 | Skin.SocialToastTemplate(_G.BNToastFrame)
22 |
23 |
24 | --------------------
25 | -- TimeAlertFrame --
26 | --------------------
27 | Skin.SocialToastTemplate(_G.TimeAlertFrame)
28 | end
29 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/CastingBarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\CastingBarFrame.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\CastingBarFrame.xml ]]
17 | function Skin.CastingBarFrameTemplate(StatusBar)
18 | Skin.FrameTypeStatusBar(StatusBar)
19 | Base.SetBackdropColor(StatusBar, Color.frame)
20 |
21 | StatusBar:GetRegions():Hide()
22 | StatusBar.Border:Hide()
23 | StatusBar.Text:ClearAllPoints()
24 | StatusBar.Text:SetPoint("CENTER")
25 | StatusBar.Spark:SetAlpha(0)
26 |
27 | StatusBar.Flash:SetAllPoints(StatusBar)
28 | StatusBar.Flash:SetColorTexture(1, 1, 1)
29 | end
30 | function Skin.SmallCastingBarFrameTemplate(StatusBar)
31 | Skin.FrameTypeStatusBar(StatusBar)
32 |
33 | StatusBar:GetRegions():Hide()
34 | StatusBar.Border:Hide()
35 | StatusBar.Text:ClearAllPoints()
36 | StatusBar.Text:SetPoint("CENTER")
37 | StatusBar.Spark:SetAlpha(0)
38 |
39 | StatusBar.Flash:SetAllPoints(StatusBar)
40 | StatusBar.Flash:SetColorTexture(1, 1, 1)
41 | end
42 | end
43 |
44 | function private.FrameXML.CastingBarFrame()
45 | Skin.CastingBarFrameTemplate(_G.CastingBarFrame)
46 | end
47 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/CharacterFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | --do --[[ FrameXML\CharacterFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\CharacterFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.CharacterFrame()
19 | local CharacterFrame = _G.CharacterFrame
20 | Skin.FrameTypeFrame(CharacterFrame)
21 | CharacterFrame:SetBackdropOption("offsets", {
22 | left = 14,
23 | right = 34,
24 | top = 14,
25 | bottom = 75,
26 | })
27 |
28 | local portrait = CharacterFrame:GetRegions()
29 | portrait:Hide()
30 |
31 | local bg = CharacterFrame:GetBackdropTexture("bg")
32 | _G.CharacterNameText:ClearAllPoints()
33 | _G.CharacterNameText:SetPoint("TOPLEFT", bg)
34 | _G.CharacterNameText:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
35 |
36 | Skin.UIPanelCloseButton(_G.CharacterFrameCloseButton)
37 |
38 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab1)
39 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab2)
40 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab3)
41 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab4)
42 | Skin.CharacterFrameTabButtonTemplate(_G.CharacterFrameTab5)
43 | Util.PositionRelative("TOPLEFT", bg, "BOTTOMLEFT", 20, -1, 1, "Right", {
44 | _G.CharacterFrameTab1,
45 | _G.CharacterFrameTab2,
46 | _G.CharacterFrameTab3,
47 | _G.CharacterFrameTab4,
48 | _G.CharacterFrameTab5,
49 | })
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/CharacterFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | do --[[ FrameXML\CharacterFrameTemplates.xml ]]
13 | function Skin.CharacterFrameTabButtonTemplate(Button)
14 | Skin.FrameTypeButton(Button)
15 | Button:SetButtonColor(Color.frame, nil, false)
16 |
17 | local name = Button:GetName()
18 | Button:SetHeight(28)
19 |
20 | _G[name.."LeftDisabled"]:SetTexture("")
21 | _G[name.."MiddleDisabled"]:SetTexture("")
22 | _G[name.."RightDisabled"]:SetTexture("")
23 | _G[name.."Left"]:SetTexture("")
24 | _G[name.."Middle"]:SetTexture("")
25 | _G[name.."Right"]:SetTexture("")
26 | _G[name.."Text"]:SetPoint("CENTER", Button, "CENTER")
27 | Button:SetHighlightTexture("")
28 |
29 | Button._auroraTabResize = true
30 | end
31 | end
32 |
33 | --function private.FrameXML.CharacterFrameTemplates()
34 | --end
35 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/CinematicFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | do --[[ FrameXML\CinematicFrame.lua ]]
14 | function Hook.CinematicFrameCloseDialog_OnShow(self)
15 | self:SetScale(_G.UIParent:GetScale())
16 | end
17 | end
18 |
19 | do --[[ FrameXML\CinematicFrame.xml ]]
20 | function Skin.CinematicDialogButtonTemplate(Button)
21 | Button:SetNormalTexture("")
22 | Button:SetPushedTexture("")
23 | Button:SetDisabledTexture("")
24 | Button:SetHighlightTexture("")
25 |
26 | Base.SetBackdrop(Button, Color.button)
27 | Base.SetHighlight(Button)
28 | end
29 | end
30 |
31 | function private.FrameXML.CinematicFrame()
32 | _G.CinematicFrame.closeDialog:HookScript("OnShow", Hook.CinematicFrameCloseDialog_OnShow)
33 |
34 | Skin.DialogBorderTemplate(_G.CinematicFrame.closeDialog)
35 | Skin.CinematicDialogButtonTemplate(_G.CinematicFrameCloseDialogConfirmButton)
36 | Skin.CinematicDialogButtonTemplate(_G.CinematicFrameCloseDialogResumeButton)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/ClassTrainerFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ClassTrainerFrameTemplates.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\ClassTrainerFrameTemplates.xml ]]
15 | function Skin.ClassTrainerSkillButtonTemplate(Button)
16 | Skin.ExpandOrCollapse(Button)
17 | Button:SetBackdropOption("offsets", {
18 | left = 3,
19 | right = 307,
20 | top = 0,
21 | bottom = 3,
22 | })
23 | end
24 | function Skin.ClassTrainerDetailScrollFrameTemplate(ScrollFrame)
25 | Skin.UIPanelScrollFrameTemplate(ScrollFrame)
26 | local name = ScrollFrame:GetName()
27 | _G[name.."Top"]:SetAlpha(0)
28 | _G[name.."Bottom"]:SetAlpha(0)
29 | end
30 | function Skin.ClassTrainerListScrollFrameTemplate(ScrollFrame)
31 | Skin.FauxScrollFrameTemplate(ScrollFrame)
32 | local top, bottom = ScrollFrame:GetRegions()
33 | top:Hide()
34 | bottom:Hide()
35 | end
36 | end
37 |
38 | function private.FrameXML.ClassTrainerFrameTemplates()
39 | ----====####$$$$%%%%$$$$####====----
40 | -- ClassTrainerFrameTemplates --
41 | ----====####$$$$%%%%$$$$####====----
42 |
43 | -------------
44 | -- Section --
45 | -------------
46 | end
47 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/CompactUnitFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | do --[[ FrameXML\CompactUnitFrame.lua ]]
12 | function Hook.CompactUnitFrame_UpdateHealthColor(frame)
13 | if frame:IsForbidden() then return end
14 |
15 | if _G.UnitIsConnected(frame.unit) then
16 | local opts = frame.optionTable
17 | if not opts.healthBarColorOverride then
18 | local _, classToken = _G.UnitClass(frame.unit)
19 | local classColor = classToken and _G.CUSTOM_CLASS_COLORS[classToken]
20 | if (frame.optionTable.allowClassColorsForNPCs or _G.UnitIsPlayer(frame.unit)) and classColor and frame.optionTable.useClassColors then
21 | frame.healthBar:SetStatusBarColor(classColor.r, classColor.g, classColor.b)
22 | if frame.optionTable.colorHealthWithExtendedColors then
23 | frame.selectionHighlight:SetVertexColor(classColor.r, classColor.g, classColor.b)
24 | end
25 | end
26 | end
27 | end
28 | end
29 | end
30 |
31 | --do --[[ FrameXML\CompactUnitFrame.xml ]]
32 | --end
33 |
34 | function private.FrameXML.CompactUnitFrame()
35 | _G.hooksecurefunc("CompactUnitFrame_UpdateHealthColor", Hook.CompactUnitFrame_UpdateHealthColor)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/GameMenuFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | function private.FrameXML.GameMenuFrame()
12 | local GameMenuFrame = _G.GameMenuFrame
13 | Skin.DialogBorderTemplate(GameMenuFrame)
14 |
15 | local header, text = GameMenuFrame:GetRegions()
16 | header:Hide()
17 | text:ClearAllPoints()
18 | text:SetPoint("TOPLEFT")
19 | text:SetPoint("BOTTOMRIGHT", _G.GameMenuFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
20 |
21 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonHelp)
22 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonStore)
23 |
24 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonOptions)
25 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonUIOptions)
26 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonKeybindings)
27 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonMacros)
28 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonAddons)
29 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonRatings) -- Used in Korean locale
30 |
31 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonLogout)
32 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonQuit)
33 |
34 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonContinue)
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/GuildRegistrarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\GuildRegistrarFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\GuildRegistrarFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.GuildRegistrarFrame()
19 | local GuildRegistrarFrame = _G.GuildRegistrarFrame
20 | Skin.FrameTypeFrame(GuildRegistrarFrame)
21 | GuildRegistrarFrame:SetBackdropOption("offsets", {
22 | left = 14,
23 | right = 34,
24 | top = 14,
25 | bottom = 75,
26 | })
27 |
28 | local portrait, tl, tr, bl, br = GuildRegistrarFrame:GetRegions()
29 | portrait:Hide()
30 | tl:Hide()
31 | tr:Hide()
32 | bl:Hide()
33 | br:Hide()
34 |
35 | local bg = GuildRegistrarFrame:GetBackdropTexture("bg")
36 | _G.GuildRegistrarFrameNpcNameText:ClearAllPoints()
37 | _G.GuildRegistrarFrameNpcNameText:SetPoint("TOPLEFT", bg)
38 | _G.GuildRegistrarFrameNpcNameText:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
39 |
40 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFrameGoodbyeButton)
41 |
42 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFrameCancelButton)
43 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFramePurchaseButton)
44 |
45 | _G.GuildRegistrarFrameEditBox:SetHeight(20)
46 | Base.SetBackdrop(_G.GuildRegistrarFrameEditBox, Color.frame)
47 | local _, _, left, right = _G.GuildRegistrarFrameEditBox:GetRegions()
48 | left:Hide()
49 | right:Hide()
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/HonorFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | do --[[ FrameXML\HonorFrame.lua ]]
12 | function Hook.HonorFrame_Update(updateAll)
13 | _G.HonorFrameCurrentPVPTitle:SetPoint("TOP", _G.HonorGuildText, 0, -20)
14 | end
15 | function Hook.HonorFrame_SetLevel()
16 | local classLocale, classColor = private.charClass.locale, _G.CUSTOM_CLASS_COLORS[private.charClass.token]
17 | _G.HonorLevelText:SetFormattedText(_G.PLAYER_LEVEL, _G.UnitLevel("player"), _G.UnitRace("player"), classColor:WrapTextInColorCode(classLocale))
18 | end
19 | end
20 |
21 | --do --[[ FrameXML\HonorFrame.xml ]]
22 | --end
23 |
24 | function private.FrameXML.HonorFrame()
25 | _G.hooksecurefunc("HonorFrame_Update", Hook.HonorFrame_Update)
26 | _G.hooksecurefunc("HonorFrame_SetLevel", Hook.HonorFrame_SetLevel)
27 |
28 | local tl, tr, bl, br, _, _, tl2, tr2, bl2, br2 = _G.HonorFrame:GetRegions()
29 | tl:Hide()
30 | tr:Hide()
31 | bl:Hide()
32 | br:Hide()
33 | tl2:Hide()
34 | tr2:Hide()
35 | bl2:Hide()
36 | br2:Hide()
37 |
38 | _G.HonorFrameCurrentPVPRank:ClearAllPoints()
39 | _G.HonorFrameCurrentPVPRank:SetPoint("TOP", _G.HonorFrameCurrentPVPTitle, "BOTTOM", 0, -2)
40 |
41 | _G.HonorFrameRankButton:SetPoint("LEFT", _G.HonorFrameCurrentPVPTitle, -26, -6)
42 | _G.HonorFrameRankButton:SetPoint("RIGHT", _G.HonorFrameCurrentPVPTitle, 26, -6)
43 | end
44 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/ItemRef.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ItemRef.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\ItemRef.xml ]]
15 | --end
16 |
17 | function private.FrameXML.ItemRef()
18 | if private.disabled.tooltips then return end
19 |
20 | Skin.ShoppingTooltipTemplate(_G.ItemRefShoppingTooltip1)
21 | Skin.ShoppingTooltipTemplate(_G.ItemRefShoppingTooltip2)
22 |
23 | Skin.GameTooltipTemplate(_G.ItemRefTooltip)
24 | Skin.UIPanelCloseButton(_G.ItemRefCloseButton)
25 | end
26 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/MirrorTimer.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\MirrorTimer.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\MirrorTimer.xml ]]
15 | function Skin.MirrorTimerTemplate(Frame)
16 | local name = Frame:GetName()
17 | Skin.FrameTypeStatusBar(_G[name.."StatusBar"])
18 |
19 | Frame:GetRegions():Hide()
20 | _G[name.."Text"]:ClearAllPoints()
21 | _G[name.."Text"]:SetPoint("CENTER", _G[name.."StatusBar"])
22 | _G[name.."Border"]:Hide()
23 | end
24 | end
25 |
26 | function private.FrameXML.MirrorTimer()
27 | Skin.MirrorTimerTemplate(_G.MirrorTimer1)
28 | Skin.MirrorTimerTemplate(_G.MirrorTimer2)
29 | Skin.MirrorTimerTemplate(_G.MirrorTimer3)
30 | end
31 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/MoneyFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals type floor mod
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ FrameXML\MoneyFrame.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\MoneyFrame.xml ]]
16 | Skin.SmallMoneyFrameTemplate = private.nop
17 | function Skin.SmallDenominationTemplate(Button)
18 | local name = Button:GetName()
19 | Base.CropIcon(_G[name.."Texture"], Button)
20 | end
21 | function Skin.SmallAlternateCurrencyFrameTemplate(Frame)
22 | local name = Frame:GetName()
23 | Skin.SmallDenominationTemplate(_G[name.."Item1"])
24 | Skin.SmallDenominationTemplate(_G[name.."Item2"])
25 | Skin.SmallDenominationTemplate(_G[name.."Item3"])
26 | end
27 | end
28 |
29 | --function private.FrameXML.MoneyFrame()
30 | --end
31 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/MoneyInputFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\MoneyInputFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\MoneyInputFrame.xml ]]
15 | local money = {"gold", "silver", "copper"}
16 | function Skin.MoneyInputFrameTemplate(Frame)
17 | for i = 1, #money do
18 | local EditBox = Frame[money[i]]
19 | Skin.FrameTypeEditBox(EditBox)
20 | EditBox:SetBackdropOption("offsets", {
21 | left = -5,
22 | right = 15,
23 | top = 0,
24 | bottom = 0,
25 | })
26 |
27 | local name = EditBox:GetName()
28 | _G[name.."Left"]:Hide()
29 | _G[name.."Middle"]:Hide()
30 | _G[name.."Right"]:Hide()
31 |
32 | local bg = EditBox:GetBackdropTexture("bg")
33 | EditBox.texture:ClearAllPoints()
34 | EditBox.texture:SetPoint("LEFT", bg, "RIGHT", 2, 0)
35 |
36 | if i > 1 then
37 | EditBox:SetPoint("LEFT", Frame[money[i - 1]], "RIGHT", 6, 0)
38 | EditBox:SetSize(35, 20)
39 | else
40 | EditBox:SetSize(70, 20)
41 | end
42 | end
43 | end
44 | function Skin.LargeMoneyInputBoxTemplate(Frame)
45 | Skin.LargeInputBoxTemplate(Frame)
46 | end
47 | function Skin.LargeMoneyInputFrameTemplate(Frame)
48 | Skin.LargeMoneyInputBoxTemplate(Frame.CopperBox)
49 | Skin.LargeMoneyInputBoxTemplate(Frame.SilverBox)
50 | Skin.LargeMoneyInputBoxTemplate(Frame.GoldBox)
51 | end
52 | end
53 |
54 | --function private.FrameXML.MoneyInputFrame()
55 | --end
56 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/MovieFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\MovieFrame.lua ]]
12 | function Hook.MovieFrameCloseDialog_OnShow(self)
13 | self:SetScale(_G.UIParent:GetScale())
14 | end
15 | end
16 |
17 | --do --[[ FrameXML\MovieFrame.xml ]]
18 | --end
19 |
20 | function private.FrameXML.MovieFrame()
21 | _G.MovieFrame.CloseDialog:HookScript("OnShow", Hook.MovieFrameCloseDialog_OnShow)
22 |
23 | Skin.DialogBorderTemplate(_G.MovieFrame.CloseDialog)
24 | Skin.CinematicDialogButtonTemplate(_G.MovieFrame.CloseDialog.ConfirmButton)
25 | Skin.CinematicDialogButtonTemplate(_G.MovieFrame.CloseDialog.ResumeButton)
26 | end
27 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/OptionsPanelTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\OptionsPanelTemplates.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\OptionsPanelTemplates.xml ]]
16 | function Skin.OptionsButtonTemplate(Button)
17 | Skin.UIPanelButtonTemplate(Button)
18 | end
19 | function Skin.OptionsBaseCheckButtonTemplate(CheckButton)
20 | Skin.UICheckButtonTemplate(CheckButton) -- BlizzWTF: Doesn't use the template
21 | end
22 |
23 | function Skin.OptionsCheckButtonTemplate(CheckButton)
24 | Skin.OptionsBaseCheckButtonTemplate(CheckButton)
25 | CheckButton.Text = _G[CheckButton:GetName().."Text"]
26 | CheckButton.Text:SetPoint("LEFT", CheckButton, "RIGHT", 3, 0)
27 | end
28 | function Skin.OptionsSmallCheckButtonTemplate(CheckButton)
29 | Skin.OptionsBaseCheckButtonTemplate(CheckButton)
30 | CheckButton.Text = _G[CheckButton:GetName().."Text"]
31 | CheckButton.Text:SetPoint("LEFT", CheckButton, "RIGHT", 3, 0)
32 | end
33 | function Skin.OptionsSliderTemplate(Slider)
34 | Skin.HorizontalSliderTemplate(Slider)
35 | end
36 | function Skin.OptionsDropdownTemplate(Frame)
37 | Skin.UIDropDownMenuTemplate(Frame)
38 | end
39 | function Skin.OptionsBoxTemplate(Frame)
40 | Base.SetBackdrop(Frame, Color.frame)
41 | end
42 | end
43 |
44 | --function private.FrameXML.OptionsPanelTemplates()
45 | --end
46 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/PVPHelper.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | --local Aurora = private.Aurora
9 | --local Base, Hook, Skin = Aurora.Base, Aurora.Hook, Aurora.Skin
10 |
11 | --do --[[ FrameXML\PVPHelper.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\PVPHelper.xml ]]
15 | --end
16 |
17 | function private.FrameXML.PVPHelper()
18 | --[[ PVPFramePopup ]]--
19 | end
20 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/PetActionBarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\PetActionBarFrame.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\PetActionBarFrame.xml ]]
17 | function Skin.PetActionButtonTemplate(CheckButton)
18 | Skin.ActionButtonTemplate(CheckButton)
19 |
20 | Base.CreateBackdrop(CheckButton, {
21 | bgFile = [[Interface\PaperDoll\UI-Backpack-EmptySlot]],
22 | tile = false,
23 | offsets = {
24 | left = -1,
25 | right = -1,
26 | top = -1,
27 | bottom = -1,
28 | }
29 | })
30 | CheckButton:SetBackdropColor(1, 1, 1, 0.75)
31 | CheckButton:SetBackdropBorderColor(Color.frame:GetRGB())
32 | Base.CropIcon(CheckButton:GetBackdropTexture("bg"))
33 |
34 | local name = CheckButton:GetName()
35 | _G[name.."NormalTexture2"]:Hide()
36 | --Base.CropIcon(_G[name.."NormalTexture2"])
37 | end
38 | end
39 |
40 | function private.FrameXML.PetActionBarFrame()
41 | if private.disabled.mainmenubar then return end
42 | _G.SlidingActionBarTexture0:SetAlpha(0)
43 | _G.SlidingActionBarTexture1:SetAlpha(0)
44 |
45 | for i = 1, _G.NUM_PET_ACTION_SLOTS do
46 | Skin.PetActionButtonTemplate(_G["PetActionButton"..i])
47 | end
48 | end
49 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/QuestTimerFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\QuestTimerFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\QuestTimerFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.QuestTimerFrame()
18 | local QuestTimerFrame = _G.QuestTimerFrame
19 | Skin.FrameTypeFrame(QuestTimerFrame)
20 | QuestTimerFrame:SetBackdropOption("offsets", {
21 | left = 5,
22 | right = 5,
23 | top = 0,
24 | bottom = 0,
25 | })
26 |
27 | local bg = QuestTimerFrame:GetBackdropTexture("bg")
28 | local header, text = QuestTimerFrame:GetRegions()
29 | header:Hide()
30 | text:ClearAllPoints()
31 | text:SetPoint("TOPLEFT", bg)
32 | text:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
33 | end
34 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/RaidFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\RaidFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\RaidFrame.xml ]]
15 | function Skin.RaidInfoHeaderTemplate(Frame)
16 | Frame:DisableDrawLayer("BACKGROUND")
17 | end
18 | end
19 |
20 | function private.FrameXML.RaidFrame()
21 | Skin.UICheckButtonTemplate(_G.RaidFrameAllAssistCheckButton)
22 | Skin.UIPanelButtonTemplate(_G.RaidFrameConvertToRaidButton)
23 | Skin.UIPanelButtonTemplate(_G.RaidFrameRaidInfoButton)
24 |
25 |
26 | Skin.DialogBorderDarkTemplate(_G.RaidInfoFrame)
27 |
28 | _G.RaidInfoDetailHeader:Hide()
29 | _G.RaidInfoDetailCorner:Hide()
30 | _G.RaidInfoHeader:ClearAllPoints()
31 | _G.RaidInfoHeader:SetPoint("TOPLEFT")
32 | _G.RaidInfoHeader:SetPoint("BOTTOMRIGHT", _G.RaidInfoFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
33 | _G.RaidInfoFrame:SetPoint("TOPLEFT", _G.RaidFrame, "TOPRIGHT", 1, -28)
34 |
35 | Skin.UIPanelCloseButton(_G.RaidInfoCloseButton)
36 | Skin.UIPanelScrollFrameTemplate(_G.RaidInfoScrollFrame)
37 | _G.RaidInfoScrollFrameTop:Hide()
38 | _G.RaidInfoScrollFrameBottom:Hide()
39 | end
40 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/RatingMenuFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\RatingMenuFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\RatingMenuFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.RatingMenuFrame()
18 | local RatingMenuFrame = _G.RatingMenuFrame
19 | Skin.DialogBorderTemplate(RatingMenuFrame)
20 |
21 | _G.RatingMenuFrameHeader:Hide()
22 | _G.RatingMenuFrameText:ClearAllPoints()
23 | _G.RatingMenuFrameText:SetPoint("TOPLEFT")
24 | _G.RatingMenuFrameText:SetPoint("BOTTOMRIGHT", _G.RatingMenuFrame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
25 |
26 | Skin.OptionsButtonTemplate(_G.RatingMenuButtonOkay)
27 | end
28 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/ReadyCheck.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local F = Aurora[1]
10 |
11 | function private.FrameXML.ReadyCheck()
12 | _G.ReadyCheckFrame:SetSize(300, 80)
13 |
14 | F.CreateBD(_G.ReadyCheckListenerFrame)
15 | _G.ReadyCheckPortrait:SetAlpha(0)
16 | _G.select(2, _G.ReadyCheckListenerFrame:GetRegions()):Hide()
17 | _G.ReadyCheckFrameText:SetPoint("CENTER", _G.ReadyCheckListenerFrame, "TOP", 0, -25)
18 |
19 | F.Reskin(_G.ReadyCheckFrameYesButton)
20 | _G.ReadyCheckFrameYesButton:SetPoint("TOPRIGHT", _G.ReadyCheckListenerFrame, "TOP", -5, -45)
21 | F.Reskin(_G.ReadyCheckFrameNoButton)
22 | _G.ReadyCheckFrameNoButton:SetPoint("TOPLEFT", _G.ReadyCheckListenerFrame, "TOP", 5, -45)
23 | end
24 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/SocialToast.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SocialToast.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SocialToast.xml ]]
15 | function Skin.SocialToastTemplate(ContainedAlertFrame)
16 | end
17 | end
18 |
19 | --function private.FrameXML.SocialToast()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/StackSplitFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\StackSplitFrame.lua ]]
14 | --end
15 |
16 | --do --[[ FrameXML\StackSplitFrame.xml ]]
17 | --end
18 |
19 | function private.FrameXML.StackSplitFrame()
20 | local StackSplitFrame = _G.StackSplitFrame
21 | Skin.FrameTypeFrame(StackSplitFrame)
22 | StackSplitFrame:SetBackdropOption("offsets", {
23 | left = 14,
24 | right = 12,
25 | top = 10,
26 | bottom = 15,
27 | })
28 |
29 | local bg = StackSplitFrame:GetBackdropTexture("bg")
30 | local textBG = _G.CreateFrame("Frame", nil, StackSplitFrame)
31 | textBG:SetPoint("TOPLEFT", bg, 20, -10)
32 | textBG:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", -20, -30)
33 | Base.SetBackdrop(textBG, Color.frame)
34 | textBG:SetBackdropBorderColor(Color.button)
35 | _G.StackSplitText:SetParent(textBG)
36 |
37 | Skin.UIPanelButtonTemplate(_G.StackSplitOkayButton)
38 | Skin.UIPanelButtonTemplate(_G.StackSplitCancelButton)
39 | end
40 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/StaticPopupSpecial.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ FrameXML\StaticPopupSpecial.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\StaticPopupSpecial.xml ]]
16 | function Skin.PlayerReportFrameTemplate(Frame)
17 | Skin.DialogBorderTemplate(Frame)
18 |
19 | local EditBox = Frame.Comment
20 | Base.CreateBackdrop(EditBox, private.backdrop, {
21 | tl = EditBox.TopLeft,
22 | tr = EditBox.TopRight,
23 | t = EditBox.Top,
24 |
25 | bl = EditBox.BottomLeft,
26 | br = EditBox.BottomRight,
27 | b = EditBox.Bottom,
28 |
29 | l = EditBox.Left,
30 | r = EditBox.Right,
31 |
32 | bg = EditBox.Middle
33 | })
34 | Skin.FrameTypeEditBox(EditBox)
35 |
36 | local scrollframe = EditBox.ScrollFrame
37 | Skin.UIPanelScrollFrameTemplate(scrollframe)
38 |
39 | scrollframe.ScrollBar:ClearAllPoints()
40 | scrollframe.ScrollBar:SetPoint("TOPLEFT", scrollframe, "TOPRIGHT", -18, -13)
41 | scrollframe.ScrollBar:SetPoint("BOTTOMLEFT", scrollframe, "BOTTOMRIGHT", -18, 13)
42 |
43 | scrollframe.ScrollBar.ScrollUpButton:SetPoint("BOTTOM", scrollframe.ScrollBar, "TOP")
44 | scrollframe.ScrollBar.ScrollDownButton:SetPoint("TOP", scrollframe.ScrollBar, "BOTTOM")
45 |
46 | Skin.UIPanelButtonTemplate(Frame.ReportButton)
47 | Skin.UIPanelButtonTemplate(Frame.CancelButton)
48 | end
49 | end
50 |
51 | function private.FrameXML.StaticPopupSpecial()
52 | Skin.PlayerReportFrameTemplate(_G.PlayerReportFrame)
53 | end
54 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/TaxiFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | function private.FrameXML.TaxiFrame()
12 | local TaxiFrame = _G.TaxiFrame
13 | Skin.FrameTypeFrame(TaxiFrame)
14 | TaxiFrame:SetBackdropOption("offsets", {
15 | left = 20,
16 | right = 46,
17 | top = 74,
18 | bottom = 84,
19 | })
20 |
21 | local portrait, tl, tr, bl, br = TaxiFrame:GetRegions()
22 | portrait:Hide()
23 | tl:Hide()
24 | tr:Hide()
25 | bl:Hide()
26 | br:Hide()
27 |
28 | local bg = TaxiFrame:GetBackdropTexture("bg")
29 | _G.TaxiMerchant:ClearAllPoints()
30 | _G.TaxiMerchant:SetPoint("TOPLEFT", bg)
31 | _G.TaxiMerchant:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
32 | _G.TaxiMerchant:SetDrawLayer("OVERLAY", 5)
33 |
34 | Skin.UIPanelCloseButton(_G.TaxiCloseButton)
35 | _G.TaxiCloseButton:SetPoint("TOPRIGHT", bg, 5.6, 5)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/UIMenu.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 |
12 | do --[[ FrameXML\UIMenu.lua ]]
13 | function Hook.UIMenuTemplate_OnShow(self)
14 | Base.SetBackdropColor(self)
15 | end
16 | end
17 |
18 | do --[[ FrameXML\UIMenu.xml ]]
19 | function Skin.UIMenuTemplate(Frame)
20 | Frame:HookScript("OnShow", Hook.UIMenuTemplate_OnShow)
21 |
22 | Skin.FrameTypeFrame(Frame)
23 | end
24 | end
25 |
26 | --function private.FrameXML.UIMenu()
27 | --end
28 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/UIOptions.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | function private.FrameXML.UIOptions()
12 | _G.hooksecurefunc("VideoOptionsDropDownMenu_AddButton", Hook.UIDropDownMenu_AddButton)
13 | _G.hooksecurefunc("VideoOptionsDropDownMenu_DisableDropDown", Hook.UIDropDownMenu_DisableDropDown)
14 | _G.hooksecurefunc("VideoOptionsDropDownMenu_EnableDropDown", Hook.UIDropDownMenu_EnableDropDown)
15 | end
16 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/UIParent.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\UIParent.lua ]]
12 | function Hook.SetPortraitToTexture(texture, path)
13 | texture = _G[texture] or texture
14 | if not texture:IsForbidden() and texture._auroraResetPortrait then
15 | texture:SetTexture(path)
16 | end
17 | end
18 | function Hook.BuildIconArray(parent, baseName, template, rowSize, numRows, onButtonCreated)
19 | if Skin[template] then
20 | for i = 1, rowSize * numRows do
21 | Skin[template](_G[baseName..i])
22 | end
23 | end
24 | end
25 | end
26 |
27 | function private.FrameXML.UIParent()
28 | _G.hooksecurefunc("SetPortraitToTexture", Hook.SetPortraitToTexture)
29 | _G.hooksecurefunc("BuildIconArray", Hook.BuildIconArray)
30 |
31 | -- Blizzard doesn't create the chat bubbles in lua, so we're calling it here
32 | if private.FrameXML.ChatBubbles then
33 | private.FrameXML.ChatBubbles()
34 | end
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/UnitPopupCustomControls.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\UnitPopupCustomControls.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\UnitPopupCustomControls.xml ]]
15 | function Skin.UnitPopupVoiceToggleButtonTemplate(Button)
16 | Skin.VoiceToggleButtonTemplate(Button)
17 | end
18 | function Skin.UnitPopupVoiceSliderTemplate(Slider)
19 | Skin.UnitPopupSliderTemplate(Slider)
20 | end
21 | end
22 |
23 | function private.FrameXML.UnitPopupCustomControls()
24 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceSpeakerVolume.Slider)
25 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceSpeakerVolume.Toggle)
26 |
27 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceMicrophoneVolume.Slider)
28 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceMicrophoneVolume.Toggle)
29 |
30 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceUserVolume.Slider)
31 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceUserVolume.Toggle)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/UnitPopupSlider.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\UnitPopupSlider.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\UnitPopupSlider.xml ]]
15 | function Skin.UnitPopupSliderTemplate(Slider)
16 | Skin.PropertySliderTemplate(Slider)
17 | end
18 | end
19 |
20 | --function private.FrameXML.UnitPopupSlider()
21 | --end
22 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/VideoOptionsFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | --do --[[ FrameXML\VideoOptionsFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\VideoOptionsFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.VideoOptionsFrame()
19 | Skin.OptionsFrameTemplate(_G.VideoOptionsFrame)
20 |
21 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameApply)
22 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameCancel)
23 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameOkay)
24 | Util.PositionRelative("BOTTOMRIGHT", _G.VideoOptionsFrame, "BOTTOMRIGHT", -15, 15, 5, "Left", {
25 | _G.VideoOptionsFrameCancel,
26 | _G.VideoOptionsFrameOkay,
27 | })
28 |
29 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameDefaults)
30 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameClassic)
31 | Util.PositionRelative("BOTTOMLEFT", _G.VideoOptionsFrame, "BOTTOMLEFT", 15, 15, 5, "Right", {
32 | _G.VideoOptionsFrameDefaults,
33 | _G.VideoOptionsFrameClassic,
34 | })
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/Classic/FrameXML/VoiceToggleButton.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\VoiceToggleButton.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\VoiceToggleButton.xml ]]
17 | function Skin.VoiceToggleButtonTemplate(Button)
18 | Skin.PropertyButtonTemplate(Button)
19 |
20 | Button:SetSize(23, 23)
21 | Button:SetNormalTexture("")
22 | Button:SetPushedTexture("")
23 | Button:SetHighlightTexture("")
24 | local disabled = Button:GetDisabledTexture()
25 | if disabled then
26 | disabled:SetColorTexture(0, 0, 0, .4)
27 | disabled:SetDrawLayer("OVERLAY")
28 | disabled:SetAllPoints()
29 | end
30 |
31 | Button.Icon:SetPoint("CENTER", 0, 1)
32 |
33 | Base.SetBackdrop(Button, Color.button, 0.3)
34 | Base.SetHighlight(Button)
35 | end
36 | function Skin.ToggleVoiceDeafenButtonTemplate(Button)
37 | Skin.VoiceToggleButtonTemplate(Button)
38 | end
39 | function Skin.ToggleVoiceMuteButtonTemplate(Button)
40 | Skin.VoiceToggleButtonTemplate(Button)
41 | end
42 | end
43 |
44 | --function private.FrameXML.VoiceToggleButton()
45 | --end
46 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/ModelPreviewFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ModelPreviewFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\ModelPreviewFrame.xml ]]
15 | --end
16 |
17 | function private.SharedXML.ModelPreviewFrame()
18 | local ModelPreviewFrame = _G.ModelPreviewFrame
19 |
20 | --BlizzWTF: The close button added in this frame interferes with the one created in the template.
21 | local closeButton = ModelPreviewFrame.CloseButton
22 | ModelPreviewFrame.CloseButton = ModelPreviewFrame:GetChildren()
23 | Skin.ButtonFrameTemplate(ModelPreviewFrame)
24 | Skin.MagicButtonTemplate(closeButton)
25 | closeButton:SetPoint("BOTTOMRIGHT", -5, 5)
26 |
27 | ModelPreviewFrame.Display.YesMountsTex:Hide()
28 | ModelPreviewFrame.Display.ShadowOverlay:Hide()
29 |
30 | local ModelScene = ModelPreviewFrame.Display.ModelScene
31 | Skin.RotateOrbitCameraLeftButtonTemplate(ModelScene.RotateLeftButton)
32 | Skin.RotateOrbitCameraRightButtonTemplate(ModelScene.RotateRightButton)
33 | Skin.NavButtonPrevious(ModelScene.CarouselLeftButton)
34 | Skin.NavButtonNext(ModelScene.CarouselRightButton)
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/ModelSceneTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ SharedXML\ModelSceneTemplates.lua ]]
13 | --end
14 |
15 | do --[[ SharedXML\ModelSceneTemplates.xml ]]
16 | function Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
17 | Skin.FrameTypeButton(Button)
18 | Button:SetBackdropOption("offsets", {
19 | left = 5,
20 | right = 5,
21 | top = 5,
22 | bottom = 5,
23 | })
24 | end
25 | function Skin.RotateOrbitCameraLeftButtonTemplate(Button)
26 | Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
27 |
28 | local bg = Button:GetBackdropTexture("bg")
29 | local arrow = Button:CreateTexture(nil, "ARTWORK")
30 | arrow:SetPoint("TOPLEFT", bg, 8, -5)
31 | arrow:SetPoint("BOTTOMRIGHT", bg, -8, 4)
32 | Base.SetTexture(arrow, "arrowLeft")
33 |
34 | Button._auroraTextures = {arrow}
35 | end
36 | function Skin.RotateOrbitCameraRightButtonTemplate(Button)
37 | Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
38 |
39 | local bg = Button:GetBackdropTexture("bg")
40 | local arrow = Button:CreateTexture(nil, "ARTWORK")
41 | arrow:SetPoint("TOPLEFT", bg, 8, -5)
42 | arrow:SetPoint("BOTTOMRIGHT", bg, -8, 4)
43 | Base.SetTexture(arrow, "arrowRight")
44 |
45 | Button._auroraTextures = {arrow}
46 | end
47 | end
48 |
49 | --function private.SharedXML.ModelSceneTemplates()
50 | --end
51 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/Pools.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | -- [[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | do --[[ SharedXML\Pools.lua ]]
13 | local function CheckTemplate(pool, ...)
14 | for i = 1, select("#", ...) do
15 | local template = select(i, ...)
16 | --print("CheckTemplate", i, template)
17 | if Skin[template] then
18 | for obj in pool:EnumerateActive() do
19 | if not obj._auroraSkinned then
20 | Skin[template](obj)
21 | obj._auroraSkinned = true
22 | end
23 | end
24 | elseif private.isDev then
25 | private.debug("Missing template:", template)
26 | end
27 | end
28 | end
29 |
30 | Hook.ObjectPoolMixin = {}
31 | function Hook.ObjectPoolMixin:Acquire()
32 | local template = self.frameTemplate or self.textureTemplate or self.fontStringTemplate or self.actorTemplate
33 | if not template then return end
34 |
35 | --local templates = {(", "):split(template)}
36 | --print("Acquire", template)
37 | CheckTemplate(self, (", "):split(template))
38 | end
39 | end
40 |
41 |
42 | function private.SharedXML.Pools()
43 | --Util.Mixin(objectPool, Hook.ObjectPoolMixin)
44 | Util.Mixin(_G.ObjectPoolMixin, Hook.ObjectPoolMixin)
45 |
46 | Util.Mixin(_G.FramePoolMixin, Hook.ObjectPoolMixin)
47 | Util.Mixin(_G.TexturePoolMixin, Hook.ObjectPoolMixin)
48 | Util.Mixin(_G.FontStringPoolMixin, Hook.ObjectPoolMixin)
49 | Util.Mixin(_G.ActorPoolMixin, Hook.ObjectPoolMixin)
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/PropertyButton.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\PropertyButton.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\PropertyButton.xml ]]
15 | function Skin.PropertyButtonTemplate(Button)
16 | end
17 | end
18 |
19 | --function private.FrameXML.PropertyButton()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/PropertySlider.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ SharedXML\PropertySlider.lua ]]
12 | --end
13 |
14 | do --[[ SharedXML\PropertySlider.xml ]]
15 | function Skin.PropertySliderTemplate(Slider)
16 | Skin.HorizontalSliderTemplate(Slider)
17 | end
18 | end
19 |
20 | --function private.SharedXML.PropertySlider()
21 | --end
22 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/Scroll/ScrollBox.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ScrollBox.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\ScrollBox.xml ]]
15 | function Skin.ScrollBoxBaseTemplate(Frame)
16 | end
17 | end
18 |
19 | function private.SharedXML.ScrollBox()
20 | end
21 |
--------------------------------------------------------------------------------
/Skin/Classic/SharedXML/SharedBasicControls.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isClassic then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SharedBasicControls.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SharedBasicControls.xml ]]
15 | function Skin.UIPanelDialogTemplate(Frame)
16 | local name = Frame:GetName()
17 |
18 | _G[name.."TopLeft"]:Hide()
19 | _G[name.."TopRight"]:Hide()
20 | _G[name.."Top"]:Hide()
21 | _G[name.."BottomLeft"]:Hide()
22 | _G[name.."BottomRight"]:Hide()
23 | _G[name.."Bottom"]:Hide()
24 | _G[name.."Left"]:Hide()
25 | _G[name.."Right"]:Hide()
26 |
27 | Skin.FrameTypeFrame(Frame)
28 |
29 | Frame.Title:ClearAllPoints()
30 | Frame.Title:SetPoint("TOPLEFT")
31 | Frame.Title:SetPoint("BOTTOMRIGHT", Frame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
32 |
33 | local titleBG = _G[name.."TitleBG"]
34 | titleBG:SetAllPoints(Frame.Title)
35 | titleBG:Hide()
36 |
37 | _G[name.."DialogBG"]:Hide()
38 |
39 | Skin.UIPanelCloseButton(_G[name.."Close"])
40 | end
41 | end
42 |
43 | function private.SharedXML.SharedBasicControls()
44 | local ScriptErrorsFrame = _G.ScriptErrorsFrame
45 |
46 | ScriptErrorsFrame:SetScale(_G.UIParent:GetScale())
47 | Skin.UIPanelDialogTemplate(ScriptErrorsFrame)
48 | Skin.UIPanelScrollFrameTemplate(ScriptErrorsFrame.ScrollFrame)
49 | Skin.UIPanelButtonTemplate(ScriptErrorsFrame.Reload)
50 | Skin.NavButtonPrevious(ScriptErrorsFrame.PreviousError)
51 | Skin.NavButtonNext(ScriptErrorsFrame.NextError)
52 | Skin.UIPanelButtonTemplate(ScriptErrorsFrame.Close)
53 | end
54 |
--------------------------------------------------------------------------------
/Skin/FrameXML/FrameXML.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 |
3 | -- luacheck: globals tinsert setmetatable rawset
4 |
5 | private.fileOrder = {}
6 | local mt = {
7 | __newindex = function(t, k, v)
8 | tinsert(private.fileOrder, {list = t, name = k})
9 | rawset(t, k, v)
10 | end
11 | }
12 |
13 | private.FrameXML = setmetatable({}, mt)
14 | private.SharedXML = setmetatable({}, mt)
15 |
16 | --[==[ Some boilerplate stuff for new files
17 | local _, private = ...
18 | if not private.isRetail then return end
19 | if not private.isClassic then return end
20 |
21 | --[[ Lua Globals ]]
22 | -- luacheck: globals
23 |
24 | --[[ Core ]]
25 | local Aurora = private.Aurora
26 | local Base = Aurora.Base
27 | local Hook, Skin = Aurora.Hook, Aurora.Skin
28 | local Color, Util = Aurora.Color, Aurora.Util
29 |
30 | --do --[[ FrameXML\File.lua ]]
31 | --end
32 |
33 | --do --[[ FrameXML\File.xml ]]
34 | --end
35 |
36 | function private.FrameXML.File()
37 | ----====####$$$$%%%%$$$$####====----
38 | -- File --
39 | ----====####$$$$%%%%$$$$####====----
40 |
41 | -------------
42 | -- Section --
43 | -------------
44 | end
45 | function private.SharedXML.File()
46 | ----====####$$$$%%%%$$$$####====----
47 | -- File --
48 | ----====####$$$$%%%%$$$$####====----
49 |
50 | -------------
51 | -- Section --
52 | -------------
53 | end
54 | ]==]
55 |
--------------------------------------------------------------------------------
/Skin/FrameXML/FrameXML.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_AnimaDiversionUI.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_AnimaDiversionUI.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_AnimaDiversionUI.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_AnimaDiversionUI()
18 | local AnimaDiversionFrame = _G.AnimaDiversionFrame
19 |
20 | Skin.MapCanvasFrameTemplate(AnimaDiversionFrame)
21 | Skin.NineSlicePanelTemplate(AnimaDiversionFrame.NineSlice)
22 | AnimaDiversionFrame.NineSlice:SetFrameLevel(1)
23 | AnimaDiversionFrame.NineSlice:SetPoint("TOPLEFT", 2, -19)
24 | AnimaDiversionFrame.NineSlice:SetPoint("BOTTOMRIGHT", 1, 0)
25 |
26 | AnimaDiversionFrame.BorderFrame:Hide()
27 |
28 | Skin.UIPanelCloseButton(AnimaDiversionFrame.CloseButton)
29 | AnimaDiversionFrame.CloseButton:SetPoint("TOPRIGHT", AnimaDiversionFrame.NineSlice, 5.6, 5)
30 | AnimaDiversionFrame.AnimaDiversionCurrencyFrame:SetPoint("TOP", AnimaDiversionFrame.NineSlice, 0, 0)
31 | AnimaDiversionFrame.ReinforceProgressFrame:SetPoint("BOTTOM", AnimaDiversionFrame.NineSlice, 0, 1)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_ArtifactUI.lua:
--------------------------------------------------------------------------------
1 | --local _, private = ...
2 | --if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | --local Aurora = private.Aurora
9 | --local Base = Aurora.Base
10 | --local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | --local Color, Util = Aurora.Color, Aurora.Util
12 |
13 | --do --[[ AddOns\Blizzard_ArtifactUI.lua ]]
14 | --end
15 |
16 | --do --[[ AddOns\Blizzard_ArtifactUI.xml ]]
17 | --end
18 |
19 | --function private.AddOns.Blizzard_ArtifactUI()
20 | ----====####$$$$%%%%$$$$####====----
21 | -- Blizzard_ArtifactPowerButton --
22 | ----====####$$$$%%%%$$$$####====----
23 |
24 |
25 | ----====####$$$$%%%%$$$$####====----
26 | -- Blizzard_ArtifactPerks --
27 | ----====####$$$$%%%%$$$$####====----
28 |
29 |
30 | ----====####$$$$%%%%$$$$####====----
31 | -- Blizzard_ArtifactAppearances --
32 | ----====####$$$$%%%%$$$$####====----
33 |
34 |
35 | ----====####$$$$%%%%%$$$$####====----
36 | -- Blizzard_ArtifactUI --
37 | ----====####$$$$%%%%%$$$$####====----
38 |
39 |
40 | --end
41 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_BarbershopUI.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | -- [[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_BarbershopUI.lua ]]
12 | --end
13 |
14 | do --[[ AddOns\Blizzard_BarbershopUI.xml ]]
15 | function Skin.BarberShopButtonTemplate(Button)
16 | Skin.SharedButtonLargeTemplate(Button)
17 | end
18 | end
19 |
20 | function private.AddOns.Blizzard_BarbershopUI()
21 | local BarberShopFrame = _G.BarberShopFrame
22 | Skin.BarberShopButtonTemplate(BarberShopFrame.CancelButton)
23 | Skin.BarberShopButtonTemplate(BarberShopFrame.ResetButton)
24 | Skin.BarberShopButtonTemplate(BarberShopFrame.AcceptButton)
25 | end
26 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_BattlefieldMap.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --[[ do AddOns\Blizzard_BattlefieldMap.lua
14 | end ]]
15 |
16 | --[[ do AddOns\Blizzard_BattlefieldMap.xml
17 | end ]]
18 |
19 | function private.AddOns.Blizzard_BattlefieldMap()
20 | -----------------------
21 | -- BattlefieldMapTab --
22 | -----------------------
23 | _G.BattlefieldMapTab.Left:Hide()
24 | _G.BattlefieldMapTab.Middle:Hide()
25 | _G.BattlefieldMapTab.Right:Hide()
26 |
27 | -------------------------
28 | -- BattlefieldMapFrame --
29 | -------------------------
30 | local BattlefieldMapFrame = _G.BattlefieldMapFrame
31 | BattlefieldMapFrame.ScrollContainer:SetAllPoints()
32 |
33 | local BorderFrame = BattlefieldMapFrame.BorderFrame
34 | BorderFrame.CloseButtonBorder:Hide()
35 | Base.CreateBackdrop(BorderFrame, private.backdrop, {
36 | tl = BorderFrame.TopLeft,
37 | tr = BorderFrame.TopRight,
38 | bl = BorderFrame.BottomLeft,
39 | br = BorderFrame.BottomRight,
40 |
41 | t = BorderFrame.Top,
42 | b = BorderFrame.Bottom,
43 | l = BorderFrame.Left,
44 | r = BorderFrame.Right,
45 | })
46 | Base.SetBackdrop(BorderFrame, Color.frame, 0)
47 |
48 | Skin.UIPanelCloseButton(BorderFrame.CloseButton)
49 | BorderFrame.CloseButton:SetPoint("TOPRIGHT", 10, 9)
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_Contribution.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_Contribution.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_Contribution.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_Contribution()
18 | if not private.disabled.tooltips then
19 | Skin.GameTooltipTemplate(_G.ContributionTooltip)
20 | Skin.InternalEmbeddedItemTooltipTemplate(_G.ContributionTooltip.ItemTooltip)
21 |
22 | Skin.TooltipBorderedFrameTemplate(_G.ContributionBuffTooltip)
23 | Base.CropIcon(_G.ContributionBuffTooltip.Icon, _G.ContributionBuffTooltip)
24 | _G.ContributionBuffTooltip.Border:Hide()
25 | end
26 | end
27 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_FlightMap.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_FlightMap.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_FlightMap.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_FlightMap()
18 | local FlightMapFrame = _G.FlightMapFrame
19 | Skin.MapCanvasFrameTemplate(FlightMapFrame)
20 | Skin.PortraitFrameTemplate(FlightMapFrame.BorderFrame)
21 | FlightMapFrame.BorderFrame.TopBorder:Hide()
22 |
23 | Skin.MapCanvasFrameScrollContainerTemplate(FlightMapFrame.ScrollContainer)
24 | FlightMapFrame.ScrollContainer:SetAllPoints()
25 | end
26 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_IslandsPartyPoseUI.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_IslandsPartyPoseUI.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_IslandsPartyPoseUI.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_IslandsPartyPoseUI()
18 | local IslandsPartyPoseFrame = _G.IslandsPartyPoseFrame
19 | Skin.PartyPoseFrameTemplate(IslandsPartyPoseFrame)
20 | Skin.PartyPoseModelFrameTemplate(IslandsPartyPoseFrame.ModelScene)
21 | Skin.UIPanelButtonNoTooltipResizeToFitTemplate(IslandsPartyPoseFrame.LeaveButton)
22 | end
23 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_LandingSoulbinds.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ AddOns\Blizzard_LandingSoulbinds.lua ]]
12 | function Hook.LandingSoulbind_Create(parent)
13 | local SoulbindPanel = select(parent:GetNumChildren(), parent:GetChildren())
14 | Skin.LandingPageSoulbindPanelTemplate(SoulbindPanel)
15 | end
16 | end
17 |
18 | do --[[ AddOns\Blizzard_LandingSoulbinds.xml ]]
19 | function Skin.LandingPageSoulbindButtonTemplate(Button)
20 | Skin.FrameTypeButton(Button)
21 | end
22 | function Skin.LandingPageSoulbindPanelTemplate(Frame)
23 | local divider = Frame:GetRegions()
24 | divider:SetColorTexture(1, 1, 1, 0.2)
25 | divider:SetSize(261, 1)
26 | divider:SetPoint("TOPLEFT", 50, 0)
27 | -- Skin.LandingPageSoulbindButtonTemplate(Frame.SoulbindButton)
28 | end
29 | end
30 |
31 | function private.AddOns.Blizzard_LandingSoulbinds()
32 | ----====####$$$$%%%%$$$$####====----
33 | -- Blizzard_LandingSoulbindButton --
34 | ----====####$$$$%%%%$$$$####====----
35 |
36 | ----====####$$$$%%%%%$$$$####====----
37 | -- Blizzard_LandingSoulbindPanel --
38 | ----====####$$$$%%%%%$$$$####====----
39 | _G.hooksecurefunc(_G.LandingSoulbind, "Create", Hook.LandingSoulbind_Create)
40 | end
41 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_MapCanvas.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_MapCanvas.lua ]]
12 | --end
13 |
14 | do --[[ AddOns\Blizzard_MapCanvas.xml ]]
15 | function Skin.MapCanvasFrameScrollContainerTemplate(ScrollFrame)
16 | end
17 | function Skin.MapCanvasFrameTemplate(Frame)
18 | end
19 | end
20 |
21 | --function private.AddOns.Blizzard_MapCanvas()
22 | ----====####$$$$%%%%$$$$####====----
23 | -- MapCanvas_DataProviderBase --
24 | ----====####$$$$%%%%$$$$####====----
25 |
26 | ----====####$$$$%%%%%$$$$####====----
27 | -- MapCanvas_PinFrameLevelsManager --
28 | ----====####$$$$%%%%%$$$$####====----
29 |
30 | ----====####$$$$%%%%%$$$$####====----
31 | -- Blizzard_MapCanvasDetailLayer --
32 | ----====####$$$$%%%%%$$$$####====----
33 |
34 | ----====####$$$$%%%%$$$$####====----
35 | -- MapCanvas_ScrollContainerMixin --
36 | ----====####$$$$%%%%$$$$####====----
37 |
38 | ----====####$$$$%%%%$$$$####====----
39 | -- Blizzard_MapCanvas --
40 | ----====####$$$$%%%%$$$$####====----
41 | --end
42 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_NewPlayerExperienceGuide.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_NewPlayerExperienceGuide.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_NewPlayerExperienceGuide.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_NewPlayerExperienceGuide()
18 | ----====####$$$$%%%%$$$$####====----
19 | -- GuideCriteriaFrame --
20 | ----====####$$$$%%%%$$$$####====----
21 |
22 | ----====####$$$$%%%%$$$$####====----
23 | -- GuideFrame --
24 | ----====####$$$$%%%%$$$$####====----
25 | local GuideFrame = _G.GuideFrame
26 | Skin.PortraitFrameTemplate(GuideFrame)
27 | GuideFrame.Background:Hide()
28 | GuideFrame.Title:SetTextColor(private.PAPER_FRAME_TITLE_COLOR:GetRGB())
29 |
30 | local ScrollFrame = GuideFrame.ScrollFrame
31 | ScrollFrame.Child.Text:SetTextColor(private.PAPER_FRAME_TITLE_COLOR:GetRGB())
32 | Skin.UIPanelButtonTemplate(ScrollFrame.ConfirmationButton)
33 | Skin.MinimalScrollBarWithBorderTemplate(ScrollFrame.ScrollBar)
34 | end
35 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_SharedMapDataProviders.lua:
--------------------------------------------------------------------------------
1 | --local _, private = ...
2 | --if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | --local Aurora = private.Aurora
9 | --local Base = Aurora.Base
10 | --local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | --local Color = Aurora.Color
12 |
13 | --[[ do AddOns\Blizzard_SharedMapDataProviders.lua
14 | end ]]
15 |
16 | --[[ do AddOns\Blizzard_SharedMapDataProviders.xml
17 | end ]]
18 |
19 | --function private.AddOns.Blizzard_SharedMapDataProviders()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_TimeManager.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local F, C = _G.unpack(private.Aurora)
9 |
10 | function private.AddOns.Blizzard_TimeManager()
11 | _G.TimeManagerGlobe:Hide()
12 | _G.StopwatchFrameBackgroundLeft:Hide()
13 | _G.select(2, _G.StopwatchFrame:GetRegions()):Hide()
14 | _G.StopwatchTabFrameLeft:Hide()
15 | _G.StopwatchTabFrameMiddle:Hide()
16 | _G.StopwatchTabFrameRight:Hide()
17 |
18 | _G.TimeManagerStopwatchCheck:GetNormalTexture():SetTexCoord(.08, .92, .08, .92)
19 | _G.TimeManagerStopwatchCheck:SetCheckedTexture(C.media.checked)
20 | F.CreateBG(_G.TimeManagerStopwatchCheck)
21 |
22 | _G.TimeManagerAlarmHourDropDown:SetWidth(80)
23 | _G.TimeManagerAlarmMinuteDropDown:SetWidth(80)
24 | _G.TimeManagerAlarmAMPMDropDown:SetWidth(90)
25 |
26 | F.ReskinPortraitFrame(_G.TimeManagerFrame, true)
27 |
28 | F.CreateBD(_G.StopwatchFrame)
29 | F.ReskinDropDown(_G.TimeManagerAlarmHourDropDown)
30 | F.ReskinDropDown(_G.TimeManagerAlarmMinuteDropDown)
31 | F.ReskinDropDown(_G.TimeManagerAlarmAMPMDropDown)
32 | F.ReskinInput(_G.TimeManagerAlarmMessageEditBox)
33 | F.ReskinCheck(_G.TimeManagerAlarmEnabledButton)
34 | F.ReskinCheck(_G.TimeManagerMilitaryTimeCheck)
35 | F.ReskinCheck(_G.TimeManagerLocalTimeCheck)
36 | F.ReskinClose(_G.StopwatchCloseButton, "TOPRIGHT", _G.StopwatchFrame, "TOPRIGHT", -2, -2)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_TorghastLevelPicker.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_TorghastLevelPicker.lua ]]
12 | --end
13 |
14 | do --[[ AddOns\Blizzard_TorghastLevelPicker.xml ]]
15 | function Skin.TorghastPagingContainerTemplate(Frame)
16 | Skin.NavButtonPrevious(Frame.PreviousPage)
17 | Skin.NavButtonNext(Frame.NextPage)
18 | end
19 | end
20 |
21 | function private.AddOns.Blizzard_TorghastLevelPicker()
22 | local TorghastLevelPickerFrame = _G.TorghastLevelPickerFrame
23 |
24 | Skin.TorghastPagingContainerTemplate(TorghastLevelPickerFrame.Pager)
25 | Skin.UIPanelButtonTemplate(TorghastLevelPickerFrame.OpenPortalButton)
26 | Skin.UIPanelCloseButton(TorghastLevelPickerFrame.CloseButton)
27 | TorghastLevelPickerFrame.CloseButton.CloseButtonBorder:Hide()
28 | end
29 |
--------------------------------------------------------------------------------
/Skin/Retail/AddOns/Blizzard_WarfrontsPartyPoseUI.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ AddOns\Blizzard_WarfrontsPartyPoseUI.lua ]]
12 | --end
13 |
14 | --do --[[ AddOns\Blizzard_WarfrontsPartyPoseUI.xml ]]
15 | --end
16 |
17 | function private.AddOns.Blizzard_WarfrontsPartyPoseUI()
18 | local WarfrontsPartyPoseFrame = _G.WarfrontsPartyPoseFrame
19 | Skin.PartyPoseFrameTemplate(WarfrontsPartyPoseFrame)
20 | Skin.PartyPoseModelFrameTemplate(WarfrontsPartyPoseFrame.ModelScene)
21 | Skin.UIPanelButtonNoTooltipResizeToFitTemplate(WarfrontsPartyPoseFrame.LeaveButton)
22 | end
23 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/AlertFrames.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | do --[[ FrameXML\AlertFrames.lua ]]
13 | Hook.AlertContainerMixin = {}
14 | function Hook.AlertContainerMixin:AddAlertFrame(frame)
15 | if frame._auroraTemplate then
16 | Skin[frame._auroraTemplate](frame)
17 | end
18 | end
19 | end
20 |
21 | --do --[[ FrameXML\AlertFrames.xml ]]
22 | --end
23 |
24 | function private.FrameXML.AlertFrames()
25 | Util.Mixin(_G.AlertFrame, Hook.AlertContainerMixin)
26 | end
27 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/AutoComplete.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\AutoComplete.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\AutoComplete.xml ]]
16 | function Skin.AutoCompleteButtonTemplate(Button)
17 | local highlight = Button:GetHighlightTexture()
18 | highlight:ClearAllPoints()
19 | highlight:SetPoint("LEFT", _G.AutoCompleteBox, 1, 0)
20 | highlight:SetPoint("RIGHT", _G.AutoCompleteBox, -1, 0)
21 | highlight:SetPoint("TOP", 0, 0)
22 | highlight:SetPoint("BOTTOM", 0, 0)
23 | highlight:SetColorTexture(Color.highlight.r, Color.highlight.g, Color.highlight.b, .2)
24 | end
25 | end
26 |
27 | function private.FrameXML.AutoComplete()
28 | local AutoCompleteBox = _G.AutoCompleteBox
29 | Skin.FrameTypeFrame(AutoCompleteBox)
30 |
31 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton1)
32 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton2)
33 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton3)
34 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton4)
35 | Skin.AutoCompleteButtonTemplate(_G.AutoCompleteButton5)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/BNet.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\BNet.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\BNet.xml ]]
15 | --end
16 |
17 | function private.FrameXML.BNet()
18 | ------------------
19 | -- BNToastFrame --
20 | ------------------
21 | Skin.SocialToastTemplate(_G.BNToastFrame)
22 |
23 |
24 | --------------------
25 | -- TimeAlertFrame --
26 | --------------------
27 | Skin.SocialToastTemplate(_G.TimeAlertFrame)
28 | end
29 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/BattlePetTooltip.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --[[ do FrameXML\BattlePetTooltip.lua
12 | end ]]
13 |
14 | --[[ do FrameXML\BattlePetTooltip.xml
15 | end ]]
16 |
17 | function private.FrameXML.BattlePetTooltip()
18 | if private.disabled.tooltips then return end
19 |
20 | Skin.BattlePetTooltipTemplate(_G.BattlePetTooltip)
21 | end
22 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/BossBannerToast.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | -- [[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | do --[[ FrameXML\BossBannerToast.lua ]]
12 | function Hook.BossBanner_ConfigureLootFrame(lootFrame, data)
13 | lootFrame.PlayerName:SetTextColor(_G.CUSTOM_CLASS_COLORS[data.className]:GetRGB())
14 | end
15 | end
16 |
17 | --do --[[ FrameXML\BossBannerToast.xml ]]
18 | --end
19 |
20 | function private.FrameXML.BossBannerToast()
21 | _G.hooksecurefunc("BossBanner_ConfigureLootFrame", Hook.BossBanner_ConfigureLootFrame)
22 | end
23 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/CastingBarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\CastingBarFrame.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\CastingBarFrame.xml ]]
17 | function Skin.CastingBarFrameTemplate(StatusBar)
18 | Skin.FrameTypeStatusBar(StatusBar)
19 | Base.SetBackdropColor(StatusBar, Color.frame)
20 |
21 | StatusBar:GetRegions():Hide()
22 | StatusBar.Border:Hide()
23 | StatusBar.Text:ClearAllPoints()
24 | StatusBar.Text:SetPoint("CENTER")
25 | StatusBar.Spark:SetAlpha(0)
26 |
27 | StatusBar.Flash:SetAllPoints(StatusBar)
28 | StatusBar.Flash:SetColorTexture(1, 1, 1)
29 | end
30 | function Skin.SmallCastingBarFrameTemplate(StatusBar)
31 | Skin.FrameTypeStatusBar(StatusBar)
32 |
33 | StatusBar:GetRegions():Hide()
34 | StatusBar.Border:Hide()
35 | StatusBar.Text:ClearAllPoints()
36 | StatusBar.Text:SetPoint("CENTER")
37 | StatusBar.Spark:SetAlpha(0)
38 |
39 | StatusBar.Flash:SetAllPoints(StatusBar)
40 | StatusBar.Flash:SetColorTexture(1, 1, 1)
41 | end
42 | end
43 |
44 | function private.FrameXML.CastingBarFrame()
45 | Skin.CastingBarFrameTemplate(_G.CastingBarFrame)
46 | end
47 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/CharacterFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | do --[[ FrameXML\CharacterFrameTemplates.xml ]]
13 | function Skin.CharacterFrameTabButtonTemplate(Button)
14 | Skin.FrameTypeButton(Button)
15 | Button:SetButtonColor(Color.frame, nil, false)
16 |
17 | local name = Button:GetName()
18 | Button:SetHeight(28)
19 |
20 | _G[name.."LeftDisabled"]:SetTexture("")
21 | _G[name.."MiddleDisabled"]:SetTexture("")
22 | _G[name.."RightDisabled"]:SetTexture("")
23 | _G[name.."Left"]:SetTexture("")
24 | _G[name.."Middle"]:SetTexture("")
25 | _G[name.."Right"]:SetTexture("")
26 | _G[name.."Text"]:SetPoint("CENTER", Button, "CENTER")
27 | Button:SetHighlightTexture("")
28 |
29 | Button._auroraTabResize = true
30 | end
31 | end
32 |
33 | --function private.FrameXML.CharacterFrameTemplates()
34 | --end
35 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/CinematicFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | do --[[ FrameXML\CinematicFrame.lua ]]
14 | function Hook.CinematicFrameCloseDialog_OnShow(self)
15 | self:SetScale(_G.UIParent:GetScale())
16 | end
17 | end
18 |
19 | do --[[ FrameXML\CinematicFrame.xml ]]
20 | function Skin.CinematicDialogButtonTemplate(Button)
21 | Button:SetNormalTexture("")
22 | Button:SetPushedTexture("")
23 | Button:SetDisabledTexture("")
24 | Button:SetHighlightTexture("")
25 |
26 | Base.SetBackdrop(Button, Color.button)
27 | Base.SetHighlight(Button)
28 | end
29 | end
30 |
31 | function private.FrameXML.CinematicFrame()
32 | _G.CinematicFrame.closeDialog:HookScript("OnShow", Hook.CinematicFrameCloseDialog_OnShow)
33 |
34 | Skin.DialogBorderTemplate(_G.CinematicFrame.closeDialog.Border)
35 | Skin.CinematicDialogButtonTemplate(_G.CinematicFrameCloseDialogConfirmButton)
36 | Skin.CinematicDialogButtonTemplate(_G.CinematicFrameCloseDialogResumeButton)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/CompactUnitFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook = Aurora.Hook
10 |
11 | do --[[ FrameXML\CompactUnitFrame.lua ]]
12 | function Hook.CompactUnitFrame_UpdateHealthColor(frame)
13 | if frame:IsForbidden() then return end
14 |
15 | if _G.UnitIsConnected(frame.unit) then
16 | local opts = frame.optionTable
17 | if not opts.healthBarColorOverride then
18 | local _, classToken = _G.UnitClass(frame.unit)
19 | local classColor = classToken and _G.CUSTOM_CLASS_COLORS[classToken]
20 | local treatAsPlayer = _G.UnitTreatAsPlayerForDisplay(frame.unit)
21 | if (frame.optionTable.allowClassColorsForNPCs or _G.UnitIsPlayer(frame.unit) or treatAsPlayer) and classColor and frame.optionTable.useClassColors then
22 | frame.healthBar:SetStatusBarColor(classColor.r, classColor.g, classColor.b)
23 | if frame.optionTable.colorHealthWithExtendedColors then
24 | frame.selectionHighlight:SetVertexColor(classColor.r, classColor.g, classColor.b)
25 | end
26 | end
27 | end
28 | end
29 | end
30 | end
31 |
32 | --do --[[ FrameXML\CompactUnitFrame.xml ]]
33 | --end
34 |
35 | function private.FrameXML.CompactUnitFrame()
36 | _G.hooksecurefunc("CompactUnitFrame_UpdateHealthColor", Hook.CompactUnitFrame_UpdateHealthColor)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/FloatingPetBattleTooltip.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\FloatingPetBattleTooltip.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\FloatingPetBattleTooltip.xml ]]
15 | function Skin.BattlePetTooltipTemplate(Frame)
16 | Skin.TooltipBorderedFrameTemplate(Frame)
17 | end
18 | end
19 |
20 | function private.FrameXML.FloatingPetBattleTooltip()
21 | if private.disabled.tooltips then return end
22 |
23 | Skin.SharedPetBattleAbilityTooltipTemplate(_G.FloatingPetBattleAbilityTooltip)
24 | Skin.UIPanelCloseButton(_G.FloatingPetBattleAbilityTooltip.CloseButton)
25 |
26 | Skin.BattlePetTooltipTemplate(_G.FloatingBattlePetTooltip)
27 | _G.FloatingBattlePetTooltip.Delimiter:SetHeight(1)
28 | Skin.UIPanelCloseButton(_G.FloatingBattlePetTooltip.CloseButton)
29 | end
30 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/GameMenuFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | function private.FrameXML.GameMenuFrame()
12 | local GameMenuFrame = _G.GameMenuFrame
13 | Skin.DialogBorderTemplate(GameMenuFrame.Border)
14 | Skin.DialogHeaderTemplate(GameMenuFrame.Header)
15 |
16 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonHelp)
17 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonStore)
18 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonWhatsNew)
19 |
20 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonOptions)
21 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonUIOptions)
22 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonKeybindings)
23 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonMacros)
24 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonAddons)
25 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonRatings) -- Used in Korean locale
26 |
27 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonLogout)
28 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonQuit)
29 |
30 | Skin.GameMenuButtonTemplate(_G.GameMenuButtonContinue)
31 | end
32 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/GhostFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 |
11 | --do --[[ FrameXML\GhostFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\GhostFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.GhostFrame()
18 | Skin.UIPanelLargeSilverButton(_G.GhostFrame)
19 | Base.CropIcon(_G.GhostFrameContentsFrameIcon, _G.GhostFrameContentsFrame)
20 | end
21 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/GuildInviteFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\GuildInviteFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\GuildInviteFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.GuildInviteFrame()
18 | Skin.TranslucentFrameTemplate(_G.GuildInviteFrame)
19 |
20 | _G.GuildInviteFrameBackground:Hide()
21 |
22 | _G.GuildInviteFrameInviterName:SetPoint("TOP", 0, -20)
23 | _G.GuildInviteFrameTabardBorder:SetPoint("TOPLEFT", "$parentTabardBackground", 0, 0)
24 | _G.GuildInviteFrameTabardBorder:SetSize(62, 62)
25 |
26 | _G.GuildInviteFrameTabardRing:Hide()
27 |
28 | Skin.UIPanelButtonTemplate(_G.GuildInviteFrameJoinButton)
29 | Skin.UIPanelButtonTemplate(_G.GuildInviteFrameDeclineButton)
30 | end
31 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/GuildRegistrarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Skin = Aurora.Base, Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\GuildRegistrarFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\GuildRegistrarFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.GuildRegistrarFrame()
19 | Skin.ButtonFrameTemplate(_G.GuildRegistrarFrame)
20 |
21 | _G.GuildRegistrarFrameTop:Hide()
22 | _G.GuildRegistrarFrameBottom:Hide()
23 | _G.GuildRegistrarFrameMiddle:Hide()
24 |
25 | -- BlizzWTF: This texture doesn't have a handle because the name it's been given already exists via the template
26 | _G.select(7, _G.GuildRegistrarFrame:GetRegions()):Hide() -- GuildRegistrarFrameBg
27 |
28 | -- BlizzWTF: This should use the title text included in the template
29 | _G.GuildRegistrarFrameNpcNameText:SetAllPoints(_G.GuildRegistrarFrame.TitleText)
30 |
31 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFrameCancelButton)
32 | Skin.UIPanelButtonTemplate(_G.GuildRegistrarFramePurchaseButton)
33 |
34 | _G.GuildRegistrarFrameEditBox:SetHeight(20)
35 | Base.SetBackdrop(_G.GuildRegistrarFrameEditBox, Color.frame)
36 | local _, _, left, right = _G.GuildRegistrarFrameEditBox:GetRegions()
37 | left:Hide()
38 | right:Hide()
39 | end
40 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/InterfaceOptionsFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color, Util = Aurora.Color, Aurora.Util
12 |
13 | --do --[[ FrameXML\InterfaceOptionsFrame.lua ]]
14 | --end
15 |
16 | --do --[[ FrameXML\InterfaceOptionsFrame.xml ]]
17 | --end
18 |
19 | function private.FrameXML.InterfaceOptionsFrame()
20 | local InterfaceOptionsFrame = _G.InterfaceOptionsFrame
21 | Skin.DialogBorderTemplate(InterfaceOptionsFrame.Border)
22 | Skin.DialogHeaderTemplate(InterfaceOptionsFrame.Header)
23 | Skin.UIPanelButtonTemplate(_G.InterfaceOptionsFrameCancel)
24 | Skin.UIPanelButtonTemplate(_G.InterfaceOptionsFrameOkay)
25 | Util.PositionRelative("BOTTOMRIGHT", InterfaceOptionsFrame, "BOTTOMRIGHT", -15, 15, 5, "Left", {
26 | _G.InterfaceOptionsFrameCancel,
27 | _G.InterfaceOptionsFrameOkay,
28 | })
29 | Skin.UIPanelButtonTemplate(_G.InterfaceOptionsFrameDefaults)
30 | _G.InterfaceOptionsFrameDefaults:SetPoint("BOTTOMLEFT", 15, 15)
31 |
32 | Skin.OptionsFrameListTemplate(_G.InterfaceOptionsFrameCategories)
33 | Skin.OptionsFrameListTemplate(_G.InterfaceOptionsFrameAddOns)
34 | Base.SetBackdrop(_G.InterfaceOptionsFramePanelContainer, Color.frame)
35 |
36 | Skin.OptionsFrameTabButtonTemplate(_G.InterfaceOptionsFrameTab1)
37 | Skin.OptionsFrameTabButtonTemplate(_G.InterfaceOptionsFrameTab2)
38 | end
39 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/ItemRef.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ItemRef.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\ItemRef.xml ]]
15 | --end
16 |
17 | function private.FrameXML.ItemRef()
18 | if private.disabled.tooltips then return end
19 |
20 | Skin.ShoppingTooltipTemplate(_G.ItemRefShoppingTooltip1)
21 | Skin.ShoppingTooltipTemplate(_G.ItemRefShoppingTooltip2)
22 |
23 | Skin.GameTooltipTemplate(_G.ItemRefTooltip)
24 | Skin.UIPanelCloseButton(_G.ItemRefTooltip.CloseButton)
25 | end
26 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/MainMenuBarBagButtons.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ FrameXML\MainMenuBarBagButtons.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\MainMenuBarBagButtons.xml ]]
16 | function Skin.BagSlotButtonTemplate(ItemButton)
17 | Skin.FrameTypeItemButton(ItemButton)
18 | Base.CropIcon(ItemButton.SlotHighlightTexture)
19 | end
20 | end
21 |
22 | function private.FrameXML.MainMenuBarBagButtons()
23 | if private.disabled.mainmenubar then return end
24 |
25 | Skin.FrameTypeItemButton(_G.MainMenuBarBackpackButton)
26 | Base.CropIcon(_G.MainMenuBarBackpackButton.SlotHighlightTexture)
27 |
28 | Skin.BagSlotButtonTemplate(_G.CharacterBag0Slot)
29 | Skin.BagSlotButtonTemplate(_G.CharacterBag1Slot)
30 | Skin.BagSlotButtonTemplate(_G.CharacterBag2Slot)
31 | Skin.BagSlotButtonTemplate(_G.CharacterBag3Slot)
32 | _G.CharacterBag0Slot:SetPoint("RIGHT", _G.MainMenuBarBackpackButton, "LEFT", -4, -5)
33 | _G.CharacterBag1Slot:SetPoint("RIGHT", _G.CharacterBag0Slot, "LEFT", -4, 0)
34 | _G.CharacterBag2Slot:SetPoint("RIGHT", _G.CharacterBag1Slot, "LEFT", -4, 0)
35 | _G.CharacterBag3Slot:SetPoint("RIGHT", _G.CharacterBag2Slot, "LEFT", -4, 0)
36 | end
37 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/MirrorTimer.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\MirrorTimer.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\MirrorTimer.xml ]]
15 | function Skin.MirrorTimerTemplate(Frame)
16 | local name = Frame:GetName()
17 | Skin.FrameTypeStatusBar(_G[name.."StatusBar"])
18 |
19 | Frame:GetRegions():Hide()
20 | _G[name.."Text"]:ClearAllPoints()
21 | _G[name.."Text"]:SetPoint("CENTER", _G[name.."StatusBar"])
22 | _G[name.."Border"]:Hide()
23 | end
24 | end
25 |
26 | function private.FrameXML.MirrorTimer()
27 | Skin.MirrorTimerTemplate(_G.MirrorTimer1)
28 | Skin.MirrorTimerTemplate(_G.MirrorTimer2)
29 | Skin.MirrorTimerTemplate(_G.MirrorTimer3)
30 | end
31 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/MoneyFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals type floor mod
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ FrameXML\MoneyFrame.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\MoneyFrame.xml ]]
16 | Skin.SmallMoneyFrameTemplate = private.nop
17 | function Skin.SmallDenominationTemplate(Button)
18 | local name = Button:GetName()
19 | Base.CropIcon(_G[name.."Texture"], Button)
20 | end
21 | function Skin.SmallAlternateCurrencyFrameTemplate(Frame)
22 | local name = Frame:GetName()
23 | Skin.SmallDenominationTemplate(_G[name.."Item1"])
24 | Skin.SmallDenominationTemplate(_G[name.."Item2"])
25 | Skin.SmallDenominationTemplate(_G[name.."Item3"])
26 | end
27 | end
28 |
29 | --function private.FrameXML.MoneyFrame()
30 | --end
31 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/MoneyInputFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\MoneyInputFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\MoneyInputFrame.xml ]]
15 | local money = {"gold", "silver", "copper"}
16 | function Skin.MoneyInputFrameTemplate(Frame)
17 | for i = 1, #money do
18 | local EditBox = Frame[money[i]]
19 | Skin.FrameTypeEditBox(EditBox)
20 | EditBox:SetBackdropOption("offsets", {
21 | left = -5,
22 | right = 15,
23 | top = 0,
24 | bottom = 0,
25 | })
26 |
27 | EditBox.left:Hide()
28 | _G[EditBox:GetName().."Middle"]:Hide()
29 | EditBox.right:Hide()
30 |
31 | local bg = EditBox:GetBackdropTexture("bg")
32 | EditBox.texture:ClearAllPoints()
33 | EditBox.texture:SetPoint("LEFT", bg, "RIGHT", 2, 0)
34 |
35 | if i > 1 then
36 | EditBox:SetPoint("LEFT", Frame[money[i - 1]], "RIGHT", 6, 0)
37 | EditBox:SetSize(35, 20)
38 | else
39 | EditBox:SetSize(70, 20)
40 | end
41 | end
42 | end
43 | function Skin.LargeMoneyInputBoxTemplate(Frame)
44 | Skin.LargeInputBoxTemplate(Frame)
45 | end
46 | function Skin.LargeMoneyInputFrameTemplate(Frame)
47 | Skin.LargeMoneyInputBoxTemplate(Frame.CopperBox)
48 | Skin.LargeMoneyInputBoxTemplate(Frame.SilverBox)
49 | Skin.LargeMoneyInputBoxTemplate(Frame.GoldBox)
50 | end
51 | end
52 |
53 | --function private.FrameXML.MoneyInputFrame()
54 | --end
55 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/MovieFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\MovieFrame.lua ]]
12 | function Hook.MovieFrameCloseDialog_OnShow(self)
13 | self:SetScale(_G.UIParent:GetScale())
14 | end
15 | end
16 |
17 | --do --[[ FrameXML\MovieFrame.xml ]]
18 | --end
19 |
20 | function private.FrameXML.MovieFrame()
21 | _G.MovieFrame.CloseDialog:HookScript("OnShow", Hook.MovieFrameCloseDialog_OnShow)
22 |
23 | Skin.DialogBorderTemplate(_G.MovieFrame.CloseDialog.Border)
24 | Skin.CinematicDialogButtonTemplate(_G.MovieFrame.CloseDialog.ConfirmButton)
25 | Skin.CinematicDialogButtonTemplate(_G.MovieFrame.CloseDialog.ResumeButton)
26 | end
27 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/PVPHelper.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base, Hook, Skin = Aurora.Base, Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\PVPHelper.lua ]]
12 | function Hook.PVPReadyDialog_Display(self, index, displayName, isRated, queueType, gameType, role)
13 | Base.SetTexture(self.roleIcon.texture, "icon"..role)
14 | end
15 | end
16 |
17 | --do --[[ FrameXML\PVPHelper.xml ]]
18 | --end
19 |
20 | function private.FrameXML.PVPHelper()
21 | _G.hooksecurefunc("PVPReadyDialog_Display", Hook.PVPReadyDialog_Display)
22 |
23 | --[[ PVPFramePopup ]]--
24 |
25 | --[[ PVPRoleCheckPopup ]]--
26 |
27 | --[[ PVPReadyDialog ]]--
28 | local PVPReadyDialog = _G.PVPReadyDialog
29 | Skin.DialogBorderTemplate(PVPReadyDialog.Border)
30 |
31 | PVPReadyDialog.background:SetAlpha(0.75)
32 | PVPReadyDialog.background:ClearAllPoints()
33 | PVPReadyDialog.background:SetPoint("TOPLEFT")
34 | PVPReadyDialog.background:SetPoint("BOTTOMRIGHT", 0, 68)
35 |
36 | PVPReadyDialog.filigree:Hide()
37 | PVPReadyDialog.bottomArt:Hide()
38 |
39 | Skin.MinimizeButton(_G.PVPReadyDialogCloseButton)
40 | Skin.UIPanelButtonTemplate(PVPReadyDialog.enterButton)
41 | Skin.UIPanelButtonTemplate(PVPReadyDialog.leaveButton)
42 |
43 | PVPReadyDialog.roleIcon:SetSize(64, 64)
44 | end
45 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/PVPHonorSystem.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals floor
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Util = Aurora.Util
12 |
13 | do --[[ FrameXML\PVPHonorSystem.lua ]]
14 | function Hook.PVPHonorXPBar_Update(self)
15 | self.Bar.Spark:Hide()
16 |
17 | if self.rewardInfo and not self.rewardInfo.texCoords then
18 | Base.CropIcon(self.NextAvailable.Icon)
19 | end
20 | end
21 | end
22 |
23 | do --[[ FrameXML\PVPHonorSystem.xml ]]
24 | function Skin.PVPHonorSystemLargeXPBar(Frame)
25 | Frame:HookScript("OnEvent", Hook.PVPHonorXPBar_Update)
26 | Frame:HookScript("OnShow", Hook.PVPHonorXPBar_Update)
27 |
28 | Frame.Frame:Hide()
29 |
30 | local bar = Frame.Bar
31 | Skin.FrameTypeStatusBar(bar)
32 | bar.Background:Hide()
33 | Util.PositionBarTicks(bar, 5)
34 |
35 | Frame.NextAvailable.Frame:SetAlpha(0)
36 | Base.CropIcon(Frame.NextAvailable.Icon, Frame.NextAvailable)
37 | end
38 | end
39 |
40 | function private.FrameXML.PVPHonorSystem()
41 | _G.hooksecurefunc("PVPHonorXPBar_Update", Hook.PVPHonorXPBar_Update)
42 | end
43 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/PVPUITemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Util = Aurora.Util
12 |
13 | do --[[ FrameXML\PVPUITemplates.lua ]]
14 | local factionIcon = _G.UnitFactionGroup("player") == "Horde" and [[Interface\Icons\UI_Horde_HonorboundMedal]] or [[Interface\Icons\UI_Alliance_7LegionMedal]]
15 |
16 | Hook.PVPConquestRewardMixin = {}
17 | function Hook.PVPConquestRewardMixin:SetTexture(texture, alpha)
18 | if not texture then
19 | self.Icon:SetTexture(factionIcon)
20 | end
21 | end
22 | end
23 |
24 | do --[[ FrameXML\PVPUITemplates.xml ]]
25 | function Skin.PVPConquestRewardButton(Button)
26 | Button.Ring:Hide()
27 | Base.CropIcon(Button.Icon, Button)
28 | Button.CircleMask:Hide()
29 | end
30 | function Skin.PVPHonorRewardTemplate(Button)
31 | Base.CropIcon(Button.RewardIcon, Button)
32 | Button.IconCover:SetAllPoints(Button.RewardIcon)
33 | Button.CircleMask:Hide()
34 | Button.RingBorder:Hide()
35 | end
36 | function Skin.PVPRatedTierTemplate(Frame)
37 | end
38 | end
39 |
40 | function private.FrameXML.PVPUITemplates()
41 | ----====####$$$$%%%%$$$$####====----
42 | -- PVPUITemplates --
43 | ----====####$$$$%%%%$$$$####====----
44 | Util.Mixin(_G.PVPConquestRewardMixin, Hook.PVPConquestRewardMixin)
45 |
46 | -------------
47 | -- Section --
48 | -------------
49 | end
50 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/PetActionBarFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\PetActionBarFrame.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\PetActionBarFrame.xml ]]
17 | function Skin.PetActionButtonTemplate(CheckButton)
18 | Skin.ActionButtonTemplate(CheckButton)
19 |
20 | Base.CreateBackdrop(CheckButton, {
21 | bgFile = [[Interface\PaperDoll\UI-Backpack-EmptySlot]],
22 | tile = false,
23 | offsets = {
24 | left = -1,
25 | right = -1,
26 | top = -1,
27 | bottom = -1,
28 | }
29 | })
30 | CheckButton:SetBackdropColor(1, 1, 1, 0.75)
31 | CheckButton:SetBackdropBorderColor(Color.frame:GetRGB())
32 | Base.CropIcon(CheckButton:GetBackdropTexture("bg"))
33 |
34 | local name = CheckButton:GetName()
35 | _G[name.."NormalTexture2"]:Hide()
36 | --Base.CropIcon(_G[name.."NormalTexture2"])
37 | end
38 | end
39 |
40 | function private.FrameXML.PetActionBarFrame()
41 | if private.disabled.mainmenubar then return end
42 | _G.SlidingActionBarTexture0:SetAlpha(0)
43 | _G.SlidingActionBarTexture1:SetAlpha(0)
44 |
45 | for i = 1, _G.NUM_PET_ACTION_SLOTS do
46 | Skin.PetActionButtonTemplate(_G["PetActionButton"..i])
47 | end
48 | end
49 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/QuestPOI.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\QuestPOI.lua ]]
12 | function Hook.QuestPOI_GetButton(parent, questID, style, index)
13 | if _G.C_QuestLog.IsQuestCalling(questID) then
14 | return
15 | end
16 |
17 | local poiButton
18 | if style == "numeric" then
19 | poiButton = parent.poiTable.numeric[index]
20 | if not poiButton._auroraSkinned then
21 | Skin.QuestPOINumericTemplate(poiButton)
22 | end
23 | else
24 | for _, button in next, parent.poiTable.completed do
25 | if button.questID == questID then
26 | poiButton = button
27 | break
28 | end
29 | end
30 | if not poiButton._auroraSkinned then
31 | Skin.QuestPOICompletedTemplate(poiButton)
32 | end
33 | end
34 | end
35 | end
36 |
37 | do --[[ FrameXML\QuestPOI.xml ]]
38 | Skin.QuestPOINumericTemplate = private.nop
39 | Skin.QuestPOICompletedTemplate = private.nop
40 | end
41 |
42 | function private.FrameXML.QuestPOI()
43 | _G.hooksecurefunc("QuestPOI_GetButton", Hook.QuestPOI_GetButton)
44 | end
45 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/QuickJoin.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | function private.FrameXML.QuickJoin()
12 | local QuickJoinFrame = _G.QuickJoinFrame
13 | Skin.FriendsFrameScrollFrame(QuickJoinFrame.ScrollFrame)
14 | QuickJoinFrame.ScrollFrame:SetPoint("TOPLEFT", 8, -(private.FRAME_TITLE_HEIGHT + 5))
15 | QuickJoinFrame.ScrollFrame:SetPoint("BOTTOMRIGHT", -28, 30)
16 | Skin.MagicButtonTemplate(QuickJoinFrame.JoinQueueButton)
17 | end
18 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/RaidFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\RaidFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\RaidFrame.xml ]]
15 | function Skin.RaidInfoHeaderTemplate(Frame)
16 | Frame:DisableDrawLayer("BACKGROUND")
17 | end
18 | end
19 |
20 | function private.FrameXML.RaidFrame()
21 | Skin.RoleCountTemplate(_G.RaidFrame.RoleCount)
22 | Skin.UICheckButtonTemplate(_G.RaidFrameAllAssistCheckButton)
23 | Skin.UIPanelButtonTemplate(_G.RaidFrameConvertToRaidButton)
24 | Skin.UIPanelButtonTemplate(_G.RaidFrameRaidInfoButton)
25 |
26 |
27 | Skin.DialogBorderDarkTemplate(_G.RaidInfoFrame.Border)
28 | Skin.DialogHeaderTemplate(_G.RaidInfoFrame.Header)
29 |
30 | _G.RaidInfoDetailHeader:Hide()
31 | _G.RaidInfoDetailFooter:Hide()
32 | _G.RaidInfoDetailCorner:Hide()
33 |
34 | Skin.RaidInfoHeaderTemplate(_G.RaidInfoInstanceLabel)
35 | Skin.RaidInfoHeaderTemplate(_G.RaidInfoIDLabel)
36 | _G.RaidInfoFrame:SetPoint("TOPLEFT", _G.RaidFrame, "TOPRIGHT", 1, -28)
37 |
38 | Skin.UIPanelCloseButton(_G.RaidInfoCloseButton)
39 | Skin.HybridScrollBarTemplate(_G.RaidInfoScrollFrame.scrollBar)
40 | Skin.UIPanelButtonTemplate(_G.RaidInfoExtendButton)
41 | Skin.UIPanelButtonTemplate(_G.RaidInfoCancelButton)
42 | end
43 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/RatingMenuFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\RatingMenuFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\RatingMenuFrame.xml ]]
15 | --end
16 |
17 | function private.FrameXML.RatingMenuFrame()
18 | local RatingMenuFrame = _G.RatingMenuFrame
19 | Skin.DialogBorderTemplate(RatingMenuFrame.Border)
20 | Skin.DialogHeaderTemplate(RatingMenuFrame.Header)
21 | Skin.OptionsButtonTemplate(_G.RatingMenuButtonOkay)
22 | end
23 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/ReadyCheck.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local F = Aurora[1]
10 |
11 | function private.FrameXML.ReadyCheck()
12 | _G.ReadyCheckFrame:SetSize(300, 80)
13 |
14 | F.CreateBD(_G.ReadyCheckListenerFrame)
15 | _G.ReadyCheckPortrait:SetAlpha(0)
16 | _G.select(2, _G.ReadyCheckListenerFrame:GetRegions()):Hide()
17 | _G.ReadyCheckFrameText:SetPoint("CENTER", _G.ReadyCheckListenerFrame, "TOP", 0, -25)
18 |
19 | F.Reskin(_G.ReadyCheckFrameYesButton)
20 | _G.ReadyCheckFrameYesButton:SetPoint("TOPRIGHT", _G.ReadyCheckListenerFrame, "TOP", -5, -45)
21 | F.Reskin(_G.ReadyCheckFrameNoButton)
22 | _G.ReadyCheckFrameNoButton:SetPoint("TOPLEFT", _G.ReadyCheckListenerFrame, "TOP", 5, -45)
23 | end
24 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/SharedPetBattleTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 |
12 | do --[[ FrameXML\SharedPetBattleTemplates.lua ]]
13 | function Hook.SharedPetBattleAbilityTooltip_SetAbility(self, abilityInfo, additionalText)
14 | local abilityID = abilityInfo:GetAbilityID()
15 | if ( not abilityID ) then
16 | return
17 | end
18 |
19 | local _, _, _, _, _, _, petType = _G.C_PetBattles.GetAbilityInfoByID(abilityID)
20 | if self.AbilityPetType:IsShown() then
21 | self.AbilityPetType:SetTexture([[Interface\Icons\Icon_PetFamily_]].._G.PET_TYPE_SUFFIX[petType])
22 | end
23 | end
24 | end
25 |
26 | do --[[ FrameXML\SharedPetBattleTemplates.xml ]]
27 | function Skin.SharedPetBattleAbilityTooltipTemplate(Frame)
28 | Skin.TooltipBorderedFrameTemplate(Frame)
29 | Base.CropIcon(Frame.AbilityPetType, Frame)
30 |
31 | Frame.Delimiter1:SetHeight(1)
32 | Frame.Delimiter2:SetHeight(1)
33 | end
34 | end
35 |
36 | function private.FrameXML.SharedPetBattleTemplates()
37 | if private.disabled.tooltips then return end
38 |
39 | _G.hooksecurefunc("SharedPetBattleAbilityTooltip_SetAbility", Hook.SharedPetBattleAbilityTooltip_SetAbility)
40 | end
41 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/SocialToast.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SocialToast.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SocialToast.xml ]]
15 | function Skin.SocialToastTemplate(ContainedAlertFrame)
16 | end
17 | end
18 |
19 | --function private.FrameXML.SocialToast()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/SplashFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SplashFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SplashFrame.xml ]]
15 | Skin.SplashFeatureFrameTemplate = private.nop
16 | end
17 |
18 | function private.FrameXML.SplashFrame()
19 | local SplashFrame = _G.SplashFrame
20 | Skin.UIPanelButtonTemplate(SplashFrame.BottomCloseButton)
21 |
22 | Skin.UIPanelCloseButton(SplashFrame.TopCloseButton)
23 | Skin.SplashFeatureFrameTemplate(SplashFrame.Feature1)
24 | Skin.SplashFeatureFrameTemplate(SplashFrame.Feature2)
25 | end
26 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/StackSplitFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Color, Util = Aurora.Color, Aurora.Util
12 |
13 | do --[[ FrameXML\StackSplitFrame.lua ]]
14 | Hook.StackSplitMixin = {}
15 | function Hook.StackSplitMixin:ChooseFrameType(splitAmount)
16 | if self.isMultiStack then
17 | self:SetBackdropOption("offsets", {
18 | left = 14,
19 | right = 12,
20 | top = 10,
21 | bottom = 23,
22 | })
23 | else
24 | self:SetBackdropOption("offsets", {
25 | left = 14,
26 | right = 12,
27 | top = 10,
28 | bottom = 15,
29 | })
30 | end
31 | end
32 | end
33 |
34 | --do --[[ FrameXML\StackSplitFrame.xml ]]
35 | --end
36 |
37 | function private.FrameXML.StackSplitFrame()
38 | local StackSplitFrame = _G.StackSplitFrame
39 | Util.Mixin(StackSplitFrame, Hook.StackSplitMixin)
40 | Skin.FrameTypeFrame(StackSplitFrame)
41 |
42 | local bg = StackSplitFrame:GetBackdropTexture("bg")
43 | StackSplitFrame.SingleItemSplitBackground:SetAlpha(0)
44 | StackSplitFrame.MultiItemSplitBackground:SetAlpha(0)
45 |
46 | local textBG = _G.CreateFrame("Frame", nil, StackSplitFrame)
47 | textBG:SetPoint("TOPLEFT", bg, 20, -10)
48 | textBG:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", -20, -30)
49 | Base.SetBackdrop(textBG, Color.frame)
50 | textBG:SetBackdropBorderColor(Color.button)
51 | StackSplitFrame.StackSplitText:SetParent(textBG)
52 |
53 | Skin.UIPanelButtonTemplate(StackSplitFrame.OkayButton)
54 | Skin.UIPanelButtonTemplate(StackSplitFrame.CancelButton)
55 | end
56 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/TalentFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | do --[[ FrameXML\TalentFrameTemplates.xml ]]
14 | function Skin.PvpTalentSlotTemplate(Button)
15 | Button._auroraBG = Base.CropIcon(Button.Texture, Button)
16 | Button.Arrow:SetVertexColor(Color.yellow:GetRGB())
17 | Button.Arrow:SetPoint("LEFT", Button.Texture, "RIGHT", 5, 0)
18 | Button.Arrow:SetSize(26, 13)
19 | Base.SetTexture(Button.Arrow, "arrowRight")
20 | Button.Border:Hide()
21 | end
22 | function Skin.PvpTalentTrinketSlotTemplate(Button)
23 | Skin.PvpTalentSlotTemplate(Button)
24 | Button.Texture:SetSize(48, 48)
25 | end
26 | end
27 |
28 | --function private.FrameXML.TalentFrameTemplates()
29 | --end
30 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/Timer.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\Timer.lua ]]
12 | function Hook.StartTimer_SetGoTexture(timer)
13 | if not timer._auroraSkinned then
14 | Skin.StartTimerBar(timer)
15 | timer._auroraSkinned = true
16 | end
17 | end
18 | end
19 |
20 | do --[[ FrameXML\Timer.xml ]]
21 | function Skin.StartTimerBar(Frame)
22 | Skin.FrameTypeStatusBar(Frame.bar)
23 | local bg, border = Frame.bar:GetRegions()
24 | bg:Hide()
25 | border:Hide()
26 | end
27 | end
28 |
29 | function private.FrameXML.Timer()
30 | _G.hooksecurefunc("StartTimer_SetGoTexture", Hook.StartTimer_SetGoTexture)
31 | end
32 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/UIMenu.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 |
12 | do --[[ FrameXML\UIMenu.lua ]]
13 | function Hook.UIMenuTemplate_OnShow(self)
14 | Base.SetBackdropColor(self)
15 | end
16 | end
17 |
18 | do --[[ FrameXML\UIMenu.xml ]]
19 | function Skin.UIMenuTemplate(Frame)
20 | Frame:HookScript("OnShow", Hook.UIMenuTemplate_OnShow)
21 |
22 | Skin.FrameTypeFrame(Frame)
23 | end
24 | end
25 |
26 | --function private.FrameXML.UIMenu()
27 | --end
28 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/UIParent.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals next
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\UIParent.lua ]]
12 | function Hook.SetPortraitToTexture(texture, path)
13 | texture = _G[texture] or texture
14 | if not texture:IsForbidden() and texture._auroraResetPortrait then
15 | texture:SetTexture(path)
16 | end
17 | end
18 | function Hook.BuildIconArray(parent, baseName, template, rowSize, numRows, onButtonCreated)
19 | if Skin[template] then
20 | for i = 1, rowSize * numRows do
21 | Skin[template](_G[baseName..i])
22 | end
23 | end
24 | end
25 | end
26 |
27 | function private.FrameXML.UIParent()
28 | _G.hooksecurefunc("SetPortraitToTexture", Hook.SetPortraitToTexture)
29 | _G.hooksecurefunc("BuildIconArray", Hook.BuildIconArray)
30 | end
31 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/UnitPopupCustomControls.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\UnitPopupCustomControls.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\UnitPopupCustomControls.xml ]]
15 | function Skin.UnitPopupVoiceToggleButtonTemplate(Button)
16 | Skin.VoiceToggleButtonTemplate(Button)
17 | end
18 | function Skin.UnitPopupVoiceSliderTemplate(Slider)
19 | Skin.UnitPopupSliderTemplate(Slider)
20 | end
21 | end
22 |
23 | function private.FrameXML.UnitPopupCustomControls()
24 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceSpeakerVolume.Slider)
25 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceSpeakerVolume.Toggle)
26 |
27 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceMicrophoneVolume.Slider)
28 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceMicrophoneVolume.Toggle)
29 |
30 | Skin.UnitPopupVoiceSliderTemplate(_G.UnitPopupVoiceUserVolume.Slider)
31 | Skin.UnitPopupVoiceToggleButtonTemplate(_G.UnitPopupVoiceUserVolume.Toggle)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/UnitPopupSlider.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\UnitPopupSlider.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\UnitPopupSlider.xml ]]
15 | function Skin.UnitPopupSliderTemplate(Slider)
16 | Skin.PropertySliderTemplate(Slider)
17 | end
18 | end
19 |
20 | --function private.FrameXML.UnitPopupSlider()
21 | --end
22 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/VoiceToggleButton.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\VoiceToggleButton.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\VoiceToggleButton.xml ]]
17 | function Skin.VoiceToggleButtonTemplate(Button)
18 | Skin.PropertyButtonTemplate(Button)
19 |
20 | Button:SetSize(23, 23)
21 | Button:SetNormalTexture("")
22 | Button:SetPushedTexture("")
23 | Button:SetHighlightTexture("")
24 | local disabled = Button:GetDisabledTexture()
25 | if disabled then
26 | disabled:SetColorTexture(0, 0, 0, .4)
27 | disabled:SetDrawLayer("OVERLAY")
28 | disabled:SetAllPoints()
29 | end
30 |
31 | Button.Icon:SetPoint("CENTER", 0, 1)
32 |
33 | Base.SetBackdrop(Button, Color.button, 0.3)
34 | Base.SetHighlight(Button)
35 | end
36 | function Skin.ToggleVoiceDeafenButtonTemplate(Button)
37 | Skin.VoiceToggleButtonTemplate(Button)
38 | end
39 | function Skin.ToggleVoiceMuteButtonTemplate(Button)
40 | Skin.VoiceToggleButtonTemplate(Button)
41 | end
42 | end
43 |
44 | --function private.FrameXML.VoiceToggleButton()
45 | --end
46 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/WorldMapFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | -- [[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | -- [[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\WorldMapFrame.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\WorldMapFrame.xml ]]
15 | do --[[ FrameXML\WorldMapFrameTemplates.xml ]]
16 | function Skin.WorldMapBountyBoardTemplate(Frame)
17 | end
18 | function Skin.WorldMapActionButtonTemplate(Frame)
19 | end
20 | end
21 | end
22 |
23 | function private.FrameXML.WorldMapFrame()
24 | ----====####$$$$%%%%%$$$$####====----
25 | -- WorldMapBountyBoard --
26 | ----====####$$$$%%%%%$$$$####====----
27 |
28 |
29 | ----====####$$$$%%%%$$$$####====----
30 | -- WorldMapActionButton --
31 | ----====####$$$$%%%%$$$$####====----
32 |
33 |
34 | ----====####$$$$%%%%$$$$####====----
35 | -- WorldMapPOIQuantizer --
36 | ----====####$$$$%%%%$$$$####====----
37 |
38 |
39 | ----====####$$$$%%%%%$$$$####====----
40 | -- WorldMapFrame --
41 | ----====####$$$$%%%%%$$$$####====----
42 |
43 |
44 | ----====####$$$$%%%%$$$$####====----
45 | -- WorldMapFrameTemplates --
46 | ----====####$$$$%%%%$$$$####====----
47 | end
48 |
--------------------------------------------------------------------------------
/Skin/Retail/FrameXML/ZoneAbility.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Util = Aurora.Util
12 |
13 | --do --[[ FrameXML\ZoneAbility.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\ZoneAbility.xml ]]
17 | function Skin.ZoneAbilityFrameTemplate(Frame)
18 | Frame.Style:Hide()
19 | Util.Mixin(Frame.SpellButtonContainer.contentFramePool, Hook.ObjectPoolMixin)
20 | end
21 | function Skin.ZoneAbilityFrameSpellButtonTemplate(Button)
22 | --Button.Icon:SetTexture(private.textures.plain)
23 | Base.CropIcon(Button.Icon, Button)
24 |
25 | Button.Count:SetPoint("TOPLEFT", -5, 5)
26 | Button.Cooldown:SetPoint("TOPLEFT")
27 | Button.Cooldown:SetPoint("BOTTOMRIGHT")
28 |
29 | Button.NormalTexture:SetTexture("")
30 | Base.CropIcon(Button:GetHighlightTexture())
31 | --Base.CropIcon(Button:GetCheckedTexture())
32 | end
33 | end
34 |
35 | function private.FrameXML.ZoneAbility()
36 | Skin.ZoneAbilityFrameTemplate(_G.ZoneAbilityFrame)
37 | end
38 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/AudioOptionsPanelsVoice.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\AudioOptionsPanelsVoice.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\AudioOptionsPanelsVoice.xml ]]
15 | --end
16 |
17 | function private.SharedXML.AudioOptionsPanelsVoice()
18 | local AudioOptionsVoicePanel = _G.AudioOptionsVoicePanel
19 | Skin.OptionsDropdownTemplate(AudioOptionsVoicePanel.OutputDeviceDropdown)
20 | Skin.OptionsSliderTemplate(AudioOptionsVoicePanel.VoiceChatVolume)
21 | Skin.OptionsSliderTemplate(AudioOptionsVoicePanel.VoiceChatDucking)
22 | Skin.OptionsDropdownTemplate(AudioOptionsVoicePanel.MicDeviceDropdown)
23 | Skin.OptionsSliderTemplate(AudioOptionsVoicePanel.VoiceChatMicVolume)
24 | Skin.OptionsSliderTemplate(AudioOptionsVoicePanel.VoiceChatMicSensitivity)
25 |
26 | local TestInputDevice = AudioOptionsVoicePanel.TestInputDevice
27 | Skin.OptionsButtonTemplate(TestInputDevice.ToggleTest)
28 | TestInputDevice.VUMeter:SetBackdrop(nil)
29 | Skin.FrameTypeStatusBar(TestInputDevice.VUMeter.Status)
30 |
31 | Skin.OptionsDropdownTemplate(AudioOptionsVoicePanel.ChatModeDropdown)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/Backdrop.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\Backdrop.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\Backdrop.xml ]]
16 | function Skin.TooltipBackdropTemplate(Frame)
17 | Skin.FrameTypeFrame(Frame)
18 | end
19 | function Skin.TooltipBorderBackdropTemplate(Frame)
20 | Skin.FrameTypeFrame(Frame)
21 | Frame:SetBackdropColor(Color.frame, 0)
22 | end
23 | end
24 |
25 | --function private.SharedXML.Backdrop()
26 | --end
27 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/HelpTip.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Hook, Skin = Aurora.Hook, Aurora.Skin
11 | local Util = Aurora.Util
12 |
13 | do --[[ FrameXML\HelpTip.lua ]]
14 | local directions = {
15 | "Down",
16 | "Left",
17 | "Up",
18 | "Right"
19 | }
20 |
21 | Hook.HelpTipTemplateMixin = {}
22 | function Hook.HelpTipTemplateMixin:RotateArrow(rotation)
23 | local Arrow = self.Arrow
24 | local direction = directions[rotation]
25 | if direction == "Left" or direction == "Right" then
26 | Arrow:SetSize(17, 41)
27 | else
28 | Arrow:SetSize(41, 17)
29 | end
30 |
31 | Base.SetTexture(Arrow.Arrow, "arrow"..direction)
32 | end
33 | end
34 |
35 | do --[[ FrameXML\HelpTip.xml ]]
36 | function Skin.HelpTipTemplate(Frame)
37 | Skin.GlowBoxTemplate(Frame)
38 | Skin.UIPanelCloseButton(Frame.CloseButton)
39 | Skin.UIPanelButtonTemplate(Frame.OkayButton)
40 | Skin.GlowBoxArrowTemplate(Frame.Arrow)
41 | end
42 | end
43 |
44 | function private.FrameXML.HelpTip()
45 | Util.Mixin(_G.HelpTipTemplateMixin, Hook.HelpTipTemplateMixin)
46 | Util.Mixin(_G.HelpTip.framePool, Hook.ObjectPoolMixin)
47 | end
48 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/ModelPreviewFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ModelPreviewFrame.lua ]]
12 | --end
13 |
14 | --do --[[ FrameXML\ModelPreviewFrame.xml ]]
15 | --end
16 |
17 | function private.SharedXML.ModelPreviewFrame()
18 | local ModelPreviewFrame = _G.ModelPreviewFrame
19 |
20 | --BlizzWTF: The close button added in this frame interferes with the one created in the template.
21 | local closeButton = ModelPreviewFrame.CloseButton
22 | ModelPreviewFrame.CloseButton = select(2, ModelPreviewFrame:GetChildren())
23 | Skin.ButtonFrameTemplate(ModelPreviewFrame)
24 | Skin.MagicButtonTemplate(closeButton)
25 | closeButton:SetPoint("BOTTOMRIGHT", -5, 5)
26 |
27 | ModelPreviewFrame.Display.YesMountsTex:Hide()
28 | ModelPreviewFrame.Display.ShadowOverlay:Hide()
29 |
30 | local ModelScene = ModelPreviewFrame.Display.ModelScene
31 | Skin.RotateOrbitCameraLeftButtonTemplate(ModelScene.RotateLeftButton)
32 | Skin.RotateOrbitCameraRightButtonTemplate(ModelScene.RotateRightButton)
33 | Skin.NavButtonPrevious(ModelScene.CarouselLeftButton)
34 | Skin.NavButtonNext(ModelScene.CarouselRightButton)
35 | end
36 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/ModelSceneTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 |
12 | --do --[[ SharedXML\ModelSceneTemplates.lua ]]
13 | --end
14 |
15 | do --[[ SharedXML\ModelSceneTemplates.xml ]]
16 | function Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
17 | Skin.FrameTypeButton(Button)
18 | Button:SetBackdropOption("offsets", {
19 | left = 5,
20 | right = 5,
21 | top = 5,
22 | bottom = 5,
23 | })
24 | end
25 | function Skin.RotateOrbitCameraLeftButtonTemplate(Button)
26 | Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
27 |
28 | local bg = Button:GetBackdropTexture("bg")
29 | local arrow = Button:CreateTexture(nil, "ARTWORK")
30 | arrow:SetPoint("TOPLEFT", bg, 8, -5)
31 | arrow:SetPoint("BOTTOMRIGHT", bg, -8, 4)
32 | Base.SetTexture(arrow, "arrowLeft")
33 |
34 | Button._auroraTextures = {arrow}
35 | end
36 | function Skin.RotateOrbitCameraRightButtonTemplate(Button)
37 | Skin.ModifyOrbitCameraBaseButtonTemplate(Button)
38 |
39 | local bg = Button:GetBackdropTexture("bg")
40 | local arrow = Button:CreateTexture(nil, "ARTWORK")
41 | arrow:SetPoint("TOPLEFT", bg, 8, -5)
42 | arrow:SetPoint("BOTTOMRIGHT", bg, -8, 4)
43 | Base.SetTexture(arrow, "arrowRight")
44 |
45 | Button._auroraTextures = {arrow}
46 | end
47 | end
48 |
49 | --function private.SharedXML.ModelSceneTemplates()
50 | --end
51 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/OptionsFrameTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Base = Aurora.Base
10 | local Skin = Aurora.Skin
11 | local Color = Aurora.Color
12 |
13 | --do --[[ FrameXML\OptionsFrameTemplates.lua ]]
14 | --end
15 |
16 | do --[[ FrameXML\OptionsFrameTemplates.xml ]]
17 | function Skin.OptionsFrameTabButtonTemplate(Button)
18 | local name = Button:GetName()
19 | Button:SetHighlightTexture("")
20 |
21 | _G[name.."LeftDisabled"]:SetAlpha(0)
22 | _G[name.."MiddleDisabled"]:SetAlpha(0)
23 | _G[name.."RightDisabled"]:SetAlpha(0)
24 | _G[name.."Left"]:SetAlpha(0)
25 | _G[name.."Middle"]:SetAlpha(0)
26 | _G[name.."Right"]:SetAlpha(0)
27 | end
28 | function Skin.OptionsFrameListTemplate(Frame)
29 | local name = Frame:GetName()
30 | Base.SetBackdrop(Frame, Color.frame)
31 | Skin.UIPanelScrollBarTemplate(_G[name.."ListScrollBar"])
32 | end
33 | function Skin.OptionsListButtonTemplate(Button)
34 | Skin.ExpandOrCollapse(Button.toggle)
35 | end
36 | function Skin.OptionsFrameTemplate(Frame)
37 | local name = Frame:GetName()
38 | Skin.DialogBorderTemplate(Frame.Border)
39 | Skin.DialogHeaderTemplate(Frame.Header)
40 |
41 | Skin.OptionsFrameListTemplate(_G[name.."CategoryFrame"])
42 | Base.SetBackdrop(_G[name.."PanelContainer"], Color.frame)
43 | end
44 | end
45 |
46 | --function private.FrameXML.OptionsFrameTemplates()
47 | --end
48 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/Pools.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals select
6 |
7 | -- [[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | do --[[ SharedXML\Pools.lua ]]
13 | local function CheckTemplate(pool, ...)
14 | for i = 1, select("#", ...) do
15 | local template = select(i, ...)
16 | --print("CheckTemplate", i, template)
17 | if Skin[template] then
18 | for obj in pool:EnumerateActive() do
19 | if not obj._auroraSkinned then
20 | Skin[template](obj)
21 | obj._auroraSkinned = true
22 | end
23 | end
24 | elseif private.isDev then
25 | private.debug("Missing template for ObjectPoolMixin:", template)
26 | end
27 | end
28 | end
29 |
30 | Hook.ObjectPoolMixin = {}
31 | function Hook.ObjectPoolMixin:Acquire()
32 | local template = self.frameTemplate or self.textureTemplate or self.fontStringTemplate or self.actorTemplate
33 | if not template then return end
34 |
35 | --local templates = {(", "):split(template)}
36 | --print("Acquire", template)
37 | CheckTemplate(self, (", "):split(template))
38 | end
39 | end
40 |
41 |
42 | function private.SharedXML.Pools()
43 | --Util.Mixin(objectPool, Hook.ObjectPoolMixin)
44 | Util.Mixin(_G.ObjectPoolMixin, Hook.ObjectPoolMixin)
45 |
46 | Util.Mixin(_G.FramePoolMixin, Hook.ObjectPoolMixin)
47 | Util.Mixin(_G.TexturePoolMixin, Hook.ObjectPoolMixin)
48 | Util.Mixin(_G.FontStringPoolMixin, Hook.ObjectPoolMixin)
49 | Util.Mixin(_G.ActorPoolMixin, Hook.ObjectPoolMixin)
50 | end
51 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/PropertyButton.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\PropertyButton.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\PropertyButton.xml ]]
15 | function Skin.PropertyButtonTemplate(Button)
16 | end
17 | end
18 |
19 | --function private.FrameXML.PropertyButton()
20 | --end
21 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/PropertySlider.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ SharedXML\PropertySlider.lua ]]
12 | --end
13 |
14 | do --[[ SharedXML\PropertySlider.xml ]]
15 | function Skin.PropertySliderTemplate(Slider)
16 | Skin.HorizontalSliderTemplate(Slider)
17 | end
18 | end
19 |
20 | --function private.SharedXML.PropertySlider()
21 | --end
22 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/Scroll/ScrollBox.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\ScrollBox.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\ScrollBox.xml ]]
15 | function Skin.ScrollBoxBaseTemplate(Frame)
16 | end
17 | end
18 |
19 | function private.SharedXML.ScrollBox()
20 | end
21 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/ScrollList.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Color = Aurora.Color
11 |
12 | --do --[[ FrameXML\ScrollList.lua ]]
13 | --end
14 |
15 | do --[[ FrameXML\ScrollList.xml ]]
16 | function Skin.ScrollListLineTemplate(Button)
17 | local normal = Button:GetNormalTexture()
18 | if normal then
19 | -- AuctionHouseAuctionsSummaryLineTemplate sets NormalTexture to nil
20 | --normal:SetColorTexture(Color.highlight:GetRGB())
21 | normal:SetAlpha(0)
22 | end
23 |
24 | Button:GetHighlightTexture():SetColorTexture(Color.highlight:GetRGB())
25 | Button:GetHighlightTexture():SetAlpha(0.5)
26 | end
27 | function Skin.ScrollListLineTextTemplate(Button)
28 | Skin.ScrollListLineTemplate(Button)
29 | end
30 | function Skin.ScrollListTemplate(Frame)
31 | Skin.TemplatedListTemplate(Frame)
32 | Skin.HybridScrollBarTemplate(Frame.ScrollFrame.scrollBar)
33 | Frame.ScrollFrame.scrollBar.Background:Hide()
34 | Skin.InsetFrameTemplate(Frame.InsetFrame)
35 | end
36 | end
37 |
38 | --function private.SharedXML.ScrollList()
39 | --end
40 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/SharedBasicControls.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 |
11 | --do --[[ FrameXML\SharedBasicControls.lua ]]
12 | --end
13 |
14 | do --[[ FrameXML\SharedBasicControls.xml ]]
15 | function Skin.UIPanelDialogTemplate(Frame)
16 | local name = Frame:GetName()
17 |
18 | _G[name.."TopLeft"]:Hide()
19 | _G[name.."TopRight"]:Hide()
20 | _G[name.."Top"]:Hide()
21 | _G[name.."BottomLeft"]:Hide()
22 | _G[name.."BottomRight"]:Hide()
23 | _G[name.."Bottom"]:Hide()
24 | _G[name.."Left"]:Hide()
25 | _G[name.."Right"]:Hide()
26 |
27 | Skin.FrameTypeFrame(Frame)
28 |
29 | Frame.Title:ClearAllPoints()
30 | Frame.Title:SetPoint("TOPLEFT")
31 | Frame.Title:SetPoint("BOTTOMRIGHT", Frame, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
32 |
33 | local titleBG = _G[name.."TitleBG"]
34 | titleBG:SetAllPoints(Frame.Title)
35 | titleBG:Hide()
36 |
37 | _G[name.."DialogBG"]:Hide()
38 |
39 | Skin.UIPanelCloseButton(_G[name.."Close"])
40 | end
41 | end
42 |
43 | function private.SharedXML.SharedBasicControls()
44 | local ScriptErrorsFrame = _G.ScriptErrorsFrame
45 |
46 | ScriptErrorsFrame:SetScale(_G.UIParent:GetScale())
47 | Skin.UIPanelDialogTemplate(ScriptErrorsFrame)
48 | Skin.UIPanelScrollFrameTemplate(ScriptErrorsFrame.ScrollFrame)
49 | Skin.UIPanelButtonTemplate(ScriptErrorsFrame.Reload)
50 | Skin.NavButtonPrevious(ScriptErrorsFrame.PreviousError)
51 | Skin.NavButtonNext(ScriptErrorsFrame.NextError)
52 | Skin.UIPanelButtonTemplate(ScriptErrorsFrame.Close)
53 | end
54 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/SharedColorConstants.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Color = Aurora.Color
10 |
11 | do --[[ SharedXML\SharedColorConstants.lua ]]
12 | private.PAPER_FRAME_TITLE_COLOR = Color.white
13 | private.PAPER_FRAME_TEXT_COLOR = Color.grayLight
14 |
15 | private.FACTION_COLORS = {
16 | Alliance = Color.Create(0.0, 0.2, 0.6),
17 | Horde = Color.Create(0.5, 0.0, 0.0),
18 | }
19 | private.AZERITE_COLORS = {
20 | Color.Create(0.3765, 0.8157, 0.9098),
21 | Color.Create(0.7098, 0.5019, 0.1725),
22 | }
23 | private.COVENANT_COLORS = {
24 | Kyrian = Color.Create(0.5, 0.45, 0.45),
25 | Venthyr = Color.Create(0.4, 0.0, 0.0),
26 | NightFae = Color.Create(0.2, 0.3, 0.4),
27 | Necrolord = Color.Create(0.1, 0.4, 0.15),
28 | Maw = Color.Create(0.302, 0.525, 0.553),
29 | }
30 | end
31 |
32 | function private.SharedXML.SharedColorConstants()
33 | _G.CUSTOM_CLASS_COLORS:NotifyChanges()
34 | end
35 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/SharedTooltipTemplates.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Hook, Skin = Aurora.Hook, Aurora.Skin
10 |
11 | do --[[ FrameXML\SharedTooltipTemplates.lua ]]
12 | function Hook.SharedTooltip_SetBackdropStyle(self, style)
13 | if not self.IsEmbedded then
14 | Skin.FrameTypeFrame(self)
15 | end
16 | end
17 | end
18 |
19 | do --[[ FrameXML\SharedTooltipTemplates.xml ]]
20 | function Skin.SharedTooltipTemplate(GameTooltip)
21 | Skin.FrameTypeFrame(GameTooltip)
22 | end
23 | function Skin.SharedNoHeaderTooltipTemplate(GameTooltip)
24 | Skin.SharedTooltipTemplate(GameTooltip)
25 | end
26 | end
27 |
28 | function private.SharedXML.SharedTooltipTemplates()
29 | if private.disabled.tooltips then return end
30 |
31 | _G.hooksecurefunc("SharedTooltip_SetBackdropStyle", Hook.SharedTooltip_SetBackdropStyle)
32 | end
33 |
--------------------------------------------------------------------------------
/Skin/Retail/SharedXML/VideoOptionsFrame.lua:
--------------------------------------------------------------------------------
1 | local _, private = ...
2 | if not private.isRetail then return end
3 |
4 | --[[ Lua Globals ]]
5 | -- luacheck: globals
6 |
7 | --[[ Core ]]
8 | local Aurora = private.Aurora
9 | local Skin = Aurora.Skin
10 | local Util = Aurora.Util
11 |
12 | --do --[[ FrameXML\VideoOptionsFrame.lua ]]
13 | --end
14 |
15 | --do --[[ FrameXML\VideoOptionsFrame.xml ]]
16 | --end
17 |
18 | function private.FrameXML.VideoOptionsFrame()
19 | Skin.OptionsFrameTemplate(_G.VideoOptionsFrame)
20 |
21 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameApply)
22 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameCancel)
23 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameOkay)
24 | Util.PositionRelative("BOTTOMRIGHT", _G.VideoOptionsFrame, "BOTTOMRIGHT", -15, 15, 5, "Left", {
25 | _G.VideoOptionsFrameCancel,
26 | _G.VideoOptionsFrameOkay,
27 | })
28 |
29 | Skin.UIPanelButtonTemplate(_G.VideoOptionsFrameDefaults)
30 | _G.VideoOptionsFrameDefaults:SetPoint("BOTTOMLEFT", 15, 15)
31 | end
32 |
--------------------------------------------------------------------------------
/Skin/cleanup.lua:
--------------------------------------------------------------------------------
1 | --local _, private = ...
2 |
--------------------------------------------------------------------------------
/Skin/skin.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/media/CheckButtonHilight.blp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/CheckButtonHilight.blp
--------------------------------------------------------------------------------
/media/UI-LFG-ICON-ROLES.blp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/UI-LFG-ICON-ROLES.blp
--------------------------------------------------------------------------------
/media/arrow-down-active.BLP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/arrow-down-active.BLP
--------------------------------------------------------------------------------
/media/arrow-left-active.BLP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/arrow-left-active.BLP
--------------------------------------------------------------------------------
/media/arrow-right-active.BLP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/arrow-right-active.BLP
--------------------------------------------------------------------------------
/media/arrow-up-active.BLP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/arrow-up-active.BLP
--------------------------------------------------------------------------------
/media/font.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/font.ttf
--------------------------------------------------------------------------------
/media/gradient.BLP:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Haleth/Aurora/884fb165a0e54323ccb129ba2426673c55592cc8/media/gradient.BLP
--------------------------------------------------------------------------------
/package.bat:
--------------------------------------------------------------------------------
1 | echo %1
2 | cd %1
3 |
4 | bash -c "../lua-doc-parser/build.sh"
5 |
6 | bash -c "../packager/release.sh -do"
7 |
8 | bash -c "../packager/release.sh -do -g 1.13.3 -m .pkgmeta-classic"
9 |
10 | pause
11 |
--------------------------------------------------------------------------------