- Joined
- Nov 4, 2019
- Messages
- 400
The XPBarRaces simpleframes are not created as child frames to the progressionMenu for some reason, and it seems like it's not created on the ORIGIN_FRAME_GAME_UI either when printing the parents of both the progressionMenu and XPBarRaces[1]. Can someone help?


Lua:
progressionMenu = BlzCreateFrame("EscMenuBackdrop", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
BlzFrameSetSize(progressionMenu, 0.25, 0.34)
BlzFrameSetAbsPoint(progressionMenu, FRAMEPOINT_CENTER, 0.2, 0.36)
BlzFrameSetVisible(progressionMenu, false)
frameSkinsText = BlzCreateFrameByType("BACKDROP", "", progressionMenu, "", 0)
BlzFrameSetSize(frameSkinsText, 0.166, 0.057)
BlzFrameSetAbsPoint(frameSkinsText, FRAMEPOINT_CENTER, 0.2, 0.49)
BlzFrameSetTexture(frameSkinsText, "war3mapImported\\Progression.tga", 0, true)
XPBarRaces = {}
local raceNames = {}
raceNames[1] = "Human"
raceNames[2] = "Orc"
raceNames[3] = "Undead"
raceNames[4] = "Night Elf"
local yPos = 0
for i = 1, 4 do
XPBarRaces[i] = BlzCreateSimpleFrame("MyStatusBarBordered", progressionMenu, i)
BlzFrameSetAbsPoint(XPBarRaces[i], FRAMEPOINT_CENTER, 0.15, 0.5 - yPos)
BlzFrameSetSize(XPBarRaces[i], 0.12, 0.01)
BlzFrameSetText(BlzGetFrameByName("MyStatusBarText", i), raceNames[i] .. " - Level 1")
BlzFrameSetTexture(XPBarRaces[i], "Replaceabletextures\\Teamcolor\\Teamcolor03.blp", 0, true) -- Use values 00 to 27 for different colors
BlzFrameSetValue(XPBarRaces[i], 50)
yPos = yPos + 0.012
end