View Single Post
10-24-17, 02:03 PM   #11
Maaggel
A Murloc Raider
Join Date: Oct 2017
Posts: 5
Originally Posted by Ammako View Post
Interface/QuestFrame/TalkingHeads.blp

How it is used:
https://www.townlong-yak.com/framexm...sInfo.lua#3602
https://www.townlong-yak.com/framexm...gHeadUI.xml#58

I don't know how it would be done in pure lua, sorry. I don't know xml so I can't help with it.


This addon has really nice and understandable code for config options that you can probably take inspiration from:
https://mods.curse.com/addons/wow/work_complete


For the mover:
https://wow.gamepedia.com/Making_draggable_frames


Close button I can't directly help with, but you can probably look around at other addons that re-use the default Blizzard close button. I know Classic Quest Log uses it, but it does it in xml/lua. If you're comfortable with xml you can probably check that. Otherwise surely there's a pure lua addon out there with a close button you can look at. ;p
This is great!
I found the textures I needed, and I've migrated all frames to the XML structure instead of doing it in LUA
I havn't added the mover yet, but that will be the next thing I'll do





Originally Posted by jeffy162 View Post
You can do an addon in strictly Lua. BUT, XML comes in handy when defining templates for the frames (IF I understand it correctly). It doesn't seem to be that difficult to read XML, but writing it could be something else.

I don't, personally, write either one of those languages. I know what it says under my avatar, but the plug-ins that I "wrote" are, really, just copy-n-paste work. The graphics were the tough part (and they are simple graphics).
I work as a lead developer, so getting to know this XML structure and LUA have proven to be fairly simple - but all the references etc. are whats holding my project back! So this is great Thank you.





Originally Posted by Fizzlemizz View Post
Code:
local close = CreateFrame("Button", "$parentCloseButton", parentframe, "UIPanelCloseButton")
close:SetPoint("TOPRIGHT")
Edit: It will close(hide) the frame provided as parentframe.
Nice I've added a "Close" button now, and took inspiration in your example, combined with some XML!

You can see the new version attached here
I've attached an actual example of Xal'atath whispering me aswell

Again, thank you guys so much for the help! I'm fairly close to the first version that I'm gonna release
Attached Thumbnails
Click image for larger version

Name:	New Popup.JPG
Views:	297
Size:	81.4 KB
ID:	9011  Click image for larger version

Name:	actual.JPG
Views:	293
Size:	114.3 KB
ID:	9012  

Last edited by Maaggel : 10-24-17 at 02:08 PM.
  Reply With Quote