режим предателя + UI референсы и DragonUI
This commit is contained in:
@@ -86,7 +86,7 @@ local detailedRaceTooltips = {};
|
||||
local detailedClassTooltips = {};
|
||||
local GAME_MODE_TILE_BACKGROUNDS = {
|
||||
[GAME_MODE_NORMAL] = "Interface\\GluesVideo\\Assets\\RealmSelection\\Realm1.blp",
|
||||
[GAME_MODE_TRAITOR] = "Interface\\GluesVideo\\Assets\\RealmSelection\\Realm2.blp",
|
||||
[GAME_MODE_TRAITOR] = "Interface\\Glues\\CharacterCreate\\Traitor_Mode.blp",
|
||||
};
|
||||
|
||||
local function UTF8Chars(text)
|
||||
@@ -239,16 +239,17 @@ local function UpdateRaceTooltip(button, toggleDetails)
|
||||
if info["Spell_"..i] and info["Spell_"..i].name ~= "" then
|
||||
if not tooltip["spellContainer"..i] then
|
||||
tooltip["spellContainer"..i] = CreateFrame("Frame", nil, tooltip)
|
||||
tooltip["spellContainer"..i]:SetSize(260, 60)
|
||||
tooltip["spellContainer"..i]:SetSize(280, 60)
|
||||
|
||||
tooltip["spellIcon"..i] = tooltip["spellContainer"..i]:CreateTexture(nil, "OVERLAY")
|
||||
tooltip["spellIcon"..i]:SetTexture("Interface\\Icons\\"..info["Spell_"..i].icon)
|
||||
tooltip["spellIcon"..i]:SetSize(25, 25)
|
||||
tooltip["spellIcon"..i]:SetPoint("TOPLEFT", -35, -20)
|
||||
tooltip["spellIcon"..i]:SetSize(24, 24)
|
||||
tooltip["spellIcon"..i]:SetPoint("TOPLEFT", tooltip["spellContainer"..i], "TOPLEFT", 0, 0)
|
||||
|
||||
tooltip["spellName"..i] = tooltip["spellContainer"..i]:CreateFontString(nil, "OVERLAY")
|
||||
tooltip["spellName"..i]:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE")
|
||||
tooltip["spellName"..i]:SetPoint("LEFT", tooltip["spellIcon"..i], "RIGHT", 5, 8)
|
||||
tooltip["spellName"..i]:SetPoint("TOPLEFT", tooltip["spellIcon"..i], "TOPRIGHT", 6, 0)
|
||||
tooltip["spellName"..i]:SetWidth(220)
|
||||
tooltip["spellName"..i]:SetTextColor(1, 0.82, 0)
|
||||
tooltip["spellName"..i]:SetJustifyH("LEFT")
|
||||
|
||||
@@ -256,6 +257,7 @@ local function UpdateRaceTooltip(button, toggleDetails)
|
||||
tooltip["spellDesc"..i]:SetFont("Fonts\\FRIZQT__.TTF", 9, "OUTLINE")
|
||||
tooltip["spellDesc"..i]:SetWordWrap(true)
|
||||
tooltip["spellDesc"..i]:SetJustifyH("LEFT")
|
||||
tooltip["spellDesc"..i]:SetWidth(220)
|
||||
tooltip["spellDesc"..i]:SetPoint("TOPLEFT", tooltip["spellName"..i], "BOTTOMLEFT", 0, -2)
|
||||
end
|
||||
|
||||
@@ -264,7 +266,8 @@ local function UpdateRaceTooltip(button, toggleDetails)
|
||||
|
||||
tooltip["spellContainer"..i]:Show()
|
||||
tooltip["spellContainer"..i]:ClearAllPoints()
|
||||
tooltip["spellContainer"..i]:SetPoint("TOPLEFT", lastElement, "BOTTOMLEFT", 0, 3)
|
||||
tooltip["spellContainer"..i]:SetPoint("LEFT", tooltip, "LEFT", 10, 0)
|
||||
tooltip["spellContainer"..i]:SetPoint("TOP", lastElement, "BOTTOM", 0, -4)
|
||||
|
||||
local containerHeight = tooltip["spellIcon"..i]:GetHeight() + tooltip["spellDesc"..i]:GetHeight() + 3
|
||||
tooltip["spellContainer"..i]:SetHeight(containerHeight)
|
||||
@@ -655,7 +658,6 @@ function CharacterCreate_CreateWithGameMode(modeId)
|
||||
-- The patched Wow.exe reads the second argument as outfitId
|
||||
-- and writes it into the CMSG_CHAR_CREATE packet.
|
||||
local name = CharacterCreateNameEdit:GetText();
|
||||
message("DEBUG: CreateCharacter('" .. tostring(name) .. "', " .. tostring(modeId) .. ")");
|
||||
CreateCharacter(name, modeId);
|
||||
CharacterCreate.personalizationMode = false;
|
||||
CharacterCreate.gameModeSelectionMode = false;
|
||||
@@ -764,6 +766,12 @@ local function CharacterCreate_InitGameModeTiles()
|
||||
CharacterCreateGameModeTraitorPlayButton:SetScript("OnClick", function()
|
||||
CharacterCreate_CreateWithGameMode(GAME_MODE_TRAITOR);
|
||||
end);
|
||||
|
||||
CharacterCreateGameModeNormalDesc:SetText("Классический режим игры.\nСбалансированная прокачка\nи геймплей выверенный годами.");
|
||||
CharacterCreateGameModeNormalDesc:SetTextColor(0.90, 0.87, 0.75);
|
||||
|
||||
CharacterCreateGameModeTraitorDesc:SetText("Ваш персонаж отверг идеалы\nсвоей фракции и перешёл на другую сторону.\nВы начинаете игру в рядах противоположной фракции\nс пониженной репутацией.");
|
||||
CharacterCreateGameModeTraitorDesc:SetTextColor(0.90, 0.87, 0.75);
|
||||
end
|
||||
|
||||
function CharacterCreate_OnLoad(self)
|
||||
@@ -866,15 +874,16 @@ function CharacterCreate_SetupCustomButtons()
|
||||
{button = CharacterCreateRandomName, width = 30, height = 30}
|
||||
}
|
||||
|
||||
local texturePath = "Interface\\Buttons\\charactercreate.blp"
|
||||
|
||||
local texturePath = "Interface\\Glues\\CharacterCreate\\charactercreate"
|
||||
|
||||
for _, btnInfo in ipairs(buttons) do
|
||||
local button = btnInfo.button
|
||||
if button then
|
||||
button:SetNormalTexture(texturePath.."-Up")
|
||||
button:SetNormalTexture(texturePath)
|
||||
button:GetNormalTexture():SetTexCoord(0.261230469, 0.292480469, 0.890625000, 0.920410156)
|
||||
button:GetNormalTexture():SetAlpha(1)
|
||||
|
||||
button:SetPushedTexture(texturePath.."-Down")
|
||||
button:SetPushedTexture(texturePath)
|
||||
button:GetPushedTexture():SetTexCoord(0.223144531, 0.253906250, 0.890625000, 0.920410156)
|
||||
|
||||
button:SetHighlightTexture("Interface\\Buttons\\UI-Common-MouseHilight")
|
||||
@@ -1532,7 +1541,6 @@ function CharacterCreate_Okay()
|
||||
if ( PAID_SERVICE_TYPE ) then
|
||||
GlueDialog_Show("CONFIRM_PAID_SERVICE");
|
||||
else
|
||||
message("DEBUG: old path CreateCharacter (no outfitId!)");
|
||||
CreateCharacter(CharacterCreateNameEdit:GetText());
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user