Thread Tools Display Modes
09-04-08, 01:55 PM   #1
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
Eepanels Question(Advanced)

Hey all. UI designer here and I am a little stumped as I am attempting to expand my horizons and limits on eepanels.

Here is my newly updated 3.0 version(proof) and I have a question.

http://i245.photobucket.com/albums/g...gernautUI3.jpg

I want the skulls eyes and mouth to change to a red color(I have made the extra panels for it already) however I do not know the exact process on how to implement it in game. Any help would be appreciated.

Thanks a bunch.

Juggernautt
US-Jaedenar
<Legacy>
MT
  Reply With Quote
09-04-08, 04:58 PM   #2
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
Originally Posted by Juggernautt View Post
Hey all. UI designer here and I am a little stumped as I am attempting to expand my horizons and limits on eepanels.

Here is my newly updated 3.0 version(proof) and I have a question.

http://i245.photobucket.com/albums/g...gernautUI3.jpg

I want the skulls eyes and mouth to change to a red color(I have made the extra panels for it already) however I do not know the exact process on how to implement it in game. Any help would be appreciated.

Thanks a bunch.

Juggernautt
US-Jaedenar


<Legacy>
MT

The question here is When do you want this to happen? Combat? death? low health? Im not 100% sure on how to go about doing that. but it may help people understand what you are trying to do. and i may be able to fish around for documentation on how to do such a thing
__________________
  Reply With Quote
09-05-08, 07:32 AM   #3
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
When i enter combat I want 2 of my eepanels to change to another eepanel to make it look as if it animates when entering combat. When leaving combat it goes back to my normal UI.
  Reply With Quote
09-05-08, 09:53 AM   #4
Taffu
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 149
Well, you could add the script to the OnEvent area to check for combat, and either A) Add the panels using a "blend" mode and change the color (or even hidden/shown state) based on combat state or B) Have both panel/image sets aligned the same way and change the state of "panel set A" to hide in combat and "panel set B" show in combat (and vice versa to show/hide alternate).
  Reply With Quote
09-07-08, 09:40 AM   #5
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
Ok, I got it so I can get 1 to show on entering combat. Now heres the issue. I add the same script to another eepanel and i still only get 1 eepanel to show upon entering combat.

1. I want 2 eepanels to show up at the SAME time upon entering combat. What scripts do i need to add besides the original "show in combat" script?

2. I can get them to show up when the panels are "unlocked" but as soon as I lock them, it goes back to only showing 1 panel upon entering combat.
  Reply With Quote
09-07-08, 04:25 PM   #6
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
You can't use the same event in more than one script. You'll have to code in both panels in your script.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-07-08, 05:06 PM   #7
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
So how exactly do i do that?
  Reply With Quote
09-07-08, 05:12 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
eePanelX:Show()
eePanelX:Show()

(where X is the number of that eePanel)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-08-08, 07:42 AM   #9
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
So this would be the code then?

-- Hide the panel so it's not shown until we want it to
eePanelX:Hide()
eePanelY:Hide()
-- Hide panel ooc
function eePanels2:PLAYER_REGEN_ENABLED()
eePanelX:Hide()
eePanelY:Hide()
end
-- Show panel ic
function eePanels2:PLAYER_REGEN_DISABLED()
eePanelX:Hide()
eePanelY:Hide()
end
-- Ace2 event listeners; can't do this in more than one script
eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED")
eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED")
  Reply With Quote
09-08-08, 08:17 AM   #10
Taffu
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 149
Process the Show/Hide in one script, in one Panel, with one set of listeners. Assuming you use eePanels 1 & 2 for IC, and 3 & 4 for OOC using OnEvent of Panel 1:

Code:
function eePanel1:PLAYER_REGEN_ENABLED()
     -- IC Panels
     eePanel1:Hide()
     eePanel2:Hide()
     -- OOC Panels
     eePanel3:Show()
     eePanel4:Show()
end

function eePanel1:PLAYER_REGEN_DISABLED()
     -- IC Panels
     eePanel1:Show()
     eePanel2:Show()
     -- OOC Panels
     eePanel3:Hide()
     eePanel4:Hide()
end

eePanel1:RegisterEvent("PLAYER_REGEN_ENABLED")
eePanel1:RegisterEvent("PLAYER_REGEN_DISABLED")
  Reply With Quote
09-08-08, 08:54 AM   #11
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
Ah i see now. Thank you very much and get ready for Jugger3.0!!! lol. thanks a bunch everyone!
  Reply With Quote
09-08-08, 03:07 PM   #12
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
Ok, got an issue now. I got it to work, but everytime i log out and log back in I have to "apply" the script again for it to take. Anyway to fix that?

Last edited by Juggernautt : 09-08-08 at 03:24 PM.
  Reply With Quote
09-08-08, 03:29 PM   #13
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
Heres the script i put in.

-- Hide the panel so it's not shown until we want it to
eePanel8:Hide()
eePanel9:Hide()
-- Hide panel ooc
function eePanels2:PLAYER_REGEN_ENABLED()
eePanel8:Hide()
eePanel9:Hide()
end
-- Show panel ic
function eePanels2:PLAYER_REGEN_DISABLED()
eePanel8:Show()
eePanel9:Show()
end
-- Ace2 event listeners; can't do this in more than one script
eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED")
eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED")

like i said, after logging out and then back in, eepanel9 shows instead of hiding. once i hit ok on eepanel8 script then the UI works but doesnt save.
  Reply With Quote
09-08-08, 04:52 PM   #14
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Do you have the script in eePanel9? If it's in eePanel8, then it loads before eePanel9 is created.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-08-08, 04:55 PM   #15
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
No i have it in eepanel8. does it need to be in 9?
  Reply With Quote
09-08-08, 05:09 PM   #16
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Yes, it does.

Originally Posted by Seerah View Post
If it's in eePanel8, then it loads before eePanel9 is created.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
09-08-08, 05:43 PM   #17
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
got it thanks.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Eepanels Question(Advanced)


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