Liste des royaumes a la DA de camelot : 3.3.5 rhabillee

- ForeverUIGlueRealmList.lua : la liste du client garde ses places, ses
  tailles et sa logique ; en-tete DialogHeader, onglets uiframe-tab /
  uiframe-activetab, croix 128-RedButton-Exit, Annuler / OK 128-RedButton,
  barre de defilement minimale, polices de camelot (GlueFont*, Realm*)
- l'art herite que la liste moderne garde (HelpFrame, WhoFrame-ColumnTabs,
  UI-SortArrow, UI-QuestLogTitleHighlight) reste : identique chez camelot
- croix de fermeture decoupee de 128redbuttonc60 (et sa lueur de
  128redbutton) ; table d'atlas des ecrans d'accueil completee

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Adrestie
2026-09-27 23:53:31 +02:00
parent 1de02d13a0
commit d80f4deda2
14 changed files with 225 additions and 0 deletions
@@ -7,6 +7,7 @@ UIAtlas = UIAtlas or { sheets = {}, data = {} }
UIAtlas.data["128-redbutton-highlight"] = { "interface\\ForeverUI\\buttons\\128-redbutton-highlight", 0.003906, 0.865234, 0, 1.000000, 441, 128 }
UIAtlas.data["128-redbutton-arrowdown-highlight"] = { "interface\\ForeverUI\\buttons\\128-redbutton-arrowdown-highlight", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-arrowupglow-highlight"] = { "interface\\ForeverUI\\buttons\\128-redbutton-arrowupglow-highlight", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit-highlight"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-highlight", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-left-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-left-c60", 0.015625, 0.906250, 0, 1.000000, 114, 128 }
UIAtlas.data["128-redbutton-left"] = { "interface\\ForeverUI\\buttons\\128-redbutton-left-c60", 0.015625, 0.906250, 0, 1.000000, 114, 128 }
UIAtlas.data["128-redbutton-left-pressed-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-left-pressed-c60", 0.015625, 0.906250, 0, 1.000000, 114, 128 }
@@ -37,6 +38,12 @@ UIAtlas.data["128-redbutton-arrowupglow-pressed-c60"] = { "interface\\ForeverUI\
UIAtlas.data["128-redbutton-arrowupglow-pressed"] = { "interface\\ForeverUI\\buttons\\128-redbutton-arrowupglow-pressed-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-arrowupglow-disabled-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-arrowupglow-disabled-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-arrowupglow-disabled"] = { "interface\\ForeverUI\\buttons\\128-redbutton-arrowupglow-disabled-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit-pressed-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-pressed-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit-pressed"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-pressed-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit-disabled-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-disabled-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-exit-disabled"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-disabled-c60", 0.007812, 0.507812, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-delete-highlight"] = { "interface\\ForeverUI\\buttons\\128-redbutton-delete-highlight", 0, 1.000000, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-delete-c60"] = { "interface\\ForeverUI\\buttons\\128-redbutton-delete-c60", 0, 1.000000, 0, 1.000000, 128, 128 }
UIAtlas.data["128-redbutton-delete"] = { "interface\\ForeverUI\\buttons\\128-redbutton-delete-c60", 0, 1.000000, 0, 1.000000, 128, 128 }
Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

@@ -14,4 +14,5 @@
<Script file="ForeverUIAccountLogin.lua"/>
<Script file="ForeverUIGlueCharacterSelect.lua"/>
<Script file="ForeverUIGlueCharacterCreate.lua"/>
<Script file="ForeverUIGlueRealmList.lua"/>
</Ui>
@@ -166,4 +166,14 @@ ForeverUIGlue.atlas = {
["charactercreate-customize-palette"] = { "interface\\ForeverUI\\glues\\charactercreate-customize-palette", 0.000000, 0.656250, 0.000000, 0.625000, 42, 10, false, false, nil }, -- charactercreate-customize-palette
["charactercreate-customize-palette-glow"] = { "interface\\ForeverUI\\glues\\charactercreate-customize-palette-glow", 0.000000, 0.656250, 0.000000, 0.625000, 42, 10, false, false, nil }, -- charactercreate-customize-palette-glow
["charactercreate-customize-palette-selected"] = { "interface\\ForeverUI\\glues\\charactercreate-customize-palette-selected", 0.000000, 0.796875, 0.000000, 0.625000, 51, 20, false, false, nil }, -- charactercreate-customize-palette-selected
["128-redbutton-exit"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-c60", 0.007812, 0.507812, 0.000000, 1.000000, 128, 128, false, false, nil }, -- 128-redbutton-exit-c60
["128-redbutton-exit-pressed"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-pressed-c60", 0.007812, 0.507812, 0.000000, 1.000000, 128, 128, false, false, nil }, -- 128-redbutton-exit-pressed-c60
["128-redbutton-exit-disabled"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-disabled-c60", 0.007812, 0.507812, 0.000000, 1.000000, 128, 128, false, false, nil }, -- 128-redbutton-exit-disabled-c60
["128-redbutton-exit-highlight"] = { "interface\\ForeverUI\\buttons\\128-redbutton-exit-highlight", 0.007812, 0.507812, 0.000000, 1.000000, 128, 128, false, false, nil }, -- 128-redbutton-exit-highlight
["uiframe-tab-left"] = { "interface\\ForeverUI\\framegeneral\\uiframetabsc60", 0.015625, 0.562500, 0.601562, 0.882812, 35, 36, false, false, nil }, -- uiframe-tab-left-c60
["uiframe-tab-right"] = { "interface\\ForeverUI\\framegeneral\\uiframetabsc60", 0.015625, 0.593750, 0.304688, 0.585938, 37, 36, false, false, nil }, -- uiframe-tab-right-c60
["_uiframe-tab-center"] = { "interface\\ForeverUI\\framegeneral\\uiframetabsc60", 0.000000, 0.015625, 0.007812, 0.289062, 1, 36, true, false, nil }, -- _uiframe-tab-center-c60
["uiframe-activetab-left"] = { "interface\\ForeverUI\\framegeneral\\uiframetabs", 0.015625, 0.562500, 0.496094, 0.660156, 35, 42, false, false, nil }, -- uiframe-activetab-left
["uiframe-activetab-right"] = { "interface\\ForeverUI\\framegeneral\\uiframetabs", 0.015625, 0.593750, 0.324219, 0.488281, 37, 42, false, false, nil }, -- uiframe-activetab-right
["_uiframe-activetab-center"] = { "interface\\ForeverUI\\framegeneral\\uiframetabs", 0.000000, 0.015625, 0.003906, 0.167969, 1, 42, true, false, nil }, -- _uiframe-activetab-center
}
@@ -0,0 +1,191 @@
-- ForeverUI -- la liste des royaumes, a la DA de camelot.
--
-- CHOIX (27/09) : camelot n'a pas de liste des royaumes (son .toc ne charge
-- RealmList que pour le jeu mainline ; camelot choisit une region par
-- cartes, SuperDistrict). On garde la liste du client 3.3.5 -- ses places,
-- ses tailles, sa logique -- et on lui donne l'art de la liste moderne
-- (blizzard_gluexml/mainline/realmlist.xml, meme ecran) :
-- * le cadre (Interface\HelpFrame\HelpFrame-*), les en-tetes de colonnes
-- (WhoFrame-ColumnTabs), la fleche de tri (UI-SortArrow) et la barre de
-- la ligne choisie (UI-QuestLogTitleHighlight) restent : la liste
-- moderne emploie les memes fichiers, identiques dans le client de
-- camelot (ecart moyen de 0,1 a 1,7 sur 255, bruit de compression) ;
-- * en-tete : DialogHeaderTemplate a TOP (-12, 11), texte SERVER_SELECTION ;
-- * onglets (RealmListTabButtonTemplate) : uiframe-tab-left / -right /
-- _center a leur taille, LEFT a -3 et RIGHT a +7 ; l'onglet choisi
-- uiframe-activetab-*, LEFT a -1 et RIGHT a +8 ; survol : l'art de
-- l'onglet en ADD a 0,4 ;
-- * croix : BigRedExitButtonTemplate (artKit 128-redbutton-exit), 32 x 32 ;
-- * Annuler / OK : GlueButtonTemplate (SharedButtonTemplate, 128-RedButton,
-- GlueFontNormal / Highlight / Disable) ;
-- * barre de defilement : MinimalScrollBar, a 5 a droite de la liste, de
-- -2 en haut a +4 en bas ;
-- * polices de camelot (GlueFont*, Realm*) a la place de celles du client.
-- Le client garde la main sur tout : ses boutons, son decalage, son tri ; on
-- ne fait que reposer l'art et les polices apres lui (RealmListUpdate,
-- RealmList_UpdateTabs).
local G = ForeverUIGlue
local fond = RealmListBackground
local LIGNES = 18 -- MAX_REALMS_DISPLAYED du client
local HAUTEUR_LIGNE = 16 -- REALM_BUTTON_HEIGHT du client
-- une police de camelot pour une police du client, si camelot la connait
local function policeCamelot(objet)
local nom = objet and objet.GetName and objet:GetName()
if not nom or string.find(nom, "^ForeverUIGlue_") then
return nil
end
return _G["ForeverUIGlue_" .. nom]
end
-- ------------------------------------------------------------ l'en-tete
RealmListHeader:SetAlpha(0)
RealmListHeader:Hide()
for _, r in ipairs({ fond:GetRegions() }) do
if r:GetObjectType() == "FontString" and r:GetText() == SERVER_SELECTION then
r:SetAlpha(0)
r:Hide()
end
end
local entete = G.EnTeteDialogue(fond, SERVER_SELECTION, "GameFontNormal")
entete:ClearAllPoints()
entete:SetPoint("TOP", fond, "TOP", -12, 11)
-- ------------------------------------------------------------ les colonnes
for _, nom in ipairs({ "RealmNameSort", "RealmTypeSort", "RealmCharactersSort", "RealmLoadSort" }) do
_G[nom]:SetNormalFontObject(G.Police("GlueFontHighlightSmall"))
end
-- ------------------------------------------------------------ les onglets
local function poser(t, atlas, point, x)
G.PoserAtlas(t, atlas, true)
t:ClearAllPoints()
t:SetPoint(point, t:GetParent(), point, x, 0)
end
local function habillerOnglet(onglet)
local nom = onglet:GetName()
if not onglet.foreverOnglet then
onglet.foreverOnglet = true
-- repos : uiframe-tab-*
local g, d, m = _G[nom .. "Left"], _G[nom .. "Right"], _G[nom .. "Middle"]
poser(g, "uiframe-tab-left", "TOPLEFT", -3)
poser(d, "uiframe-tab-right", "TOPRIGHT", 7)
G.PoserAtlas(m, "_uiframe-tab-center", true)
m:ClearAllPoints()
m:SetPoint("LEFT", g, "RIGHT")
m:SetPoint("RIGHT", d, "LEFT")
-- choisi : uiframe-activetab-*
local ga, da, ma = _G[nom .. "LeftDisabled"], _G[nom .. "RightDisabled"], _G[nom .. "MiddleDisabled"]
poser(ga, "uiframe-activetab-left", "TOPLEFT", -1)
poser(da, "uiframe-activetab-right", "TOPRIGHT", 8)
G.PoserAtlas(ma, "_uiframe-activetab-center", true)
ma:ClearAllPoints()
ma:SetPoint("LEFT", ga, "RIGHT")
ma:SetPoint("RIGHT", da, "LEFT")
-- survol : l'art de l'onglet en ADD a 0,4 (couche HIGHLIGHT)
local h = onglet:GetHighlightTexture()
if h then
h:SetTexture(nil)
h:SetAlpha(0)
end
local hg = onglet:CreateTexture(nil, "HIGHLIGHT")
G.PoserAtlas(hg, "uiframe-tab-left", true)
hg:SetPoint("TOPLEFT", g, "TOPLEFT")
local hd = onglet:CreateTexture(nil, "HIGHLIGHT")
G.PoserAtlas(hd, "uiframe-tab-right", true)
hd:SetPoint("TOPRIGHT", d, "TOPRIGHT")
local hm = onglet:CreateTexture(nil, "HIGHLIGHT")
G.PoserAtlas(hm, "_uiframe-tab-center", true)
hm:SetPoint("LEFT", m, "LEFT")
hm:SetPoint("RIGHT", m, "RIGHT")
for _, t in ipairs({ hg, hd, hm }) do
t:SetBlendMode("ADD")
t:SetAlpha(0.4)
end
onglet:SetNormalFontObject(G.Police("GlueFontNormalSmall"))
onglet:SetHighlightFontObject(G.Police("GlueFontHighlightSmall"))
end
-- RealmList_UpdateTabs repose la police de l'onglet grise a chaque passage
onglet:SetDisabledFontObject(G.Police(onglet.disabled and "GlueFontDisableSmall" or "GlueFontHighlightSmall"))
end
G.AccrocherFonction("RealmList_UpdateTabs", function()
for i = 1, MAX_REALM_CATEGORY_TABS or 8 do
local onglet = _G["RealmListTab" .. i]
if onglet then
habillerOnglet(onglet)
end
end
end)
habillerOnglet(RealmListTab1)
-- ------------------------------------------------------------ la croix
RealmListCloseButton:SetWidth(32)
RealmListCloseButton:SetHeight(32)
G.BoutonArt(RealmListCloseButton, "128-RedButton-Exit")
-- ------------------------------------------------------------ Annuler / OK
for _, b in ipairs({ RealmListCancelButton, RealmListOkButton }) do
G.BoutonTroisTranches(b, "128-RedButton", { "GlueFontNormal", "GlueFontHighlight", "GlueFontDisable" })
end
-- ------------------------------------------------------------ les lignes
for i = 1, LIGNES do
local b = _G["RealmListRealmButton" .. i]
b:SetDisabledFontObject(G.Police("GlueFontDisableLeft"))
_G[b:GetName() .. "PVP"]:SetFontObject(G.Police("GlueFontRedSmall"))
_G[b:GetName() .. "Players"]:SetFontObject(G.Police("GlueFontHighlightSmall"))
_G[b:GetName() .. "Load"]:SetFontObject(G.Police("GlueFontHighlightSmall"))
end
-- ------------------------------------------------------------ la barre de defilement
-- la barre du client (GlueScrollFrameTemplate) reste celle qui fait defiler
-- -- la molette et le decalage passent par elle -- mais on ne la voit plus
local barreClient = RealmListScrollFrameScrollBar
barreClient:SetAlpha(0)
barreClient:EnableMouse(false)
for _, enfant in ipairs({ barreClient:GetChildren() }) do
enfant:EnableMouse(false)
end
for _, nom in ipairs({ "ScrollBarTop", "ScrollBarMiddle", "ScrollBarBottom" }) do
local t = _G["RealmListScrollFrame" .. nom]
if t then
t:SetAlpha(0)
end
end
local barre = G.BarreMinimale(fond, "ForeverUIRealmListScrollBar")
barre:SetPoint("TOPLEFT", RealmListScrollFrame, "TOPRIGHT", 5, -2)
barre:SetPoint("BOTTOMLEFT", RealmListScrollFrame, "BOTTOMRIGHT", 5, 4)
barre.pas = HAUTEUR_LIGNE
barre.surDefilement = function(position)
barreClient:SetValue(position)
end
-- ------------------------------------------------------------ apres le client
G.AccrocherFonction("RealmListUpdate", function()
for i = 1, LIGNES do
local b = _G["RealmListRealmButton" .. i]
local n = policeCamelot(b:GetNormalFontObject())
if n then
b:SetNormalFontObject(n)
end
local h = policeCamelot(b:GetHighlightFontObject())
if h then
b:SetHighlightFontObject(h)
end
end
local total = GetNumRealms(RealmList.selectedCategory or 1) or 0
barre:Regler(total * HAUTEUR_LIGNE, LIGNES * HAUTEUR_LIGNE, (RealmList.offset or 0) * HAUTEUR_LIGNE)
end)
+13
View File
@@ -197,3 +197,16 @@ common-dropdown-customize-mouseover
charactercreate-customize-palette
charactercreate-customize-palette-glow
charactercreate-customize-palette-selected
# liste des royaumes (3.3.5 rhabillee, art de la liste moderne mainline/
# realmlist.xml) : croix BigRedExitButtonTemplate (artKit 128-redbutton-exit),
# onglets RealmListTabButtonTemplate
128-redbutton-exit
128-redbutton-exit-pressed
128-redbutton-exit-disabled
128-redbutton-exit-highlight
uiframe-tab-left
uiframe-tab-right
_uiframe-tab-center
uiframe-activetab-left
uiframe-activetab-right
_uiframe-activetab-center
+3
View File
@@ -81,10 +81,13 @@ ELEMENTS = {
# la fleche de repli de la liste des personnages (ListToggle)
"128-redbutton-arrowdown-c60", "128-redbutton-arrowdown-pressed-c60", "128-redbutton-arrowdown-disabled-c60",
"128-redbutton-arrowupglow-c60", "128-redbutton-arrowupglow-pressed-c60", "128-redbutton-arrowupglow-disabled-c60",
# la croix de la liste des royaumes (BigRedExitButtonTemplate)
"128-redbutton-exit-c60", "128-redbutton-exit-pressed-c60", "128-redbutton-exit-disabled-c60",
],
"interface/buttons/128redbutton.blp": [
"128-redbutton-highlight",
"128-redbutton-arrowdown-highlight", "128-redbutton-arrowupglow-highlight",
"128-redbutton-exit-highlight",
],
# les credits des ecrans d'accueil (blizzard_gluexml/mainline/
# creditsframe.xml) : degrade du haut et du bas, icones de vitesse