Quantcast Some KGPanels Scripts - WoWInterface
Thread Tools Display Modes
08-13-17, 12:55 PM   #1
BabyRay
An Aku'mai Servant
Join Date: Sep 2009
Posts: 39
Some KGPanels Scripts

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
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_073117_091524.jpg
Views:	201
Size:	303.5 KB
ID:	8970  
Attached Files
File Type: zip KG Panels Save Variables.zip (1.14 MB, 30 views)
  Reply With Quote
08-20-17, 11:26 PM   #2
BabyRay
An Aku'mai Servant
Join Date: Sep 2009
Posts: 39
small monday morning push
  Reply With Quote
08-21-17, 02:10 AM   #3
Thubz
A Fallenroot Satyr
 
Thubz's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2012
Posts: 27
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.
__________________

Last edited by Thubz : 08-21-17 at 02:13 AM. Reason: Added wiki link
  Reply With Quote
08-23-17, 03:12 AM   #4
BabyRay
An Aku'mai Servant
Join Date: Sep 2009
Posts: 39
The problem is that I do not speak English. Use the google translator.
  Reply With Quote
08-28-17, 11:30 PM   #5
BabyRay
An Aku'mai Servant
Join Date: Sep 2009
Posts: 39
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
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Some KGPanels Scripts

Thread Tools
Display Modes

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