WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Some KGPanels Scripts (https://www.wowinterface.com/forums/showthread.php?t=55636)

BabyRay 08-13-17 12:55 PM

Some KGPanels Scripts
 
2 Attachment(s)
Hello,

after an HDD crash i start WoW again.

I rebuild my UI new.

I need some help with KGPanels scripts.
I want by clicking

"HIDE" -> Hide all 4 windows
"SHOW" -> Show all 4 Windows
"DPS/HPS" -> Hide/Show the 2 Details windows
"CHAT" -> Hide/Show the 2 Chat windows

if possible:

"SOCIAL" -> show 2 panels with "Hi" and "Bye". When click on these button -> write "Hi" or "bye" in /i chat
"ZOOM" -> show "in" and "out" button. Zoom in at a special point or zoom max out

Hide all 4 Panels/Windows+Minimap when i am in a Pet Battle or Bank/Guild Bank UI



Sorry for my bad english :)

BabyRay 08-20-17 11:26 PM

small monday morning push :banana:

Thubz 08-21-17 02:10 AM

Hey,
i always use these site:
https://www.wowace.com/projects/kg-p...sample-scripts
http://wowwiki.wikia.com/wiki/World_of_Warcraft_API
you should be able to find all u need on those websites.

BabyRay 08-23-17 03:12 AM

The problem is that I do not speak English. Use the google translator.

BabyRay 08-28-17 11:30 PM

Not all of them works :(

SHOW/HIDE work without hiding the Panels. Anker UI Frames is Chat and Details
DPS/HPS and Chat Button not working.

And automate hide at bank, guildbank and petbattle not work

CHAT onClick

Code:

if pressed then
    if ChatFrame1:IsShown() then
      ChatFrame1:Hide()
      ChatFrame2:Hide()
      ChatFrame3:Hide()
      ChatFrame1ButtonFrame:Hide()
      ChatFrame2ButtonFrame:Hide()
      ChatFrame3ButtonFrame:Hide()
      ChatFrameMenuButton:Hide()
      GeneralDockManager:Hide()
      QuickJoinToastButton:Hide()
      FriendsMicroButton:Hide()
      PlaySoundFile("Sound\\Interface\\uCharacterSheetClose.wav")
else
      ChatFrame1:IsShown() then
      ChatFrame1:Hide()
      ChatFrame2:Hide()
      ChatFrame3:Hide()
      ChatFrame1ButtonFrame:Hide()
      ChatFrame2ButtonFrame:Hide()
      ChatFrame3ButtonFrame:Hide()
      ChatFrameMenuButton:Hide()
      GeneralDockManager:Hide()
      QuickJoinToastButton:Hide()
      FriendsMicroButton:Hide()
        PlaySoundFile("Sound\\Interface\\uCharacterSheetOpen.wav")
    end
end

DPS/HPS onClick

Code:

if IsAddOnLoaded("Details") and pressed then
    if IsControlKeyDown() then
        Details:Reset()
        PlaySoundFile("Sound\\Interface\\iAbilitiesTurnPageA.wav")
    else
        CombatLogClearEntries()
        Details:ToggleWindow()
        if DetailsUpFrameInstance1:IsShown() and DetailsUpFrameInstance2:IsShown() then
            PlaySoundFile("Sound\\Interface\\uCharacterSheetOpen.wav")
        else
            PlaySoundFile("Sound\\Interface\\uCharacterSheetClose.wav")
        end
    end
end

SHOW onClick

Code:

if pressed then
    if IsAddOnLoaded("Details") then
        PlaySoundFile("Sound\\Interface\\uCharacterSheetOpen.wav")
        _detalhes:ReabrirTodasInstancias()
    end

      ChatFrame1:Show()
      ChatFrame2:Show()
      ChatFrame3:Show()
      ChatFrame1ButtonFrame:Show()
      ChatFrame2ButtonFrame:Show()
      ChatFrame3ButtonFrame:Show()
      ChatFrameMenuButton:Show()
      ChatFrame1ButtonFrameUpButton:Show()
      ChatFrame1ButtonFrameDownButton:Show()
      ChatFrame1ButtonFrameBottomButton:Show()
      ChatFrame2ButtonFrameUpButton:Show()
      ChatFrame2ButtonFrameDownButton:Show()
      ChatFrame2ButtonFrameBottomButton:Show()
      ChatFrame3ButtonFrameUpButton:Show()
      ChatFrame3ButtonFrameDownButton:Show()
      ChatFrame3ButtonFrameBottomButton:Show()
      ChatFrame3ButtonFrameMinimizeButton:Show()
      GeneralDockManager:Show()
      QuickJoinToastButton:Show()
end

HIDE onClick

Code:

if pressed then
    if IsAddOnLoaded("Details") then
        PlaySoundFile("Sound\\Interface\\uCharacterSheetClose.wav")
        _detalhes:ShutDownAllInstances()
    end

      ChatFrame1:Hide()
      ChatFrame2:Hide()
      ChatFrame3:Hide()
      ChatFrame1ButtonFrame:Hide()
      ChatFrame2ButtonFrame:Hide()
      ChatFrame3ButtonFrame:Hide()
      ChatFrameMenuButton:Hide()
      ChatFrame1ButtonFrameUpButton:Hide()
      ChatFrame1ButtonFrameDownButton:Hide()
      ChatFrame1ButtonFrameBottomButton:Hide()
      ChatFrame2ButtonFrameUpButton:Hide()
      ChatFrame2ButtonFrameDownButton:Hide()
      ChatFrame2ButtonFrameBottomButton:Hide()
      ChatFrame3ButtonFrameUpButton:Hide()
      ChatFrame3ButtonFrameDownButton:Hide()
      ChatFrame3ButtonFrameBottomButton:Hide()
      ChatFrame3ButtonFrameMinimizeButton:Hide()
      GeneralDockManager:Hide()
      QuickJoinToastButton:Hide()
end



All times are GMT -6. The time now is 06:47 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI