Thread Tools Display Modes
03-20-07, 04:09 AM   #1
Sentinelum
A Kobold Labourer
Join Date: Mar 2007
Posts: 1
Question Tutorial on how to create a standard looking dialog ?

Hi all,

I have worked through several tutorials about creating WoW UI dialogs but now I am looking for a tutorial (or oither resource) wich explains how to create a dialog frame looking like the standard dialogs (Questlog, Auction house,...) including with frame and circular icon at the top left, including where to start to create the graphics.
  Reply With Quote
03-22-07, 10:27 AM   #2
Synthos
A Deviate Faerie Dragon
Join Date: Mar 2007
Posts: 10
The Blizzard frames all have per-frame graphics done for them. There is no "standard frame".

You can use <Backdrop> and your own graphics to create one, however.
  Reply With Quote
04-18-07, 02:30 AM   #3
ClemSnide
A Deviate Faerie Dragon
 
ClemSnide's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 12
I puzzled through this as well and have been successful in making my own custom frame.

My advice is to begin with an "edgefile" that is part of the standard set, namely, the Tutorial frames. (I posted code under another topic recently so shan't duplicate it here; you can look at Creating custom frame borders? for that.)

The problem with using the standard frame graphics is that they have all the little background graphics, such as horizontal rules and item spaces, that you see in-game. I've seen the Taxi frame used, which is probably the least intrusive. Then you can put a circular image into the badge using a Texture element i and a file attribute. Remember to make anything not part of your image transparent. You will also have to do this in a different place, namely as Textures inside the ARTWORK layer instead of an edgeFile attribute inside the Frame definition with some extra elements. You'll have to write code for all four corners (the frame graphic parts look like UI-TaxiFrame-TopLeft.blp, etc.). Finally, it may not look quite right unless your window is the same size as the window it's based on, which values I don't remember. Oh! and speaking of values, the sides of your image have to be powers of 2: 32, 64, 128, etc. We think that you can have different values for horizontal and vertical, but I haven't tested this yet.

I will write a small tutorial on this very issue in the near future, but that should get you going.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Tutorial on how to create a standard looking dialog ?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off