- Joined
- Apr 13, 2008
- Messages
- 1,608
Hey there.
I'm trying to create a textarea frame without custom FDFs
What am I doing wrong?
I'm trying to create a textarea frame without custom FDFs
JASS:
// I tried loading the blizzard TOC file both before creation and in the map init
call BlzLoadTOCFile("UI\Frames\framedef\ui\escmenutemplates.fdf")
// If I create a text, it works fine:
//set DEqCStatSheet[pid] = BlzCreateFrameByType("TEXT", "CSheet"+"p"+I2S(pid), EquipmentBackDropFrame[pid], "", 0)
// This shows nothing when I use BlzFrameSetText on it
//set DEqCStatSheet[pid] = BlzCreateFrame("EscMenuTextAreaTemplate", EquipmentBackDropFrame[pid], 0, 0)
// This crashes when I make the parent visible:
set DEqCStatSheet[pid] = BlzCreateFrameByType("TEXTAREA", "CSheet"+"p"+I2S(pid), EquipmentBackDropFrame[pid], "EscMenuTextAreaTemplate", 0)
call BlzFrameSetAbsPoint(DEqCStatSheet[pid], FRAMEPOINT_TOPLEFT, 0.10, DEqHeroIconBottomRightY)
call BlzFrameSetAbsPoint(DEqCStatSheet[pid], FRAMEPOINT_BOTTOMRIGHT, 0.237, DEqBackDropBottomRightY)
call BlzFrameSetSize(DEqCStatSheet[pid], 0.25, 0.25)
What am I doing wrong?