|
||||||
| AddOn HELP! Requests for assistance and misc bug reports go here. | ||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Member
Join Date: Aug 2009
Posts: 15
|
Hello,
I'm quite new to addon design, and I'm making my addon an Ace3 addon. One of the features I want to implement is "whisper history window", which will do the following: 1. The history window will be a dragable window with a "close" button. 2. The window will be openned by a slash command or a button in the addon config panel. 3. The window will contain rows of text taken from the savedVariable. each row will be history of a chat whisper, and will include 3 fields: date/time, sender, message. 4. The window will contain a scrolling bar, in case there are too many whispers to show. Can it be done using Ace3 libs? I will be thankfull for any help, guidance or links to a relevant doc. Thanks
|
|
|
|
|
|
#2 |
|
Member
Join Date: Jan 2012
Posts: 15
|
1. you need this
2.&4. read about this and AceConfig 3. AceDB , and you need do some research on "CHAT_MSG_BN_WHISPER" & "CHAT_MSG_WHISPER" 2 events, which will fired when you got wisper message Last edited by ace329281301; 01-18-2012 at 05:00 PM. |
|
|
|
|
|
#3 |
|
Member
Join Date: Aug 2009
Posts: 15
|
Hi,
Thank you for your answer. I'm already read these documents. I know how to collect the whispers data. What I'm missing is how to use the ACE GUI: how to actually draw the window, how to display the text lines in it (assuming I already have it in a table), how to make it scrollable. Thanks
|
|
|
|
|
|
#5 |
|
Seal Cub Clubbing Club
Join Date: May 2005
Location: California, US
Posts: 7,801
|
Don't use AceGUI. There is pretty much no reason for anyone to ever use AceGUI directly. If what you want to do can't be done with an options table through AceConfig, just build your own GUI using the standard widget API.
- http://www.wowpedia.org/Widget_API - http://www.wowpedia.org/Widget_Handlers
__________________
& Author/maintainer of Grid, PhanxChat, and many more. | PM me on CurseForge Troubleshoot an addon | Turn any code into an addon | More addon resources Need help with your code? Attach or paste your whole, real files. Please don't PM me about addon bugs, requests, or code help. Post a comment, ticket, or thread instead! |
|
|
|
|
|
#6 |
|
Member
Join Date: Aug 2009
Posts: 15
|
Hi,
I tried working with the standard API, but making a scrollframe for text was a bit complex for me. Other addons I looked at did it with XML. So I ended up using Ace-GUI, and it worked. Only problem is the window is not being closed when hitting "escape", and this is very annoying. Any idea how to make it close with "escape"? This is my code: Code:
local historyFrame = AceGUI:Create("Frame")
historyFrame:SetTitle(L["History"])
historyFrame:SetStatusText("")
historyFrame:SetCallback("OnClose", function(widget) AceGUI:Release(widget) end)
historyFrame:SetLayout("Fill")
local historyEditbox = AceGUI:Create("MultiLineEditBox")
historyEditbox:SetText(historyText)
historyEditbox:SetWidth(800)
historyEditbox:DisableButton(true)
historyEditbox:SetLabel("")
historyEditbox:SetNumLines(20)
historyEditbox:SetMaxLetters(999999)
historyFrame:AddChild(historyEditbox)
|
|
|
|
|
|
#7 |
|
Hero Member
Join Date: Nov 2005
Posts: 817
|
|
|
|
|
|
|
#8 | |
|
Member
Join Date: Aug 2009
Posts: 15
|
Quote:
Code:
tinsert(UISpecialFrames,"MainFrameName"); What is the exact line I should add? |
|
|
|
|
|
|
#9 |
|
Amazing Member
Join Date: Feb 2005
Posts: 1,076
|
Give a name in the CreateFrame call, and then pass that string name in the line above.
__________________
In wizardry, one must often be willing to consider serendipitous events as unqualified successes. -Vaarsuvius |
|
|
|
|
|
#10 | |
|
Member
Join Date: Aug 2009
Posts: 15
|
I looked into Libs\AceGUI-3.0\widgets\AceGUIContainer-Frame.lua and I don't think they use a name:
Quote:
Last edited by Animoral; 01-20-2012 at 02:10 AM. |
|
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 10:24 PM.
WowAce Forums





