Commit 70dd3cd4 authored by TOM_RUS's avatar TOM_RUS
Browse files

WOW-24473patch7.3.0_PTR

parent e087d8ee
local ArtifactRelicForgeUILua =
{
Name = "ArtifactUI",
Type = "System",
Namespace = "C_ArtifactRelicForgeUI",
Functions =
{
{
Name = "AddRelicTalent",
Type = "Function",
Arguments =
{
{ Name = "slotIndex", Type = "number", Nilable = false },
{ Name = "talentIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "success", Type = "bool", Nilable = false },
},
},
{
Name = "AttunePreviewRelic",
Type = "Function",
},
{
Name = "AttuneSocketedRelic",
Type = "Function",
Arguments =
{
{ Name = "relicSlotIndex", Type = "number", Nilable = false },
},
},
{
Name = "Clear",
Type = "Function",
},
{
Name = "ClearPreviewRelic",
Type = "Function",
},
{
Name = "GetPreviewRelicAttuneInfo",
Type = "Function",
Returns =
{
{ Name = "isAttuned", Type = "bool", Nilable = false },
{ Name = "canAttune", Type = "bool", Nilable = false },
},
},
{
Name = "GetPreviewRelicItemID",
Type = "Function",
Returns =
{
{ Name = "itemID", Type = "number", Nilable = true },
},
},
{
Name = "GetPreviewRelicTalents",
Type = "Function",
Returns =
{
{ Name = "talents", Type = "table", InnerType = "ArtifactRelicTalentInfo", Nilable = false },
},
},
{
Name = "GetSocketedRelicTalents",
Type = "Function",
Arguments =
{
{ Name = "relicSlotIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "talents", Type = "table", InnerType = "ArtifactRelicTalentInfo", Nilable = false },
},
},
{
Name = "IsAtForge",
Type = "Function",
Returns =
{
{ Name = "isAtForge", Type = "bool", Nilable = false },
},
},
{
Name = "SetPreviewRelicFromCursor",
Type = "Function",
Returns =
{
{ Name = "success", Type = "bool", Nilable = false },
},
},
},
Events =
{
},
Tables =
{
{
Name = "ArtifactRelicTalentInfo",
Type = "Structure",
Fields =
{
{ Name = "powerID", Type = "number", Nilable = false, Default = 0 },
{ Name = "icon", Type = "number", Nilable = false, Default = 0 },
{ Name = "canChoose", Type = "bool", Nilable = false, Default = false },
{ Name = "isChosen", Type = "bool", Nilable = false, Default = false },
},
},
},
};
APIDocumentation:AddDocumentationTable(ArtifactRelicForgeUILua);
\ No newline at end of file
......@@ -318,6 +318,21 @@ local ArtifactUILua =
{ Name = "numRelicSlots", Type = "number", Nilable = false },
},
},
{
Name = "GetEquippedArtifactRelicAttuneInfo",
Type = "Function",
Arguments =
{
{ Name = "relicSlotIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "isAttuned", Type = "bool", Nilable = false },
{ Name = "canAttune", Type = "bool", Nilable = false },
},
},
{
Name = "GetEquippedArtifactRelicInfo",
Type = "Function",
......@@ -523,6 +538,21 @@ local ArtifactUILua =
{ Name = "artifactAppearanceID", Type = "number", Nilable = true },
},
},
{
Name = "GetRelicAttuneInfo",
Type = "Function",
Arguments =
{
{ Name = "relicSlotIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "isAttuned", Type = "bool", Nilable = false },
{ Name = "canAttune", Type = "bool", Nilable = false },
},
},
{
Name = "GetRelicInfo",
Type = "Function",
......@@ -571,6 +601,22 @@ local ArtifactUILua =
{ Name = "lockedReason", Type = "string", Nilable = true },
},
},
{
Name = "GetRelicSlotRankInfo",
Type = "Function",
Arguments =
{
{ Name = "relicSlotIndex", Type = "number", Nilable = false },
},
Returns =
{
{ Name = "currentRank", Type = "number", Nilable = false },
{ Name = "canAddTalent", Type = "bool", Nilable = false },
{ Name = "artifactLevelRequiredForNextRank", Type = "number", Nilable = true },
},
},
{
Name = "GetRelicSlotType",
Type = "Function",
......
......@@ -15,11 +15,13 @@ Blizzard_APIDocumentation.lua
# Start documentation files here
SharedTypes.lua
ActionBarFrameLua.lua
ArtifactRelicForgeUILua.lua
ArtifactUILua.lua
CalendarLua.lua
ChallengeModeInfoLua.lua
ChatBubblesLua.lua
CommentatorFrameLua.lua
ConsoleLua.lua
ContributionCollectorLua.lua
EquipmentManagerLua.lua
GarrisonInfoLua.lua
......
local ConsoleLua =
{
Name = "Console",
Type = "System",
Namespace = "C_Console",
Functions =
{
{
Name = "GetAllCommands",
Type = "Function",
Returns =
{
{ Name = "commands", Type = "table", InnerType = "ConsoleCommandInfo", Nilable = false },
},
},
{
Name = "GetColorFromType",
Type = "Function",
Arguments =
{
{ Name = "colorType", Type = "ConsoleColorType", Nilable = false },
},
Returns =
{
{ Name = "color", Type = "colorRGB", Mixin = "ColorMixin", Nilable = false },
},
},
{
Name = "PrintAllMatchingCommands",
Type = "Function",
Arguments =
{
{ Name = "partialCommandText", Type = "string", Nilable = false },
},
},
},
Events =
{
},
Tables =
{
{
Name = "ConsoleCategory",
Type = "Enumeration",
NumValues = 10,
MinValue = 0,
MaxValue = 9,
Fields =
{
{ Name = "CategoryDebug", Type = "ConsoleCategory", EnumValue = 0 },
{ Name = "CategoryGraphics", Type = "ConsoleCategory", EnumValue = 1 },
{ Name = "CategoryConsole", Type = "ConsoleCategory", EnumValue = 2 },
{ Name = "CategoryCombat", Type = "ConsoleCategory", EnumValue = 3 },
{ Name = "CategoryGame", Type = "ConsoleCategory", EnumValue = 4 },
{ Name = "CategoryDefault", Type = "ConsoleCategory", EnumValue = 5 },
{ Name = "CategoryNet", Type = "ConsoleCategory", EnumValue = 6 },
{ Name = "CategorySound", Type = "ConsoleCategory", EnumValue = 7 },
{ Name = "CategoryGm", Type = "ConsoleCategory", EnumValue = 8 },
{ Name = "CategoryNone", Type = "ConsoleCategory", EnumValue = 9 },
},
},
{
Name = "ConsoleColorType",
Type = "Enumeration",
NumValues = 11,
MinValue = 0,
MaxValue = 10,
Fields =
{
{ Name = "DefaultColor", Type = "ConsoleColorType", EnumValue = 0 },
{ Name = "InputColor", Type = "ConsoleColorType", EnumValue = 1 },
{ Name = "EchoColor", Type = "ConsoleColorType", EnumValue = 2 },
{ Name = "ErrorColor", Type = "ConsoleColorType", EnumValue = 3 },
{ Name = "WarningColor", Type = "ConsoleColorType", EnumValue = 4 },
{ Name = "GlobalColor", Type = "ConsoleColorType", EnumValue = 5 },
{ Name = "AdminColor", Type = "ConsoleColorType", EnumValue = 6 },
{ Name = "HighlightColor", Type = "ConsoleColorType", EnumValue = 7 },
{ Name = "BackgroundColor", Type = "ConsoleColorType", EnumValue = 8 },
{ Name = "ClickbufferColor", Type = "ConsoleColorType", EnumValue = 9 },
{ Name = "PrivateColor", Type = "ConsoleColorType", EnumValue = 10 },
},
},
{
Name = "ConsoleCommandType",
Type = "Enumeration",
NumValues = 3,
MinValue = 0,
MaxValue = 2,
Fields =
{
{ Name = "Cvar", Type = "ConsoleCommandType", EnumValue = 0 },
{ Name = "Command", Type = "ConsoleCommandType", EnumValue = 1 },
{ Name = "Script", Type = "ConsoleCommandType", EnumValue = 2 },
},
},
{
Name = "ConsoleCommandInfo",
Type = "Structure",
Fields =
{
{ Name = "command", Type = "string", Nilable = false },
{ Name = "help", Type = "string", Nilable = false },
{ Name = "category", Type = "ConsoleCategory", Nilable = false },
{ Name = "commandType", Type = "ConsoleCommandType", Nilable = false },
{ Name = "scriptContents", Type = "string", Nilable = false },
},
},
},
};
APIDocumentation:AddDocumentationTable(ConsoleLua);
\ No newline at end of file
......@@ -103,6 +103,7 @@ local QuestTaskInfoLua =
{
{ Name = "mapID", Type = "number", Nilable = false },
{ Name = "parentMapID", Type = "number", Nilable = true },
{ Name = "transformFlags", Type = "MapTransform", Nilable = true },
},
Returns =
......@@ -141,6 +142,17 @@ local QuestTaskInfoLua =
Tables =
{
{
Name = "MapTransform",
Type = "Enumeration",
NumValues = 1,
MinValue = 1,
MaxValue = 1,
Fields =
{
{ Name = "IsForFlightMap", Type = "MapTransform", EnumValue = 0 },
},
},
{
Name = "TaskPOIData",
Type = "Structure",
......
......@@ -45,6 +45,7 @@ local WorldMapLua =
{ Name = "isObjectIcon", Type = "bool", Nilable = true },
{ Name = "atlasName", Type = "string", Nilable = true },
{ Name = "displayAsBanner", Type = "bool", Nilable = true },
{ Name = "mapFloor", Type = "number", Nilable = true },
},
},
},
......
......@@ -140,7 +140,7 @@ function AchievementFrame_OnLoad (self)
end
function AchievementFrame_OnShow (self)
PlaySound("AchievementMenuOpen");
PlaySound(SOUNDKIT.ACHIEVEMENT_MENU_OPEN);
AchievementFrameHeaderPoints:SetText(BreakUpLargeNumbers(GetTotalAchievementPoints()));
if ( not AchievementFrame.wasShown ) then
AchievementFrame.wasShown = true;
......@@ -151,7 +151,7 @@ function AchievementFrame_OnShow (self)
end
function AchievementFrame_OnHide (self)
PlaySound("AchievementMenuClose");
PlaySound(SOUNDKIT.ACHIEVEMENT_MENU_CLOSE);
AchievementFrame_HideSearchPreview();
self.searchResults:Hide();
self.searchBox:SetText("");
......
......@@ -231,9 +231,9 @@
<Scripts>
<OnClick>
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOn");
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
else
PlaySound("igMainMenuOptionCheckBoxOff");
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF);
end
local tracked = AchievementButton_ToggleTracking(self:GetParent().id);
if ( not tracked ) then
......@@ -2469,7 +2469,7 @@
<Scripts>
<OnClick>
AchievementFrameTab_OnClick(self:GetID());
PlaySound("igCharacterInfoTab");
PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB);
</OnClick>
</Scripts>
</Button>
......@@ -2480,7 +2480,7 @@
<Scripts>
<OnClick>
AchievementFrameTab_OnClick(self:GetID());
PlaySound("igCharacterInfoTab");
PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB);
</OnClick>
</Scripts>
</Button>
......@@ -2491,7 +2491,7 @@
<Scripts>
<OnClick>
AchievementFrameTab_OnClick(self:GetID());
PlaySound("igCharacterInfoTab");
PlaySound(SOUNDKIT.IG_CHARACTER_INFO_TAB);
</OnClick>
</Scripts>
</Button>
......@@ -2519,7 +2519,7 @@
<Scripts>
<OnClick>
ToggleDropDownMenu(nil, nil, self:GetParent());
PlaySound("igMainMenuOptionCheckBoxOn");
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
</OnClick>
</Scripts>
<NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
......@@ -2770,7 +2770,7 @@
</OnShow>
<OnClick>
AchievementFrame_ShowFullSearch();
PlaySound("igMainMenuOptionCheckBoxOn");
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
</OnClick>
<OnEnter function="AchievementFrameShowAllSearchResults_OnEnter"/>
</Scripts>
......@@ -2906,10 +2906,10 @@
<OnShow>
--always on top
self:SetFrameLevel(self:GetParent():GetFrameLevel()+10);
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
</OnShow>
<OnHide>
PlaySound("igSpellBookClose");
PlaySound(SOUNDKIT.IG_SPELLBOOK_CLOSE);
</OnHide>
</Scripts>
</Frame>
......
......@@ -139,7 +139,7 @@ end
function AdventureMap_MissionDataProviderMixin:CompleteMission(missionInfo)
if not self.completingMissionInfo then
self.completingMissionInfo = missionInfo;
PlaySound("UI_Garrison_Mission_Complete_Encounter_Chance");
PlaySound(SOUNDKIT.UI_GARRISON_MISSION_COMPLETE_ENCOUNTER_CHANCE);
C_Garrison.MarkMissionComplete(missionInfo.missionID);
end
end
......@@ -150,7 +150,7 @@ function AdventureMap_MissionDataProviderMixin:OnMissionCompleteResponse(mission
self.completingMissionInfo = nil;
if succeeded then
PlaySound("UI_Garrison_CommandTable_MissionSuccess_Stinger");
PlaySound(SOUNDKIT.UI_GARRISON_COMMAND_TABLE_MISSION_SUCCESS_STINGER);
end
C_Garrison.MissionBonusRoll(missionID);
......
......@@ -153,7 +153,7 @@ end
function AdventureMap_QuestChoicePinMixin:OnClick(button)
if button == "LeftButton" then
PlaySound("UI_Mission_Map_Zoom");
PlaySound(SOUNDKIT.UI_MISSION_MAP_ZOOM);
self.owner:SelectQuestID(self.questID);
end
end
......
......@@ -103,7 +103,7 @@
</Anchors>
<Scripts>
<OnClick>
PlaySound("igQuestCancel");
PlaySound(SOUNDKIT.IG_QUEST_CANCEL);
self:GetParent():DeclineQuest();
</OnClick>
</Scripts>
......@@ -137,7 +137,7 @@
local parent = self:GetParent();
local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
parent:SetValue(parent:GetValue() - scrollStep);
PlaySound("UChatScrollButton");
PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
</OnClick>
</Scripts>
</Button>
......@@ -150,7 +150,7 @@
local parent = self:GetParent();
local scrollStep = self:GetParent().scrollStep or (parent:GetHeight() / 2);
parent:SetValue(parent:GetValue() + scrollStep);
PlaySound("UChatScrollButton");
PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON);
</OnClick>
</Scripts>
</Button>
......@@ -253,7 +253,7 @@
</Anchors>
<Scripts>
<OnClick>
PlaySound("igQuestCancel");
PlaySound(SOUNDKIT.IG_QUEST_CANCEL);
self:GetParent():DeclineQuest();
</OnClick>
</Scripts>
......
......@@ -109,7 +109,7 @@ end
function ArchaeologyFrame_OnShow(self)
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
local _, _, arch = GetProfessions();
if arch then
local name, texture, rank, maxRank = GetProfessionInfo(arch);
......@@ -143,7 +143,7 @@ end
function ArchaeologyFrame_OnHide(self)
CloseResearch();
CloseDropDownMenus();
PlaySound("igSpellBookClose");
PlaySound(SOUNDKIT.IG_SPELLBOOK_CLOSE);
end
......@@ -650,7 +650,7 @@ function ArchaeologyFrame_KeyStoneClick(self)
end
function ArchaeologyFrame_PageClick(self, nextPage)
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
if nextPage then
ArchaeologyFrame.currentFrame.currentPage = ArchaeologyFrame.currentFrame.currentPage + 1;
ArchaeologyFrame.currentFrame:UpdateFrame();
......@@ -664,7 +664,7 @@ function ArchaeologyFrame_PageClick(self, nextPage)
end
function ArchaeologyFrameSummary_PageClick(self, nextPage)
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
if nextPage then
ArchaeologyFrame.currentFrame.currentPage = ArchaeologyFrame.currentFrame.currentPage + 1;
else
......
......@@ -100,7 +100,7 @@
<Scripts>
<OnClick>
ArchaeologyFrame_ShowArtifact(self:GetID() + ((ArchaeologyFrame.summaryPage.currentPage - 1) * ARCHAEOLOGY_MAX_RACES));
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
</OnClick>
<OnDisable>
SetDesaturation(self:GetNormalTexture(), true);
......@@ -162,7 +162,7 @@
<Scripts>
<OnClick>
ArchaeologyFrame_ShowArtifact(self.raceIndex + ((ArchaeologyFrame.summaryPage.currentPage - 1) * ARCHAEOLOGY_MAX_RACES), self.projectIndex);
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
......@@ -202,7 +202,7 @@
ArchaeologyFrame_KeyStoneClick(self);
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
GameTooltip:SetText(self.tooltip, NORMAL_FONT_COLOR[1], NORMAL_FONT_COLOR[2], NORMAL_FONT_COLOR[3], 1, true);
PlaySound("igMainMenuOptionCheckBoxOn");
PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_LEFT");
......@@ -344,7 +344,7 @@
<Scripts>
<OnClick>
ArchaeologyFrame_OnTabClick(self)
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
......@@ -378,7 +378,7 @@
<Scripts>
<OnClick>
ArchaeologyFrame_OnTabClick(self)
PlaySound("igSpellBookOpen");
PlaySound(SOUNDKIT.IG_SPELLBOOK_OPEN);
</OnClick>
<OnEnter>
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT");
......@@ -793,7 +793,7 @@
ArchaeologyFrame.artifactPage:Hide();
ArchaeologyFrame.completedPage:Show();