• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Help with TEXTAREA frame

Status
Not open for further replies.
Level 18
Joined
Apr 13, 2008
Messages
1,629
Hey there.

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?
 
Hey there.

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?
You're loading the .fdf file not the .toc file.
BlzLoad -> TOC <- File
I don't think you're ever supposed to load an .fdf but I could be wrong.
 
Thank
Place UI\Frames\framedef\ui\escmenutemplates.fdf on a line by itself followed with an empty line in a custom .toc file. Then load the custom .toc file. Read up more on this in a tutorial by Tasyen.
Thank you, but I was under the impression that you can create TextAreas without any custom imports? That might not be the case.
I'm creating a system and I want to minimize the custom assets as much as I can.
 
Status
Not open for further replies.
Back
Top