• 0

    posted a message on kgPanels Offical Thread
    2 Quick question.

    1. I was wondering if there was a way to display info on the panels for example, I know there is a way to display gold with kgpanels, but can you take that a little farther. Essentially I used to use sldata text but is has not been updated for some time now. What I am looking to do is create about 6 panels.

    1. gold
    2. time/date
    3. location
    4. durability
    5. mail
    6. currency (justice/valor/honor etc) pts.

    2. Is there a way to have a button or panel reference a tool tip. For example, I recently made the 12 micro menu buttons through kgpanels and they work for the most part see the 2 previous comments (I am still having trouble with the spellbook/raid/gamemenu buttons). Any how my goal when mousing over the micro menu buttons and my gold/time/info buttons is to have a tooltip show up.
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    =My biggest question:
    I need to make 2 buttons total one that controls the toggle of the character frame and one that not only controls the toggle of the character frame but also acts as a highlight (or mouseover/hover)


    I figured this out with a ton of searching and help from Akryn. This button script is used to toggle a micro menu button such as the help button and to create a highlight for the button to indicate mouse over.

    I made a button with some customs image I created and borrowed. The result/settings:


    I made the icon of the person using photoshop. I borrowed the button look from button facade renaitre.

    To get the character button to toggle(this goes on your main button:
    OnClick:
    if pressed then
    ToggleCharacter("PaperDollFrame")
    end


    To get the highlight to toggle (this goes on your highlight panel):
    OnLoad:
    self:Show()
    self:SetAlpha(0)
    self:SetScript("OnEnter", function(self) self:SetAlpha(1) end)
    self:SetScript("OnLeave", function(self) self:SetAlpha(0) end)


    OnEnter:
    self:SetAlpha(1)


    OnLeave:
    self:SetAlpha(0)
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Quote from Xhelius
    Someone at WoWUIGallery had asked about the micro menu in the RealUI. Although the author uses his own addon to create the texted based micro menu, this can be done in kgpanels pretty easily.

    (I'll use the character frame as an example)
    Simply create a panel. Use whatever border and background you want. For the sake of this information, create a panel 32 X 32.

    Goto the text options and put in "C" w/o the ". Depending on what font you are using adjust the size if need be. Adjust the color if need be.

    Go back to the main panel settings. Click on Intercept Mouse clicks. If not checked the script will not work.

    Goto the scripts options. Go down to OnClick. Type in

    if pressed then
    ToggleCharacter("PaperDollFrame")
    end

    Click Accept.

    You should now have a small square with a C in the middle. If you click it, it should open the Character Frame. Click it again to close.

    That's all there is too it. Below I've listed the toggles for various frames:

    ToggleCharacter("PaperDollFrame")
    ToggleSpellBook("spell")
    ToggleTalentFrame()
    ToggleAchievementFrame()
    ToggleFrame(QuestLogFrame)
    TogglePVPFrame()
    ToggleLFDParentFrame()
    ToggleHelpFrame()


    If anyone has any questions, cares, concerns please let me know.


    Thanks for this code it made my day.

    I am working on a ui for my friend, they want me to take thier current ui and add textures and skins to it. While doing this I noticed they have thier micro menu button active and it looks bad as the buttons do not skin with any addons ive tried.

    So based on your code I did something similar to lui v3 and realui, where I created my own buttons (basically just a set of flat icons)
    and used the code to bring em to life and they are working great aside from a little issue with the raid/game menu/spellbook buttons.

    My biggest question:
    I need to make 2 buttons total one that controls the toggle of the character frame and one that not only controls the toggle of the character frame but also acts as a highlight (or mouseover/hover)

    The character button I have created is a:
    40x40 panel, class colored with a custom image. I titled the panel mm (C) button, the current script:
    OnClick:
    if pressed then
    ToggleCharacter("PaperDollFrame")
    end


    The character button hover:
    40x40 panel darker class colored with the same custom image. I titled the panel mm (C) hover, It meeds a script to allow the button to only show on mouseover/hover (pretty much just need this to be a highlight that will still toggle the character frame in game.)

    Issue with the raid button:
    This one isnt really a big deal but if it can be fixed why not.
    The raid button I made works 1/2 way. When I just log in or do a /reload and then click the raid button it takes me to the friends frame. After reaching the friends frame from click my kg button, I then click the raid tab, after this when I click the raid button again it will now correctly toggle the raid frame, as soon as I log out or do a /reload the raid button will begin toggling the friends frame. here is the /fstack


    Raid button:
    40x40 panel, class colored with a custom image. I titled the panel mm (R) button, the current script:
    OnClick:
    if pressed then
    ToggleFriendsFrame(RaidTab)
    end


    I did try a couple different scripts after I got this bug:
    Doesnt toggle:
    if pressed then
    ToggleRaidFrame(RaidTab)
    end


    Toggles the same way as the 1/2 way code:
    if pressed then
    ToggleFriendsFrame(RaidTab4)
    end


    Issue with the menu button:
    This one isnt really a big deal but if it can be fixed why not. For some reason all the panels make a sound when you open them but this one doesnt, not sure why.

    The menu button:
    40x40 panel, class colored with a custom image. I titled the panel mm (M) button, the current script:
    OnClick:
    if pressed then
    ToggleFrame(GameMenuFrame)
    end



    Issue with the spellbook button:
    For some reason when I just log on or after a reload if I open my spellbook via keybind(p) and click any spell it works fine, however if I open my spellbook via the micro menu it gives me the disable/ignore addon box when I try and cast a spell from the book not even a reload fixes this, it happens 100% of the time.

    Spellbook button:
    40x40 panel, class colored with a custom image. I titled the panel mm (S) button, the current script:
    OnClick:
    if pressed then
    ToggleSpellBook("spell")
    end


    I would appreciate any help and thanks in advance. =D
    Posted in: General AddOns
  • 0

    posted a message on DogTag Questions Go Here
    Quote from Phauxe
    I have 2 lines of text on my bar and I need a dogtag that will allow me to hide the text while casting. Sorry if there is a better way to post the dogtags below or if this has been talked about somewhere else and I missed it.

    I need to incorporate both of these lines to hide while player is casting and while target is casting, The 2 lines of text are:

    [DifficultyColor]BIO

    and

    [ClassColor] Lv. [Level] - [SmartRace] [(~IsPlayerOrPet ? Classification:Contains("Rare") ? "Rare":Gray) (~IsPlayerOrPet ? Classification:Contains("Elite") ? "Elite":Yellow) (~IsPlayerOrPet ? Classification:Contains("Boss") ? "Boss":Red)] [IsPlayerOrPet ? Faction:Contains("Alliance") ? "A":HostileColor] [IsPlayerOrPet ? Faction:Contains("Horde") ? "H":HostileColor]

    If anyone can help me, that would be aweswome. Thanks in advance.


    An update to my own question:

    [if CastStartDuration(unit="player") and 'Casting' then ""else
    DifficultyColor "BIO"end]

    and

    [if CastStartDuration(unit="player") and 'Casting' then ""else
    ClassColor "Lv. " Level " - " SmartRace (~IsPlayerOrPet ? Classification:Contains("Rare") ? "Rare":Gray) (~IsPlayerOrPet ? Classification:Contains("Elite") ? "Elite":Yellow) (~IsPlayerOrPet ? Classification:Contains("Boss") ? "Boss":Red) (IsPlayerOrPet ?
    Faction:Contains("Alliance") ? " A":HostileColor) (IsPlayerOrPet ? Faction:Contains("Horde") ? " H":HostileColor)end]
    Posted in: Unit Frames
  • 0

    posted a message on DogTag Questions Go Here
    I have 2 lines of text on my bar and I need a dogtag that will allow me to hide the text while casting. Sorry if there is a better way to post the dogtags below or if this has been talked about somewhere else and I missed it.

    I need to incorporate both of these lines to hide while player is casting and while target is casting, The 2 lines of text are:

    [DifficultyColor]BIO

    and

    [ClassColor] Lv. [Level] - [SmartRace] [(~IsPlayerOrPet ? Classification:Contains("Rare") ? "Rare":Gray) (~IsPlayerOrPet ? Classification:Contains("Elite") ? "Elite":Yellow) (~IsPlayerOrPet ? Classification:Contains("Boss") ? "Boss":Red)] [IsPlayerOrPet ? Faction:Contains("Alliance") ? "A":HostileColor] [IsPlayerOrPet ? Faction:Contains("Horde") ? "H":HostileColor]

    If anyone can help me, that would be aweswome. Thanks in advance.
    Posted in: Unit Frames
  • To post a comment, please or register a new account.