• 0

    posted a message on Official Custom Observer UI Information & Guide

    I've tried to create my own templates just as you have. But I always get "Failed to locate file desc: TrainerTemplates" where my template is in. I even tried to move the template to the same file, but it still doesn't find it I have rechecked the name 10 times, moved it around, created a frame around it. I can even select the template when I press edit frame. I can only use templates created by blizzard.

    Do I have to do something else in addition to just create the layouts to be able to use them as templates?

    My files:

    TrainerDialogs

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
    <Frame type="Frame" name="TrainerOptionsDialog">
    	<Height val="300"/>
    	<Width val="400"/>
    	<Style val="DialogFont"/>
    
    	<Frame type="Button" name="HideButton" template="TrainerTemplates/DefaultButton">
    		<Width val="50"/>
    		<Anchor side="Left" relative="$parent" pos="Min" offset="30"/>
    		<Anchor side="Top" relative="$parent" pos="Min" offset="30"/>
    		<Text val="Hide"/>
    	</Frame>
    </Frame>
    </Desc>
    

    TrainerTemplates

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
    <Frame type="Button" name="DefaultButton">
    	<Style val="DialogButtonFont"/>
    	<Height val="30"/>
    </Frame>
    </Desc>
    
    Posted in: Tutorials
  • To post a comment, please or register a new account.