- Joined
- Jun 15, 2018
- Messages
- 195
UI-Frame JASS code, using SIMPLESTATUSBAR:
How to make the BarTexture* display under the Border (Bar Frame)?
Now the BarTexture is on/above the golden Border (overlay)
*BarTexture - progress bar, in the example code we give it a texture and it is white on the image
@Uncle @Tasyen maybe you guys know?
JASS:
globals
framehandle back
framehandle bar
endglobals
function CreateButton1 takes nothing returns nothing
call BlzLoadTOCFile("war3mapImported\\Templates.toc")
set back = BlzCreateFrame("EscMenuControlBackdropTemplate", BlzGetFrameByName("ConsoleUIBackdrop", 0), 0, 0)
call BlzFrameSetAbsPoint(back, FRAMEPOINT_CENTER, 0.15, 0.4)
call BlzFrameSetSize(back, 0.177, 0.02)
set bar = BlzCreateFrameByType("SIMPLESTATUSBAR", "", BlzGetFrameByName("ConsoleUI", 0), "", 0)
call BlzFrameSetPoint(bar, FRAMEPOINT_TOPLEFT, back, FRAMEPOINT_TOPLEFT, 0.004, -0.004)
call BlzFrameSetPoint(bar, FRAMEPOINT_BOTTOMRIGHT, back, FRAMEPOINT_BOTTOMRIGHT, -0.004, 0.004)
call BlzFrameSetTexture(bar, "ui\\feedback\\xpbar\\human-bigbar-fill", 0, false)
call BlzFrameSetValue(bar, 50)
endfunction
How to make the BarTexture* display under the Border (Bar Frame)?
Now the BarTexture is on/above the golden Border (overlay)
*BarTexture - progress bar, in the example code we give it a texture and it is white on the image
@Uncle @Tasyen maybe you guys know?