Create panels for customizing your UI, sucessor to eePanels
OnClick now provides a pressed and released variable you can check for.
if pressed then -- do mouse down actions elsif released then -- do mouse up actions end
This means your script will get called twice when someone clicks the panel.
Here is a youtube link to a video Tutorial
Ive created an Example Texture Pack.
This example pack is just a template. If you want to use it as a storage spot for your art, look at the read me file for directions on usage.
Facts
- Date created
- 16 Sep 2008
- Category
- Last update
- 09 Aug 2009
- Development stage
- Release
- Language
- enUS
- frFR
- koKR
- zhCN
- License
- All Rights Reserved
- Curse link
- kgPanels
- Reverse relationships
- 1
- Recent files
Authors
Relationships
- Embedded library
- Ace3
- AceGUI-3.0-SharedMediaWidgets
- CallbackHandler-1.0
- LibSharedMedia-3.0
- LibStub
- #16
rakkarage Mon, 02 Feb 2009 21:09:58ya it works if i go back to r275 before "updated repareting reinit of load scripts to execute the other scripts as well."
- #15
rakkarage Sun, 01 Feb 2009 20:07:39i have a panel (or two) with code only in onload and onevent
when i first set the panel up i saw:
Setting up scripts for LOAD
Setting up scripts for EVENT
when i (re)load the game or reloadui i see:
Setting up scripts for EVENT
Setting up scripts for EVENT
and the scripts dont execute because i assume its missing the load?
when i edit the scripts (just add a space and resave) to fix it i see:
Setting up scripts for LOAD
Setting up scripts for EVENT
and then it works again... seems to have just recently started happening.... (last version?)
any ideas? thanks
- #14
kagaro Wed, 21 Jan 2009 15:18:22self.text:SetText("yada yday daya")
- #13
Nathadir Tue, 20 Jan 2009 13:09:15I updated LibSharedMedia, and the fonts now work as intended - thank you!
However, even after I have added Recount as a scriptdep, I don't get anything. I tried creating a new panel with the default settings, making the OnLoad script: self:SetText("TEST"); and even this does not result in anything being shown on the panel.
Is there anything else that could be wrong?
- #12
kagaro Tue, 20 Jan 2009 01:35:25You should also really check that Recount is there when you script runs. it may be erroring since Recount wasnt valid when you script runs and doing it on update means for every frame you pass your checking the title.
Add as a scriptdep Recount to be sure Recount has loaded before your script is launched.
- #11
kagaro Tue, 20 Jan 2009 01:32:21kgpanels checks for LibSharedMedia-3.0 to access sharedmedia content.
- #10
Nathadir Mon, 19 Jan 2009 10:05:34I'm using r173, updated 1/4/09, so I think it's the latest I could get.
Another thing: When I try to use the SetText() function on one of my panels, I get no results. I would like to replace the default Recount title, so I set the following scripts:
<<code>>OnUpdate: if Recount.MainWindow.Title:IsVisible() then Recount.MainWindow.Title:Hide(); endlocal title=Recount.MainWindow.Title:GetText() if not title==self:GetText() then self:SetText(title) end<</code>>
I can't see there should be anything wrong with this script, at least not on the part of not being able to retrieve the text on the Recount title frame, since when I use
I get what I wanted just fine, even when the Title frame is hidden.
- #9
kagaro Mon, 19 Jan 2009 03:25:36It should just be there, what version of shared media are you using?
- #8
Nathadir Sun, 18 Jan 2009 16:06:54I seem unable to change the font used in Text Options, since the selection bar is simply grayed out :/ I am aware that fonts used are imported from SharedMedia, but I have a multitude of fonts imported into that addon, which I used with great succes in both SLDataText and Chatter. I've tried resizing the frame, changing opacity and whatnot.
Any clues as to how I can fix this problem?
- #7
Yanziang Wed, 24 Dec 2008 11:29:02Hi
I have no idea how to use kgPanels, but could you help me get this one here?
http://i227.photobucket.com/albums/dd85/origami_boulder/WoWScrnShot_101908_003152.jpg