├── .gitattributes
├── Kui_Media
├── t
│ ├── bar.tga
│ ├── bar-old.tga
│ ├── empty.tga
│ ├── solid.tga
│ ├── barSmall.tga
│ ├── chrono
│ │ ├── Frost.tga
│ │ ├── Rocks.tga
│ │ ├── Runes.tga
│ │ ├── Xeon.tga
│ │ ├── banto.tga
│ │ ├── cilo.tga
│ │ ├── glaze.tga
│ │ ├── perl.tga
│ │ ├── Fifths.tga
│ │ ├── Healbot.tga
│ │ ├── smooth.tga
│ │ ├── Charcoal.tga
│ │ ├── Diagonal.tga
│ │ ├── LiteStep.tga
│ │ ├── Smoothv2.tga
│ │ └── LiteStepLite.tga
│ ├── innerShade.tga
│ ├── pfui
│ │ ├── pfUI-A.tga
│ │ ├── pfUI-B.tga
│ │ ├── pfUI-C.tga
│ │ ├── pfUI-D.tga
│ │ ├── pfUI-E.tga
│ │ ├── pfUI-F.tga
│ │ ├── pfUI-G.tga
│ │ ├── pfUI-H.tga
│ │ ├── pfUI-I.tga
│ │ ├── pfUI-J.tga
│ │ ├── pfUI-K.tga
│ │ ├── pfUI-L.tga
│ │ ├── pfUI-M.tga
│ │ ├── pfUI-N.tga
│ │ ├── pfUI-O.tga
│ │ ├── pfUI-P.tga
│ │ ├── pfUI-Q.tga
│ │ ├── pfUI-R.tga
│ │ ├── pfUI-S.tga
│ │ ├── pfUI-T.tga
│ │ ├── pfUI-U.tga
│ │ ├── pfUI-V.tga
│ │ ├── pfUI-W.tga
│ │ ├── pfUI-X.tga
│ │ └── pfUI-Y.tga
│ ├── shadowBorder.tga
│ ├── solidRoundedBorder.tga
│ └── Readme.txt
├── f
│ ├── yanone.ttf
│ ├── francois.ttf
│ └── Readme.txt
├── lib
│ ├── LibStub
│ │ ├── lib.xml
│ │ └── LibStub.lua
│ ├── LibSharedMedia-3.0
│ │ ├── lib.xml
│ │ └── LibSharedMedia-3.0.lua
│ └── CallbackHandler-1.0
│ │ └── CallbackHandler-1.0.xml
├── Kui_Media.toc
└── textures.lua
├── FuBar_KuiNameplates
├── icon.tga
├── icon_.png
├── icon_.psd
├── FuBar_KNPLocale-enUS.lua
├── embeds.xml
├── FuBar_KNPLocale-ruRU.lua
├── FuBar_KuiNameplates.toc
└── FuBar_KuiNameplates.lua
├── Kui_Nameplates
├── media
│ ├── spark.tga
│ ├── Shield.tga
│ ├── FrameGlow.tga
│ ├── target-glow.tga
│ ├── targetarrows3.tga
│ ├── combopoint-glow.tga
│ └── combopoint-round.tga
├── lib
│ ├── ParserLib
│ │ ├── readme.txt
│ │ ├── FixGlobalString.lua
│ │ ├── optimizer-zhTW.lua
│ │ └── optimizer-enUS.lua
│ ├── Ace3
│ │ ├── Bindings.xml
│ │ ├── LibStub
│ │ │ ├── lib.xml
│ │ │ └── LibStub.lua
│ │ ├── AceDB-3.0
│ │ │ └── AceDB-3.0.xml
│ │ ├── AceCore-3.0
│ │ │ ├── AceCore-3.0.xml
│ │ │ └── AceCore-3.0.lua
│ │ ├── AceHook-3.0
│ │ │ └── AceHook-3.0.xml
│ │ ├── AceAddon-3.0
│ │ │ └── AceAddon-3.0.xml
│ │ ├── AceEvent-3.0
│ │ │ ├── AceEvent-3.0.xml
│ │ │ └── AceEvent-3.0.lua
│ │ ├── AceTab-3.0
│ │ │ └── AceTab-3.0.xml
│ │ ├── AceTimer-3.0
│ │ │ └── AceTimer-3.0.xml
│ │ ├── AceBucket-3.0
│ │ │ └── AceBucket-3.0.xml
│ │ ├── AceConsole-3.0
│ │ │ └── AceConsole-3.0.xml
│ │ ├── AceLocale-3.0
│ │ │ ├── AceLocale-3.0.xml
│ │ │ └── AceLocale-3.0.lua
│ │ ├── AceLocale-3.1
│ │ │ ├── AceLocale-3.1.xml
│ │ │ └── AceLocale-3.1.lua
│ │ ├── AceCursor-3.0
│ │ │ └── AceCursor-3.0.xml
│ │ ├── AceDBOptions-3.0
│ │ │ └── AceDBOptions-3.0.xml
│ │ ├── AceSerializer-3.0
│ │ │ └── AceSerializer-3.0.xml
│ │ ├── CallbackHandler-1.0
│ │ │ └── CallbackHandler-1.0.xml
│ │ ├── AceConfig-3.0
│ │ │ ├── AceConfigCmd-3.0
│ │ │ │ └── AceConfigCmd-3.0.xml
│ │ │ ├── AceConfigDialog-3.0
│ │ │ │ └── AceConfigDialog-3.0.xml
│ │ │ ├── AceConfigRegistry-3.0
│ │ │ │ └── AceConfigRegistry-3.0.xml
│ │ │ ├── AceConfig-3.0.xml
│ │ │ └── AceConfig-3.0.lua
│ │ ├── AceComm-3.0
│ │ │ └── AceComm-3.0.xml
│ │ ├── AceGUI-3.0
│ │ │ ├── AceGUI-3.0.xml
│ │ │ └── widgets
│ │ │ │ ├── widgets.xml
│ │ │ │ ├── AceGUIContainer-SimpleGroup.lua
│ │ │ │ ├── AceGUIWidget-Heading.lua
│ │ │ │ ├── AceGUIWidget-Button.lua
│ │ │ │ ├── AceGUIWidget-InteractiveLabel.lua
│ │ │ │ ├── AceGUIContainer-InlineGroup.lua
│ │ │ │ ├── AceGUIContainer-BlizOptionsGroup.lua
│ │ │ │ ├── AceGUIWidget-Icon.lua
│ │ │ │ ├── AceGUIWidget-Label.lua
│ │ │ │ ├── AceGUIContainer-DropDownGroup.lua
│ │ │ │ └── AceGUIWidget-ColorPicker.lua
│ │ ├── AceGUI-3.0-SharedMediaWidgets
│ │ │ ├── widget.xml
│ │ │ ├── FontWidget.lua
│ │ │ ├── StatusbarWidget.lua
│ │ │ ├── BorderWidget.lua
│ │ │ └── BackgroundWidget.lua
│ │ ├── README.md
│ │ ├── Ace3.toc
│ │ ├── LICENSE.txt
│ │ └── Ace3.lua
│ ├── LibStub
│ │ ├── lib.xml
│ │ └── LibStub.lua
│ ├── LibSharedMedia-3.0
│ │ ├── lib.xml
│ │ └── LibSharedMedia-3.0.lua
│ ├── CallbackHandler-1.0
│ │ └── CallbackHandler-1.0.xml
│ ├── UnitCasting-1.1
│ │ └── lib.xml
│ ├── LibBabble-Spell-3.0
│ │ ├── Changelog-LibBabble-Spell-3.0-r78562.txt
│ │ ├── LibBabble-Spell-3.0.toc
│ │ ├── lib.xml
│ │ ├── Cleanup.lua
│ │ └── LibStub
│ │ │ └── LibStub.lua
│ └── embeds.xml
├── Kui_Nameplates.toc
├── custom-rename-me.lua
├── critters.lua
└── combopoints.lua
├── Kui_Nameplates_Auras
├── lib
│ ├── ParserLib
│ │ ├── readme.txt
│ │ ├── FixGlobalString.lua
│ │ ├── optimizer-zhTW.lua
│ │ └── optimizer-enUS.lua
│ └── embeds.xml
├── Kui_Nameplates_Auras.toc
├── .vscode
│ └── settings.json
└── data.lua
├── README.md
└── .gitignore
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/Kui_Media/t/bar.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/bar.tga
--------------------------------------------------------------------------------
/Kui_Media/f/yanone.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/f/yanone.ttf
--------------------------------------------------------------------------------
/Kui_Media/t/bar-old.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/bar-old.tga
--------------------------------------------------------------------------------
/Kui_Media/t/empty.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/empty.tga
--------------------------------------------------------------------------------
/Kui_Media/t/solid.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/solid.tga
--------------------------------------------------------------------------------
/Kui_Media/f/francois.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/f/francois.ttf
--------------------------------------------------------------------------------
/Kui_Media/t/barSmall.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/barSmall.tga
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/icon.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/FuBar_KuiNameplates/icon.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Frost.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Frost.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Rocks.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Rocks.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Runes.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Runes.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Xeon.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Xeon.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/banto.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/banto.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/cilo.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/cilo.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/glaze.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/glaze.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/perl.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/perl.tga
--------------------------------------------------------------------------------
/Kui_Media/t/innerShade.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/innerShade.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-A.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-A.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-B.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-B.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-C.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-C.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-D.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-D.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-E.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-E.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-F.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-F.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-G.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-G.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-H.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-H.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-I.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-I.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-J.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-J.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-K.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-K.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-L.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-L.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-M.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-M.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-N.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-N.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-O.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-O.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-P.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-P.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-Q.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-Q.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-R.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-R.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-S.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-S.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-T.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-T.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-U.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-U.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-V.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-V.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-W.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-W.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-X.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-X.tga
--------------------------------------------------------------------------------
/Kui_Media/t/pfui/pfUI-Y.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/pfui/pfUI-Y.tga
--------------------------------------------------------------------------------
/Kui_Media/t/shadowBorder.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/shadowBorder.tga
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/icon_.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/FuBar_KuiNameplates/icon_.png
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/icon_.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/FuBar_KuiNameplates/icon_.psd
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Fifths.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Fifths.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Healbot.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Healbot.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/smooth.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/smooth.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/media/spark.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/spark.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Charcoal.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Charcoal.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Diagonal.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Diagonal.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/LiteStep.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/LiteStep.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/Smoothv2.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/Smoothv2.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/ParserLib/readme.txt:
--------------------------------------------------------------------------------
1 | The newest documentation can be found at http://www.wowace.com/index.php/ParserLib
--------------------------------------------------------------------------------
/Kui_Nameplates/media/Shield.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/Shield.tga
--------------------------------------------------------------------------------
/Kui_Media/t/chrono/LiteStepLite.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/chrono/LiteStepLite.tga
--------------------------------------------------------------------------------
/Kui_Media/t/solidRoundedBorder.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Media/t/solidRoundedBorder.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/media/FrameGlow.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/FrameGlow.tga
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/lib/ParserLib/readme.txt:
--------------------------------------------------------------------------------
1 | The newest documentation can be found at http://www.wowace.com/index.php/ParserLib
--------------------------------------------------------------------------------
/Kui_Nameplates/media/target-glow.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/target-glow.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/media/targetarrows3.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/targetarrows3.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/media/combopoint-glow.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/combopoint-glow.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/media/combopoint-round.tga:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/laytya/Kui-Namaplates/HEAD/Kui_Nameplates/media/combopoint-round.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/Bindings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | ReloadUI()
4 |
5 |
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Kui-Namaplates
2 | Port of Kui-Namaplates to Vanilla
3 |
4 | # Download
5 |
6 | Download it only from [releases](https://github.com/laytya/Kui-Namaplates/releases) - not from CODE button.
7 |
--------------------------------------------------------------------------------
/Kui_Media/lib/LibStub/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibStub/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/LibStub/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceDB-3.0/AceDB-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Media/lib/LibSharedMedia-3.0/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Media/t/Readme.txt:
--------------------------------------------------------------------------------
1 |
2 | The following files are custom made for Kui
3 | By Kesava at wowinterface.com
4 |
5 | bar.tga
6 | bar-old.tga
7 | barSmall.tga
8 | empty.tga
9 | solid.tga
10 | innerShade.tga
11 | shadowBorder.tga
12 | solidRoundedBorder.tga
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceCore-3.0/AceCore-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceHook-3.0/AceHook-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceAddon-3.0/AceAddon-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceEvent-3.0/AceEvent-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceTab-3.0/AceTab-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceTimer-3.0/AceTimer-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibSharedMedia-3.0/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceBucket-3.0/AceBucket-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceConsole-3.0/AceConsole-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceLocale-3.0/AceLocale-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceLocale-3.1/AceLocale-3.1.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Media/lib/CallbackHandler-1.0/CallbackHandler-1.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceCursor-3.0/AceCursor-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceDBOptions-3.0/AceDBOptions-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Media/f/Readme.txt:
--------------------------------------------------------------------------------
1 |
2 | The following files are released under licenses which allow use in at least non-commercial applications.
3 |
4 | yanone.ttf, or Yanone Kaffeesatz Bold
5 | By Yanone @ yanone.de
6 |
7 | francois.ttf, or Francois One
8 | By New Typography @ newtypography.co.uk
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceSerializer-3.0/AceSerializer-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/CallbackHandler-1.0/CallbackHandler-1.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceConfig-3.0/AceConfigCmd-3.0/AceConfigCmd-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/UnitCasting-1.1/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceConfig-3.0/AceConfigDialog-3.0/AceConfigDialog-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceComm-3.0/AceComm-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/AceGUI-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/Kui_Nameplates_Auras.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 11200
2 | ## Author: Kesava, ported by laytya
3 | ## Title: Kui |cff9966ffNameplates|r Auras
4 | ## Notes: Aura display plugin for Kui Nameplates
5 | ## Dependencies: Kui_Nameplates
6 | ## SavedVariables: KuiSpellListCustom
7 |
8 |
9 | lib\embeds.xml
10 | data.lua
11 | auras.lua
12 |
--------------------------------------------------------------------------------
/Kui_Media/Kui_Media.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 11200
2 | ## Author: laytya
3 | ## Title: Kui |cff9966ffMedia|r
4 | ## Version: 0.1
5 | ## Notes: Add some textures to use w/ KUI-Nameplates
6 |
7 |
8 |
9 | lib\LibStub\LibStub.lua
10 | lib\CallbackHandler-1.0\CallbackHandler-1.0.lua
11 | lib\LibSharedMedia-3.0\LibSharedMedia-3.0.lua
12 |
13 | textures.lua
14 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "Lua.diagnostics.globals": [
3 | "GameFontNormal",
4 | "ChatFrame1",
5 | "DEFAULT_CHAT_FRAME",
6 | "CRUSHING_TRAILER",
7 | "GLANCING_TRAILER",
8 | "ABSORB_TRAILER",
9 | "BLOCK_TRAILER",
10 | "RESIST_TRAILER",
11 | "VULNERABLE_TRAILER"
12 | ]
13 | }
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/FuBar_KNPLocale-enUS.lua:
--------------------------------------------------------------------------------
1 | local L = AceLibrary("AceLocale-2.2"):new("FuBar_Kui-Nameplates")
2 |
3 | L:RegisterTranslations("enUS", function() return {
4 | TOOLTIP_NAME = "FuBar Kui-Nameplates",
5 | TOOLTIP_HINT1 = "\n|cffeda55fLeft-Click|r for Kui-Nameplates Options.",
6 | TOOLTIP_NOTE = "Access Kui-Nameplates Options.",
7 | ["Kui-Nameplates"] = true,
8 | ["Open Kui-Nameplates Options"] = true,
9 |
10 | } end)
11 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibBabble-Spell-3.0/Changelog-LibBabble-Spell-3.0-r78562.txt:
--------------------------------------------------------------------------------
1 | ------------------------------------------------------------------------
2 | r78562 | nightik | 2008-07-16 12:25:57 -0400 (Wed, 16 Jul 2008) | 2 lines
3 | Changed paths:
4 | M /trunk/LibBabble-Spell-3.0/lib.xml
5 | A /trunk/LibBabble-Spell-3.0/ruRU.lua
6 |
7 | LibBabble-Spell-3.0
8 | - added ruRU locale
9 | ------------------------------------------------------------------------
10 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0-SharedMediaWidgets/widget.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Lua sources
2 | luac.out
3 |
4 | # luarocks build files
5 | *.src.rock
6 | *.zip
7 | *.tar.gz
8 |
9 | # Object files
10 | *.o
11 | *.os
12 | *.ko
13 | *.obj
14 | *.elf
15 |
16 | # Precompiled Headers
17 | *.gch
18 | *.pch
19 |
20 | # Libraries
21 | *.lib
22 | *.a
23 | *.la
24 | *.lo
25 | *.def
26 | *.exp
27 |
28 | # Shared objects (inc. Windows DLLs)
29 | *.dll
30 | *.so
31 | *.so.*
32 | *.dylib
33 |
34 | # Executables
35 | *.exe
36 | *.out
37 | *.app
38 | *.i*86
39 | *.x86_64
40 | *.hex
41 |
42 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/lib/embeds.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceConfig-3.0/AceConfig-3.0.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/README.md:
--------------------------------------------------------------------------------
1 | # Ace3v
2 | Vanilla WoW AddOn Library - Ace3
3 |
4 | The goal of this project is to bring the Ace3 into vanilla wow. The author of the original Ace3 library is the Ace3 Development team.
5 |
6 | Project current situation:
7 |
8 | * All basic libraries are recoded so that they can be used in vanilla WOW
9 |
10 | * Most of the AceGUI library are recoded, need furthur tests
11 |
12 | * Added an additional lib AceCursor which is still under development, the purpose of this library is to implement the function GetCursorInfo of retail WoW
13 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibBabble-Spell-3.0/LibBabble-Spell-3.0.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 20300
2 | ## Title: Lib: Babble-Spell-3.0
3 | ## Notes: A library to help with localization of Spells. DEPRECATED: DO NOT BUMP .TOC
4 | ## Notes-deDE: BabbleLib ist eine Bibliothek, die bei der Lokalisierung helfen soll.
5 | ## Notes-esES: Una biblioteca para ayudar con las localizaciones.
6 | ## Notes-frFR: Une bibliothèque d'aide à la localisation des sorts
7 | ## Author: ckknight
8 | ## X-eMail: ckknight@gmail.com
9 | ## X-Category: Library
10 | ## X-License: MIT
11 |
12 | LibStub\LibStub.lua
13 | lib.xml
14 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibBabble-Spell-3.0/lib.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/embeds.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibBabble-Spell-3.0/Cleanup.lua:
--------------------------------------------------------------------------------
1 | local MAJOR_VERSION = "LibBabble-Spell-3.0"
2 | local MINOR_VERSION = tonumber(string.sub("$Revision: 61661 $", 12, -3)) or 0
3 | local _G = getfenv()
4 |
5 | if MINOR_VERSION > _G.LibBabble_Spell_3_0_MINOR then
6 | _G.LibBabble_Spell_3_0_MINOR = MINOR_VERSION
7 | end
8 |
9 | local lib, oldMinor = LibStub("LibBabble-3.0"):New(MAJOR_VERSION, _G.LibBabble_Spell_3_0_MINOR)
10 | if not lib then
11 | _G.LibBabble_Spell_3_0_funcs = nil
12 | _G.LibBabble_Spell_3_0_MINOR = nil
13 | return
14 | end
15 |
16 | for _,v in ipairs(_G.LibBabble_Spell_3_0_funcs) do
17 | v(lib)
18 | end
19 |
20 | _G.LibBabble_Spell_3_0_funcs = nil
21 | _G.LibBabble_Spell_3_0_MINOR = nil
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/FuBar_KNPLocale-ruRU.lua:
--------------------------------------------------------------------------------
1 | local L = AceLibrary("AceLocale-2.2"):new("FuBar_AtlasFu")
2 |
3 | L:RegisterTranslations("ruRU", function() return {
4 | TOOLTIP_NAME = "Atlas Fu",
5 | TOOLTIP_HINT1 = "\n|cffeda55fLeft-Click|r откроет Atlas.",
6 | TOOLTIP_HINT2 = "\n|cffeda55fAlt Left-Click|r откроет настройки.",
7 | TOOLTIP_HINT3 = "\n|cffeda55fMiddle-Click|r откроет настройки.",
8 | TOOLTIP_NOTE = "Для доступа к Altas и его настройкам.",
9 | TOOLTIP_NOTE2 = "\n|cffeda55fЗаметка:|r Когда AtlasFu включен,\n Кнопка Atlas у миникарты скрыта.",
10 |
11 | ["Atlas"] = "Atlas",
12 | ["Open Atlas"] = "Открыть Atlas",
13 | ["Options"] = "Настройки" ,
14 | ["Open Atlas Optons"] = "Открыть настройки Atlas",
15 |
16 | } end)
17 |
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/FuBar_KuiNameplates.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 11200
2 | ## Title: FuBar - |cffffffffKui Nameplates|r|cff00ff00Fu|r
3 | ## Notes: Adds an KNP button to FuBar.
4 | ## Version 1.2
5 | ## Dependencies: Kui_Nameplates
6 | ## Author: laytya
7 | ## SavedVariables: FuBar_KuiNameplatesDB
8 | ## X-Embeds: FuBarPlugin-2.0, Tablet-2.0, AceLocale-2.2, AceDB-2.0
9 | ## X-Category: Map
10 |
11 | Libs\AceLibrary\AceLibrary.lua
12 | Libs\AceOO-2.0\AceOO-2.0.lua
13 | Libs\AceDB-2.0\AceDB-2.0.lua
14 | Libs\AceEvent-2.0\AceEvent-2.0.lua
15 | Libs\AceLocale-2.2\AceLocale-2.2.lua
16 | Libs\Dewdrop-2.0\Dewdrop-2.0.lua
17 | Libs\Tablet-2.0\Tablet-2.0.lua
18 | Libs\FuBarPlugin-2.0\FuBarPlugin-2.0.lua
19 |
20 | FuBar_KNPLocale-enUS.lua
21 | FuBar_KNPLocale-ruRU.lua
22 | FuBar_KuiNameplates.lua
23 |
24 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/embeds.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/Ace3.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 11200
2 |
3 | ## Title: Lib: Ace3
4 | ## Notes: AddOn development framework
5 | ## Author: Ace3 Development Team
6 | ## X-Website: http://www.wowace.com
7 | ## X-Category: Library
8 | ## X-License: Limited BSD
9 |
10 | LibStub\LibStub.lua
11 | CallbackHandler-1.0\CallbackHandler-1.0.xml
12 |
13 | AceCore-3.0\AceCore-3.0.xml
14 | AceAddon-3.0\AceAddon-3.0.xml
15 | AceEvent-3.0\AceEvent-3.0.xml
16 | AceTimer-3.0\AceTimer-3.0.xml
17 | AceBucket-3.0\AceBucket-3.0.xml
18 | AceHook-3.0\AceHook-3.0.xml
19 | AceDB-3.0\AceDB-3.0.xml
20 | AceDBOptions-3.0\AceDBOptions-3.0.xml
21 | AceLocale-3.0\AceLocale-3.0.xml
22 | AceLocale-3.1\AceLocale-3.1.xml
23 | AceConsole-3.0\AceConsole-3.0.xml
24 | AceCursor-3.0\AceCursor-3.0.xml
25 | AceGUI-3.0\AceGUI-3.0.xml
26 | AceGUI-3.0\widgets\widgets.xml
27 | AceConfig-3.0\AceConfig-3.0.xml
28 | AceComm-3.0\AceComm-3.0.xml
29 | AceTab-3.0\AceTab-3.0.xml
30 | AceSerializer-3.0\AceSerializer-3.0.xml
31 |
32 | Ace3.lua
33 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/ParserLib/FixGlobalString.lua:
--------------------------------------------------------------------------------
1 | -- Add a function to fix some global strings.
2 | if GetLocale() == "koKR" then
3 | function FixGlobalString(pName, str)
4 | -- wrong global strings
5 | -- "%1$s|1이;가; %3$s에게 %2$s|1을;를; 사용했습니다." <- "%s|1이;가; %3$s에게 %2$s|1을;를; 사용했습니다."
6 | if (pName == "OPEN_LOCK_OTHER")
7 | or (pName == "SIMPLEPERFORMOTHEROTHER")
8 | or (pName == "SPELLPERFORMGOOTHERTARGETTED")
9 | or (pName == "PERIODICAURADAMAGEOTHEROTHER")
10 | or (pName == "PERIODICAURADAMAGESELFOTHER")
11 | or (pName == "SIMPLECASTOTHEROTHER")
12 | or (pName == "SIMPLECASTOTHERSELF")
13 | or (pName == "SIMPLEPERFORMOTHERSELF")
14 | or (pName == "SPELLDURABILITYDAMAGEALLOTHERSELF")
15 | or (pName == "SPELLDURABILITYDAMAGEOTHERSELF")
16 | or (pName == "SPELLMISSOTHEROTHER") then
17 | str = string.gsub(str, "%%s", "%%1%$s"); -- by creep7
18 | elseif (pName == "COMBATLOG_HONORGAIN") then
19 | str = "%1$s|1이;가; 죽었습니다. 계급: %2$s (예상 명예 점수: %3$d)"; -- by creep7
20 | end
21 |
22 | --problematic strings
23 | -- %s의
24 | return string.gsub(str, "(%%%d?$?s)(의)", "%1% %2") -- by mundi4
25 | end
26 | else
27 | function FixGlobalString(pName, str)
28 | --problematic strings
29 | -- %s's
30 | return str
31 | end
32 | end
33 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/lib/ParserLib/FixGlobalString.lua:
--------------------------------------------------------------------------------
1 | -- Add a function to fix some global strings.
2 | if GetLocale() == "koKR" then
3 | function FixGlobalString(pName, str)
4 | -- wrong global strings
5 | -- "%1$s|1이;가; %3$s에게 %2$s|1을;를; 사용했습니다." <- "%s|1이;가; %3$s에게 %2$s|1을;를; 사용했습니다."
6 | if (pName == "OPEN_LOCK_OTHER")
7 | or (pName == "SIMPLEPERFORMOTHEROTHER")
8 | or (pName == "SPELLPERFORMGOOTHERTARGETTED")
9 | or (pName == "PERIODICAURADAMAGEOTHEROTHER")
10 | or (pName == "PERIODICAURADAMAGESELFOTHER")
11 | or (pName == "SIMPLECASTOTHEROTHER")
12 | or (pName == "SIMPLECASTOTHERSELF")
13 | or (pName == "SIMPLEPERFORMOTHERSELF")
14 | or (pName == "SPELLDURABILITYDAMAGEALLOTHERSELF")
15 | or (pName == "SPELLDURABILITYDAMAGEOTHERSELF")
16 | or (pName == "SPELLMISSOTHEROTHER") then
17 | str = string.gsub(str, "%%s", "%%1%$s"); -- by creep7
18 | elseif (pName == "COMBATLOG_HONORGAIN") then
19 | str = "%1$s|1이;가; 죽었습니다. 계급: %2$s (예상 명예 점수: %3$d)"; -- by creep7
20 | end
21 |
22 | --problematic strings
23 | -- %s의
24 | return string.gsub(str, "(%%%d?$?s)(의)", "%1% %2") -- by mundi4
25 | end
26 | else
27 | function FixGlobalString(pName, str)
28 | --problematic strings
29 | -- %s's
30 | return str
31 | end
32 | end
33 |
--------------------------------------------------------------------------------
/Kui_Nameplates/Kui_Nameplates.toc:
--------------------------------------------------------------------------------
1 | ## Interface: 11200
2 | ## Author: Kesava, ported by laytya
3 | ## Title: Kui |cff9966ffNameplates|r
4 | ## Version: beta0.9
5 | ## Notes: Prettier, lightweight, configurable nameplates.
6 | ## SavedVariables: KuiNameplatesGDB
7 |
8 |
9 | lib\LibStub\LibStub.lua
10 | lib\CallbackHandler-1.0\CallbackHandler-1.0.lua
11 |
12 | lib\Kui\Kui.lua
13 | lib\Ace3\AceCore-3.0\AceCore-3.0.lua
14 | lib\Ace3\AceAddon-3.0\AceAddon-3.0.lua
15 | lib\Ace3\AceEvent-3.0\AceEvent-3.0.lua
16 | lib\Ace3\AceHook-3.0\AceHook-3.0.lua
17 | lib\Ace3\AceTimer-3.0\AceTimer-3.0.xml
18 | lib\Ace3\AceConsole-3.0\AceConsole-3.0.lua
19 | lib\Ace3\AceDB-3.0\AceDB-3.0.lua
20 | lib\Ace3\AceDBOptions-3.0\AceDBOptions-3.0.lua
21 | lib\Ace3\AceGUI-3.0\AceGUI-3.0.xml
22 | lib\Ace3\AceConfig-3.0\AceConfig-3.0.xml
23 | lib\Ace3\AceTimer-3.0\AceTimer-3.0.lua
24 | lib\LibSharedMedia-3.0\LibSharedMedia-3.0.lua
25 | lib\Ace3\AceGUI-3.0-SharedMediaWidgets\widget.xml
26 | lib\Ace3\AceGUI-3.0\widgets\widgets.xml
27 | lib\LibBabble-Spell-3.0\lib.xml
28 | lib\ParserLib\ParserLib.lua
29 | lib\UnitCasting-1.1\lib.xml
30 |
31 | core.lua
32 | config.lua
33 | create.lua
34 | layout.lua
35 |
36 | tankmode.lua
37 | castbar.lua
38 | castwarnings.lua
39 | combopoints.lua
40 |
41 | critters.lua
42 | custom.lua
43 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/widgets.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/Kui_Media/textures.lua:
--------------------------------------------------------------------------------
1 | local media = LibStub("LibSharedMedia-3.0")
2 | for i = 1, 25 do
3 | media:Register("statusbar", "pfUI-"..string.char(64+i), "Interface\\AddOns\\Kui_Media\\t\\pfui\\pfUI-"..string.char(64+i))
4 | end
5 |
6 | media:Register("statusbar", "banto", "Interface\\Addons\\Kui_Media\\t\\chrono\\banto")
7 | media:Register("statusbar", "smooth", "Interface\\Addons\\Kui_Media\\t\\chrono\\smooth")
8 | media:Register("statusbar", "perl", "Interface\\Addons\\Kui_Media\\t\\chrono\\perl")
9 | media:Register("statusbar", "glaze", "Interface\\Addons\\Kui_Media\\t\\chrono\\glaze")
10 | media:Register("statusbar", "cilo", "Interface\\Addons\\Kui_Media\\t\\chrono\\cilo")
11 | media:Register("statusbar", "charcoal", "Interface\\Addons\\Kui_Media\\t\\chrono\\Charcoal")
12 | media:Register("statusbar", "diagonal", "Interface\\Addons\\Kui_Media\\t\\chrono\\Diagonal")
13 | media:Register("statusbar", "fifths", "Interface\\Addons\\Kui_Media\\t\\chrono\\Fifths")
14 | media:Register("statusbar", "smoothv2", "Interface\\Addons\\Kui_Media\\t\\chrono\\Smoothv2")
15 | media:Register("statusbar", "Healbot", "Interface\\Addons\\Kui_Media\\t\\chrono\\Healbot")
16 | media:Register("statusbar", "LiteStep", "Interface\\Addons\\Kui_Media\\t\\chrono\\LiteStep")
17 | media:Register("statusbar", "Rocks", "Interface\\Addons\\Kui_Media\\t\\chrono\\Rocks")
18 | media:Register("statusbar", "Runes", "Interface\\Addons\\Kui_Media\\t\\chrono\\Runes")
19 | media:Register("statusbar", "Xeon", "Interface\\Addons\\Kui_Media\\t\\chrono\\Xeon")
20 |
--------------------------------------------------------------------------------
/Kui_Media/lib/LibStub/LibStub.lua:
--------------------------------------------------------------------------------
1 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
2 | -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
3 | local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
4 | local _G = getfenv()
5 | local strfind, strfmt = string.find, string.format
6 | local LibStub = _G[LIBSTUB_MAJOR]
7 |
8 | if not LibStub or LibStub.minor < LIBSTUB_MINOR then
9 | LibStub = LibStub or { libs = {}, minors = {} }
10 | _G[LIBSTUB_MAJOR] = LibStub
11 | LibStub.minor = LIBSTUB_MINOR
12 |
13 | function LibStub:NewLibrary(major, minor)
14 | assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)")
15 | local _,_,num = strfind(minor, "(%d+)")
16 | minor = assert(tonumber(num), "Minor version must either be a number or contain a number.")
17 |
18 | local oldminor = self.minors[major]
19 | if oldminor and oldminor >= minor then return nil end
20 | self.minors[major], self.libs[major] = minor, self.libs[major] or {}
21 | return self.libs[major], oldminor
22 | end
23 |
24 | function LibStub:GetLibrary(major, silent)
25 | if not self.libs[major] and not silent then
26 | error(strfmt("Cannot find a library instance of %q.", tostring(major)), 2)
27 | end
28 | return self.libs[major], self.minors[major]
29 | end
30 |
31 | function LibStub:IterateLibraries() return pairs(self.libs) end
32 | setmetatable(LibStub, { __call = LibStub.GetLibrary })
33 | end
34 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibStub/LibStub.lua:
--------------------------------------------------------------------------------
1 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
2 | -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
3 | local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
4 | local _G = getfenv()
5 | local strfind, strfmt = string.find, string.format
6 | local LibStub = _G[LIBSTUB_MAJOR]
7 |
8 | if not LibStub or LibStub.minor < LIBSTUB_MINOR then
9 | LibStub = LibStub or { libs = {}, minors = {} }
10 | _G[LIBSTUB_MAJOR] = LibStub
11 | LibStub.minor = LIBSTUB_MINOR
12 |
13 | function LibStub:NewLibrary(major, minor)
14 | assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)")
15 | local _,_,num = strfind(minor, "(%d+)")
16 | minor = assert(tonumber(num), "Minor version must either be a number or contain a number.")
17 |
18 | local oldminor = self.minors[major]
19 | if oldminor and oldminor >= minor then return nil end
20 | self.minors[major], self.libs[major] = minor, self.libs[major] or {}
21 | return self.libs[major], oldminor
22 | end
23 |
24 | function LibStub:GetLibrary(major, silent)
25 | if not self.libs[major] and not silent then
26 | error(strfmt("Cannot find a library instance of %q.", tostring(major)), 2)
27 | end
28 | return self.libs[major], self.minors[major]
29 | end
30 |
31 | function LibStub:IterateLibraries() return pairs(self.libs) end
32 | setmetatable(LibStub, { __call = LibStub.GetLibrary })
33 | end
34 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/LibStub/LibStub.lua:
--------------------------------------------------------------------------------
1 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
2 | -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
3 | local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
4 | local _G = getfenv()
5 | local strfind, strfmt = string.find, string.format
6 | local LibStub = _G[LIBSTUB_MAJOR]
7 |
8 | if not LibStub or LibStub.minor < LIBSTUB_MINOR then
9 | LibStub = LibStub or { libs = {}, minors = {} }
10 | _G[LIBSTUB_MAJOR] = LibStub
11 | LibStub.minor = LIBSTUB_MINOR
12 |
13 | function LibStub:NewLibrary(major, minor)
14 | assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)")
15 | local _,_,num = strfind(minor, "(%d+)")
16 | minor = assert(tonumber(num), "Minor version must either be a number or contain a number.")
17 |
18 | local oldminor = self.minors[major]
19 | if oldminor and oldminor >= minor then return nil end
20 | self.minors[major], self.libs[major] = minor, self.libs[major] or {}
21 | return self.libs[major], oldminor
22 | end
23 |
24 | function LibStub:GetLibrary(major, silent)
25 | if not self.libs[major] and not silent then
26 | error(strfmt("Cannot find a library instance of %q.", tostring(major)), 2)
27 | end
28 | return self.libs[major], self.minors[major]
29 | end
30 |
31 | function LibStub:IterateLibraries() return pairs(self.libs) end
32 | setmetatable(LibStub, { __call = LibStub.GetLibrary })
33 | end
34 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibBabble-Spell-3.0/LibStub/LibStub.lua:
--------------------------------------------------------------------------------
1 | -- LibStub is a simple versioning stub meant for use in Libraries. http://www.wowace.com/wiki/LibStub for more info
2 | -- LibStub is hereby placed in the Public Domain Credits: Kaelten, Cladhaire, ckknight, Mikk, Ammo, Nevcairiel, joshborke
3 | local LIBSTUB_MAJOR, LIBSTUB_MINOR = "LibStub", 2 -- NEVER MAKE THIS AN SVN REVISION! IT NEEDS TO BE USABLE IN ALL REPOS!
4 | local _G = getfenv()
5 | local strfind, strfmt = string.find, string.format
6 | local LibStub = _G[LIBSTUB_MAJOR]
7 |
8 | if not LibStub or LibStub.minor < LIBSTUB_MINOR then
9 | LibStub = LibStub or { libs = {}, minors = {} }
10 | _G[LIBSTUB_MAJOR] = LibStub
11 | LibStub.minor = LIBSTUB_MINOR
12 |
13 | function LibStub:NewLibrary(major, minor)
14 | assert(type(major) == "string", "Bad argument #2 to `NewLibrary' (string expected)")
15 | local _,_,num = strfind(minor, "(%d+)")
16 | minor = assert(tonumber(num), "Minor version must either be a number or contain a number.")
17 |
18 | local oldminor = self.minors[major]
19 | if oldminor and oldminor >= minor then return nil end
20 | self.minors[major], self.libs[major] = minor, self.libs[major] or {}
21 | return self.libs[major], oldminor
22 | end
23 |
24 | function LibStub:GetLibrary(major, silent)
25 | if not self.libs[major] and not silent then
26 | error(strfmt("Cannot find a library instance of %q.", tostring(major)), 2)
27 | end
28 | return self.libs[major], self.minors[major]
29 | end
30 |
31 | function LibStub:IterateLibraries() return pairs(self.libs) end
32 | setmetatable(LibStub, { __call = LibStub.GetLibrary })
33 | end
34 |
--------------------------------------------------------------------------------
/Kui_Nameplates/custom-rename-me.lua:
--------------------------------------------------------------------------------
1 | --[[
2 | -- Kui_Nameplates
3 | -- By Kesava at curse.com
4 | -- All rights reserved
5 |
6 | Rename this file to custom.lua to attach custom code to the addon. Once
7 | renamed, you'll need to completely restart WoW so that it detects the file.
8 |
9 | Some examples can be found at the following URL:
10 | https://github.com/rbtwrrr/Kui_Nameplates-Customs
11 | ]]
12 | local kn = LibStub('AceAddon-3.0'):GetAddon('KuiNameplates')
13 | local mod = kn:NewModule('CustomInjector', 'AceEvent-3.0')
14 |
15 | ---------------------------------------------------------------------- Create --
16 | function mod:PostCreate(msg, frame)
17 | -- Place code to be performed after a frame is created here.
18 | end
19 |
20 | ------------------------------------------------------------------------ Show --
21 | function mod:PostShow(msg, frame)
22 | -- Place code to be performed after a frame is shown here.
23 | end
24 |
25 | ------------------------------------------------------------------------ Hide --
26 | function mod:PostHide(msg, frame)
27 | -- Place code to be performed after a frame is hidden here.
28 | end
29 |
30 | ---------------------------------------------------------------------- Target --
31 | function mod:PostTarget(msg, frame)
32 | -- Place code to be performed when a frame becomes the player's target here.
33 | end
34 |
35 | -------------------------------------------------------------------- Register --
36 | mod:RegisterMessage('KuiNameplates_PostCreate', 'PostCreate')
37 | mod:RegisterMessage('KuiNameplates_PostShow', 'PostShow')
38 | mod:RegisterMessage('KuiNameplates_PostHide', 'PostHide')
39 | mod:RegisterMessage('KuiNameplates_PostTarget', 'PostTarget')
40 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2007, Ace3 Development Team
2 |
3 | All rights reserved.
4 |
5 | Redistribution and use in source and binary forms, with or without
6 | modification, are permitted provided that the following conditions are met:
7 |
8 | * Redistributions of source code must retain the above copyright notice,
9 | this list of conditions and the following disclaimer.
10 | * Redistributions in binary form must reproduce the above copyright notice,
11 | this list of conditions and the following disclaimer in the documentation
12 | and/or other materials provided with the distribution.
13 | * Redistribution of a stand alone version is strictly prohibited without
14 | prior written authorization from the Lead of the Ace3 Development Team.
15 | * Neither the name of the Ace3 Development Team nor the names of its contributors
16 | may be used to endorse or promote products derived from this software without
17 | specific prior written permission.
18 |
19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
27 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIContainer-SimpleGroup.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | SimpleGroup Container
3 | Simple container widget that just groups widgets.
4 | -------------------------------------------------------------------------------]]
5 | local Type, Version = "SimpleGroup", 21
6 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
7 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
8 |
9 | -- Lua APIs
10 | local pairs = pairs
11 |
12 | -- WoW APIs
13 | local CreateFrame, UIParent = CreateFrame, UIParent
14 |
15 |
16 | --[[-----------------------------------------------------------------------------
17 | Methods
18 | -------------------------------------------------------------------------------]]
19 | local methods = {
20 | ["OnAcquire"] = function(self)
21 | self:SetWidth(300)
22 | self:SetHeight(100)
23 | end,
24 |
25 | -- ["OnRelease"] = nil,
26 |
27 | ["LayoutFinished"] = function(self, width, height)
28 | if self.noAutoHeight then return end
29 | self:SetHeight(height or 0)
30 | end,
31 |
32 | ["OnWidthSet"] = function(self, width)
33 | local content = self.content
34 | content:SetWidth(width)
35 | content.width = width
36 | end,
37 |
38 | ["OnHeightSet"] = function(self, height)
39 | local content = self.content
40 | content:SetHeight(height)
41 | content.height = height
42 | end
43 | }
44 |
45 | --[[-----------------------------------------------------------------------------
46 | Constructor
47 | -------------------------------------------------------------------------------]]
48 | local function Constructor()
49 | local frame = CreateFrame("Frame", nil, UIParent)
50 | frame:SetFrameStrata("FULLSCREEN_DIALOG")
51 |
52 | --Container Support
53 | local content = CreateFrame("Frame", nil, frame)
54 | content:SetPoint("TOPLEFT",0,0)
55 | content:SetPoint("BOTTOMRIGHT",0,0)
56 |
57 | local widget = {
58 | frame = frame,
59 | content = content,
60 | type = Type
61 | }
62 | for method, func in pairs(methods) do
63 | widget[method] = func
64 | end
65 |
66 | return AceGUI:RegisterAsContainer(widget)
67 | end
68 |
69 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
70 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIWidget-Heading.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | Heading Widget
3 | -------------------------------------------------------------------------------]]
4 | local Type, Version = "Heading", 20
5 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
6 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
7 |
8 | -- Lua APIs
9 | local pairs = pairs
10 |
11 | -- WoW APIs
12 | local CreateFrame, UIParent = CreateFrame, UIParent
13 |
14 | --[[-----------------------------------------------------------------------------
15 | Methods
16 | -------------------------------------------------------------------------------]]
17 | local methods = {
18 | ["OnAcquire"] = function(self)
19 | self:SetText()
20 | self:SetFullWidth()
21 | self:SetHeight(18)
22 | end,
23 |
24 | -- ["OnRelease"] = nil,
25 |
26 | ["SetText"] = function(self, text)
27 | self.label:SetText(text or "")
28 | if text and text ~= "" then
29 | self.left:SetPoint("RIGHT", self.label, "LEFT", -5, 0)
30 | self.right:Show()
31 | else
32 | self.left:SetPoint("RIGHT", -3, 0)
33 | self.right:Hide()
34 | end
35 | end
36 | }
37 |
38 | --[[-----------------------------------------------------------------------------
39 | Constructor
40 | -------------------------------------------------------------------------------]]
41 | local function Constructor()
42 | local frame = CreateFrame("Frame", nil, UIParent)
43 | frame:Hide()
44 |
45 | local label = frame:CreateFontString(nil, "BACKGROUND", "GameFontNormal")
46 | label:SetPoint("TOP",0,0)
47 | label:SetPoint("BOTTOM",0,0)
48 | label:SetJustifyH("CENTER")
49 |
50 | local left = frame:CreateTexture(nil, "BACKGROUND")
51 | left:SetHeight(8)
52 | left:SetPoint("LEFT", 3, 0)
53 | left:SetPoint("RIGHT", label, "LEFT", -5, 0)
54 | left:SetTexture("Interface\\Tooltips\\UI-Tooltip-Border")
55 | left:SetTexCoord(0.81, 0.94, 0.5, 1)
56 |
57 | local right = frame:CreateTexture(nil, "BACKGROUND")
58 | right:SetHeight(8)
59 | right:SetPoint("RIGHT", -3, 0)
60 | right:SetPoint("LEFT", label, "RIGHT", 5, 0)
61 | right:SetTexture("Interface\\Tooltips\\UI-Tooltip-Border")
62 | right:SetTexCoord(0.81, 0.94, 0.5, 1)
63 |
64 | local widget = {
65 | label = label,
66 | left = left,
67 | right = right,
68 | frame = frame,
69 | type = Type
70 | }
71 | for method, func in pairs(methods) do
72 | widget[method] = func
73 | end
74 |
75 | return AceGUI:RegisterAsWidget(widget)
76 | end
77 |
78 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
79 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/data.lua:
--------------------------------------------------------------------------------
1 |
2 | KUI_TOTEMS = {
3 | ['Grounding Totem'] = { icon = 'Spell_Nature_GroundingTotem', time = 45, type = 'Earth' },
4 | ['Earthbind Totem'] = { icon = 'Spell_Nature_StrengthOfEarthTotem02', time = 45, type = 'Earth' },
5 | ['Stoneclaw Totem'] = { icon = 'Spell_Nature_StoneClawTotem', time = 15, type = 'Earth',
6 | rank = { 206, 276, 316, 346, 426, 486 }, },
7 | ['Strength of Earth Totem'] = { icon = 'Spell_nature_earthbindtotem', time = 120, type = 'Earth' },
8 | ['Stoneskin Totem'] = { icon = 'Spell_Nature_StoneSkinTotem', time = 120, type = 'Earth' },
9 | ['Tremor Totem'] = { icon = 'Spell_Nature_TremorTotem', time = 120, type = 'Earth' },
10 | --
11 | ['Fire Nova Totem'] = { icon = 'Spell_Fire_SealOfFire', time = 5, type = 'Fire' },
12 | ['Flametongue Totem'] = { icon = 'Spell_Nature_GuardianWard', time = 120, type = 'Fire' },
13 | ['Frost Resistance Totem'] = { icon = 'Spell_FrostResistanceTotem_01', time = 120, type = 'Fire' },
14 | ['Magma Totem'] = { icon = 'Spell_Fire_SelfDestruct', time = 20, type = 'Fire' },
15 | ['Searing Totem'] = { icon = 'Spell_Fire_SearingTotem', time = 55, type = 'Fire',
16 | rank = { 30, 35, 40, 45, 50, 55 }, },
17 | --
18 | ['Grace of Air Totem'] = { icon = 'Spell_Nature_InvisibilityTotem', time = 120, type = 'Air' },
19 | ['Nature Resistance Totem'] = { icon = 'Spell_Nature_NatureResistanceTotem', time = 120, type = 'Air' },
20 | ['Sentry Totem'] = { icon = 'Spell_Nature_RemoveCurse', time = 300, type = 'Air' },
21 | ['Tranquil Air Totem'] = { icon = 'Spell_Nature_Brilliance', time = 120, type = 'Air' },
22 | ['Windfury Totem'] = { icon = 'Spell_Nature_Windfury', time = 120, type = 'Air' },
23 | ['Windwall Totem'] = { icon = 'Spell_Nature_EarthBind', time = 120, type = 'Air' },
24 | --
25 | ['Disease Cleansing Totem'] = { icon = 'Spell_Nature_DiseaseCleansingTotem', time = 120, type = 'Water' },
26 | ['Fire Resistance Totem'] = { icon = 'Spell_FireResistanceTotem_01', time = 120, type = 'Water' },
27 | ['Healing Stream Totem'] = { icon = 'INV_Spear_04', time = 60, type = 'Water' },
28 | ['Mana Spring Totem'] = { icon = 'Spell_Nature_ManaRegenTotem', time = 60, type = 'Water' },
29 | ['Mana Tide Totem'] = { icon = 'Spell_Frost_SummonWaterElemental', time = 12, type = 'Water' },
30 | ['Poison Cleansing Totem'] = { icon = 'Spell_Nature_PoisonCleansingTotem', time = 120, type = 'Water' },
31 | ['Ancient Mana Spring Totemw'] = { icon = 'INV_Wand_01', time = 24, type = 'Water' }
32 | }
33 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceConfig-3.0/AceConfig-3.0.lua:
--------------------------------------------------------------------------------
1 | --- AceConfig-3.0 wrapper library.
2 | -- Provides an API to register an options table with the config registry,
3 | -- as well as associate it with a slash command.
4 | -- @class file
5 | -- @name AceConfig-3.0
6 | -- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $
7 |
8 | --[[
9 | AceConfig-3.0
10 |
11 | Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole.
12 |
13 | ]]
14 |
15 | local MAJOR, MINOR = "AceConfig-3.0", 2
16 | local AceConfig = LibStub:NewLibrary(MAJOR, MINOR)
17 |
18 | if not AceConfig then return end
19 |
20 | AceConfig.embeds = AceConfig.embeds or {}
21 |
22 | local cfgreg = LibStub("AceConfigRegistry-3.0")
23 | local cfgcmd = LibStub("AceConfigCmd-3.0")
24 | --TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true)
25 | --TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true)
26 |
27 | -- Lua APIs
28 | local pcall, error, type, pairs = pcall, error, type, pairs
29 |
30 | -- -------------------------------------------------------------------
31 | -- :RegisterOptionsTable(appName, options, slashcmd, persist)
32 | --
33 | -- - appName - (string) application name
34 | -- - options - table or function ref, see AceConfigRegistry
35 | -- - slashcmd - slash command (string) or table with commands, or nil to NOT create a slash command
36 |
37 | --- Register a option table with the AceConfig registry.
38 | -- You can supply a slash command (or a table of slash commands) to register with AceConfigCmd directly.
39 | -- @paramsig appName, options [, slashcmd]
40 | -- @param appName The application name for the config table.
41 | -- @param options The option table (or a function to generate one on demand). http://www.wowace.com/addons/ace3/pages/ace-config-3-0-options-tables/
42 | -- @param slashcmd A slash command to register for the option table, or a table of slash commands.
43 | -- @usage
44 | -- local AceConfig = LibStub("AceConfig-3.0")
45 | -- AceConfig:RegisterOptionsTable("MyAddon", myOptions, {"/myslash", "/my"})
46 | function AceConfig:RegisterOptionsTable(appName, options, slashcmd)
47 | if self == AceConfig then
48 | error([[Usage: RegisterOptionsTable(appName, options[, slashcmd]): 'self' - use your own 'self']], 2)
49 | end
50 | local ok,msg = pcall(cfgreg.RegisterOptionsTable, self, appName, options)
51 | if not ok then error(msg, 2) end
52 |
53 | if slashcmd then
54 | if type(slashcmd) == "table" then
55 | for _,cmd in pairs(slashcmd) do
56 | cfgcmd.CreateChatCommand(self, cmd, appName)
57 | end
58 | else
59 | cfgcmd.CreateChatCommand(self, slashcmd, appName)
60 | end
61 | end
62 | end
63 |
64 | function AceConfig:Embed(target)
65 | target["RegisterOptionsTable"] = self["RegisterOptionsTable"]
66 | end
67 |
68 | for addon in pairs(AceConfig.embeds) do
69 | AceConfig:Embed(addon)
70 | end
--------------------------------------------------------------------------------
/FuBar_KuiNameplates/FuBar_KuiNameplates.lua:
--------------------------------------------------------------------------------
1 | -- FuBar_Kui-Nameplates by laytya
2 | ------------------------------------------------------------
3 | KNPFu = AceLibrary("AceAddon-2.0"):new("FuBarPlugin-2.0", "AceDB-2.0")
4 | local KNPFu = KNPFu
5 |
6 | --Fubar plugin settings
7 | KNPFu.version = "1.0"
8 | KNPFu.date = "29/06/2018"
9 | KNPFu.hasIcon = "Interface\\AddOns\\FuBar_KuiNameplates\\icon"
10 | KNPFu.canHideText = true
11 | KNPFu.hasNoColor = true
12 | KNPFu.clickableTooltip = false
13 | KNPFu.cannotDetachTooltip = true
14 | KNPFu.hideWithoutStandby = false
15 | KNPFu.profileCode = true
16 | KNPFu.overrideMenu = true
17 |
18 | KNPFu.defaultPosition = "RIGHT";
19 | KNPFu.defaultMinimapPosition = 235;
20 |
21 | -- localization Lib
22 | local L = AceLibrary("AceLocale-2.2"):new("FuBar_Kui-Nameplates");
23 |
24 | -- tool tip Lib
25 | local tablet = AceLibrary("Tablet-2.0")
26 | local dewdrop = AceLibrary("Dewdrop-2.0")
27 | local AceConfigDialog = LibStub('AceConfigDialog-3.0')
28 |
29 |
30 | -- Menu Items
31 |
32 | function KNPFu:OnMenuRequest(level,value)
33 | if level == 1 then
34 | dewdrop:AddLine(
35 | 'text', L["Kui-Nameplates"],
36 | -- 'secure', v.secure,
37 | 'icon', KNPFu.hasIcon,
38 | 'desc', L["Open Kui-Nameplates Options"],
39 | 'func', (function()
40 | --[[if AceConfigDialog.OpenFrames['kuinameplates'] ~= nil then
41 | AceConfigDialog:Close('kuinameplates')
42 | else
43 | AceConfigDialog:Open('kuinameplates')
44 | end ]]
45 | if AddonConfigFrame then
46 | AddonConfigFrame:Hide()
47 | else
48 | InterfaceOptionsFrame_OpenToCategory("KuiNameplates", "Profiles")
49 | InterfaceOptionsFrame_OpenToCategory("KuiNameplates")
50 | end
51 | end),
52 |
53 | 'disabled', false,
54 | 'closeWhenClicked', true
55 | )
56 |
57 | dewdrop:AddLine()
58 | dewdrop:AddLine(
59 | 'text', "FuBar Options",
60 | 'hasArrow', true,
61 | 'value', "fubar"
62 | )
63 |
64 |
65 | elseif level > 1 and (value == "fubar" or value == "position") then
66 | level = value == "position" and 2 or level
67 | self:AddImpliedMenuOptions(level )
68 | end
69 | end
70 |
71 |
72 | function KNPFu:OnInitialize()
73 | -- Activate menu options to hide icon/text by activating "AceDB-2.0" DB
74 | self:RegisterDB("FuBar_KuiNameplatesDB")
75 | end
76 |
77 | function KNPFu:OnTextUpdate()
78 | self:SetText(L["Kui-Nameplates"])
79 | end
80 |
81 |
82 | -- keep self updated when activated?
83 | function KNPFu:OnEnable()
84 | self:Update();
85 | end
86 |
87 | -- tool tip
88 | function KNPFu:OnTooltipUpdate()
89 | local cat = tablet:AddCategory('columns', 1)
90 | cat:AddLine(
91 | 'text', L["TOOLTIP_NOTE"],
92 | 'size', 12
93 | )
94 | tablet:SetTitle(L["TOOLTIP_NAME"])
95 | tablet:SetHint(L["TOOLTIP_HINT1"])
96 | end
97 |
98 | -- when Clicked do this
99 | function KNPFu:OnClick()
100 | --[[if AceConfigDialog.OpenFrames[kuinameplates] ~= nil then
101 | AceConfigDialog:Close('kuinameplates')
102 | else
103 | AceConfigDialog:Open('kuinameplates')
104 | end]]
105 | if AddonConfigFrame then
106 | AddonConfigFrame:Hide()
107 | else
108 | InterfaceOptionsFrame_OpenToCategory("KuiNameplates", "Profiles")
109 | InterfaceOptionsFrame_OpenToCategory("KuiNameplates")
110 | end
111 | end
112 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIWidget-Button.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | Button Widget
3 | Graphical Button.
4 | -------------------------------------------------------------------------------]]
5 | local Type, Version = "Button", 23
6 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
7 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
8 |
9 | local AceCore = LibStub("AceCore-3.0")
10 |
11 | -- Lua APIs
12 | local pairs = pairs
13 |
14 | -- WoW APIs
15 | local _G = AceCore._G
16 | local PlaySound, CreateFrame, UIParent = PlaySound, CreateFrame, UIParent
17 |
18 | --[[-----------------------------------------------------------------------------
19 | Scripts
20 | -------------------------------------------------------------------------------]]
21 | -- arg1 is the button for OnClick event
22 | local function Button_OnClick()
23 | AceGUI:ClearFocus()
24 | PlaySound("igMainMenuOption")
25 | this.obj:Fire("OnClick", 1, arg1)
26 | end
27 |
28 | local function Control_OnEnter()
29 | this.obj:Fire("OnEnter")
30 | end
31 |
32 | local function Control_OnLeave()
33 | this.obj:Fire("OnLeave")
34 | end
35 |
36 | --[[-----------------------------------------------------------------------------
37 | Methods
38 | -------------------------------------------------------------------------------]]
39 | local methods = {
40 | ["OnAcquire"] = function(self)
41 | -- restore default values
42 | self:SetHeight(24)
43 | self:SetWidth(200)
44 | self:SetDisabled(false)
45 | self:SetAutoWidth(false)
46 | self:SetText()
47 | end,
48 |
49 | -- ["OnRelease"] = nil,
50 |
51 | ["SetText"] = function(self, text)
52 | self.text:SetText(text)
53 | if self.autoWidth then
54 | self:SetWidth(self.text:GetStringWidth() + 30)
55 | end
56 | end,
57 |
58 | ["SetAutoWidth"] = function(self, autoWidth)
59 | self.autoWidth = autoWidth
60 | if self.autoWidth then
61 | self:SetWidth(self.text:GetStringWidth() + 30)
62 | end
63 | end,
64 |
65 | ["SetDisabled"] = function(self, disabled)
66 | self.disabled = disabled
67 | if disabled then
68 | self.frame:Disable()
69 | else
70 | self.frame:Enable()
71 | end
72 | end
73 | }
74 |
75 | --[[-----------------------------------------------------------------------------
76 | Constructor
77 | -------------------------------------------------------------------------------]]
78 | local function Constructor()
79 | local name = "AceGUI30Button" .. AceGUI:GetNextWidgetNum(Type)
80 | local frame = CreateFrame("Button", name, UIParent, "UIPanelButtonTemplate2")
81 | frame:Hide()
82 |
83 | frame:EnableMouse(true)
84 | frame:SetScript("OnClick", Button_OnClick)
85 | frame:SetScript("OnEnter", Control_OnEnter)
86 | frame:SetScript("OnLeave", Control_OnLeave)
87 |
88 | local text = frame:GetFontString()
89 | text:ClearAllPoints()
90 | text:SetPoint("TOPLEFT", 15, -1)
91 | text:SetPoint("BOTTOMRIGHT", -15, 1)
92 | text:SetJustifyV("MIDDLE")
93 |
94 | local widget = {
95 | text = text,
96 | frame = frame,
97 | type = Type
98 | }
99 | for method, func in pairs(methods) do
100 | widget[method] = func
101 | end
102 |
103 | return AceGUI:RegisterAsWidget(widget)
104 | end
105 |
106 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
107 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/Ace3.lua:
--------------------------------------------------------------------------------
1 |
2 | -- This file is only there in standalone Ace3 and provides handy dev tool stuff I guess
3 | -- for now only /rl to reload your UI :)
4 | -- note the complete overkill use of AceAddon and console, ain't it cool?
5 |
6 | -- GLOBALS: next, loadstring, ReloadUI, geterrorhandler
7 | -- GLOBALS: BINDING_HEADER_ACE3, BINDING_NAME_RELOADUI, Ace3, LibStub
8 |
9 | -- BINDINGs labels
10 | BINDING_HEADER_ACE3 = "Ace3"
11 | BINDING_NAME_RELOADUI = "ReloadUI"
12 | --
13 |
14 | local gui = LibStub("AceGUI-3.0")
15 | local reg = LibStub("AceConfigRegistry-3.0")
16 | local dialog = LibStub("AceConfigDialog-3.0")
17 | local AceCore = LibStub("AceCore-3.0")
18 |
19 | Ace3 = LibStub("AceAddon-3.0"):NewAddon("Ace3", "AceConsole-3.0")
20 | local Ace3 = Ace3
21 |
22 | local strfind = string.find
23 | local strtrim = AceCore.strtrim
24 |
25 | local selectedgroup
26 | local frame
27 | local select
28 | local status = {}
29 | local configs = {}
30 |
31 | local function frameOnClose()
32 | gui:Release(frame)
33 | frame = nil
34 | end
35 |
36 | local function RefreshConfigs()
37 | for name in reg:IterateOptionsTables() do
38 | configs[name] = name
39 | end
40 | end
41 |
42 | local function ConfigSelected(widget, event, _, value)
43 | selectedgroup = value
44 | dialog:Open(value, widget)
45 | end
46 |
47 | local old_CloseSpecialWindows
48 |
49 | -- GLOBALS: CloseSpecialWindows, next
50 | function Ace3:Open()
51 | if not old_CloseSpecialWindows then
52 | old_CloseSpecialWindows = CloseSpecialWindows
53 | CloseSpecialWindows = function()
54 | local found = old_CloseSpecialWindows()
55 | if frame then
56 | frame:Hide()
57 | return true
58 | end
59 | return found
60 | end
61 | end
62 | RefreshConfigs()
63 | if next(configs) == nil then
64 | self:Print("No Configs are Registered")
65 | return
66 | end
67 |
68 | if not frame then
69 | frame = gui:Create("Frame")
70 | frame:ReleaseChildren()
71 | frame:SetTitle("Ace3 Options")
72 | frame:SetLayout("FILL")
73 | frame:SetCallback("OnClose", frameOnClose)
74 |
75 | select = gui:Create("DropdownGroup")
76 | select:SetGroupList(configs)
77 | select:SetCallback("OnGroupSelected", ConfigSelected)
78 | frame:AddChild(select)
79 | end
80 | if not selectedgroup then
81 | selectedgroup = next(configs)
82 | end
83 | select:SetGroup(selectedgroup)
84 | frame:Show()
85 | end
86 |
87 | local function RefreshOnUpdate(this)
88 | select:SetGroup(selectedgroup)
89 | this:SetScript("OnUpdate", nil)
90 | end
91 |
92 | function Ace3:ConfigTableChanged(event, appName)
93 | if selectedgroup == appName and frame then
94 | frame.frame:SetScript("OnUpdate", RefreshOnUpdate)
95 | end
96 | end
97 |
98 | reg.RegisterCallback(Ace3, "ConfigTableChange", "ConfigTableChanged")
99 |
100 | function Ace3:PrintCmd(input)
101 | local _,_,input = strfind(strtrim(input), "^(.-);*$")
102 | local func, err = loadstring("LibStub(\"AceConsole-3.0\"):Print(" .. input .. ")")
103 | if not func then
104 | LibStub("AceConsole-3.0"):Print("Error: " .. err)
105 | else
106 | func()
107 | end
108 | end
109 |
110 | function Ace3:OnInitialize()
111 | self:RegisterChatCommand("ace3", function() self:Open() end)
112 | self:RegisterChatCommand("rl", function() ReloadUI() end)
113 | self:RegisterChatCommand("print", "PrintCmd")
114 | end
115 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIWidget-InteractiveLabel.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | InteractiveLabel Widget
3 | -------------------------------------------------------------------------------]]
4 | local Type, Version = "InteractiveLabel", 20
5 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
6 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
7 |
8 | -- Lua APIs
9 | local pairs = pairs
10 |
11 | -- WoW APIs
12 | local CreateFrame, UIParent = CreateFrame, UIParent
13 |
14 | -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
15 | -- List them here for Mikk's FindGlobals script
16 | -- GLOBALS: GameFontHighlightSmall
17 |
18 | --[[-----------------------------------------------------------------------------
19 | Scripts
20 | -------------------------------------------------------------------------------]]
21 | local function Control_OnEnter()
22 | this.obj:Fire("OnEnter")
23 | end
24 |
25 | local function Control_OnLeave()
26 | this.obj:Fire("OnLeave")
27 | end
28 |
29 | local function Label_OnClick()
30 | this.obj:Fire("OnClick", 1, arg1)
31 | AceGUI:ClearFocus()
32 | end
33 |
34 | --[[-----------------------------------------------------------------------------
35 | Methods
36 | -------------------------------------------------------------------------------]]
37 | local methods = {
38 | ["OnAcquire"] = function(self)
39 | self:LabelOnAcquire()
40 | self:SetHighlight()
41 | self:SetHighlightTexCoord()
42 | self:SetDisabled(false)
43 | end,
44 |
45 | -- ["OnRelease"] = nil,
46 |
47 | ["SetHighlight"] = function(self, a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
48 | self.highlight:SetTexture(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
49 | end,
50 |
51 | ["SetHighlightTexCoord"] = function(self, a1,a2,a3,a4,a5,a6,a7,a8)
52 | if a4 or a8 then
53 | self.highlight:SetTexCoord(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
54 | else
55 | self.highlight:SetTexCoord(0, 1, 0, 1)
56 | end
57 | end,
58 |
59 | ["SetDisabled"] = function(self,disabled)
60 | self.disabled = disabled
61 | if disabled then
62 | self.frame:EnableMouse(false)
63 | self.label:SetTextColor(0.5, 0.5, 0.5)
64 | else
65 | self.frame:EnableMouse(true)
66 | self.label:SetTextColor(1, 1, 1)
67 | end
68 | end
69 | }
70 |
71 | --[[-----------------------------------------------------------------------------
72 | Constructor
73 | -------------------------------------------------------------------------------]]
74 | local function Constructor()
75 | -- create a Label type that we will hijack
76 | local label = AceGUI:Create("Label")
77 |
78 | local frame = label.frame
79 | frame:EnableMouse(true)
80 | frame:SetScript("OnEnter", Control_OnEnter)
81 | frame:SetScript("OnLeave", Control_OnLeave)
82 | frame:SetScript("OnMouseDown", Label_OnClick)
83 |
84 | local highlight = frame:CreateTexture(nil, "HIGHLIGHT")
85 | highlight:SetTexture(nil)
86 | highlight:SetAllPoints()
87 | highlight:SetBlendMode("ADD")
88 |
89 | label.highlight = highlight
90 | label.type = Type
91 | label.LabelOnAcquire = label.OnAcquire
92 | for method, func in pairs(methods) do
93 | label[method] = func
94 | end
95 |
96 | return label
97 | end
98 |
99 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
100 |
101 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIContainer-InlineGroup.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | InlineGroup Container
3 | Simple container widget that creates a visible "box" with an optional title.
4 | -------------------------------------------------------------------------------]]
5 | local Type, Version = "InlineGroup", 21
6 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
7 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
8 |
9 | -- Lua APIs
10 | local pairs = pairs
11 |
12 | -- WoW APIs
13 | local CreateFrame, UIParent = CreateFrame, UIParent
14 |
15 | --[[-----------------------------------------------------------------------------
16 | Methods
17 | -------------------------------------------------------------------------------]]
18 | local methods = {
19 | ["OnAcquire"] = function(self)
20 | self:SetWidth(300)
21 | self:SetHeight(100)
22 | self:SetTitle("")
23 | end,
24 |
25 | -- ["OnRelease"] = nil,
26 |
27 | ["SetTitle"] = function(self,title)
28 | self.titletext:SetText(title)
29 | end,
30 |
31 |
32 | ["LayoutFinished"] = function(self, width, height)
33 | if self.noAutoHeight then return end
34 | self:SetHeight((height or 0) + 40)
35 | end,
36 |
37 | ["OnWidthSet"] = function(self, width)
38 | local content = self.content
39 | local contentwidth = width - 20
40 | if contentwidth < 0 then
41 | contentwidth = 0
42 | end
43 | content:SetWidth(contentwidth)
44 | content.width = contentwidth
45 | end,
46 |
47 | ["OnHeightSet"] = function(self, height)
48 | local content = self.content
49 | local contentheight = height - 20
50 | if contentheight < 0 then
51 | contentheight = 0
52 | end
53 | content:SetHeight(contentheight)
54 | content.height = contentheight
55 | end
56 | }
57 |
58 | --[[-----------------------------------------------------------------------------
59 | Constructor
60 | -------------------------------------------------------------------------------]]
61 | local PaneBackdrop = {
62 | bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
63 | edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
64 | tile = true, tileSize = 16, edgeSize = 16,
65 | insets = { left = 3, right = 3, top = 5, bottom = 3 }
66 | }
67 |
68 | local function Constructor()
69 | local frame = CreateFrame("Frame", nil, UIParent)
70 | frame:SetFrameStrata("FULLSCREEN_DIALOG")
71 |
72 | local titletext = frame:CreateFontString(nil, "OVERLAY", "GameFontNormal")
73 | titletext:SetPoint("TOPLEFT", 14, 0)
74 | titletext:SetPoint("TOPRIGHT", -14, 0)
75 | titletext:SetJustifyH("LEFT")
76 | titletext:SetHeight(18)
77 |
78 | local border = CreateFrame("Frame", nil, frame)
79 | border:SetPoint("TOPLEFT", 0, -17)
80 | border:SetPoint("BOTTOMRIGHT", -1, 3)
81 | border:SetBackdrop(PaneBackdrop)
82 | border:SetBackdropColor(0.1, 0.1, 0.1, 0.5)
83 | border:SetBackdropBorderColor(0.4, 0.4, 0.4)
84 |
85 | --Container Support
86 | local content = CreateFrame("Frame", nil, border)
87 | content:SetPoint("TOPLEFT", 10, -10)
88 | content:SetPoint("BOTTOMRIGHT", -10, 10)
89 |
90 | local widget = {
91 | frame = frame,
92 | content = content,
93 | titletext = titletext,
94 | type = Type
95 | }
96 | for method, func in pairs(methods) do
97 | widget[method] = func
98 | end
99 |
100 | return AceGUI:RegisterAsContainer(widget)
101 | end
102 |
103 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
104 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIContainer-BlizOptionsGroup.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | BlizOptionsGroup Container
3 | Simple container widget for the integration of AceGUI into the Blizzard Interface Options
4 | -------------------------------------------------------------------------------]]
5 | local Type, Version = "BlizOptionsGroup", 22
6 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
7 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
8 |
9 | -- Lua APIs
10 | local pairs = pairs
11 |
12 | -- WoW APIs
13 | local CreateFrame = CreateFrame
14 |
15 | --[[-----------------------------------------------------------------------------
16 | Scripts
17 | -------------------------------------------------------------------------------]]
18 |
19 | local function OnShow(frame)
20 | this.obj:Fire("OnShow")
21 | end
22 |
23 | local function OnHide(frame)
24 | this.obj:Fire("OnHide")
25 | end
26 |
27 | --[[-----------------------------------------------------------------------------
28 | Support functions
29 | -------------------------------------------------------------------------------]]
30 |
31 | local function okay(frame)
32 | frame.obj:Fire("okay")
33 | end
34 |
35 | local function cancel(frame)
36 | frame.obj:Fire("cancel")
37 | end
38 |
39 | local function default(frame)
40 | frame.obj:Fire("default")
41 | end
42 |
43 | local function refresh(frame)
44 | frame.obj:Fire("refresh")
45 | end
46 |
47 | --[[-----------------------------------------------------------------------------
48 | Methods
49 | -------------------------------------------------------------------------------]]
50 |
51 | local methods = {
52 | ["OnAcquire"] = function(self)
53 | self:SetName()
54 | self:SetTitle()
55 | end,
56 |
57 | -- ["OnRelease"] = nil,
58 |
59 | ["OnWidthSet"] = function(self, width)
60 | local content = self.content
61 | local contentwidth = width - 63
62 | if contentwidth < 0 then
63 | contentwidth = 0
64 | end
65 | content:SetWidth(contentwidth)
66 | content.width = contentwidth
67 | end,
68 |
69 | ["OnHeightSet"] = function(self, height)
70 | local content = self.content
71 | local contentheight = height - 26
72 | if contentheight < 0 then
73 | contentheight = 0
74 | end
75 | content:SetHeight(contentheight)
76 | content.height = contentheight
77 | end,
78 |
79 | ["SetName"] = function(self, name, parent)
80 | self.frame.name = name
81 | self.frame.parent = parent
82 | end,
83 |
84 | ["SetTitle"] = function(self, title)
85 | local content = self.content
86 | content:ClearAllPoints()
87 | if not title or title == "" then
88 | content:SetPoint("TOPLEFT", 10, -10)
89 | self.label:SetText("")
90 | else
91 | content:SetPoint("TOPLEFT", 10, -40)
92 | self.label:SetText(title)
93 | end
94 | content:SetPoint("BOTTOMRIGHT", -10, 10)
95 | end
96 | }
97 |
98 | --[[-----------------------------------------------------------------------------
99 | Constructor
100 | -------------------------------------------------------------------------------]]
101 | local function Constructor()
102 | local frame = CreateFrame("Frame")
103 | frame:Hide()
104 |
105 | -- support functions for the Blizzard Interface Options
106 | frame.okay = okay
107 | frame.cancel = cancel
108 | frame.default = default
109 | frame.refresh = refresh
110 |
111 | frame:SetScript("OnHide", OnHide)
112 | frame:SetScript("OnShow", OnShow)
113 |
114 | local label = frame:CreateFontString(nil, "OVERLAY", "GameFontNormalLarge")
115 | label:SetPoint("TOPLEFT", 10, -15)
116 | label:SetPoint("BOTTOMRIGHT", frame, "TOPRIGHT", 10, -45)
117 | label:SetJustifyH("LEFT")
118 | label:SetJustifyV("TOP")
119 |
120 | --Container Support
121 | local content = CreateFrame("Frame", nil, frame)
122 | content:SetPoint("TOPLEFT", 10, -10)
123 | content:SetPoint("BOTTOMRIGHT", -10, 10)
124 |
125 | local widget = {
126 | label = label,
127 | frame = frame,
128 | content = content,
129 | type = Type
130 | }
131 | for method, func in pairs(methods) do
132 | widget[method] = func
133 | end
134 |
135 | return AceGUI:RegisterAsContainer(widget)
136 | end
137 |
138 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
139 |
--------------------------------------------------------------------------------
/Kui_Nameplates/critters.lua:
--------------------------------------------------------------------------------
1 | --[[
2 | -- Kui_Nameplates
3 | -- By Kesava at curse.com
4 | -- All rights reserved
5 |
6 | Rename this file to custom.lua to attach custom code to the addon. Once
7 | renamed, you'll need to completely restart WoW so that it detects the file.
8 |
9 | Some examples can be found at the following URL:
10 | https://github.com/rbtwrrr/Kui_Nameplates-Customs
11 | ]]
12 | local kn = LibStub('AceAddon-3.0'):GetAddon('KuiNameplates')
13 | local mod = kn:NewModule('Critters', 'AceEvent-3.0')
14 |
15 | local critters = {
16 | ['Adder'] = true,
17 | ['Beetle'] = true,
18 | ['Belfry Bat'] = true,
19 | ['Biletoad'] = true,
20 | ['Black Kingsnake'] = true,
21 | ['Black Rat'] = true,
22 | ['Brown Prairie Dog'] = true,
23 | ['Caged Rabbit'] = true,
24 | ['Caged Sheep'] = true,
25 | ['Caged Squirrel'] = true,
26 | ['Caged Toad'] = true,
27 | ['Cat'] = true,
28 | ['Chicken'] = true,
29 | ['Cleo'] = true,
30 | ['Core Rat'] = true,
31 | ['Cow'] = true,
32 | ['Cured Deer'] = true,
33 | ['Cured Gazelle'] = true,
34 | ['Deeprun Rat'] = true,
35 | ['Deer'] = true,
36 | ['Dog'] = true,
37 | ['Effsee'] = true,
38 | ['Enthralled Deeprun Rat'] = true,
39 | ['Fang'] = true,
40 | ['Fawn'] = true,
41 | ['Fire Beetle'] = true,
42 | ['Fluffy'] = true,
43 | ['Frog'] = true,
44 | ['Gazelle'] = true,
45 | ['Hare'] = true,
46 | ['Horse'] = true,
47 | ['Huge Toad'] = true,
48 | ['Infected Deer'] = true,
49 | ['Infected Squirrel'] = true,
50 | ['Jungle Toad'] = true,
51 | ['Krakle\'s Thermometer'] = true,
52 | ['Lady'] = true,
53 | ['Larva'] = true,
54 | ['Lava Crab'] = true,
55 | ['Maggot'] = true,
56 | ['Moccasin'] = true,
57 | ['Mouse'] = true,
58 | ['Mr. Bigglesworth'] = true,
59 | ['Nibbles'] = true,
60 | ['Noarm'] = true,
61 | ['Old Blanchy'] = true,
62 | ['Parrot'] = true,
63 | ['Pig'] = true,
64 | ['Pirate treasure trigger mob'] = true,
65 | ['Plagued Insect'] = true,
66 | ['Plagued Maggot'] = true,
67 | ['Plagued Rat'] = true,
68 | ['Plagueland Termite'] = true,
69 | ['Polymorphed Chicken'] = true,
70 | ['Polymorphed Rat'] = true,
71 | ['Prairie Dog'] = true,
72 | ['Rabbit'] = true,
73 | ['Ram'] = true,
74 | ['Rat'] = true,
75 | ['Dig Rat'] = true,
76 | ['Riding Ram'] = true,
77 | ['Roach'] = true,
78 | ['Salome'] = true,
79 | ['School of Fish'] = true,
80 | ['Scorpion'] = true,
81 | ['Sheep'] = true,
82 | ['Shen\'dralar Wisp'] = true,
83 | ['Sickly Deer'] = true,
84 | ['Sickly Gazelle'] = true,
85 | ['Snake'] = true,
86 | ['Spider'] = true,
87 | ['Spike'] = true,
88 | ['Squirrel'] = true,
89 | ['Swine'] = true,
90 | ['Tainted Cockroach'] = true,
91 | ['Tainted Rat'] = true,
92 | ['Toad'] = true,
93 | ['Transporter Malfunction'] = true,
94 | ['Turtle'] = true,
95 | ['Underfoot'] = true,
96 | ['Voice of Elune'] = true,
97 | ['Waypoint (Only GM can see it)'] = true,
98 | ['Wisp'] = true,
99 | }
100 |
101 | ---------------------------------------------------------------------- Create --
102 | function mod:PostCreate(msg, frame)
103 |
104 | end
105 |
106 | ------------------------------------------------------------------------ Show --
107 |
108 |
109 | function mod:PostShow(msg, frame)
110 | if critters[frame.name.text] and tonumber(frame.level:GetText()) == 1 then
111 | kn:NameOnlyEnable(frame)
112 | return
113 | end
114 | end
115 |
116 | ------------------------------------------------------------------------ Hide --
117 | function mod:PostHide(msg, frame)
118 | -- Place code to be performed after a frame is hidden here.
119 | end
120 |
121 | ---------------------------------------------------------------------- Target --
122 | function mod:PostTarget(msg, frame)
123 | -- Place code to be performed when a frame becomes the player's target here.
124 | end
125 |
126 | -------------------------------------------------------------------- Register --
127 | mod:RegisterMessage('KuiNameplates_PostCreate', 'PostCreate')
128 | mod:RegisterMessage('KuiNameplates_PostShow', 'PostShow')
129 | mod:RegisterMessage('KuiNameplates_PostHide', 'PostHide')
130 | mod:RegisterMessage('KuiNameplates_PostTarget', 'PostTarget')
131 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIWidget-Icon.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | Icon Widget
3 | -------------------------------------------------------------------------------]]
4 | local Type, Version = "Icon", 22
5 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
6 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
7 |
8 | -- Lua APIs
9 | local pairs, print = pairs, print
10 |
11 | -- WoW APIs
12 | local CreateFrame, UIParent = CreateFrame, UIParent
13 |
14 | --[[-----------------------------------------------------------------------------
15 | Scripts
16 | -------------------------------------------------------------------------------]]
17 | local function Control_OnEnter()
18 | this.obj:Fire("OnEnter")
19 | end
20 |
21 | local function Control_OnLeave()
22 | this.obj:Fire("OnLeave")
23 | end
24 |
25 | local function Button_OnClick()
26 | this.obj:Fire("OnClick", 1, arg1)
27 | AceGUI:ClearFocus()
28 | end
29 |
30 | --[[-----------------------------------------------------------------------------
31 | Methods
32 | -------------------------------------------------------------------------------]]
33 | local methods = {
34 | ["OnAcquire"] = function(self)
35 | self:SetHeight(110)
36 | self:SetWidth(110)
37 | self:SetLabel()
38 | self:SetImage(nil)
39 | self:SetImageSize(64, 64)
40 | self:SetDisabled(false)
41 | end,
42 |
43 | -- ["OnRelease"] = nil,
44 |
45 | ["SetLabel"] = function(self, text)
46 | if text and text ~= "" then
47 | self.label:Show()
48 | self.label:SetText(text)
49 | self:SetHeight(self.image:GetHeight() + 25)
50 | else
51 | self.label:Hide()
52 | self:SetHeight(self.image:GetHeight() + 10)
53 | end
54 | end,
55 |
56 | ["SetImage"] = function(self, path, a1,a2,a3,a4,a5,a6,a7,a8)
57 | local image = self.image
58 | image:SetTexture(path)
59 |
60 | if image:GetTexture() then
61 | if a4 or a8 then
62 | image:SetTexCoord(a1,a2,a3,a4,a5,a6,a7,a8)
63 | else
64 | image:SetTexCoord(0, 1, 0, 1)
65 | end
66 | end
67 | end,
68 |
69 | ["SetImageSize"] = function(self, width, height)
70 | self.image:SetWidth(width)
71 | self.image:SetHeight(height)
72 | --self.frame:SetWidth(width + 30)
73 | if self.label:IsShown() then
74 | self:SetHeight(height + 25)
75 | else
76 | self:SetHeight(height + 10)
77 | end
78 | end,
79 |
80 | ["SetDisabled"] = function(self, disabled)
81 | self.disabled = disabled
82 | if disabled then
83 | self.frame:Disable()
84 | self.label:SetTextColor(0.5, 0.5, 0.5)
85 | self.image:SetVertexColor(0.5, 0.5, 0.5, 0.5)
86 | else
87 | self.frame:Enable()
88 | self.label:SetTextColor(1, 1, 1)
89 | self.image:SetVertexColor(1, 1, 1, 1)
90 | end
91 | end
92 | }
93 |
94 | --[[-----------------------------------------------------------------------------
95 | Constructor
96 | -------------------------------------------------------------------------------]]
97 | local function Constructor()
98 | local frame = CreateFrame("Button", nil, UIParent)
99 | frame:Hide()
100 |
101 | frame:EnableMouse(true)
102 | frame:SetScript("OnEnter", Control_OnEnter)
103 | frame:SetScript("OnLeave", Control_OnLeave)
104 | frame:SetScript("OnClick", Button_OnClick)
105 |
106 | local label = frame:CreateFontString(nil, "BACKGROUND", "GameFontHighlight")
107 | label:SetPoint("BOTTOMLEFT",0,0)
108 | label:SetPoint("BOTTOMRIGHT",0,0)
109 | label:SetJustifyH("CENTER")
110 | label:SetJustifyV("TOP")
111 | label:SetHeight(18)
112 |
113 | local image = frame:CreateTexture(nil, "BACKGROUND")
114 | image:SetWidth(64)
115 | image:SetHeight(64)
116 | image:SetPoint("TOP", 0, -5)
117 |
118 | local highlight = frame:CreateTexture(nil, "HIGHLIGHT")
119 | highlight:SetAllPoints(image)
120 | highlight:SetTexture("Interface\\PaperDollInfoFrame\\UI-Character-Tab-Highlight")
121 | highlight:SetTexCoord(0, 1, 0.23, 0.77)
122 | highlight:SetBlendMode("ADD")
123 |
124 | local widget = {
125 | label = label,
126 | image = image,
127 | frame = frame,
128 | type = Type
129 | }
130 | for method, func in pairs(methods) do
131 | widget[method] = func
132 | end
133 |
134 | widget.SetText = function(self,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) print("AceGUI-3.0-Icon: SetText is deprecated! Use SetLabel instead!"); self:SetLabel(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10) end
135 |
136 | return AceGUI:RegisterAsWidget(widget)
137 | end
138 |
139 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
140 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIWidget-Label.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | Label Widget
3 | Displays text and optionally an icon.
4 | -------------------------------------------------------------------------------]]
5 | local Type, Version = "Label", 23
6 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
7 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
8 |
9 | -- Lua APIs
10 | local max, pairs = math.max, pairs
11 |
12 | -- WoW APIs
13 | local CreateFrame, UIParent = CreateFrame, UIParent
14 |
15 | -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
16 | -- List them here for Mikk's FindGlobals script
17 | -- GLOBALS: GameFontHighlightSmall
18 |
19 | --[[-----------------------------------------------------------------------------
20 | Support functions
21 | -------------------------------------------------------------------------------]]
22 |
23 | local function UpdateImageAnchor(self)
24 | if self.resizing then return end
25 | local frame = self.frame
26 | local width = frame.width or frame:GetWidth() or 0
27 | local image = self.image
28 | local label = self.label
29 | local height
30 |
31 | label:ClearAllPoints()
32 | image:ClearAllPoints()
33 |
34 | if self.imageshown then
35 | local imagewidth = image:GetWidth()
36 | if (width - imagewidth) < 200 or (label:GetText() or "") == "" then
37 | -- image goes on top centered when less than 200 width for the text, or if there is no text
38 | image:SetPoint("TOP",0,0)
39 | label:SetPoint("TOP", image, "BOTTOM")
40 | label:SetPoint("LEFT",0,0)
41 | label:SetWidth(width)
42 | height = image:GetHeight() + label:GetHeight()
43 | else
44 | -- image on the left
45 | image:SetPoint("TOPLEFT",0,0)
46 | if image:GetHeight() > label:GetHeight() then
47 | label:SetPoint("LEFT", image, "RIGHT", 4, 0)
48 | else
49 | label:SetPoint("TOPLEFT", image, "TOPRIGHT", 4, 0)
50 | end
51 | label:SetWidth(width - imagewidth - 4)
52 | height = max(image:GetHeight(), label:GetHeight())
53 | end
54 | else
55 | -- no image shown
56 | label:SetPoint("TOPLEFT",0,0)
57 | label:SetWidth(width)
58 | height = label:GetHeight()
59 | end
60 |
61 | self.resizing = true
62 | frame:SetHeight(height)
63 | frame.height = height
64 | self.resizing = nil
65 | end
66 |
67 | --[[-----------------------------------------------------------------------------
68 | Methods
69 | -------------------------------------------------------------------------------]]
70 | local methods = {
71 | ["OnAcquire"] = function(self)
72 | -- set the flag to stop constant size updates
73 | self.resizing = true
74 | -- height is set dynamically by the text and image size
75 | self:SetWidth(200)
76 | self:SetText()
77 | self:SetImage(nil)
78 | self:SetImageSize(16, 16)
79 | self:SetColor()
80 | self:SetFontObject()
81 |
82 | -- reset the flag
83 | self.resizing = nil
84 | -- run the update explicitly
85 | UpdateImageAnchor(self)
86 | end,
87 |
88 | -- ["OnRelease"] = nil,
89 |
90 | ["OnWidthSet"] = function(self, width)
91 | UpdateImageAnchor(self)
92 | end,
93 |
94 | ["SetText"] = function(self, text)
95 | self.label:SetText(text)
96 | UpdateImageAnchor(self)
97 | end,
98 |
99 | ["SetColor"] = function(self, r, g, b)
100 | if not (r and g and b) then
101 | r, g, b = 1, 1, 1
102 | end
103 | self.label:SetVertexColor(r, g, b)
104 | end,
105 |
106 | ["SetImage"] = function(self, path, a1,a2,a3,a4,a5,a6,a7,a8)
107 | local image = self.image
108 | image:SetTexture(path)
109 |
110 | if image:GetTexture() then
111 | self.imageshown = true
112 | if a4 or a8 then
113 | image:SetTexCoord(a1,a2,a3,a4,a5,a6,a7,a8)
114 | else
115 | image:SetTexCoord(0, 1, 0, 1)
116 | end
117 | else
118 | self.imageshown = nil
119 | end
120 | UpdateImageAnchor(self)
121 | end,
122 |
123 | ["SetFont"] = function(self, font, height, flags)
124 | self.label:SetFont(font, height, flags)
125 | end,
126 |
127 | ["SetFontObject"] = function(self, font)
128 | self:SetFont((font or GameFontHighlightSmall):GetFont())
129 | end,
130 |
131 | ["SetImageSize"] = function(self, width, height)
132 | self.image:SetWidth(width)
133 | self.image:SetHeight(height)
134 | UpdateImageAnchor(self)
135 | end,
136 | }
137 |
138 | --[[-----------------------------------------------------------------------------
139 | Constructor
140 | -------------------------------------------------------------------------------]]
141 | local function Constructor()
142 | local frame = CreateFrame("Frame", nil, UIParent)
143 | frame:Hide()
144 |
145 | local label = frame:CreateFontString(nil, "BACKGROUND", "GameFontHighlightSmall")
146 | label:SetJustifyH("LEFT")
147 | label:SetJustifyV("TOP")
148 |
149 | local image = frame:CreateTexture(nil, "BACKGROUND")
150 |
151 | -- create widget
152 | local widget = {
153 | label = label,
154 | image = image,
155 | frame = frame,
156 | type = Type
157 | }
158 | for method, func in pairs(methods) do
159 | widget[method] = func
160 | end
161 |
162 | return AceGUI:RegisterAsWidget(widget)
163 | end
164 |
165 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
166 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIContainer-DropDownGroup.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | DropdownGroup Container
3 | Container controlled by a dropdown on the top.
4 | -------------------------------------------------------------------------------]]
5 | local Type, Version = "DropdownGroup", 21
6 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
7 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
8 |
9 | -- Lua APIs
10 | local assert, pairs, type = assert, pairs, type
11 |
12 | -- WoW APIs
13 | local CreateFrame = CreateFrame
14 |
15 | --[[-----------------------------------------------------------------------------
16 | Scripts
17 | -------------------------------------------------------------------------------]]
18 | local function SelectedGroup(self, event, _, value)
19 | local group = self.parentgroup
20 | local status = group.status or group.localstatus
21 | status.selected = value
22 | self.parentgroup:Fire("OnGroupSelected", 1, value)
23 | end
24 |
25 | --[[-----------------------------------------------------------------------------
26 | Methods
27 | -------------------------------------------------------------------------------]]
28 | local methods = {
29 | ["OnAcquire"] = function(self)
30 | self.dropdown:SetText("")
31 | self:SetDropdownWidth(200)
32 | self:SetTitle("")
33 | end,
34 |
35 | ["OnRelease"] = function(self)
36 | self.dropdown.list = nil
37 | self.status = nil
38 | for k in pairs(self.localstatus) do
39 | self.localstatus[k] = nil
40 | end
41 | end,
42 |
43 | ["SetTitle"] = function(self, title)
44 | self.titletext:SetText(title)
45 | self.dropdown.frame:ClearAllPoints()
46 | if title and title ~= "" then
47 | self.dropdown.frame:SetPoint("TOPRIGHT", -2, 0)
48 | else
49 | self.dropdown.frame:SetPoint("TOPLEFT", -1, 0)
50 | end
51 | end,
52 |
53 | ["SetGroupList"] = function(self,list,order)
54 | self.dropdown:SetList(list,order)
55 | end,
56 |
57 | ["SetStatusTable"] = function(self, status)
58 | assert(type(status) == "table")
59 | self.status = status
60 | end,
61 |
62 | ["SetGroup"] = function(self,group)
63 | self.dropdown:SetValue(group)
64 | local status = self.status or self.localstatus
65 | status.selected = group
66 | self:Fire("OnGroupSelected", 1, group)
67 | end,
68 |
69 | ["OnWidthSet"] = function(self, width)
70 | local content = self.content
71 | local contentwidth = width - 26
72 | if contentwidth < 0 then
73 | contentwidth = 0
74 | end
75 | content:SetWidth(contentwidth)
76 | content.width = contentwidth
77 | end,
78 |
79 | ["OnHeightSet"] = function(self, height)
80 | local content = self.content
81 | local contentheight = height - 63
82 | if contentheight < 0 then
83 | contentheight = 0
84 | end
85 | content:SetHeight(contentheight)
86 | content.height = contentheight
87 | end,
88 |
89 | ["LayoutFinished"] = function(self, width, height)
90 | self:SetHeight((height or 0) + 63)
91 | end,
92 |
93 | ["SetDropdownWidth"] = function(self, width)
94 | self.dropdown:SetWidth(width)
95 | end
96 | }
97 |
98 | --[[-----------------------------------------------------------------------------
99 | Constructor
100 | -------------------------------------------------------------------------------]]
101 | local PaneBackdrop = {
102 | bgFile = "Interface\\ChatFrame\\ChatFrameBackground",
103 | edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
104 | tile = true, tileSize = 16, edgeSize = 16,
105 | insets = { left = 3, right = 3, top = 5, bottom = 3 }
106 | }
107 |
108 | local function Constructor()
109 | local frame = CreateFrame("Frame")
110 | frame:SetHeight(100)
111 | frame:SetWidth(100)
112 | frame:SetFrameStrata("FULLSCREEN_DIALOG")
113 |
114 | local titletext = frame:CreateFontString(nil, "OVERLAY", "GameFontNormal")
115 | titletext:SetPoint("TOPLEFT", 4, -5)
116 | titletext:SetPoint("TOPRIGHT", -4, -5)
117 | titletext:SetJustifyH("LEFT")
118 | titletext:SetHeight(18)
119 |
120 | local dropdown = AceGUI:Create("Dropdown")
121 | dropdown.frame:SetParent(frame)
122 | dropdown.frame:SetFrameLevel(dropdown.frame:GetFrameLevel() + 2)
123 | dropdown:SetCallback("OnValueChanged", SelectedGroup)
124 | dropdown.frame:SetPoint("TOPLEFT", -1, 0)
125 | dropdown.frame:Show()
126 | dropdown:SetLabel("")
127 |
128 | local border = CreateFrame("Frame", nil, frame)
129 | border:SetPoint("TOPLEFT", 0, -26)
130 | border:SetPoint("BOTTOMRIGHT", 0, 3)
131 | border:SetBackdrop(PaneBackdrop)
132 | border:SetBackdropColor(0.1,0.1,0.1,0.5)
133 | border:SetBackdropBorderColor(0.4,0.4,0.4)
134 |
135 | --Container Support
136 | local content = CreateFrame("Frame", nil, border)
137 | content:SetPoint("TOPLEFT", 10, -10)
138 | content:SetPoint("BOTTOMRIGHT", -10, 10)
139 |
140 | local widget = {
141 | frame = frame,
142 | localstatus = {},
143 | titletext = titletext,
144 | dropdown = dropdown,
145 | border = border,
146 | content = content,
147 | type = Type
148 | }
149 | for method, func in pairs(methods) do
150 | widget[method] = func
151 | end
152 | dropdown.parentgroup = widget
153 |
154 | return AceGUI:RegisterAsContainer(widget)
155 | end
156 |
157 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
158 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceEvent-3.0/AceEvent-3.0.lua:
--------------------------------------------------------------------------------
1 | --- AceEvent-3.0 provides event registration and secure dispatching.
2 | -- All dispatching is done using **CallbackHandler-1.0**. AceEvent is a simple wrapper around
3 | -- CallbackHandler, and dispatches all game events or addon message to the registrees.
4 | --
5 | -- **AceEvent-3.0** can be embeded into your addon, either explicitly by calling AceEvent:Embed(MyAddon) or by
6 | -- specifying it as an embeded library in your AceAddon. All functions will be available on your addon object
7 | -- and can be accessed directly, without having to explicitly call AceEvent itself.\\
8 | -- It is recommended to embed AceEvent, otherwise you'll have to specify a custom `self` on all calls you
9 | -- make into AceEvent.
10 | -- @class file
11 | -- @name AceEvent-3.0
12 | -- @release $Id: AceEvent-3.0.lua 975 2010-10-23 11:26:18Z nevcairiel $
13 | local MAJOR, MINOR = "AceEvent-3.0", 3
14 | local AceEvent = LibStub:NewLibrary(MAJOR, MINOR)
15 |
16 | if not AceEvent then return end
17 |
18 | -- Lua APIs
19 | local pairs = pairs
20 |
21 | local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0")
22 |
23 | AceEvent.frame = AceEvent.frame or CreateFrame("Frame", "AceEvent30Frame") -- our event frame
24 | AceEvent.embeds = AceEvent.embeds or {} -- what objects embed this lib
25 |
26 | -- APIs and registry for blizzard events, using CallbackHandler lib
27 | if not AceEvent.events then
28 | AceEvent.events = CallbackHandler:New(AceEvent,
29 | "RegisterEvent", "UnregisterEvent", "UnregisterAllEvents")
30 | end
31 |
32 | function AceEvent.events:OnUsed(target, eventname)
33 | AceEvent.frame:RegisterEvent(eventname)
34 | end
35 |
36 | function AceEvent.events:OnUnused(target, eventname)
37 | AceEvent.frame:UnregisterEvent(eventname)
38 | end
39 |
40 |
41 | -- APIs and registry for IPC messages, using CallbackHandler lib
42 | if not AceEvent.messages then
43 | AceEvent.messages = CallbackHandler:New(AceEvent,
44 | "RegisterMessage", "UnregisterMessage", "UnregisterAllMessages"
45 | )
46 | AceEvent.SendMessage = AceEvent.messages.Fire
47 | end
48 |
49 | --- embedding and embed handling
50 | local mixins = {
51 | "RegisterEvent", "UnregisterEvent",
52 | "RegisterMessage", "UnregisterMessage",
53 | "SendMessage",
54 | "UnregisterAllEvents", "UnregisterAllMessages",
55 | }
56 |
57 | --- Register for a Blizzard Event.
58 | -- The callback will be called with the optional `arg` as the first argument (if supplied), and the event name as the second (or first, if no arg was supplied)
59 | -- Any arguments to the event will be passed on after that.
60 | -- @name AceEvent:RegisterEvent
61 | -- @class function
62 | -- @paramsig event[, callback [, arg]]
63 | -- @param event The event to register for
64 | -- @param callback The callback function to call when the event is triggered (funcref or method, defaults to a method with the event name)
65 | -- @param arg An optional argument to pass to the callback function
66 |
67 | --- Unregister an event.
68 | -- @name AceEvent:UnregisterEvent
69 | -- @class function
70 | -- @paramsig event
71 | -- @param event The event to unregister
72 |
73 | --- Register for a custom AceEvent-internal message.
74 | -- The callback will be called with the optional `arg` as the first argument (if supplied), and the event name as the second (or first, if no arg was supplied)
75 | -- Any arguments to the event will be passed on after that.
76 | -- @name AceEvent:RegisterMessage
77 | -- @class function
78 | -- @paramsig message[, callback [, arg]]
79 | -- @param message The message to register for
80 | -- @param callback The callback function to call when the message is triggered (funcref or method, defaults to a method with the event name)
81 | -- @param arg An optional argument to pass to the callback function
82 |
83 | --- Unregister a message
84 | -- @name AceEvent:UnregisterMessage
85 | -- @class function
86 | -- @paramsig message
87 | -- @param message The message to unregister
88 |
89 | --- Send a message over the AceEvent-3.0 internal message system to other addons registered for this message.
90 | -- @name AceEvent:SendMessage
91 | -- @class function
92 | -- @paramsig message, ...
93 | -- @param message The message to send
94 | -- @param ... Any arguments to the message
95 |
96 |
97 | -- Embeds AceEvent into the target object making the functions from the mixins list available on target:..
98 | -- @param target target object to embed AceEvent in
99 | function AceEvent:Embed(target)
100 | for k, v in pairs(mixins) do
101 | target[v] = self[v]
102 | end
103 | self.embeds[target] = true
104 | return target
105 | end
106 |
107 | -- AceEvent:OnEmbedDisable( target )
108 | -- target (object) - target object that is being disabled
109 | --
110 | -- Unregister all events messages etc when the target disables.
111 | -- this method should be called by the target manually or by an addon framework
112 | function AceEvent:OnEmbedDisable(target)
113 | target:UnregisterAllEvents()
114 | target:UnregisterAllMessages()
115 | end
116 |
117 | -- Script to fire blizzard events into the event listeners
118 | -- Ace3v: in vanilla the arguments are set to global:
119 | -- event, arg1, arg2, arg3 ...
120 | -- the user have always access to them, so we save the table cost here
121 | local events = AceEvent.events
122 | AceEvent.frame:SetScript("OnEvent", function()
123 | events:Fire(event)
124 | end)
125 |
126 | --- Finally: upgrade our old embeds
127 | for target, v in pairs(AceEvent.embeds) do
128 | AceEvent:Embed(target)
129 | end
130 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceLocale-3.0/AceLocale-3.0.lua:
--------------------------------------------------------------------------------
1 | --- **AceLocale-3.0** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings.
2 | -- @class file
3 | -- @name AceLocale-3.0
4 | -- @release $Id: AceLocale-3.0.lua 1035 2011-07-09 03:20:13Z kaelten $
5 | local MAJOR,MINOR = "AceLocale-3.0", 6
6 |
7 | local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
8 |
9 | if not AceLocale then return end -- no upgrade needed
10 |
11 | -- Lua APIs
12 | local assert, tostring, error = assert, tostring, error
13 | local getmetatable, setmetatable, rawset, rawget = getmetatable, setmetatable, rawset, rawget
14 |
15 | -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
16 | -- List them here for Mikk's FindGlobals script
17 | -- GLOBALS: GAME_LOCALE, geterrorhandler
18 |
19 | local gameLocale = GetLocale()
20 | if gameLocale == "enGB" then
21 | gameLocale = "enUS"
22 | end
23 |
24 | AceLocale.apps = AceLocale.apps or {} -- array of ["AppName"]=localetableref
25 | AceLocale.appnames = AceLocale.appnames or {} -- array of [localetableref]="AppName"
26 |
27 | -- This metatable is used on all tables returned from GetLocale
28 | local readmeta = {
29 | __index = function(self, key) -- requesting totally unknown entries: fire off a nonbreaking error and return key
30 | rawset(self, key, key) -- only need to see the warning once, really
31 | geterrorhandler()(MAJOR..": "..tostring(AceLocale.appnames[self])..": Missing entry for '"..tostring(key).."'")
32 | return key
33 | end
34 | }
35 |
36 | -- This metatable is used on all tables returned from GetLocale if the silent flag is true, it does not issue a warning on unknown keys
37 | local readmetasilent = {
38 | __index = function(self, key) -- requesting totally unknown entries: return key
39 | rawset(self, key, key) -- only need to invoke this function once
40 | return key
41 | end
42 | }
43 |
44 | -- Remember the locale table being registered right now (it gets set by :NewLocale())
45 | -- NOTE: Do never try to register 2 locale tables at once and mix their definition.
46 | local registering
47 |
48 | -- local assert false function
49 | local assertfalse = function() assert(false) end
50 |
51 | -- This metatable proxy is used when registering nondefault locales
52 | local writeproxy = setmetatable({}, {
53 | __newindex = function(self, key, value)
54 | rawset(registering, key, value == true and key or value) -- assigning values: replace 'true' with key string
55 | end,
56 | __index = assertfalse
57 | })
58 |
59 | -- This metatable proxy is used when registering the default locale.
60 | -- It refuses to overwrite existing values
61 | -- Reason 1: Allows loading locales in any order
62 | -- Reason 2: If 2 modules have the same string, but only the first one to be
63 | -- loaded has a translation for the current locale, the translation
64 | -- doesn't get overwritten.
65 | --
66 | local writedefaultproxy = setmetatable({}, {
67 | __newindex = function(self, key, value)
68 | if not rawget(registering, key) then
69 | rawset(registering, key, value == true and key or value)
70 | end
71 | end,
72 | __index = assertfalse
73 | })
74 |
75 | --- Register a new locale (or extend an existing one) for the specified application.
76 | -- :NewLocale will return a table you can fill your locale into, or nil if the locale isn't needed for the players
77 | -- game locale.
78 | -- @paramsig application, locale[, isDefault[, silent]]
79 | -- @param application Unique name of addon / module
80 | -- @param locale Name of the locale to register, e.g. "enUS", "deDE", etc.
81 | -- @param isDefault If this is the default locale being registered (your addon is written in this language, generally enUS)
82 | -- @param silent If true, the locale will not issue warnings for missing keys. Must be set on the first locale registered. If set to "raw", nils will be returned for unknown keys (no metatable used).
83 | -- @usage
84 | -- -- enUS.lua
85 | -- local L = LibStub("AceLocale-3.0"):NewLocale("TestLocale", "enUS", true)
86 | -- L["string1"] = true
87 | --
88 | -- -- deDE.lua
89 | -- local L = LibStub("AceLocale-3.0"):NewLocale("TestLocale", "deDE")
90 | -- if not L then return end
91 | -- L["string1"] = "Zeichenkette1"
92 | -- @return Locale Table to add localizations to, or nil if the current locale is not required.
93 | function AceLocale:NewLocale(application, locale, isDefault, silent)
94 |
95 | -- GAME_LOCALE allows translators to test translations of addons without having that wow client installed
96 | local gameLocale = GAME_LOCALE or gameLocale
97 |
98 | local app = AceLocale.apps[application]
99 |
100 | if silent and app and getmetatable(app) ~= readmetasilent then
101 | geterrorhandler()("Usage: NewLocale(application, locale[, isDefault[, silent]]): 'silent' must be specified for the first locale registered")
102 | end
103 |
104 | if not app then
105 | if silent=="raw" then
106 | app = {}
107 | else
108 | app = setmetatable({}, silent and readmetasilent or readmeta)
109 | end
110 | AceLocale.apps[application] = app
111 | AceLocale.appnames[app] = application
112 | end
113 |
114 | if locale ~= gameLocale and not isDefault then
115 | return nil -- nop, we don't need these translations
116 | end
117 |
118 | registering = app -- remember globally for writeproxy and writedefaultproxy
119 |
120 | if isDefault then
121 | return writedefaultproxy
122 | end
123 |
124 | return writeproxy
125 | end
126 |
127 | --- Returns localizations for the current locale (or default locale if translations are missing).
128 | -- Errors if nothing is registered (spank developer, not just a missing translation)
129 | -- @param application Unique name of addon / module
130 | -- @param silent If true, the locale is optional, silently return nil if it's not found (defaults to false, optional)
131 | -- @return The locale table for the current language.
132 | function AceLocale:GetLocale(application, silent)
133 | if not silent and not AceLocale.apps[application] then
134 | error("Usage: GetLocale(application[, silent]): 'application' - No locales registered for '"..tostring(application).."'", 2)
135 | end
136 | return AceLocale.apps[application]
137 | end
138 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0/widgets/AceGUIWidget-ColorPicker.lua:
--------------------------------------------------------------------------------
1 | --[[-----------------------------------------------------------------------------
2 | ColorPicker Widget
3 | -------------------------------------------------------------------------------]]
4 | local Type, Version = "ColorPicker", 23
5 | local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
6 | if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
7 |
8 | -- Lua APIs
9 | local pairs = pairs
10 |
11 | -- WoW APIs
12 | local CreateFrame, UIParent = CreateFrame, UIParent
13 |
14 | -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
15 | -- List them here for Mikk's FindGlobals script
16 | -- GLOBALS: ShowUIPanel, HideUIPanel, ColorPickerFrame, OpacitySliderFrame
17 |
18 | --[[-----------------------------------------------------------------------------
19 | Support functions
20 | -------------------------------------------------------------------------------]]
21 | local function ColorCallback(self, r, g, b, a, isAlpha)
22 | if not self.HasAlpha then
23 | a = 1
24 | end
25 | self:SetColor(r, g, b, a)
26 | if ColorPickerFrame:IsVisible() then
27 | --colorpicker is still open
28 | self:Fire("OnValueChanged", 4, r, g, b, a)
29 | else
30 | --colorpicker is closed, color callback is first, ignore it,
31 | --alpha callback is the final call after it closes so confirm now
32 | if isAlpha then
33 | self:Fire("OnValueConfirmed", 4, r, g, b, a)
34 | end
35 | end
36 | end
37 |
38 | --[[-----------------------------------------------------------------------------
39 | Scripts
40 | -------------------------------------------------------------------------------]]
41 | local function Control_OnEnter()
42 | this.obj:Fire("OnEnter")
43 | end
44 |
45 | local function Control_OnLeave()
46 | this.obj:Fire("OnLeave")
47 | end
48 |
49 | local function ColorSwatch_OnClick()
50 | HideUIPanel(ColorPickerFrame)
51 | local self = this.obj
52 | if not self.disabled then
53 | ColorPickerFrame:SetFrameStrata("FULLSCREEN_DIALOG")
54 | ColorPickerFrame:SetClampedToScreen(true)
55 |
56 | ColorPickerFrame.func = function()
57 | local r, g, b = ColorPickerFrame:GetColorRGB()
58 | local a = 1 - OpacitySliderFrame:GetValue()
59 | ColorCallback(self, r, g, b, a)
60 | end
61 |
62 | ColorPickerFrame.hasOpacity = self.HasAlpha
63 | ColorPickerFrame.opacityFunc = function()
64 | local r, g, b = ColorPickerFrame:GetColorRGB()
65 | local a = 1 - OpacitySliderFrame:GetValue()
66 | ColorCallback(self, r, g, b, a, true)
67 | end
68 |
69 | local r, g, b, a = self.r, self.g, self.b, self.a
70 | if self.HasAlpha then
71 | ColorPickerFrame.opacity = 1 - (a or 0)
72 | end
73 | ColorPickerFrame:SetColorRGB(r, g, b)
74 |
75 | ColorPickerFrame.cancelFunc = function()
76 | ColorCallback(self, r, g, b, a, true)
77 | end
78 |
79 | ShowUIPanel(ColorPickerFrame)
80 | end
81 | AceGUI:ClearFocus()
82 | end
83 |
84 | --[[-----------------------------------------------------------------------------
85 | Methods
86 | -------------------------------------------------------------------------------]]
87 | local methods = {
88 | ["OnAcquire"] = function(self)
89 | self:SetHeight(24)
90 | self:SetWidth(200)
91 | self:SetHasAlpha(false)
92 | self:SetColor(0, 0, 0, 1)
93 | self:SetDisabled(nil)
94 | self:SetLabel(nil)
95 | end,
96 |
97 | -- ["OnRelease"] = nil,
98 |
99 | ["SetLabel"] = function(self, text)
100 | self.text:SetText(text)
101 | end,
102 |
103 | ["SetColor"] = function(self, r, g, b, a)
104 | self.r = r
105 | self.g = g
106 | self.b = b
107 | self.a = a or 1
108 | self.colorSwatch:SetVertexColor(r, g, b, a)
109 | end,
110 |
111 | ["SetHasAlpha"] = function(self, HasAlpha)
112 | self.HasAlpha = HasAlpha
113 | end,
114 |
115 | ["SetDisabled"] = function(self, disabled)
116 | self.disabled = disabled
117 | if self.disabled then
118 | self.frame:Disable()
119 | self.text:SetTextColor(0.5, 0.5, 0.5)
120 | else
121 | self.frame:Enable()
122 | self.text:SetTextColor(1, 1, 1)
123 | end
124 | end
125 | }
126 |
127 | --[[-----------------------------------------------------------------------------
128 | Constructor
129 | -------------------------------------------------------------------------------]]
130 | local function Constructor()
131 | local frame = CreateFrame("Button", nil, UIParent)
132 | frame:Hide()
133 |
134 | frame:EnableMouse(true)
135 | frame:SetScript("OnEnter", Control_OnEnter)
136 | frame:SetScript("OnLeave", Control_OnLeave)
137 | frame:SetScript("OnClick", ColorSwatch_OnClick)
138 |
139 | local colorSwatch = frame:CreateTexture(nil, "OVERLAY")
140 | colorSwatch:SetWidth(19)
141 | colorSwatch:SetHeight(19)
142 | colorSwatch:SetTexture("Interface\\ChatFrame\\ChatFrameColorSwatch")
143 | colorSwatch:SetPoint("LEFT",0,0)
144 |
145 | local texture = frame:CreateTexture(nil, "BACKGROUND")
146 | texture:SetWidth(16)
147 | texture:SetHeight(16)
148 | texture:SetTexture(1, 1, 1)
149 | texture:SetPoint("CENTER", colorSwatch)
150 | texture:Show()
151 |
152 | local checkers = frame:CreateTexture(nil, "BACKGROUND")
153 | checkers:SetWidth(14)
154 | checkers:SetHeight(14)
155 | checkers:SetTexture("Tileset\\Generic\\Checkers")
156 | checkers:SetTexCoord(.25, 0, 0.5, .25)
157 | checkers:SetDesaturated(true)
158 | checkers:SetVertexColor(1, 1, 1, 0.75)
159 | checkers:SetPoint("CENTER", colorSwatch)
160 | checkers:Show()
161 |
162 | local text = frame:CreateFontString(nil,"OVERLAY","GameFontHighlight")
163 | text:SetHeight(24)
164 | text:SetJustifyH("LEFT")
165 | text:SetTextColor(1, 1, 1)
166 | text:SetPoint("LEFT", colorSwatch, "RIGHT", 2, 0)
167 | text:SetPoint("RIGHT",0,0)
168 |
169 | --local highlight = frame:CreateTexture(nil, "HIGHLIGHT")
170 | --highlight:SetTexture("Interface\\QuestFrame\\UI-QuestTitleHighlight")
171 | --highlight:SetBlendMode("ADD")
172 | --highlight:SetAllPoints(frame)
173 |
174 | local widget = {
175 | colorSwatch = colorSwatch,
176 | text = text,
177 | frame = frame,
178 | type = Type
179 | }
180 | for method, func in pairs(methods) do
181 | widget[method] = func
182 | end
183 |
184 | return AceGUI:RegisterAsWidget(widget)
185 | end
186 |
187 | AceGUI:RegisterWidgetType(Type, Constructor, Version)
188 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceCore-3.0/AceCore-3.0.lua:
--------------------------------------------------------------------------------
1 | local ACECORE_MAJOR, ACECORE_MINOR = "AceCore-3.0", 2
2 | local AceCore, oldminor = LibStub:NewLibrary(ACECORE_MAJOR, ACECORE_MINOR)
3 |
4 | if not AceCore then return end -- No upgrade needed
5 |
6 | AceCore._G = AceCore._G or getfenv()
7 | local _G = AceCore._G
8 | local strsub, strgsub, strfind = string.sub, string.gsub, string.find
9 | local tremove, tconcat = table.remove, table.concat
10 | local tgetn, tsetn = table.getn, table.setn
11 |
12 | local new, del
13 | do
14 | local list = setmetatable({}, {__mode = "k"})
15 | function new()
16 | local t = next(list)
17 | if not t then
18 | return {}
19 | end
20 | list[t] = nil
21 | return t
22 | end
23 |
24 | function del(t)
25 | setmetatable(t, nil)
26 | for k in pairs(t) do
27 | t[k] = nil
28 | end
29 | tsetn(t,0)
30 | list[t] = true
31 | end
32 |
33 | print = print or function(text)
34 | DEFAULT_CHAT_FRAME:AddMessage(text)
35 | end
36 |
37 | -- debug
38 | function AceCore.listcount()
39 | local count = 0
40 | for k in list do
41 | count = count + 1
42 | end
43 | return count
44 | end
45 | end -- AceCore.new, AceCore.del
46 | AceCore.new, AceCore.del = new, del
47 |
48 | local function errorhandler(err)
49 | return geterrorhandler()(err)
50 | end
51 | AceCore.errorhandler = errorhandler
52 |
53 | local function CreateSafeDispatcher(argCount)
54 | local code = [[
55 | local errorhandler = LibStub("AceCore-3.0").errorhandler
56 | local method, UP_ARGS
57 | local function call()
58 | local func, ARGS = method, UP_ARGS
59 | method, UP_ARGS = nil, NILS
60 | return func(ARGS)
61 | end
62 | return function(func, ARGS)
63 | method, UP_ARGS = func, ARGS
64 | return xpcall(call, errorhandler)
65 | end
66 | ]]
67 | local c = 4*argCount-1
68 | local s = "b01,b02,b03,b04,b05,b06,b07,b08,b09,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20"
69 | code = strgsub(code, "UP_ARGS", string.sub(s,1,c))
70 | s = "a01,a02,a03,a04,a05,a06,a07,a08,a09,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20"
71 | code = strgsub(code, "ARGS", string.sub(s,1,c))
72 | s = "nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil,nil"
73 | code = strgsub(code, "NILS", string.sub(s,1,c))
74 | return assert(loadstring(code, "safecall SafeDispatcher["..tostring(argCount).."]"))()
75 | end
76 |
77 | local SafeDispatchers = setmetatable({}, {__index=function(self, argCount)
78 | local dispatcher
79 | if not tonumber(argCount) then dbg(debugstack()) end
80 | if argCount > 0 then
81 | dispatcher = CreateSafeDispatcher(argCount)
82 | else
83 | dispatcher = function(func) return xpcall(func,errorhandler) end
84 | end
85 | rawset(self, argCount, dispatcher)
86 | return dispatcher
87 | end})
88 |
89 | local function safecall(func,argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20)
90 | -- we check to see if the func is passed is actually a function here and don't error when it isn't
91 | -- this safecall is used for optional functions like OnInitialize OnEnable etc. When they are not
92 | -- present execution should continue without hinderance
93 | if type(func) == "function" then
94 | return SafeDispatchers[argc](func,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20)
95 | end
96 | end
97 | AceCore.safecall = safecall
98 |
99 | local function CreateDispatcher(argCount)
100 | local code = [[
101 | return function(func,ARGS)
102 | return func(ARGS)
103 | end
104 | ]]
105 | local s = "a01,a02,a03,a04,a05,a06,a07,a08,a09,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20"
106 | code = strgsub(code, "ARGS", string.sub(s,1,4*argCount-1))
107 | return assert(loadstring(code, "call Dispatcher["..tostring(argCount).."]"))()
108 | end
109 |
110 | AceCore.Dispatchers = setmetatable({}, {__index=function(self, argCount)
111 | local dispatcher
112 | if argCount > 0 then
113 | dispatcher = CreateDispatcher(argCount)
114 | else
115 | dispatcher = function(func) return func() end
116 | end
117 | rawset(self, argCount, dispatcher)
118 | return dispatcher
119 | end})
120 |
121 | -- some string functions
122 | -- vanilla available string operations:
123 | -- sub, gfind, rep, gsub, char, dump, find, upper, len, format, byte, lower
124 | -- we will just replace every string.match with string.find in the code
125 | function AceCore.strtrim(s)
126 | return strgsub(s, "^%s*(.-)%s*$", "%1")
127 | end
128 |
129 | local function strsplit(delim, s, n)
130 | if n and n < 2 then return s end
131 | beg = beg or 1
132 | local i,j = string.find(s,delim,beg)
133 | if not i then
134 | return s, nil
135 | end
136 | return string.sub(s,1,j-1), strsplit(delim, string.sub(s,j+1), n and n-1 or nil)
137 | end
138 | AceCore.strsplit = strsplit
139 |
140 | -- Ace3v: fonctions copied from AceHook-2.1
141 | local protFuncs = {
142 | CameraOrSelectOrMoveStart = true, CameraOrSelectOrMoveStop = true,
143 | TurnOrActionStart = true, TurnOrActionStop = true,
144 | PitchUpStart = true, PitchUpStop = true,
145 | PitchDownStart = true, PitchDownStop = true,
146 | MoveBackwardStart = true, MoveBackwardStop = true,
147 | MoveForwardStart = true, MoveForwardStop = true,
148 | Jump = true, StrafeLeftStart = true,
149 | StrafeLeftStop = true, StrafeRightStart = true,
150 | StrafeRightStop = true, ToggleMouseMove = true,
151 | ToggleRun = true, TurnLeftStart = true,
152 | TurnLeftStop = true, TurnRightStart = true,
153 | TurnRightStop = true,
154 | }
155 |
156 | local function issecurevariable(x)
157 | return protFuncs[x] and 1 or nil
158 | end
159 | AceCore.issecurevariable = issecurevariable
160 |
161 | local function hooksecurefunc(arg1, arg2, arg3)
162 | if type(arg1) == "string" then
163 | arg1, arg2, arg3 = _G, arg1, arg2
164 | end
165 | local orig = arg1[arg2]
166 | if type(orig) ~= "function" then
167 | error("The function "..arg2.." does not exist", 2)
168 | end
169 | arg1[arg2] = function(...)
170 | local tmp = {orig(unpack(arg))}
171 | arg3(unpack(arg))
172 | return unpack(tmp)
173 | end
174 | end
175 | AceCore.hooksecurefunc = hooksecurefunc
176 |
177 | -- pickfirstset() - picks the first non-nil value and returns it
178 | local function pickfirstset(argc,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
179 | if (argc <= 1) or (a1 ~= nil) then
180 | return a1
181 | else
182 | return pickfirstset(argc-1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
183 | end
184 | end
185 | AceCore.pickfirstset = pickfirstset
186 |
187 | local function countargs(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10)
188 | if (a1 == nil) then return 0 end
189 | return 1 + countargs(a2,a3,a4,a5,a6,a7,a8,a9,a10)
190 | end
191 | AceCore.countargs = countargs
192 |
193 | -- wipe preserves metatable
194 | function AceCore.wipe(t)
195 | for k,v in pairs(t) do t[k] = nil end
196 | tsetn(t,0)
197 | return t
198 | end
199 |
200 | function AceCore.truncate(t,e)
201 | e = e or tgetn(t)
202 | for i=1,e do
203 | if t[i] == nil then
204 | tsetn(t,i-1)
205 | return
206 | end
207 | end
208 | tsetn(t,e)
209 | end
210 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0-SharedMediaWidgets/FontWidget.lua:
--------------------------------------------------------------------------------
1 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
2 | -- Widget created by Yssaril
3 |
4 | local AceGUI = LibStub("AceGUI-3.0")
5 | local Media = LibStub("LibSharedMedia-3.0")
6 |
7 | local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
8 |
9 | local fixlevels = AceGUI.fixlevels
10 | local fixstrata = AceGUI.fixstrata
11 | local getn = table.getn
12 |
13 | do
14 | local widgetType = "LSM30_Font"
15 | local widgetVersion = 12
16 |
17 | local contentFrameCache = {}
18 | local function ReturnSelf(self)
19 | self:ClearAllPoints()
20 | self:Hide()
21 | self.check:Hide()
22 | table.insert(contentFrameCache, self)
23 | end
24 |
25 | local function ContentOnClick(button)
26 | local self = this.obj
27 | self:Fire("OnValueChanged", 1, this.text:GetText())
28 | self:SetValue(this.text:GetText())
29 | if self.dropdown then
30 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
31 | end
32 | end
33 |
34 | local function GetContentLine()
35 | local frame
36 | if next(contentFrameCache) then
37 | frame = table.remove(contentFrameCache)
38 | else
39 | frame = CreateFrame("Button", nil, UIParent)
40 | --frame:SetWidth(200)
41 | frame:SetHeight(18)
42 | frame:SetHighlightTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]], "ADD")
43 | frame:SetScript("OnClick", ContentOnClick)
44 | local check = frame:CreateTexture("OVERLAY")
45 | check:SetWidth(16)
46 | check:SetHeight(16)
47 | check:SetPoint("LEFT",frame,"LEFT",1,-1)
48 | check:SetTexture("Interface\\Buttons\\UI-CheckBox-Check")
49 | check:Hide()
50 | frame.check = check
51 | local text = frame:CreateFontString(nil,"OVERLAY","GameFontWhite")
52 | text:SetPoint("TOPLEFT", check, "TOPRIGHT", 1, 0)
53 | text:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -2, 0)
54 | text:SetJustifyH("LEFT")
55 | text:SetText("Test Test Test Test Test Test Test")
56 | frame.text = text
57 | frame.ReturnSelf = ReturnSelf
58 | end
59 | frame:Show()
60 | return frame
61 | end
62 |
63 | local function OnAcquire(self)
64 | self:SetHeight(44)
65 | self:SetWidth(200)
66 | end
67 |
68 | local function OnRelease(self)
69 | self:SetText("")
70 | self:SetLabel("")
71 | self:SetDisabled(false)
72 |
73 | self.value = nil
74 | self.list = nil
75 | self.open = nil
76 | self.hasClose = nil
77 |
78 | self.frame:ClearAllPoints()
79 | self.frame:Hide()
80 | end
81 |
82 | local function SetValue(self, value) -- Set the value to an item in the List.
83 | if self.list then
84 | self:SetText(value or "")
85 | end
86 | self.value = value
87 | end
88 |
89 | local function GetValue(self)
90 | return self.value
91 | end
92 |
93 | local function SetList(self, list) -- Set the list of values for the dropdown (key => value pairs)
94 | self.list = list or Media:HashTable("font")
95 | end
96 |
97 | local function SetText(self, text) -- Set the text displayed in the box.
98 | self.frame.text:SetText(text or "")
99 | local font = self.list and self.list[text] ~= text and self.list[text] or Media:Fetch('font',text)
100 | local _, size, outline= self.frame.text:GetFont()
101 | self.frame.text:SetFont(font,size,outline)
102 | end
103 |
104 | local function SetLabel(self, text) -- Set the text for the label.
105 | self.frame.label:SetText(text or "")
106 | end
107 |
108 | local function AddItem(self, key, value) -- Add an item to the list.
109 | self.list = self.list or {}
110 | self.list[key] = value
111 | end
112 | local SetItemValue = AddItem -- Set the value of a item in the list. <>
113 |
114 | local function SetMultiselect(self, flag) end -- Toggle multi-selecting. <>
115 | local function GetMultiselect() return false end-- Query the multi-select flag. <>
116 | local function SetItemDisabled(self, key) end-- Disable one item in the list. <>
117 |
118 | local function SetDisabled(self, disabled) -- Disable the widget.
119 | self.disabled = disabled
120 | if disabled then
121 | self.frame:Disable()
122 | else
123 | self.frame:Enable()
124 | end
125 | end
126 |
127 | local function textSort(a,b)
128 | return string.upper(a) < string.upper(b)
129 | end
130 |
131 |
132 | local function ToggleDrop()
133 | local self = this.obj
134 | if self.dropdown then
135 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
136 | AceGUI:ClearFocus()
137 | else
138 | AceGUI:SetFocus(self)
139 | self.dropdown = AGSMW:GetDropDownFrame()
140 | local width = self.frame:GetWidth()
141 | self.dropdown:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT")
142 | self.dropdown:SetPoint("TOPRIGHT", self.frame, "BOTTOMRIGHT", width < 160 and (160 - width) or 0, 0)
143 | local sortedlist = {}
144 | for k, v in pairs(self.list) do
145 | sortedlist[getn(sortedlist)+1] = k
146 | end
147 | table.sort(sortedlist, textSort)
148 | for i, k in ipairs(sortedlist) do
149 | local f = GetContentLine()
150 | local _, size, outline= f.text:GetFont()
151 | local font = self.list[k] ~= k and self.list[k] or Media:Fetch('font',k)
152 | f.text:SetFont(font,size,outline)
153 | f.text:SetText(k)
154 | if k == self.value then
155 | f.check:Show()
156 | end
157 | f.obj = self
158 | self.dropdown:AddFrame(f)
159 | end
160 | fixlevels(self.dropdown, self.dropdown:GetChildren())
161 | end
162 | end
163 |
164 | local function ClearFocus(self)
165 | if self.dropdown then
166 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
167 | end
168 | end
169 |
170 | local function OnHide()
171 | local self = this.obj
172 | if self.dropdown then
173 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
174 | end
175 | end
176 |
177 | local function Drop_OnEnter()
178 | this.obj:Fire("OnEnter")
179 | end
180 |
181 | local function Drop_OnLeave()
182 | this.obj:Fire("OnLeave")
183 | end
184 |
185 | local function Constructor()
186 | local frame = AGSMW:GetBaseFrame()
187 | local self = {}
188 |
189 | self.type = widgetType
190 | self.frame = frame
191 | frame.obj = self
192 | frame.dropButton.obj = self
193 | frame.dropButton:SetScript("OnEnter", Drop_OnEnter)
194 | frame.dropButton:SetScript("OnLeave", Drop_OnLeave)
195 | frame.dropButton:SetScript("OnClick",ToggleDrop)
196 | frame:SetScript("OnHide", OnHide)
197 |
198 | self.alignoffset = 31
199 |
200 | self.OnRelease = OnRelease
201 | self.OnAcquire = OnAcquire
202 | self.ClearFocus = ClearFocus
203 | self.SetText = SetText
204 | self.SetValue = SetValue
205 | self.GetValue = GetValue
206 | self.SetList = SetList
207 | self.SetLabel = SetLabel
208 | self.SetDisabled = SetDisabled
209 | self.AddItem = AddItem
210 | self.SetMultiselect = SetMultiselect
211 | self.GetMultiselect = GetMultiselect
212 | self.SetItemValue = SetItemValue
213 | self.SetItemDisabled = SetItemDisabled
214 | self.ToggleDrop = ToggleDrop
215 |
216 | AceGUI:RegisterAsWidget(self)
217 | return self
218 | end
219 |
220 | AceGUI:RegisterWidgetType(widgetType, Constructor, widgetVersion)
221 |
222 | end
223 |
--------------------------------------------------------------------------------
/Kui_Nameplates/combopoints.lua:
--------------------------------------------------------------------------------
1 | --[[
2 | -- Kui_Nameplates
3 | -- By Kesava at curse.com
4 | -- All rights reserved
5 | ]]
6 |
7 | local kui = LibStub('Kui-1.0')
8 |
9 |
10 | do
11 | local _, class = UnitClass'player'
12 | if class ~= 'ROGUE' and class ~= 'DRUID' then
13 | return
14 | end
15 | end
16 |
17 |
18 |
19 | local addon = LibStub('AceAddon-3.0'):GetAddon('KuiNameplates')
20 | local mod = addon:NewModule('ComboPoints', 'AceEvent-3.0')
21 | local _
22 |
23 | mod.uiName = 'Combo points'
24 |
25 | local colours = {
26 | full = { r= 1, g= 1, b=.1 },
27 | partial = { r=.79, g=.35, b=.1 },
28 | step = { r=.0525, g=.1625, b=0 },
29 | glowFull = { r=1, g=1, b=.1, a= .6 },
30 | glowPartial = { r=.7, g=.3, b=.1, a= .01 },
31 | glowStep = { r=.0525, g=.1625, b=0, a = 0 },
32 | }
33 | --[[local colours = {
34 | full = { 1, 1, .1 },
35 | partial = { .79, .55, .18 },
36 | anti = { 1, .3, .3 },
37 | glowFull = { 1, 1, .1, .6 },
38 | glowPartial = { 0, 0, 0, .3 },
39 | glowAnti = { 1, .1, .1, .8 }
40 | }]]
41 | local function ComboPointsUpdate(self)
42 | if self.points and self.points > 0 then
43 | if self.points == 5 then
44 | self.colour = colours.full
45 | self.glowColour = colours.glowFull
46 | else
47 | if not self.colour then self.colour = {} end
48 | local point = self.points - 1
49 | self.colour.r = colours.partial.r + colours.step.r*point
50 | self.colour.g = colours.partial.g + colours.step.g*point
51 | self.colour.b = colours.partial.b + colours.step.b*point
52 |
53 | self.glowColour = colours.glowPartial
54 | -- if not self.glowColour then self.glowColour = {} end
55 | -- self.glowColour.r = colours.glowPartial.r + colours.glowStep.r*point
56 | -- self.glowColour.g = colours.glowPartial.g + colours.glowStep.g*point
57 | -- self.glowColour.b = colours.glowPartial.b + colours.glowStep.b*point
58 |
59 | end
60 |
61 | local i
62 | for i = 1,5 do
63 | if i <= self.points then
64 | self[i]:SetAlpha(1)
65 | else
66 | self[i]:SetAlpha(.4)
67 | end
68 |
69 |
70 |
71 | self[i]:SetVertexColor(self.colour.r, self.colour.g, self.colour.b) --(.2*self.points, 0.5/self.points, .5/self.points)
72 | self.glows[i]:SetVertexColor(self.glowColour.r, self.glowColour.g, self.glowColour.b, self.glowColour.a)
73 | end
74 |
75 | self:Show()
76 | elseif self:IsShown() then
77 | self:Hide()
78 | end
79 | end
80 | -------------------------------------------------------------- Event handlers --
81 |
82 | function mod:PLAYER_COMBO_POINTS() --event,unit)
83 | local guid, name = kui.UnitGUID('target'), UnitName('target')
84 | local f = addon:GetNameplate(guid, name)
85 | self:OnUpdateTargetFrame("",f)
86 | end
87 | ----------------------------------------------------------------------UpdateTarget
88 | function mod:OnUpdateTargetFrame(msg,f)
89 | if f and f.combopoints then
90 | local points = GetComboPoints()
91 | f.combopoints.points = points
92 | f.combopoints:Update()
93 |
94 | if points > 0 then
95 | -- clear points on other frames
96 | local _, frame
97 | for _, frame in pairs(addon.frameList) do
98 | if frame.kui.combopoints and frame.kui ~= f then
99 | self:HideComboPoints(nil, frame.kui)
100 | end
101 | end
102 | end
103 | end
104 | end
105 | ----------------------------------------------------------------------kTarget --
106 | function mod:OnFrameTarget(msg, frame)
107 | self:PLAYER_COMBO_POINTS()
108 | end
109 | ---------------------------------------------------------------------- Create --
110 | function mod:CreateComboPoints(msg, frame)
111 | -- create combo point icons
112 | frame.combopoints = CreateFrame('Frame', nil, frame.overlay)
113 | frame.combopoints.glows = {}
114 | frame.combopoints:Hide()
115 |
116 | local i, pcp
117 | for i=0,4 do
118 | -- create individual combo point icons
119 | local cp = frame.combopoints:CreateTexture(nil, 'ARTWORK')
120 | cp:SetDrawLayer('ARTWORK', 2)
121 | cp:SetTexture('Interface\\AddOns\\Kui_Nameplates\\media\\combopoint-round')
122 | cp:SetWidth(addon.sizes.tex.combopoints)
123 | cp:SetHeight(addon.sizes.tex.combopoints)
124 |
125 | if i == 0 then
126 | cp:SetPoint('BOTTOM', frame.overlay, 'BOTTOM',
127 | -(addon.sizes.tex.combopoints-1)*2, -3)
128 | else
129 | cp:SetPoint('LEFT', pcp, 'RIGHT', -1, 0)
130 | end
131 |
132 | tinsert(frame.combopoints, i+1, cp)
133 | pcp = cp
134 |
135 | -- and their glows
136 | local glow = frame.combopoints:CreateTexture(nil, 'ARTWORK')
137 |
138 | glow:SetDrawLayer('ARTWORK',1)
139 | glow:SetTexture('Interface\\AddOns\\Kui_Nameplates\\media\\combopoint-glow')
140 | glow:SetWidth(addon.sizes.tex.combopoints+8)
141 | glow:SetHeight(addon.sizes.tex.combopoints+8)
142 | glow:SetPoint('CENTER',cp)
143 |
144 | tinsert(frame.combopoints.glows, i+1, glow)
145 | end
146 |
147 | frame.combopoints.Update = ComboPointsUpdate
148 | end
149 | ------------------------------------------------------------------------ Hide --
150 | function mod:HideComboPoints(msg, frame)
151 | if frame.combopoints then
152 | frame.combopoints.points = nil
153 | frame.combopoints:Update()
154 | end
155 | end
156 | ---------------------------------------------------- Post db change functions --
157 | mod.configChangedFuncs = { runOnce = {} }
158 | mod.configChangedFuncs.runOnce.enabled = function(val)
159 | if val then
160 | mod:Enable()
161 | else
162 | mod:Disable()
163 | end
164 | end
165 |
166 | -------------------------------------------------------------------- Register --
167 | function mod:GetOptions()
168 | return {
169 | enabled = {
170 | name = 'Show combo points',
171 | desc = 'Show combo points on the target',
172 | type = 'toggle',
173 | order = 0
174 | },
175 | scale = {
176 | name = 'Icon scale',
177 | desc = 'The scale of the combo point icons and glow',
178 | type = 'range',
179 | order = 5,
180 | min = 0.1,
181 | softMin = 0.5,
182 | softMax = 2
183 | }
184 | }
185 | end
186 |
187 | function mod:OnInitialize()
188 | self.db = addon.db:RegisterNamespace(self.moduleName, {
189 | profile = {
190 | enabled = true,
191 | scale = 1,
192 | }
193 | })
194 |
195 |
196 | addon:RegisterSize('tex', 'combopoints', 4.5 * self.db.profile.scale)
197 | addon:RegisterSize('tex', 'cpGlowWidth', 30 * self.db.profile.scale)
198 | addon:RegisterSize('tex', 'cpGlowHeight', 15 * self.db.profile.scale)
199 |
200 | addon:InitModuleOptions(self)
201 | mod:SetEnabledState(self.db.profile.enabled)
202 | end
203 |
204 | function mod:OnEnable()
205 | self:RegisterMessage('KuiNameplates_PostCreate', 'CreateComboPoints')
206 | self:RegisterMessage('KuiNameplates_PostHide', 'HideComboPoints')
207 | self:RegisterMessage('KuiNameplates_PostTarget', 'OnFrameTarget')
208 | self:RegisterMessage('KuiNameplates_TargetUpdate', 'OnUpdateTargetFrame')
209 |
210 | self:RegisterEvent('PLAYER_COMBO_POINTS')
211 |
212 | local _, frame
213 | for _, frame in pairs(addon.frameList) do
214 | if not frame.combopoints then
215 | self:CreateComboPoints(nil, frame.kui)
216 | end
217 | end
218 | end
219 |
220 | function mod:OnDisable()
221 | self:UnregisterEvent('PLAYER_COMBO_POINTS')
222 |
223 | local _, frame
224 | for _, frame in pairs(addon.frameList) do
225 | self:HideComboPoints(nil, frame.kui)
226 | end
227 | end
228 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0-SharedMediaWidgets/StatusbarWidget.lua:
--------------------------------------------------------------------------------
1 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
2 | -- Widget created by Yssaril
3 |
4 | local AceGUI = LibStub("AceGUI-3.0")
5 | local Media = LibStub("LibSharedMedia-3.0")
6 |
7 | local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
8 |
9 | local fixlevels = AceGUI.fixlevels
10 | local fixstrata = AceGUI.fixstrata
11 | local getn = table.getn
12 |
13 | do
14 | local widgetType = "LSM30_Statusbar"
15 | local widgetVersion = 12
16 |
17 | local contentFrameCache = {}
18 | local function ReturnSelf(self)
19 | self:ClearAllPoints()
20 | self:Hide()
21 | self.check:Hide()
22 | table.insert(contentFrameCache, self)
23 | end
24 |
25 | local function ContentOnClick( button)
26 | local self = this.obj
27 | self:Fire("OnValueChanged", 1, this.text:GetText())
28 | self:SetValue(this.text:GetText())
29 | if self.dropdown then
30 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
31 | end
32 | end
33 |
34 | local function GetContentLine()
35 | local frame
36 | if next(contentFrameCache) then
37 | frame = table.remove(contentFrameCache)
38 | else
39 | frame = CreateFrame("Button", nil, UIParent)
40 | --frame:SetWidth(200)
41 | frame:SetHeight(18)
42 | frame:SetHighlightTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]], "ADD")
43 | frame:SetScript("OnClick", ContentOnClick)
44 | local check = frame:CreateTexture("OVERLAY")
45 | check:SetWidth(16)
46 | check:SetHeight(16)
47 | check:SetPoint("LEFT",frame,"LEFT",1,-1)
48 | check:SetTexture("Interface\\Buttons\\UI-CheckBox-Check")
49 | check:Hide()
50 | frame.check = check
51 | local bar = frame:CreateTexture("ARTWORK")
52 | bar:SetHeight(16)
53 | bar:SetPoint("LEFT",check,"RIGHT",1,0)
54 | bar:SetPoint("RIGHT",frame,"RIGHT",-1,0)
55 | frame.bar = bar
56 | local text = frame:CreateFontString(nil,"OVERLAY","GameFontWhite")
57 |
58 | local font, size = text:GetFont()
59 | text:SetFont(font,size,"OUTLINE")
60 |
61 | text:SetPoint("TOPLEFT", check, "TOPRIGHT", 3, 0)
62 | text:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -2, 0)
63 | text:SetJustifyH("LEFT")
64 | text:SetText("Test Test Test Test Test Test Test")
65 | frame.text = text
66 | frame.ReturnSelf = ReturnSelf
67 | end
68 | frame:Show()
69 | return frame
70 | end
71 |
72 | local function OnAcquire(self)
73 | self:SetHeight(44)
74 | self:SetWidth(200)
75 | end
76 |
77 | local function OnRelease(self)
78 | self:SetText("")
79 | self:SetLabel("")
80 | self:SetDisabled(false)
81 |
82 | self.value = nil
83 | self.list = nil
84 | self.open = nil
85 | self.hasClose = nil
86 |
87 | self.frame:ClearAllPoints()
88 | self.frame:Hide()
89 | end
90 |
91 | local function SetValue(self, value) -- Set the value to an item in the List.
92 | if self.list then
93 | self:SetText(value or "")
94 | end
95 | self.value = value
96 | end
97 |
98 | local function GetValue(self)
99 | return self.value
100 | end
101 |
102 | local function SetList(self, list) -- Set the list of values for the dropdown (key => value pairs)
103 | self.list = list or Media:HashTable("statusbar")
104 | end
105 |
106 |
107 | local function SetText(self, text) -- Set the text displayed in the box.
108 | self.frame.text:SetText(text or "")
109 | local statusbar = self.list and self.list[text] ~= text and self.list[text] or Media:Fetch('statusbar',text)
110 | self.bar:SetTexture(statusbar)
111 | end
112 |
113 | local function SetLabel(self, text) -- Set the text for the label.
114 | self.frame.label:SetText(text or "")
115 | end
116 |
117 | local function AddItem(self, key, value) -- Add an item to the list.
118 | self.list = self.list or {}
119 | self.list[key] = value
120 | end
121 | local SetItemValue = AddItem -- Set the value of a item in the list. <>
122 |
123 | local function SetMultiselect(self, flag) end -- Toggle multi-selecting. <>
124 | local function GetMultiselect() return false end-- Query the multi-select flag. <>
125 | local function SetItemDisabled(self, key) end-- Disable one item in the list. <>
126 |
127 | local function SetDisabled(self, disabled) -- Disable the widget.
128 | self.disabled = disabled
129 | if disabled then
130 | self.frame:Disable()
131 | else
132 | self.frame:Enable()
133 | end
134 | end
135 |
136 | local function textSort(a,b)
137 | return string.upper(a) < string.upper(b)
138 | end
139 |
140 |
141 | local function ToggleDrop()
142 | local self = this.obj
143 | if self.dropdown then
144 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
145 | AceGUI:ClearFocus()
146 | else
147 | AceGUI:SetFocus(self)
148 | self.dropdown = AGSMW:GetDropDownFrame()
149 | local width = self.frame:GetWidth()
150 | self.dropdown:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT")
151 | self.dropdown:SetPoint("TOPRIGHT", self.frame, "BOTTOMRIGHT", width < 160 and (160 - width) or 0, 0)
152 | local sortedlist = {}
153 | for k, v in pairs(self.list) do
154 | sortedlist[getn(sortedlist)+1] = k
155 | end
156 | table.sort(sortedlist, textSort)
157 | for i, k in ipairs(sortedlist) do
158 | local f = GetContentLine()
159 | f.text:SetText(k)
160 | --print(k)
161 | if k == self.value then
162 | f.check:Show()
163 | end
164 |
165 | local statusbar = self.list[k] ~= k and self.list[k] or Media:Fetch('statusbar',k)
166 | f.bar:SetTexture(statusbar)
167 | f.obj = self
168 | f.dropdown = self.dropdown
169 | self.dropdown:AddFrame(f)
170 | end
171 | fixlevels(self.dropdown, self.dropdown:GetChildren())
172 | end
173 | end
174 |
175 | local function ClearFocus(self)
176 | if self.dropdown then
177 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
178 | end
179 | end
180 |
181 | local function OnHide()
182 | local self = this.obj
183 | if self.dropdown then
184 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
185 | end
186 | end
187 |
188 | local function Drop_OnEnter()
189 | this.obj:Fire("OnEnter")
190 | end
191 |
192 | local function Drop_OnLeave()
193 | this.obj:Fire("OnLeave")
194 | end
195 |
196 | local function Constructor()
197 | local frame = AGSMW:GetBaseFrame()
198 | local self = {}
199 |
200 | self.type = widgetType
201 | self.frame = frame
202 | frame.obj = self
203 | frame.dropButton.obj = self
204 | frame.dropButton:SetScript("OnEnter", Drop_OnEnter)
205 | frame.dropButton:SetScript("OnLeave", Drop_OnLeave)
206 | frame.dropButton:SetScript("OnClick",ToggleDrop)
207 | frame:SetScript("OnHide", OnHide)
208 |
209 | local bar = frame:CreateTexture(nil, "OVERLAY")
210 | bar:SetPoint("TOPLEFT", frame,"TOPLEFT",6,-25)
211 | bar:SetPoint("BOTTOMRIGHT", frame,"BOTTOMRIGHT", -21, 5)
212 | bar:SetAlpha(0.5)
213 | self.bar = bar
214 |
215 | self.alignoffset = 31
216 |
217 | self.OnRelease = OnRelease
218 | self.OnAcquire = OnAcquire
219 | self.ClearFocus = ClearFocus
220 | self.SetText = SetText
221 | self.SetValue = SetValue
222 | self.GetValue = GetValue
223 | self.SetList = SetList
224 | self.SetLabel = SetLabel
225 | self.SetDisabled = SetDisabled
226 | self.AddItem = AddItem
227 | self.SetMultiselect = SetMultiselect
228 | self.GetMultiselect = GetMultiselect
229 | self.SetItemValue = SetItemValue
230 | self.SetItemDisabled = SetItemDisabled
231 | self.ToggleDrop = ToggleDrop
232 |
233 | AceGUI:RegisterAsWidget(self)
234 | return self
235 | end
236 |
237 | AceGUI:RegisterWidgetType(widgetType, Constructor, widgetVersion)
238 |
239 | end
240 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0-SharedMediaWidgets/BorderWidget.lua:
--------------------------------------------------------------------------------
1 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
2 | -- Widget created by Yssaril
3 |
4 | local AceGUI = LibStub("AceGUI-3.0")
5 | local Media = LibStub("LibSharedMedia-3.0")
6 |
7 | local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
8 |
9 | local fixlevels = AceGUI.fixlevels
10 | local fixstrata = AceGUI.fixstrata
11 | local getn = table.getn
12 |
13 | do
14 | local widgetType = "LSM30_Border"
15 | local widgetVersion = 12
16 |
17 | local contentFrameCache = {}
18 | local function ReturnSelf(self)
19 | self:ClearAllPoints()
20 | self:Hide()
21 | self.check:Hide()
22 | table.insert(contentFrameCache, self)
23 | end
24 |
25 | local function ContentOnClick( button)
26 | local self = this.obj
27 | self:Fire("OnValueChanged", 1, this.text:GetText())
28 | self:SetValue(this.text:GetText())
29 | if self.dropdown then
30 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
31 | end
32 | end
33 |
34 | local function ContentOnEnter( button)
35 | local self = this.obj
36 | local text = this.text:GetText()
37 | local border = self.list[text] ~= text and self.list[text] or Media:Fetch('border',text)
38 | this.dropdown:SetBackdrop({edgeFile = border,
39 | bgFile=[[Interface\DialogFrame\UI-DialogBox-Background]],
40 | tile = true, tileSize = 16, edgeSize = 16,
41 | insets = { left = 4, right = 4, top = 4, bottom = 4 }})
42 | end
43 |
44 | local function GetContentLine()
45 | local frame
46 | if next(contentFrameCache) then
47 | frame = table.remove(contentFrameCache)
48 | else
49 | frame = CreateFrame("Button", nil, UIParent)
50 | --frame:SetWidth(200)
51 | frame:SetHeight(18)
52 | frame:SetHighlightTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]], "ADD")
53 | frame:SetScript("OnClick", ContentOnClick)
54 | frame:SetScript("OnEnter", ContentOnEnter)
55 | local check = frame:CreateTexture("OVERLAY")
56 | check:SetWidth(16)
57 | check:SetHeight(16)
58 | check:SetPoint("LEFT",frame,"LEFT",1,-1)
59 | check:SetTexture("Interface\\Buttons\\UI-CheckBox-Check")
60 | check:Hide()
61 | frame.check = check
62 | local text = frame:CreateFontString(nil,"OVERLAY","GameFontWhite")
63 | text:SetPoint("TOPLEFT", check, "TOPRIGHT", 1, 0)
64 | text:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -2, 0)
65 | text:SetJustifyH("LEFT")
66 | text:SetText("Test Test Test Test Test Test Test")
67 | frame.text = text
68 | frame.ReturnSelf = ReturnSelf
69 | end
70 | frame:Show()
71 | return frame
72 | end
73 |
74 | local function OnAcquire(self)
75 | self:SetHeight(44)
76 | self:SetWidth(200)
77 | end
78 |
79 | local function OnRelease(self)
80 | self:SetText("")
81 | self:SetLabel("")
82 | self:SetDisabled(false)
83 |
84 | self.value = nil
85 | self.list = nil
86 | self.open = nil
87 | self.hasClose = nil
88 |
89 | self.frame:ClearAllPoints()
90 | self.frame:Hide()
91 | end
92 |
93 | local function SetValue(self, value) -- Set the value to an item in the List.
94 | if self.list then
95 | self:SetText(value or "")
96 | end
97 | self.value = value
98 | end
99 |
100 | local function GetValue(self)
101 | return self.value
102 | end
103 |
104 | local function SetList(self, list) -- Set the list of values for the dropdown (key => value pairs)
105 | self.list = list or Media:HashTable("border")
106 | end
107 |
108 |
109 | local function SetText(self, text) -- Set the text displayed in the box.
110 | self.frame.text:SetText(text or "")
111 | local border = self.list and self.list[text] ~= text and self.list[text] or Media:Fetch('border',text)
112 |
113 | self.frame.displayButton:SetBackdrop({edgeFile = border,
114 | bgFile=[[Interface\DialogFrame\UI-DialogBox-Background]],
115 | tile = true, tileSize = 16, edgeSize = 16,
116 | insets = { left = 4, right = 4, top = 4, bottom = 4 }})
117 | end
118 |
119 | local function SetLabel(self, text) -- Set the text for the label.
120 | self.frame.label:SetText(text or "")
121 | end
122 |
123 | local function AddItem(self, key, value) -- Add an item to the list.
124 | self.list = self.list or {}
125 | self.list[key] = value
126 | end
127 | local SetItemValue = AddItem -- Set the value of a item in the list. <>
128 |
129 | local function SetMultiselect(self, flag) end -- Toggle multi-selecting. <>
130 | local function GetMultiselect() return false end-- Query the multi-select flag. <>
131 | local function SetItemDisabled(self, key) end-- Disable one item in the list. <>
132 |
133 | local function SetDisabled(self, disabled) -- Disable the widget.
134 | self.disabled = disabled
135 | if disabled then
136 | self.frame:Disable()
137 | else
138 | self.frame:Enable()
139 | end
140 | end
141 |
142 | local function textSort(a,b)
143 | return string.upper(a) < string.upper(b)
144 | end
145 |
146 |
147 | local function ToggleDrop()
148 | local self = this.obj
149 | if self.dropdown then
150 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
151 | AceGUI:ClearFocus()
152 | else
153 | AceGUI:SetFocus(self)
154 | self.dropdown = AGSMW:GetDropDownFrame()
155 | local width = self.frame:GetWidth()
156 | self.dropdown:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT")
157 | self.dropdown:SetPoint("TOPRIGHT", self.frame, "BOTTOMRIGHT", width < 160 and (160 - width) or 0, 0)
158 | local sortedlist = {}
159 | for k, v in pairs(self.list) do
160 | sortedlist[getn(sortedlist)+1] = k
161 | end
162 | table.sort(sortedlist, textSort)
163 | for i, k in ipairs(sortedlist) do
164 | local f = GetContentLine()
165 | f.text:SetText(k)
166 | if k == self.value then
167 | f.check:Show()
168 | end
169 | f.obj = self
170 | f.dropdown = self.dropdown
171 | self.dropdown:AddFrame(f)
172 | end
173 | fixlevels(self.dropdown, self.dropdown:GetChildren())
174 | end
175 | end
176 |
177 | local function ClearFocus(self)
178 | if self.dropdown then
179 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
180 | end
181 | end
182 |
183 | local function OnHide()
184 | local self = this.obj
185 | if self.dropdown then
186 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
187 | end
188 | end
189 |
190 | local function Drop_OnEnter()
191 | this.obj:Fire("OnEnter")
192 | end
193 |
194 | local function Drop_OnLeave()
195 | this.obj:Fire("OnLeave")
196 | end
197 |
198 | local function Constructor()
199 | local frame = AGSMW:GetBaseFrameWithWindow()
200 | local self = {}
201 |
202 | self.type = widgetType
203 | self.frame = frame
204 | frame.obj = self
205 | frame.dropButton.obj = self
206 | frame.dropButton:SetScript("OnEnter", Drop_OnEnter)
207 | frame.dropButton:SetScript("OnLeave", Drop_OnLeave)
208 | frame.dropButton:SetScript("OnClick",ToggleDrop)
209 | frame:SetScript("OnHide", OnHide)
210 |
211 | self.alignoffset = 31
212 |
213 | self.OnRelease = OnRelease
214 | self.OnAcquire = OnAcquire
215 | self.ClearFocus = ClearFocus
216 | self.SetText = SetText
217 | self.SetValue = SetValue
218 | self.GetValue = GetValue
219 | self.SetList = SetList
220 | self.SetLabel = SetLabel
221 | self.SetDisabled = SetDisabled
222 | self.AddItem = AddItem
223 | self.SetMultiselect = SetMultiselect
224 | self.GetMultiselect = GetMultiselect
225 | self.SetItemValue = SetItemValue
226 | self.SetItemDisabled = SetItemDisabled
227 | self.ToggleDrop = ToggleDrop
228 |
229 | AceGUI:RegisterAsWidget(self)
230 | return self
231 | end
232 |
233 | AceGUI:RegisterWidgetType(widgetType, Constructor, widgetVersion)
234 |
235 | end
236 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/ParserLib/optimizer-zhTW.lua:
--------------------------------------------------------------------------------
1 |
2 | if GetLocale() == "zhTW" then
3 |
4 | if not ParserLibOptimizer then
5 | ParserLibOptimizer = {
6 | AURAADDEDOTHERHARMFUL = "受到",
7 | AURAADDEDOTHERHELPFUL = "獲得了",
8 | AURAADDEDSELFHARMFUL = "受到了",
9 | AURAADDEDSELFHELPFUL = "獲得了",
10 | AURAAPPLICATIONADDEDOTHERHARMFUL = "受到了",
11 | AURAAPPLICATIONADDEDOTHERHELPFUL = "獲得了",
12 | AURAAPPLICATIONADDEDSELFHARMFUL = "受到了",
13 | AURAAPPLICATIONADDEDSELFHELPFUL = "獲得了",
14 | AURADISPELOTHER = "移除",
15 | AURADISPELSELF = "移除",
16 | AURAREMOVEDOTHER = "消失",
17 | AURAREMOVEDSELF = "消失了",
18 | COMBATHITCRITOTHEROTHER = "致命一擊",
19 | COMBATHITCRITOTHERSELF = "致命一擊",
20 | COMBATHITCRITSELFOTHER = "致命一擊",
21 | COMBATHITCRITSELFSELF = "致命一擊",
22 | COMBATHITCRITSCHOOLOTHEROTHER = "致命一擊",
23 | COMBATHITCRITSCHOOLOTHERSELF = "致命一擊",
24 | COMBATHITCRITSCHOOLSELFOTHER = "致命一擊",
25 | COMBATHITCRITSCHOOLSELFSELF = "致命一擊",
26 | COMBATHITOTHEROTHER = "擊中",
27 | COMBATHITOTHERSELF = "擊中",
28 | COMBATHITSELFOTHER = "擊中",
29 | COMBATHITSELFSELF = "擊中",
30 | COMBATHITSCHOOLOTHEROTHER = "擊中",
31 | COMBATHITSCHOOLOTHERSELF = "擊中",
32 | COMBATHITSCHOOLSELFOTHER = "擊中",
33 | COMBATHITSCHOOLSELFSELF = "擊中",
34 | DAMAGESHIELDOTHEROTHER = "反射",
35 | DAMAGESHIELDOTHERSELF = "反彈",
36 | DAMAGESHIELDSELFOTHER = "反彈",
37 | DISPELFAILEDOTHEROTHER = "未能",
38 | DISPELFAILEDOTHERSELF = "未能",
39 | DISPELFAILEDSELFOTHER = "未能",
40 | DISPELFAILEDSELFSELF = "無法",
41 | HEALEDCRITOTHEROTHER = "發揮極效",
42 | HEALEDCRITOTHERSELF = "發揮極效",
43 | HEALEDCRITSELFOTHER = "極效治療",
44 | HEALEDCRITSELFSELF = "極效治療",
45 | HEALEDOTHEROTHER = "恢復",
46 | HEALEDOTHERSELF = "恢復",
47 | HEALEDSELFOTHER = "治療",
48 | HEALEDSELFSELF = "治療",
49 | IMMUNESPELLOTHEROTHER = "免疫",
50 | IMMUNESPELLSELFOTHER = "免疫",
51 | IMMUNESPELLOTHERSELF = "免疫",
52 | IMMUNESPELLSELFSELF = "免疫",
53 | ITEMENCHANTMENTADDOTHEROTHER = "施放",
54 | ITEMENCHANTMENTADDOTHERSELF = "施放",
55 | ITEMENCHANTMENTADDSELFOTHER = "施放",
56 | ITEMENCHANTMENTADDSELFSELF = "施放",
57 | MISSEDOTHEROTHER = "沒有擊中",
58 | MISSEDOTHERSELF = "沒有擊中",
59 | MISSEDSELFOTHER = "沒有擊中",
60 | MISSEDSELFSELF = "沒有擊中",
61 | OPEN_LOCK_OTHER = "使用",
62 | OPEN_LOCK_SELF = "使用",
63 | PARTYKILLOTHER = "幹掉",
64 | PERIODICAURADAMAGEOTHEROTHER = "受到了",
65 | PERIODICAURADAMAGEOTHERSELF = "受到",
66 | PERIODICAURADAMAGESELFOTHER = "受到了",
67 | PERIODICAURADAMAGESELFSELF = "受到",
68 | PERIODICAURAHEALOTHEROTHER = "獲得",
69 | PERIODICAURAHEALOTHERSELF = "獲得了",
70 | PERIODICAURAHEALSELFOTHER = "獲得",
71 | PERIODICAURAHEALSELFSELF = "獲得了",
72 | POWERGAINOTHEROTHER = "獲得",
73 | POWERGAINOTHERSELF = "獲得了",
74 | POWERGAINSELFSELF = "獲得了",
75 | POWERGAINSELFOTHER = "獲得",
76 | PROCRESISTOTHEROTHER = "抵抗了",
77 | PROCRESISTOTHERSELF = "抵抗了",
78 | PROCRESISTSELFOTHER = "抵抗了",
79 | PROCRESISTSELFSELF = "抵抗了",
80 | SIMPLECASTOTHEROTHER = "施放了",
81 | SIMPLECASTOTHERSELF = "施放了",
82 | SIMPLECASTSELFOTHER = "施放了",
83 | SIMPLECASTSELFSELF = "施放了",
84 | SIMPLEPERFORMOTHEROTHER = "使用",
85 | SIMPLEPERFORMOTHERSELF = "使用",
86 | SIMPLEPERFORMSELFOTHER = "使用",
87 | SIMPLEPERFORMSELFSELF = "使用",
88 | SPELLBLOCKEDOTHEROTHER = "格擋",
89 | SPELLBLOCKEDOTHERSELF = "格擋",
90 | SPELLBLOCKEDSELFOTHER = "格擋",
91 | SPELLBLOCKEDSELFSELF = "格擋",
92 | SPELLCASTOTHERSTART = "開始",
93 | SPELLCASTSELFSTART = "開始",
94 | SPELLDEFLECTEDOTHEROTHER = "偏斜",
95 | SPELLDEFLECTEDOTHERSELF = "偏斜",
96 | SPELLDEFLECTEDSELFOTHER = "偏斜",
97 | SPELLDEFLECTEDSELFSELF = "偏斜",
98 | SPELLDODGEDOTHEROTHER = "閃躲",
99 | SPELLDODGEDOTHERSELF = "閃躲",
100 | SPELLDODGEDSELFOTHER = "閃躲",
101 | SPELLEVADEDOTHEROTHER = "閃避",
102 | SPELLEVADEDOTHERSELF = "閃避",
103 | SPELLEVADEDSELFOTHER = "閃避",
104 | SPELLEVADEDSELFSELF = "閃避",
105 | SPELLEXTRAATTACKSOTHER = "額外",
106 | SPELLEXTRAATTACKSOTHER_SINGULAR = "額外",
107 | SPELLEXTRAATTACKSSELF = "額外",
108 | SPELLEXTRAATTACKSSELF_SINGULAR = "額外",
109 | SPELLFAILCASTSELF = "失敗",
110 | SPELLFAILPERFORMSELF = "失敗",
111 | SPELLIMMUNEOTHEROTHER = "免疫",
112 | SPELLIMMUNEOTHERSELF = "免疫",
113 | SPELLIMMUNESELFOTHER = "免疫",
114 | SPELLIMMUNESELFSELF = "免疫",
115 | SPELLINTERRUPTOTHEROTHER = "打斷了",
116 | SPELLINTERRUPTOTHERSELF = "打斷了",
117 | SPELLINTERRUPTSELFOTHER = "打斷了",
118 | SPELLLOGABSORBOTHEROTHER = "吸收了",
119 | SPELLLOGABSORBOTHERSELF = "吸收了",
120 | SPELLLOGABSORBSELFOTHER = "吸收了",
121 | SPELLLOGABSORBSELFSELF = "吸收了",
122 | SPELLLOGCRITOTHEROTHER = "致命一擊",
123 | SPELLLOGCRITOTHERSELF = "致命一擊",
124 | SPELLLOGCRITSCHOOLOTHEROTHER = "致命一擊",
125 | SPELLLOGCRITSCHOOLOTHERSELF = "致命一擊",
126 | SPELLLOGCRITSCHOOLSELFOTHER = "致命一擊",
127 | SPELLLOGCRITSCHOOLSELFSELF = "致命一擊",
128 | SPELLLOGCRITSELFOTHER = "致命一擊",
129 | SPELLLOGOTHEROTHER = "擊中",
130 | SPELLLOGOTHERSELF = "擊中",
131 | SPELLLOGSCHOOLOTHEROTHER = "擊中",
132 | SPELLLOGSCHOOLOTHERSELF = "擊中",
133 | SPELLLOGSCHOOLSELFOTHER = "擊中",
134 | SPELLLOGSCHOOLSELFSELF = "擊中",
135 | SPELLLOGSELFOTHER = "擊中",
136 | SPELLMISSOTHEROTHER = "沒有擊中",
137 | SPELLMISSOTHERSELF = "沒有擊中",
138 | SPELLMISSSELFOTHER = "沒有擊中",
139 | SPELLPARRIEDOTHEROTHER = "招架",
140 | SPELLPARRIEDOTHERSELF = "招架",
141 | SPELLPARRIEDSELFOTHER = "招架",
142 | SPELLPERFORMOTHERSTART = "開始",
143 | SPELLPERFORMSELFSTART = "開始",
144 | SPELLPOWERDRAINOTHEROTHER = "吸取",
145 | SPELLPOWERDRAINOTHERSELF = "吸收",
146 | SPELLPOWERDRAINSELFOTHER = "吸收",
147 | SPELLPOWERLEECHOTHEROTHER = "吸取",
148 | SPELLPOWERLEECHOTHERSELF = "吸取",
149 | SPELLPOWERLEECHSELFOTHER = "吸取",
150 | SPELLREFLECTOTHEROTHER = "反彈",
151 | SPELLREFLECTOTHERSELF = "反彈",
152 | SPELLREFLECTSELFOTHER = "反彈",
153 | SPELLREFLECTSELFSELF = "反彈",
154 | SPELLRESISTOTHEROTHER = "抵抗",
155 | SPELLRESISTOTHERSELF = "抵抗",
156 | SPELLRESISTSELFOTHER = "抵抗",
157 | SPELLRESISTSELFSELF = "抵抗",
158 | SPELLSPLITDAMAGESELFOTHER = "造成了",
159 | SPELLSPLITDAMAGEOTHEROTHER = "造成了",
160 | SPELLSPLITDAMAGEOTHERSELF = "造成了",
161 | SPELLTERSEPERFORM_OTHER = "使用",
162 | SPELLTERSEPERFORM_SELF = "使用",
163 | SPELLTERSE_OTHER = "施放了",
164 | SPELLTERSE_SELF = "施放了",
165 | VSABSORBOTHEROTHER = "吸收了",
166 | VSABSORBOTHERSELF = "吸收了",
167 | VSABSORBSELFOTHER = "吸收了",
168 | VSBLOCKOTHEROTHER = "格擋住了",
169 | VSBLOCKOTHERSELF = "格擋住了",
170 | VSBLOCKSELFOTHER = "格擋住了",
171 | VSBLOCKSELFSELF = "格擋住了",
172 | VSDEFLECTOTHEROTHER = "閃開了",
173 | VSDEFLECTOTHERSELF = "閃開了",
174 | VSDEFLECTSELFOTHER = "閃開了",
175 | VSDEFLECTSELFSELF = "閃開了",
176 | VSDODGEOTHEROTHER = "閃躲開了",
177 | VSDODGEOTHERSELF = "閃躲開了",
178 | VSDODGESELFOTHER = "閃開了",
179 | VSDODGESELFSELF = "dodge",
180 | VSENVIRONMENTALDAMAGE_FALLING_OTHER = "高處掉落",
181 | VSENVIRONMENTALDAMAGE_FALLING_SELF = "火焰",
182 | VSENVIRONMENTALDAMAGE_FIRE_OTHER = "火焰",
183 | VSENVIRONMENTALDAMAGE_FIRE_SELF = "火焰",
184 | VSENVIRONMENTALDAMAGE_LAVA_OTHER = "岩漿",
185 | VSENVIRONMENTALDAMAGE_LAVA_SELF = "岩漿",
186 | VSEVADEOTHEROTHER = "閃避",
187 | VSEVADEOTHERSELF = "閃避",
188 | VSEVADESELFOTHER = "閃避",
189 | VSEVADESELFSELF = "閃避",
190 | VSIMMUNEOTHEROTHER = "免疫",
191 | VSIMMUNEOTHERSELF = "免疫",
192 | VSIMMUNESELFOTHER = "免疫",
193 | VSPARRYOTHEROTHER = "招架",
194 | VSPARRYOTHERSELF = "招架",
195 | VSPARRYSELFOTHER = "招架",
196 | VSRESISTOTHEROTHER = "抵抗",
197 | VSRESISTOTHERSELF = "抵抗",
198 | VSRESISTSELFOTHER = "抵抗",
199 | VSRESISTSELFSELF = "抵抗",
200 | VSENVIRONMENTALDAMAGE_FATIGUE_OTHER = "精疲力竭",
201 | VSENVIRONMENTALDAMAGE_SLIME_OTHER = "泥漿",
202 | VSENVIRONMENTALDAMAGE_SLIME_SELF = "泥漿",
203 | VSENVIRONMENTALDAMAGE_DROWNING_OTHER = "溺水狀態",
204 | UNITDIESSELF = "死亡",
205 | UNITDIESOTHER = "死亡",
206 | UNITDESTROYEDOTHER = "摧毀",
207 |
208 | }
209 |
210 | end
211 |
212 | end
213 |
214 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/lib/ParserLib/optimizer-zhTW.lua:
--------------------------------------------------------------------------------
1 |
2 | if GetLocale() == "zhTW" then
3 |
4 | if not ParserLibOptimizer then
5 | ParserLibOptimizer = {
6 | AURAADDEDOTHERHARMFUL = "受到",
7 | AURAADDEDOTHERHELPFUL = "獲得了",
8 | AURAADDEDSELFHARMFUL = "受到了",
9 | AURAADDEDSELFHELPFUL = "獲得了",
10 | AURAAPPLICATIONADDEDOTHERHARMFUL = "受到了",
11 | AURAAPPLICATIONADDEDOTHERHELPFUL = "獲得了",
12 | AURAAPPLICATIONADDEDSELFHARMFUL = "受到了",
13 | AURAAPPLICATIONADDEDSELFHELPFUL = "獲得了",
14 | AURADISPELOTHER = "移除",
15 | AURADISPELSELF = "移除",
16 | AURAREMOVEDOTHER = "消失",
17 | AURAREMOVEDSELF = "消失了",
18 | COMBATHITCRITOTHEROTHER = "致命一擊",
19 | COMBATHITCRITOTHERSELF = "致命一擊",
20 | COMBATHITCRITSELFOTHER = "致命一擊",
21 | COMBATHITCRITSELFSELF = "致命一擊",
22 | COMBATHITCRITSCHOOLOTHEROTHER = "致命一擊",
23 | COMBATHITCRITSCHOOLOTHERSELF = "致命一擊",
24 | COMBATHITCRITSCHOOLSELFOTHER = "致命一擊",
25 | COMBATHITCRITSCHOOLSELFSELF = "致命一擊",
26 | COMBATHITOTHEROTHER = "擊中",
27 | COMBATHITOTHERSELF = "擊中",
28 | COMBATHITSELFOTHER = "擊中",
29 | COMBATHITSELFSELF = "擊中",
30 | COMBATHITSCHOOLOTHEROTHER = "擊中",
31 | COMBATHITSCHOOLOTHERSELF = "擊中",
32 | COMBATHITSCHOOLSELFOTHER = "擊中",
33 | COMBATHITSCHOOLSELFSELF = "擊中",
34 | DAMAGESHIELDOTHEROTHER = "反射",
35 | DAMAGESHIELDOTHERSELF = "反彈",
36 | DAMAGESHIELDSELFOTHER = "反彈",
37 | DISPELFAILEDOTHEROTHER = "未能",
38 | DISPELFAILEDOTHERSELF = "未能",
39 | DISPELFAILEDSELFOTHER = "未能",
40 | DISPELFAILEDSELFSELF = "無法",
41 | HEALEDCRITOTHEROTHER = "發揮極效",
42 | HEALEDCRITOTHERSELF = "發揮極效",
43 | HEALEDCRITSELFOTHER = "極效治療",
44 | HEALEDCRITSELFSELF = "極效治療",
45 | HEALEDOTHEROTHER = "恢復",
46 | HEALEDOTHERSELF = "恢復",
47 | HEALEDSELFOTHER = "治療",
48 | HEALEDSELFSELF = "治療",
49 | IMMUNESPELLOTHEROTHER = "免疫",
50 | IMMUNESPELLSELFOTHER = "免疫",
51 | IMMUNESPELLOTHERSELF = "免疫",
52 | IMMUNESPELLSELFSELF = "免疫",
53 | ITEMENCHANTMENTADDOTHEROTHER = "施放",
54 | ITEMENCHANTMENTADDOTHERSELF = "施放",
55 | ITEMENCHANTMENTADDSELFOTHER = "施放",
56 | ITEMENCHANTMENTADDSELFSELF = "施放",
57 | MISSEDOTHEROTHER = "沒有擊中",
58 | MISSEDOTHERSELF = "沒有擊中",
59 | MISSEDSELFOTHER = "沒有擊中",
60 | MISSEDSELFSELF = "沒有擊中",
61 | OPEN_LOCK_OTHER = "使用",
62 | OPEN_LOCK_SELF = "使用",
63 | PARTYKILLOTHER = "幹掉",
64 | PERIODICAURADAMAGEOTHEROTHER = "受到了",
65 | PERIODICAURADAMAGEOTHERSELF = "受到",
66 | PERIODICAURADAMAGESELFOTHER = "受到了",
67 | PERIODICAURADAMAGESELFSELF = "受到",
68 | PERIODICAURAHEALOTHEROTHER = "獲得",
69 | PERIODICAURAHEALOTHERSELF = "獲得了",
70 | PERIODICAURAHEALSELFOTHER = "獲得",
71 | PERIODICAURAHEALSELFSELF = "獲得了",
72 | POWERGAINOTHEROTHER = "獲得",
73 | POWERGAINOTHERSELF = "獲得了",
74 | POWERGAINSELFSELF = "獲得了",
75 | POWERGAINSELFOTHER = "獲得",
76 | PROCRESISTOTHEROTHER = "抵抗了",
77 | PROCRESISTOTHERSELF = "抵抗了",
78 | PROCRESISTSELFOTHER = "抵抗了",
79 | PROCRESISTSELFSELF = "抵抗了",
80 | SIMPLECASTOTHEROTHER = "施放了",
81 | SIMPLECASTOTHERSELF = "施放了",
82 | SIMPLECASTSELFOTHER = "施放了",
83 | SIMPLECASTSELFSELF = "施放了",
84 | SIMPLEPERFORMOTHEROTHER = "使用",
85 | SIMPLEPERFORMOTHERSELF = "使用",
86 | SIMPLEPERFORMSELFOTHER = "使用",
87 | SIMPLEPERFORMSELFSELF = "使用",
88 | SPELLBLOCKEDOTHEROTHER = "格擋",
89 | SPELLBLOCKEDOTHERSELF = "格擋",
90 | SPELLBLOCKEDSELFOTHER = "格擋",
91 | SPELLBLOCKEDSELFSELF = "格擋",
92 | SPELLCASTOTHERSTART = "開始",
93 | SPELLCASTSELFSTART = "開始",
94 | SPELLDEFLECTEDOTHEROTHER = "偏斜",
95 | SPELLDEFLECTEDOTHERSELF = "偏斜",
96 | SPELLDEFLECTEDSELFOTHER = "偏斜",
97 | SPELLDEFLECTEDSELFSELF = "偏斜",
98 | SPELLDODGEDOTHEROTHER = "閃躲",
99 | SPELLDODGEDOTHERSELF = "閃躲",
100 | SPELLDODGEDSELFOTHER = "閃躲",
101 | SPELLEVADEDOTHEROTHER = "閃避",
102 | SPELLEVADEDOTHERSELF = "閃避",
103 | SPELLEVADEDSELFOTHER = "閃避",
104 | SPELLEVADEDSELFSELF = "閃避",
105 | SPELLEXTRAATTACKSOTHER = "額外",
106 | SPELLEXTRAATTACKSOTHER_SINGULAR = "額外",
107 | SPELLEXTRAATTACKSSELF = "額外",
108 | SPELLEXTRAATTACKSSELF_SINGULAR = "額外",
109 | SPELLFAILCASTSELF = "失敗",
110 | SPELLFAILPERFORMSELF = "失敗",
111 | SPELLIMMUNEOTHEROTHER = "免疫",
112 | SPELLIMMUNEOTHERSELF = "免疫",
113 | SPELLIMMUNESELFOTHER = "免疫",
114 | SPELLIMMUNESELFSELF = "免疫",
115 | SPELLINTERRUPTOTHEROTHER = "打斷了",
116 | SPELLINTERRUPTOTHERSELF = "打斷了",
117 | SPELLINTERRUPTSELFOTHER = "打斷了",
118 | SPELLLOGABSORBOTHEROTHER = "吸收了",
119 | SPELLLOGABSORBOTHERSELF = "吸收了",
120 | SPELLLOGABSORBSELFOTHER = "吸收了",
121 | SPELLLOGABSORBSELFSELF = "吸收了",
122 | SPELLLOGCRITOTHEROTHER = "致命一擊",
123 | SPELLLOGCRITOTHERSELF = "致命一擊",
124 | SPELLLOGCRITSCHOOLOTHEROTHER = "致命一擊",
125 | SPELLLOGCRITSCHOOLOTHERSELF = "致命一擊",
126 | SPELLLOGCRITSCHOOLSELFOTHER = "致命一擊",
127 | SPELLLOGCRITSCHOOLSELFSELF = "致命一擊",
128 | SPELLLOGCRITSELFOTHER = "致命一擊",
129 | SPELLLOGOTHEROTHER = "擊中",
130 | SPELLLOGOTHERSELF = "擊中",
131 | SPELLLOGSCHOOLOTHEROTHER = "擊中",
132 | SPELLLOGSCHOOLOTHERSELF = "擊中",
133 | SPELLLOGSCHOOLSELFOTHER = "擊中",
134 | SPELLLOGSCHOOLSELFSELF = "擊中",
135 | SPELLLOGSELFOTHER = "擊中",
136 | SPELLMISSOTHEROTHER = "沒有擊中",
137 | SPELLMISSOTHERSELF = "沒有擊中",
138 | SPELLMISSSELFOTHER = "沒有擊中",
139 | SPELLPARRIEDOTHEROTHER = "招架",
140 | SPELLPARRIEDOTHERSELF = "招架",
141 | SPELLPARRIEDSELFOTHER = "招架",
142 | SPELLPERFORMOTHERSTART = "開始",
143 | SPELLPERFORMSELFSTART = "開始",
144 | SPELLPOWERDRAINOTHEROTHER = "吸取",
145 | SPELLPOWERDRAINOTHERSELF = "吸收",
146 | SPELLPOWERDRAINSELFOTHER = "吸收",
147 | SPELLPOWERLEECHOTHEROTHER = "吸取",
148 | SPELLPOWERLEECHOTHERSELF = "吸取",
149 | SPELLPOWERLEECHSELFOTHER = "吸取",
150 | SPELLREFLECTOTHEROTHER = "反彈",
151 | SPELLREFLECTOTHERSELF = "反彈",
152 | SPELLREFLECTSELFOTHER = "反彈",
153 | SPELLREFLECTSELFSELF = "反彈",
154 | SPELLRESISTOTHEROTHER = "抵抗",
155 | SPELLRESISTOTHERSELF = "抵抗",
156 | SPELLRESISTSELFOTHER = "抵抗",
157 | SPELLRESISTSELFSELF = "抵抗",
158 | SPELLSPLITDAMAGESELFOTHER = "造成了",
159 | SPELLSPLITDAMAGEOTHEROTHER = "造成了",
160 | SPELLSPLITDAMAGEOTHERSELF = "造成了",
161 | SPELLTERSEPERFORM_OTHER = "使用",
162 | SPELLTERSEPERFORM_SELF = "使用",
163 | SPELLTERSE_OTHER = "施放了",
164 | SPELLTERSE_SELF = "施放了",
165 | VSABSORBOTHEROTHER = "吸收了",
166 | VSABSORBOTHERSELF = "吸收了",
167 | VSABSORBSELFOTHER = "吸收了",
168 | VSBLOCKOTHEROTHER = "格擋住了",
169 | VSBLOCKOTHERSELF = "格擋住了",
170 | VSBLOCKSELFOTHER = "格擋住了",
171 | VSBLOCKSELFSELF = "格擋住了",
172 | VSDEFLECTOTHEROTHER = "閃開了",
173 | VSDEFLECTOTHERSELF = "閃開了",
174 | VSDEFLECTSELFOTHER = "閃開了",
175 | VSDEFLECTSELFSELF = "閃開了",
176 | VSDODGEOTHEROTHER = "閃躲開了",
177 | VSDODGEOTHERSELF = "閃躲開了",
178 | VSDODGESELFOTHER = "閃開了",
179 | VSDODGESELFSELF = "dodge",
180 | VSENVIRONMENTALDAMAGE_FALLING_OTHER = "高處掉落",
181 | VSENVIRONMENTALDAMAGE_FALLING_SELF = "火焰",
182 | VSENVIRONMENTALDAMAGE_FIRE_OTHER = "火焰",
183 | VSENVIRONMENTALDAMAGE_FIRE_SELF = "火焰",
184 | VSENVIRONMENTALDAMAGE_LAVA_OTHER = "岩漿",
185 | VSENVIRONMENTALDAMAGE_LAVA_SELF = "岩漿",
186 | VSEVADEOTHEROTHER = "閃避",
187 | VSEVADEOTHERSELF = "閃避",
188 | VSEVADESELFOTHER = "閃避",
189 | VSEVADESELFSELF = "閃避",
190 | VSIMMUNEOTHEROTHER = "免疫",
191 | VSIMMUNEOTHERSELF = "免疫",
192 | VSIMMUNESELFOTHER = "免疫",
193 | VSPARRYOTHEROTHER = "招架",
194 | VSPARRYOTHERSELF = "招架",
195 | VSPARRYSELFOTHER = "招架",
196 | VSRESISTOTHEROTHER = "抵抗",
197 | VSRESISTOTHERSELF = "抵抗",
198 | VSRESISTSELFOTHER = "抵抗",
199 | VSRESISTSELFSELF = "抵抗",
200 | VSENVIRONMENTALDAMAGE_FATIGUE_OTHER = "精疲力竭",
201 | VSENVIRONMENTALDAMAGE_SLIME_OTHER = "泥漿",
202 | VSENVIRONMENTALDAMAGE_SLIME_SELF = "泥漿",
203 | VSENVIRONMENTALDAMAGE_DROWNING_OTHER = "溺水狀態",
204 | UNITDIESSELF = "死亡",
205 | UNITDIESOTHER = "死亡",
206 | UNITDESTROYEDOTHER = "摧毀",
207 |
208 | }
209 |
210 | end
211 |
212 | end
213 |
214 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceGUI-3.0-SharedMediaWidgets/BackgroundWidget.lua:
--------------------------------------------------------------------------------
1 | -- Widget is based on the AceGUIWidget-DropDown.lua supplied with AceGUI-3.0
2 | -- Widget created by Yssaril
3 |
4 | local AceGUI = LibStub("AceGUI-3.0")
5 | local Media = LibStub("LibSharedMedia-3.0")
6 |
7 | local AGSMW = LibStub("AceGUISharedMediaWidgets-1.0")
8 |
9 | local fixlevels = AceGUI.fixlevels
10 | local fixstrata = AceGUI.fixstrata
11 | local getn = table.getn
12 |
13 | do
14 | local widgetType = "LSM30_Background"
15 | local widgetVersion = 12
16 |
17 | local contentFrameCache = {}
18 | local function ReturnSelf(self)
19 | self:ClearAllPoints()
20 | self:Hide()
21 | self.check:Hide()
22 | table.insert(contentFrameCache, self)
23 | end
24 |
25 | local function ContentOnClick(button)
26 | local self = this.obj
27 | self:Fire("OnValueChanged", 1, this.text:GetText())
28 | self:SetValue(this.text:GetText())
29 | if self.dropdown then
30 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
31 | end
32 | end
33 |
34 | local function ContentOnEnter(button)
35 | local self = this.obj
36 | local text = this.text:GetText()
37 | local background = self.list[text] ~= text and self.list[text] or Media:Fetch('background', text)
38 | self.dropdown.bgTex:SetTexture(background)
39 | end
40 |
41 | local function GetContentLine()
42 | local frame
43 | if next(contentFrameCache) then
44 | frame = table.remove(contentFrameCache)
45 | else
46 | frame = CreateFrame("Button", nil, UIParent)
47 | --frame:SetWidth(200)
48 | frame:SetHeight(18)
49 | frame:SetHighlightTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]], "ADD")
50 | frame:SetScript("OnClick", ContentOnClick)
51 | frame:SetScript("OnEnter", ContentOnEnter)
52 |
53 | local check = frame:CreateTexture("OVERLAY")
54 | check:SetWidth(16)
55 | check:SetHeight(16)
56 | check:SetPoint("LEFT", frame, "LEFT", 1, -1)
57 | check:SetTexture("Interface\\Buttons\\UI-CheckBox-Check")
58 | check:Hide()
59 | frame.check = check
60 |
61 | local text = frame:CreateFontString(nil, "OVERLAY", "GameFontWhite")
62 | local font, size = text:GetFont()
63 | text:SetFont(font, size, "OUTLINE")
64 |
65 | text:SetPoint("TOPLEFT", check, "TOPRIGHT", 1, 0)
66 | text:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -2, 0)
67 | text:SetJustifyH("LEFT")
68 | text:SetText("Test Test Test Test Test Test Test")
69 | frame.text = text
70 |
71 | frame.ReturnSelf = ReturnSelf
72 | end
73 | frame:Show()
74 | return frame
75 | end
76 |
77 | local function OnAcquire(self)
78 | self:SetHeight(44)
79 | self:SetWidth(200)
80 | end
81 |
82 | local function OnRelease(self)
83 | self:SetText("")
84 | self:SetLabel("")
85 | self:SetDisabled(false)
86 |
87 | self.value = nil
88 | self.list = nil
89 | self.open = nil
90 | self.hasClose = nil
91 |
92 | self.frame:ClearAllPoints()
93 | self.frame:Hide()
94 | end
95 |
96 | local function SetValue(self, value) -- Set the value to an item in the List.
97 | if self.list then
98 | self:SetText(value or "")
99 | end
100 | self.value = value
101 | end
102 |
103 | local function GetValue(self)
104 | return self.value
105 | end
106 |
107 | local function SetList(self, list) -- Set the list of values for the dropdown (key => value pairs)
108 | self.list = list or Media:HashTable("background")
109 | end
110 |
111 | local function SetText(self, text) -- Set the text displayed in the box.
112 | self.frame.text:SetText(text or "")
113 | local background = self.list and self.list[text] ~= text and self.list[text] or Media:Fetch('background', text)
114 |
115 | self.frame.displayButton:SetBackdrop({ bgFile = background,
116 | edgeFile = "Interface/Tooltips/UI-Tooltip-Border",
117 | edgeSize = 16,
118 | insets = { left = 4, right = 4, top = 4, bottom = 4 } })
119 | end
120 |
121 | local function SetLabel(self, text) -- Set the text for the label.
122 | self.frame.label:SetText(text or "")
123 | end
124 |
125 | local function AddItem(self, key, value) -- Add an item to the list.
126 | self.list = self.list or {}
127 | self.list[key] = value
128 | end
129 |
130 | local SetItemValue = AddItem -- Set the value of a item in the list. <>
131 |
132 | local function SetMultiselect(self, flag) end -- Toggle multi-selecting. <>
133 |
134 | local function GetMultiselect() return false end -- Query the multi-select flag. <>
135 |
136 | local function SetItemDisabled(self, key) end -- Disable one item in the list. <>
137 |
138 | local function SetDisabled(self, disabled) -- Disable the widget.
139 | self.disabled = disabled
140 | if disabled then
141 | self.frame:Disable()
142 | self.frame.displayButton:SetBackdropColor(.2, .2, .2, 1)
143 | else
144 | self.frame:Enable()
145 | self.frame.displayButton:SetBackdropColor(1, 1, 1, 1)
146 | end
147 | end
148 |
149 | local function textSort(a, b)
150 | return string.upper(a) < string.upper(b)
151 | end
152 |
153 |
154 | local function ToggleDrop()
155 | local self = this.obj
156 | if self.dropdown then
157 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
158 | AceGUI:ClearFocus()
159 | else
160 | AceGUI:SetFocus(self)
161 | self.dropdown = AGSMW:GetDropDownFrame()
162 | local width = self.frame:GetWidth()
163 | self.dropdown:SetPoint("TOPLEFT", self.frame, "BOTTOMLEFT")
164 | self.dropdown:SetPoint("TOPRIGHT", self.frame, "BOTTOMRIGHT", width < 160 and (160 - width) or 0, 0)
165 | local sortedlist = {}
166 | for k, v in pairs(self.list) do
167 | sortedlist[getn(sortedlist) + 1] = k
168 | end
169 | table.sort(sortedlist, textSort)
170 | for i, k in ipairs(sortedlist) do
171 | local f = GetContentLine()
172 | f.text:SetText(k)
173 | --print(k)
174 | if k == self.value then
175 | f.check:Show()
176 | end
177 | f.obj = self
178 | f.dropdown = self.dropdown
179 | self.dropdown:AddFrame(f)
180 | end
181 | fixlevels(self.dropdown, self.dropdown:GetChildren())
182 | end
183 | end
184 |
185 | local function ClearFocus(self)
186 | if self.dropdown then
187 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
188 | end
189 | end
190 |
191 | local function OnHide()
192 | local self = this.obj
193 | if self.dropdown then
194 | self.dropdown = AGSMW:ReturnDropDownFrame(self.dropdown)
195 | end
196 | end
197 |
198 | local function Drop_OnEnter()
199 | this.obj:Fire("OnEnter")
200 | end
201 |
202 | local function Drop_OnLeave()
203 | this.obj:Fire("OnLeave")
204 | end
205 |
206 | local function Constructor()
207 | local frame = AGSMW:GetBaseFrameWithWindow()
208 | local self = {}
209 |
210 | self.type = widgetType
211 | self.frame = frame
212 | frame.obj = self
213 | frame.dropButton.obj = self
214 | frame.dropButton:SetScript("OnEnter", Drop_OnEnter)
215 | frame.dropButton:SetScript("OnLeave", Drop_OnLeave)
216 | frame.dropButton:SetScript("OnClick", ToggleDrop)
217 | frame:SetScript("OnHide", OnHide)
218 |
219 | self.alignoffset = 31
220 |
221 | self.OnRelease = OnRelease
222 | self.OnAcquire = OnAcquire
223 | self.ClearFocus = ClearFocus
224 | self.SetText = SetText
225 | self.SetValue = SetValue
226 | self.GetValue = GetValue
227 | self.SetList = SetList
228 | self.SetLabel = SetLabel
229 | self.SetDisabled = SetDisabled
230 | self.AddItem = AddItem
231 | self.SetMultiselect = SetMultiselect
232 | self.GetMultiselect = GetMultiselect
233 | self.SetItemValue = SetItemValue
234 | self.SetItemDisabled = SetItemDisabled
235 | self.ToggleDrop = ToggleDrop
236 |
237 | AceGUI:RegisterAsWidget(self)
238 | return self
239 | end
240 |
241 | AceGUI:RegisterWidgetType(widgetType, Constructor, widgetVersion)
242 |
243 | end
244 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/Ace3/AceLocale-3.1/AceLocale-3.1.lua:
--------------------------------------------------------------------------------
1 | --- **AceLocale-3.1** manages localization in addons, allowing for multiple locale to be registered with fallback to the base locale for untranslated strings. AceLocale-3.1 is experimental.
2 | -- @class file
3 | -- @name AceLocale-3.0
4 | -- @release $Id: AceLocale-3.0.lua 1005 2011-01-29 14:19:43Z mikk $
5 | local MAJOR, MINOR = "AceLocale-3.1", 1
6 |
7 | local AceLocale, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
8 |
9 | if not AceLocale then return end -- no upgrade needed
10 |
11 | -- Lua APIs
12 | local assert, tostring, error = assert, tostring, error
13 | local setmetatable, rawset, rawget = setmetatable, rawset, rawget
14 |
15 | -- Global vars/functions that we don't upvalue since they might get hooked, or upgraded
16 | -- List them here for Mikk's FindGlobals script
17 | -- GLOBALS: GAME_LOCALE, geterrorhandler
18 |
19 | local gameLocale = GetLocale()
20 | if gameLocale == "enGB" then
21 | gameLocale = "enUS"
22 | end
23 |
24 | AceLocale.apps = AceLocale.apps or {} -- array of ["AppName"]=localetableref
25 | AceLocale.appnames = AceLocale.appnames or {} -- array of [localetableref]="AppName"
26 | AceLocale.appmodes = AceLocale.appmodes or {}
27 | AceLocale.applocales = AceLocale.applocales or {}
28 |
29 | AceLocale.KEY_ON_MISSING = "KEY_ON_MISSING"
30 | AceLocale.WARN_ON_MISSING = "WARN_ON_MISSING"
31 | AceLocale.NIL_ON_MISSING = "NIL_ON_MISSING"
32 |
33 | local read_metatables = {
34 | KEY_ON_MISSING = {
35 | -- returns the key for missing strings, no warning
36 | __index = function(self, key)
37 | rawset(self, key, key)
38 | return key
39 | end
40 | },
41 | WARN_ON_MISSING = {
42 | -- returns the key for missing strings, but gives a warning
43 | __index = function(self, key)
44 | rawset(self, key, key)
45 | geterrorhandler()(MAJOR .. ": " .. tostring(AceLocale.appnames[self]) .. ": Missing entry for '" .. tostring(key) .. "'")
46 | return key
47 | end
48 | },
49 | NIL_ON_MISSING = false -- this is here just so that the error checking in SetMode works properly
50 | }
51 |
52 | local registering_app
53 | local write_metatables = {
54 | DEFAULT = setmetatable({}, {
55 | __newindex = function(self, key, value)
56 | if not rawget(registering_app, key) then
57 | rawset(registering_app, key, value == true and key or value)
58 | end
59 | end,
60 | __index = function() assert(false) end
61 | }),
62 | LOCALE = setmetatable({}, {
63 | __newindex = function(self, key, value)
64 | rawset(registering_app, key, value == true and key or value)
65 | end,
66 | __index = function() assert(false) end
67 | })
68 | }
69 |
70 | --- Override the results of GetLocale() for a specific application.
71 | -- This must be called _before_ the first call to NewLocale for a given application.
72 | -- @paramsig application, locale
73 | -- @param application Unique name of the addon / module
74 | -- @param locale Name of the locale to use
75 | -- @usage
76 | -- -- in this example we're wanting to test how the german looks in the addon
77 | -- -- todo this we must call SetLocale before any NewLocale calls
78 | -- local AceLocale = LibStub("AceLocale-3.1")
79 | -- AceLocale:SetLocale("MyAddon", "deDE") -- testing how my addon looks in german
80 | --
81 | -- local L = AceLocale:NewLocale("MyAddon", "enUS", true)
82 | -- L["string1"] = true
83 | --
84 | -- local L = AceLocale:NewLocale("MyAddon", "deDE")
85 | -- L["string1"] = "Zeichenkette1"
86 | --
87 | -- local L = AceLocale:GetLocale("MyAddon")
88 | -- local var = L["string1"] -- will always result in "Zeichenkette1" regardless of what game client locale you're running on
89 | function AceLocale:SetLocale(application, locale)
90 | if self.apps[application] then
91 | error("Usage: GetLocale(application, locale): must be called before the first call to NewLocale.", 2)
92 | end
93 |
94 | self.applocales[application] = locale
95 | end
96 |
97 | --- Determines how AceLocale handles keys missing in the translation tables
98 | -- Valid modes are:
99 | -- * AceLocale.KEY_ON_MISSING - returns the key passed in
100 | -- * AceLocale.WARN_ON_MISSING - issues a warning, and then returns the key passed in
101 | -- * AceLocale.NIL_ON_MISSING - fails silently returning nil
102 | -- @paramsig application, mode
103 | -- @param application Unique name of the addon / module
104 | -- @param mode The flag that sets how to handle the missing keys. The default is KEY_ON_MISSING
105 | -- @usage
106 | -- local AceLocale = LibStub("AceLocale-3.1")
107 | --
108 | -- local L = AceLocale:NewLocale("MyAddon", "enUS", true)
109 | -- L["string1"] = true
110 | --
111 | -- local L = AceLocale:NewLocale("MyAddon", "deDE")
112 | -- L["string1"] = "Zeichenkette1"
113 | --
114 | -- local L = AceLocale:GetLocale("MyAddon")
115 | -- local var = L["string2"] -- will result in "string2"
116 | --
117 | -- AceLocale:SetMode("MyAddon", AceLocale.NIL_ON_MISSING)
118 | -- local var = L["string2"] -- will result in in nil
119 | function AceLocale:SetMode(application, mode)
120 | if not mode then
121 | mode = self.KEY_ON_MISSING
122 | end
123 |
124 | if read_metatables[mode] == nil then
125 | error("Usage: SetMode(application, mode): 'mode' - Invalid mode '" .. tostring(mode) .. "' used.", 2)
126 | end
127 |
128 | self.appmodes[application] = mode
129 |
130 | local app = self.apps[application]
131 | if app then
132 | setmetatable(app, read_metatables[mode] or nil) -- changes the false to a nil for NIL_ON_MISSING
133 | end
134 | end
135 |
136 | --- Register a new locale (or extend an existing one) for the specified application,
137 | -- returns a table you can fill your locale into, or nil if the locale doesn't need to be loaded
138 | -- @paramsig application, locale[, isDefault]
139 | -- @param application Unique name of addon / module
140 | -- @param locale Name of the locale to register, e.g. "enUS", "deDE", etc.
141 | -- @param isDefault If this is the default locale being registered (your addon is written in this language, generally enUS). This should only be passed in for _one_ locale.
142 | -- @usage
143 | -- -- enUS.lua
144 | -- local L = LibStub("AceLocale-3.0"):NewLocale("MyAddon", "enUS", true)
145 | -- L["string1"] = true
146 | --
147 | -- -- deDE.lua
148 | -- local L = LibStub("AceLocale-3.0"):NewLocale("MyAddon", "deDE")
149 | -- if not L then return end
150 | -- L["string1"] = "Zeichenkette1"
151 | -- @return Locale Table to add localizations to, or nil if the current locale is not needed.
152 | function AceLocale:NewLocale(application, locale, isDefault)
153 | local app = AceLocale.apps[application]
154 |
155 | if not app then
156 | app = {}
157 | self.apps[application] = app
158 | self.appnames[app] = application
159 | self:SetMode(application, self.appmodes[application])
160 | end
161 |
162 | local targetLocale = self.applocales[application] or gameLocale
163 |
164 | if locale ~= targetLocale and not isDefault then
165 | return
166 | end
167 |
168 | registering_app = app
169 | return isDefault and write_metatables["DEFAULT"] or write_metatables["LOCALE"]
170 | end
171 |
172 | --- Returns localizations for the current locale (or default locale if translations are missing).
173 | -- Errors if nothing is registered (spank developer, not just a missing translation)
174 | -- @param application Unique name of addon / module
175 | -- @param silent If true, the locale is optional, silently return nil if it's not found (defaults to false, optional)
176 | -- @return The locale table for the current language.
177 | function AceLocale:GetLocale(application, silent)
178 | if not silent and not AceLocale.apps[application] then
179 | error("Usage: GetLocale(application[, silent]): 'application' - No locales registered for '" .. tostring(application) .. "'", 2)
180 | end
181 | return AceLocale.apps[application]
182 | end
183 |
--------------------------------------------------------------------------------
/Kui_Media/lib/LibSharedMedia-3.0/LibSharedMedia-3.0.lua:
--------------------------------------------------------------------------------
1 | --[[
2 | Name: LibSharedMedia-3.0
3 | Revision: $Revision: 81924 $
4 | Author: Elkano (elkano@gmx.de)
5 | Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com)
6 | Website: http://
7 | Documentation: http://www.wowace.com/wiki/LibSharedMedia-3.0
8 | SVN: http://svn.wowace.com/wowace/trunk/LibSharedMedia-3.0/
9 | Description: Shared handling of media data (fonts, sounds, textures, ...) between addons.
10 | Dependencies: LibStub, CallbackHandler-1.0
11 | License: LGPL v2.1
12 | ]]
13 |
14 | local MAJOR, MINOR = "LibSharedMedia-3.0", "$Revision: 81924 $"
15 | local lib = LibStub:NewLibrary(MAJOR, MINOR)
16 |
17 | if not lib then return end
18 |
19 | local _G = getfenv(0)
20 |
21 | local pairs = _G.pairs
22 | local type = _G.type
23 | local lower = string.lower
24 | local band = _G.bit.band
25 |
26 | local table_insert = _G.table.insert
27 | local table_sort = _G.table.sort
28 |
29 | local locale = GetLocale()
30 | local locale_is_western
31 | local LOCALE_MASK = 0
32 | lib.LOCALE_BIT_koKR = 1
33 | lib.LOCALE_BIT_zhCN = 2
34 | lib.LOCALE_BIT_zhTW = 4
35 | lib.LOCALE_BIT_ruRU = 128
36 | lib.LOCALE_BIT_western = 128
37 |
38 | local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0")
39 |
40 | lib.callbacks = lib.callbacks or CallbackHandler:New(lib)
41 |
42 | lib.DefaultMedia = lib.DefaultMedia or {}
43 | lib.MediaList = lib.MediaList or {}
44 | lib.MediaTable = lib.MediaTable or {}
45 | lib.MediaType = lib.MediaType or {}
46 | lib.OverrideMedia = lib.OverrideMedia or {}
47 |
48 | local defaultMedia = lib.DefaultMedia
49 | local mediaList = lib.MediaList
50 | local mediaTable = lib.MediaTable
51 | local overrideMedia = lib.OverrideMedia
52 |
53 |
54 | -- create mediatype constants
55 | lib.MediaType.BACKGROUND = "background" -- background textures
56 | lib.MediaType.BORDER = "border" -- border textures
57 | lib.MediaType.FONT = "font" -- fonts
58 | lib.MediaType.STATUSBAR = "statusbar" -- statusbar textures
59 | lib.MediaType.SOUND = "sound" -- sound files
60 |
61 | -- populate lib with default Blizzard data
62 | -- BACKGROUND
63 | if not lib.MediaTable.background then lib.MediaTable.background = {} end
64 | lib.MediaTable.background["Blizzard Low Health"] = [[Interface\FullScreenTextures\LowHealth]]
65 | lib.MediaTable.background["Blizzard Out of Control"] = [[Interface\FullScreenTextures\OutOfControl]]
66 | lib.MediaTable.background["Blizzard Tabard Background"] = [[Interface\TabardFrame\TabardFrameBackground]]
67 | lib.MediaTable.background["Solid"] = [[Interface\Buttons\WHITE8X8]]
68 | lib.MediaTable.background["Blizzard Tooltip"] = [[Interface\Tooltips\UI-Tooltip-Background]]
69 |
70 | -- BORDER
71 | if not lib.MediaTable.border then lib.MediaTable.border = {} end
72 | lib.MediaTable.border["None"] = [[Interface\None]]
73 | lib.MediaTable.border["Blizzard Dialog"] = [[Interface\DialogFrame\UI-DialogBox-Border]]
74 | lib.MediaTable.border["Blizzard Tooltip"] = [[Interface\Tooltips\UI-Tooltip-Border]]
75 |
76 | -- FONT
77 | if not lib.MediaTable.font then lib.MediaTable.font = {} end
78 | local SML_MT_font = lib.MediaTable.font
79 | if locale == "koKR" then
80 | LOCALE_MASK = lib.LOCALE_BIT_koKR
81 | --
82 | SML_MT_font["굵은 글꼴"] = [[Fonts\2002B.TTF]]
83 | SML_MT_font["기본 글꼴"] = [[Fonts\2002.TTF]]
84 | SML_MT_font["데미지 글꼴"] = [[Fonts\K_Damage.TTF]]
85 | SML_MT_font["퀘스트 글꼴"] = [[Fonts\K_Pagetext.TTF]]
86 | --
87 | lib.DefaultMedia["font"] = "기본 글꼴" -- someone from koKR please adjust if needed
88 | --
89 | elseif locale == "zhCN" then
90 | LOCALE_MASK = lib.LOCALE_BIT_zhCN
91 | --
92 | SML_MT_font["伤害数字"] = [[Fonts\ZYKai_C.ttf]]
93 | SML_MT_font["默认"] = [[Fonts\ZYKai_T.ttf]]
94 | SML_MT_font["聊天"] = [[Fonts\ZYHei.ttf]]
95 | --
96 | lib.DefaultMedia["font"] = "默认" -- someone from zhCN please adjust if needed
97 | --
98 | elseif locale == "zhTW" then
99 | LOCALE_MASK = lib.LOCALE_BIT_zhTW
100 | --
101 | SML_MT_font["提示訊息"] = [[Fonts\bHEI00M.ttf]]
102 | SML_MT_font["聊天"] = [[Fonts\bHEI01B.ttf]]
103 | SML_MT_font["傷害數字"] = [[Fonts\bKAI00M.ttf]]
104 | SML_MT_font["預設"] = [[Fonts\bLEI00D.ttf]]
105 | --
106 | lib.DefaultMedia["font"] = "預設" -- someone from zhTW please adjust if needed
107 |
108 | elseif locale == "ruRU" then
109 | LOCALE_MASK = lib.LOCALE_BIT_ruRU
110 | --
111 | SML_MT_font["Arial Narrow"] = [[Fonts\ARIALN.TTF]]
112 | SML_MT_font["Friz Quadrata TT"] = [[Fonts\FRIZQT__.TTF]]
113 | SML_MT_font["Morpheus"] = [[Fonts\MORPHEUS.TTF]]
114 | SML_MT_font["Nimrod MT"] = [[Fonts\NIM_____.ttf]]
115 | SML_MT_font["Skurri"] = [[Fonts\SKURRI.TTF]]
116 | --
117 | lib.DefaultMedia.font = "Friz Quadrata TT"
118 | --
119 | else
120 | LOCALE_MASK = lib.LOCALE_BIT_western
121 | locale_is_western = true
122 | --
123 | SML_MT_font["Arial Narrow"] = [[Fonts\ARIALN.TTF]]
124 | SML_MT_font["Friz Quadrata TT"] = [[Fonts\FRIZQT__.TTF]]
125 | SML_MT_font["Morpheus"] = [[Fonts\MORPHEUS.TTF]]
126 | SML_MT_font["Skurri"] = [[Fonts\SKURRI.TTF]]
127 | --
128 | lib.DefaultMedia.font = "Friz Quadrata TT"
129 | --
130 | end
131 |
132 | -- STATUSBAR
133 | if not lib.MediaTable.statusbar then lib.MediaTable.statusbar = {} end
134 | lib.MediaTable.statusbar["Blizzard"] = [[Interface\TargetingFrame\UI-StatusBar]]
135 | lib.DefaultMedia.statusbar = "Blizzard"
136 |
137 | -- SOUND
138 | if not lib.MediaTable.sound then lib.MediaTable.sound = {} end
139 | lib.MediaTable.sound["None"] = [[Interface\Quiet.mp3]] -- Relies on the fact that PlaySound[File] doesn't error on non-existing input.
140 | lib.DefaultMedia.sound = "None"
141 |
142 | local function rebuildMediaList(mediatype)
143 | local mtable = mediaTable[mediatype]
144 | if not mtable then return end
145 | if not mediaList[mediatype] then mediaList[mediatype] = {} end
146 | local mlist = mediaList[mediatype]
147 | -- list can only get larger, so simply overwrite it
148 | local i = 0
149 | for k in pairs(mtable) do
150 | i = i + 1
151 | mlist[i] = k
152 | end
153 | table_sort(mlist)
154 | end
155 |
156 | function lib:Register(mediatype, key, data, langmask)
157 | if mediatype == lib.MediaType.FONT and ((langmask and band(langmask, LOCALE_MASK) == 0) or not (langmask or locale_is_western)) then return false end
158 | mediatype = lower(mediatype)
159 | if not mediaTable[mediatype] then mediaTable[mediatype] = {} end
160 | local mtable = mediaTable[mediatype]
161 | if mtable[key] then return false end
162 |
163 | mtable[key] = data
164 | rebuildMediaList(mediatype)
165 | self.callbacks:Fire("LibSharedMedia_Registered", 2, mediatype, key)
166 | return true
167 | end
168 |
169 | function lib:Fetch(mediatype, key, noDefault)
170 | local mtt = mediaTable[mediatype]
171 | local overridekey = overrideMedia[mediatype]
172 | local result = mtt and ((overridekey and mtt[overridekey] or mtt[key]) or (not noDefault and defaultMedia[mediatype] and mtt[defaultMedia[mediatype]])) or nil
173 |
174 | return result
175 | end
176 |
177 | function lib:IsValid(mediatype, key)
178 | return mediaTable[mediatype] and (not key or mediaTable[mediatype][key]) and true or false
179 | end
180 |
181 | function lib:HashTable(mediatype)
182 | return mediaTable[mediatype]
183 | end
184 |
185 | function lib:List(mediatype)
186 | if not mediaTable[mediatype] then
187 | return nil
188 | end
189 | if not mediaList[mediatype] then
190 | rebuildMediaList(mediatype)
191 | end
192 | return mediaList[mediatype]
193 | end
194 |
195 | function lib:GetGlobal(mediatype)
196 | return overrideMedia[mediatype]
197 | end
198 |
199 | function lib:SetGlobal(mediatype, key)
200 | if not mediaTable[mediatype] then
201 | return false
202 | end
203 | overrideMedia[mediatype] = (key and mediaTable[mediatype][key]) and key or nil
204 | self.callbacks:Fire("LibSharedMedia_SetGlobal", 2, mediatype, overrideMedia[mediatype])
205 | return true
206 | end
207 |
208 | function lib:GetDefault(mediatype)
209 | return defaultMedia[mediatype]
210 | end
211 |
212 | function lib:SetDefault(mediatype, key)
213 | if mediaTable[mediatype] and mediaTable[mediatype][key] and not defaultMedia[mediatype] then
214 | defaultMedia[mediatype] = key
215 | return true
216 | else
217 | return false
218 | end
219 | end
220 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/LibSharedMedia-3.0/LibSharedMedia-3.0.lua:
--------------------------------------------------------------------------------
1 | --[[
2 | Name: LibSharedMedia-3.0
3 | Revision: $Revision: 81924 $
4 | Author: Elkano (elkano@gmx.de)
5 | Inspired By: SurfaceLib by Haste/Otravi (troeks@gmail.com)
6 | Website: http://
7 | Documentation: http://www.wowace.com/wiki/LibSharedMedia-3.0
8 | SVN: http://svn.wowace.com/wowace/trunk/LibSharedMedia-3.0/
9 | Description: Shared handling of media data (fonts, sounds, textures, ...) between addons.
10 | Dependencies: LibStub, CallbackHandler-1.0
11 | License: LGPL v2.1
12 | ]]
13 |
14 | local MAJOR, MINOR = "LibSharedMedia-3.0", "$Revision: 81924 $"
15 | local lib = LibStub:NewLibrary(MAJOR, MINOR)
16 |
17 | if not lib then return end
18 |
19 | local _G = getfenv(0)
20 |
21 | local pairs = _G.pairs
22 | local type = _G.type
23 | local lower = string.lower
24 | local band = _G.bit.band
25 |
26 | local table_insert = _G.table.insert
27 | local table_sort = _G.table.sort
28 |
29 | local locale = GetLocale()
30 | local locale_is_western
31 | local LOCALE_MASK = 0
32 | lib.LOCALE_BIT_koKR = 1
33 | lib.LOCALE_BIT_zhCN = 2
34 | lib.LOCALE_BIT_zhTW = 4
35 | lib.LOCALE_BIT_ruRU = 128
36 | lib.LOCALE_BIT_western = 128
37 |
38 | local CallbackHandler = LibStub:GetLibrary("CallbackHandler-1.0")
39 |
40 | lib.callbacks = lib.callbacks or CallbackHandler:New(lib)
41 |
42 | lib.DefaultMedia = lib.DefaultMedia or {}
43 | lib.MediaList = lib.MediaList or {}
44 | lib.MediaTable = lib.MediaTable or {}
45 | lib.MediaType = lib.MediaType or {}
46 | lib.OverrideMedia = lib.OverrideMedia or {}
47 |
48 | local defaultMedia = lib.DefaultMedia
49 | local mediaList = lib.MediaList
50 | local mediaTable = lib.MediaTable
51 | local overrideMedia = lib.OverrideMedia
52 |
53 |
54 | -- create mediatype constants
55 | lib.MediaType.BACKGROUND = "background" -- background textures
56 | lib.MediaType.BORDER = "border" -- border textures
57 | lib.MediaType.FONT = "font" -- fonts
58 | lib.MediaType.STATUSBAR = "statusbar" -- statusbar textures
59 | lib.MediaType.SOUND = "sound" -- sound files
60 |
61 | -- populate lib with default Blizzard data
62 | -- BACKGROUND
63 | if not lib.MediaTable.background then lib.MediaTable.background = {} end
64 | lib.MediaTable.background["Blizzard Low Health"] = [[Interface\FullScreenTextures\LowHealth]]
65 | lib.MediaTable.background["Blizzard Out of Control"] = [[Interface\FullScreenTextures\OutOfControl]]
66 | lib.MediaTable.background["Blizzard Tabard Background"] = [[Interface\TabardFrame\TabardFrameBackground]]
67 | lib.MediaTable.background["Solid"] = [[Interface\Buttons\WHITE8X8]]
68 | lib.MediaTable.background["Blizzard Tooltip"] = [[Interface\Tooltips\UI-Tooltip-Background]]
69 |
70 | -- BORDER
71 | if not lib.MediaTable.border then lib.MediaTable.border = {} end
72 | lib.MediaTable.border["None"] = [[Interface\None]]
73 | lib.MediaTable.border["Blizzard Dialog"] = [[Interface\DialogFrame\UI-DialogBox-Border]]
74 | lib.MediaTable.border["Blizzard Tooltip"] = [[Interface\Tooltips\UI-Tooltip-Border]]
75 |
76 | -- FONT
77 | if not lib.MediaTable.font then lib.MediaTable.font = {} end
78 | local SML_MT_font = lib.MediaTable.font
79 | if locale == "koKR" then
80 | LOCALE_MASK = lib.LOCALE_BIT_koKR
81 | --
82 | SML_MT_font["굵은 글꼴"] = [[Fonts\2002B.TTF]]
83 | SML_MT_font["기본 글꼴"] = [[Fonts\2002.TTF]]
84 | SML_MT_font["데미지 글꼴"] = [[Fonts\K_Damage.TTF]]
85 | SML_MT_font["퀘스트 글꼴"] = [[Fonts\K_Pagetext.TTF]]
86 | --
87 | lib.DefaultMedia["font"] = "기본 글꼴" -- someone from koKR please adjust if needed
88 | --
89 | elseif locale == "zhCN" then
90 | LOCALE_MASK = lib.LOCALE_BIT_zhCN
91 | --
92 | SML_MT_font["伤害数字"] = [[Fonts\ZYKai_C.ttf]]
93 | SML_MT_font["默认"] = [[Fonts\ZYKai_T.ttf]]
94 | SML_MT_font["聊天"] = [[Fonts\ZYHei.ttf]]
95 | --
96 | lib.DefaultMedia["font"] = "默认" -- someone from zhCN please adjust if needed
97 | --
98 | elseif locale == "zhTW" then
99 | LOCALE_MASK = lib.LOCALE_BIT_zhTW
100 | --
101 | SML_MT_font["提示訊息"] = [[Fonts\bHEI00M.ttf]]
102 | SML_MT_font["聊天"] = [[Fonts\bHEI01B.ttf]]
103 | SML_MT_font["傷害數字"] = [[Fonts\bKAI00M.ttf]]
104 | SML_MT_font["預設"] = [[Fonts\bLEI00D.ttf]]
105 | --
106 | lib.DefaultMedia["font"] = "預設" -- someone from zhTW please adjust if needed
107 |
108 | elseif locale == "ruRU" then
109 | LOCALE_MASK = lib.LOCALE_BIT_ruRU
110 | --
111 | SML_MT_font["Arial Narrow"] = [[Fonts\ARIALN.TTF]]
112 | SML_MT_font["Friz Quadrata TT"] = [[Fonts\FRIZQT__.TTF]]
113 | SML_MT_font["Morpheus"] = [[Fonts\MORPHEUS.TTF]]
114 | SML_MT_font["Nimrod MT"] = [[Fonts\NIM_____.ttf]]
115 | SML_MT_font["Skurri"] = [[Fonts\SKURRI.TTF]]
116 | --
117 | lib.DefaultMedia.font = "Friz Quadrata TT"
118 | --
119 | else
120 | LOCALE_MASK = lib.LOCALE_BIT_western
121 | locale_is_western = true
122 | --
123 | SML_MT_font["Arial Narrow"] = [[Fonts\ARIALN.TTF]]
124 | SML_MT_font["Friz Quadrata TT"] = [[Fonts\FRIZQT__.TTF]]
125 | SML_MT_font["Morpheus"] = [[Fonts\MORPHEUS.TTF]]
126 | SML_MT_font["Skurri"] = [[Fonts\SKURRI.TTF]]
127 | --
128 | lib.DefaultMedia.font = "Friz Quadrata TT"
129 | --
130 | end
131 |
132 | -- STATUSBAR
133 | if not lib.MediaTable.statusbar then lib.MediaTable.statusbar = {} end
134 | lib.MediaTable.statusbar["Blizzard"] = [[Interface\TargetingFrame\UI-StatusBar]]
135 | lib.DefaultMedia.statusbar = "Blizzard"
136 |
137 | -- SOUND
138 | if not lib.MediaTable.sound then lib.MediaTable.sound = {} end
139 | lib.MediaTable.sound["None"] = [[Interface\Quiet.mp3]] -- Relies on the fact that PlaySound[File] doesn't error on non-existing input.
140 | lib.DefaultMedia.sound = "None"
141 |
142 | local function rebuildMediaList(mediatype)
143 | local mtable = mediaTable[mediatype]
144 | if not mtable then return end
145 | if not mediaList[mediatype] then mediaList[mediatype] = {} end
146 | local mlist = mediaList[mediatype]
147 | -- list can only get larger, so simply overwrite it
148 | local i = 0
149 | for k in pairs(mtable) do
150 | i = i + 1
151 | mlist[i] = k
152 | end
153 | table_sort(mlist)
154 | end
155 |
156 | function lib:Register(mediatype, key, data, langmask)
157 | if mediatype == lib.MediaType.FONT and ((langmask and band(langmask, LOCALE_MASK) == 0) or not (langmask or locale_is_western)) then return false end
158 | mediatype = lower(mediatype)
159 | if not mediaTable[mediatype] then mediaTable[mediatype] = {} end
160 | local mtable = mediaTable[mediatype]
161 | if mtable[key] then return false end
162 |
163 | mtable[key] = data
164 | rebuildMediaList(mediatype)
165 | self.callbacks:Fire("LibSharedMedia_Registered", 2, mediatype, key)
166 | return true
167 | end
168 |
169 | function lib:Fetch(mediatype, key, noDefault)
170 | local mtt = mediaTable[mediatype]
171 | local overridekey = overrideMedia[mediatype]
172 | local result = mtt and ((overridekey and mtt[overridekey] or mtt[key]) or (not noDefault and defaultMedia[mediatype] and mtt[defaultMedia[mediatype]])) or nil
173 |
174 | return result
175 | end
176 |
177 | function lib:IsValid(mediatype, key)
178 | return mediaTable[mediatype] and (not key or mediaTable[mediatype][key]) and true or false
179 | end
180 |
181 | function lib:HashTable(mediatype)
182 | return mediaTable[mediatype]
183 | end
184 |
185 | function lib:List(mediatype)
186 | if not mediaTable[mediatype] then
187 | return nil
188 | end
189 | if not mediaList[mediatype] then
190 | rebuildMediaList(mediatype)
191 | end
192 | return mediaList[mediatype]
193 | end
194 |
195 | function lib:GetGlobal(mediatype)
196 | return overrideMedia[mediatype]
197 | end
198 |
199 | function lib:SetGlobal(mediatype, key)
200 | if not mediaTable[mediatype] then
201 | return false
202 | end
203 | overrideMedia[mediatype] = (key and mediaTable[mediatype][key]) and key or nil
204 | self.callbacks:Fire("LibSharedMedia_SetGlobal", 2, mediatype, overrideMedia[mediatype])
205 | return true
206 | end
207 |
208 | function lib:GetDefault(mediatype)
209 | return defaultMedia[mediatype]
210 | end
211 |
212 | function lib:SetDefault(mediatype, key)
213 | if mediaTable[mediatype] and mediaTable[mediatype][key] and not defaultMedia[mediatype] then
214 | defaultMedia[mediatype] = key
215 | return true
216 | else
217 | return false
218 | end
219 | end
220 |
--------------------------------------------------------------------------------
/Kui_Nameplates/lib/ParserLib/optimizer-enUS.lua:
--------------------------------------------------------------------------------
1 |
2 | if GetLocale() == "enUS" then
3 |
4 | if not ParserLibOptimizer then
5 | ParserLibOptimizer = {
6 | AURAADDEDOTHERHARMFUL = "afflict",
7 | AURAADDEDOTHERHELPFUL = "gain",
8 | AURAADDEDSELFHARMFUL = "afflict",
9 | AURAADDEDSELFHELPFUL = "gain",
10 | AURAAPPLICATIONADDEDOTHERHARMFUL = "afflict",
11 | AURAAPPLICATIONADDEDOTHERHELPFUL = "gain",
12 | AURAAPPLICATIONADDEDSELFHARMFUL = "afflict",
13 | AURAAPPLICATIONADDEDSELFHELPFUL = "gain",
14 | AURADISPELOTHER = "remove",
15 | AURADISPELSELF = "remove",
16 | AURAREMOVEDOTHER = "fade",
17 | AURAREMOVEDSELF = "fade",
18 | COMBATHITCRITOTHEROTHER = "crit",
19 | COMBATHITCRITOTHERSELF = "crit",
20 | COMBATHITCRITSELFOTHER = "crit",
21 | COMBATHITCRITSELFSELF = "crit",
22 | COMBATHITCRITSCHOOLOTHEROTHER = "crit",
23 | COMBATHITCRITSCHOOLOTHERSELF = "crit",
24 | COMBATHITCRITSCHOOLSELFOTHER = "crit",
25 | COMBATHITCRITSCHOOLSELFSELF = "crit",
26 | COMBATHITOTHEROTHER = "hit",
27 | COMBATHITOTHERSELF = "hit",
28 | COMBATHITSELFOTHER = "hit",
29 | COMBATHITSELFSELF = "hit",
30 | COMBATHITSCHOOLOTHEROTHER = "hit",
31 | COMBATHITSCHOOLOTHERSELF = "hit",
32 | COMBATHITSCHOOLSELFOTHER = "hit",
33 | COMBATHITSCHOOLSELFSELF = "hit",
34 | DAMAGESHIELDOTHEROTHER = "reflect",
35 | DAMAGESHIELDOTHERSELF = "reflect",
36 | DAMAGESHIELDSELFOTHER = "reflect",
37 | DISPELFAILEDOTHEROTHER = "fail",
38 | DISPELFAILEDOTHERSELF = "fail",
39 | DISPELFAILEDSELFOTHER = "fail",
40 | DISPELFAILEDSELFSELF = "fail",
41 | HEALEDCRITOTHEROTHER = "crit",
42 | HEALEDCRITOTHERSELF = "crit",
43 | HEALEDCRITSELFOTHER = "crit",
44 | HEALEDCRITSELFSELF = "crit",
45 | HEALEDOTHEROTHER = "heal",
46 | HEALEDOTHERSELF = "heal",
47 | HEALEDSELFOTHER = "heal",
48 | HEALEDSELFSELF = "heal",
49 | IMMUNESPELLOTHEROTHER = "immune",
50 | IMMUNESPELLSELFOTHER = "immune",
51 | IMMUNESPELLOTHERSELF = "immune",
52 | IMMUNESPELLSELFSELF = "immune",
53 | ITEMENCHANTMENTADDOTHEROTHER = "cast",
54 | ITEMENCHANTMENTADDOTHERSELF = "cast",
55 | ITEMENCHANTMENTADDSELFOTHER = "cast",
56 | ITEMENCHANTMENTADDSELFSELF = "cast",
57 | MISSEDOTHEROTHER = "miss",
58 | MISSEDOTHERSELF = "miss",
59 | MISSEDSELFOTHER = "miss",
60 | MISSEDSELFSELF = "miss",
61 | OPEN_LOCK_OTHER = "perform",
62 | OPEN_LOCK_SELF = "perform",
63 | PARTYKILLOTHER = "slain",
64 | PERIODICAURADAMAGEOTHEROTHER = "suffer",
65 | PERIODICAURADAMAGEOTHERSELF = "suffer",
66 | PERIODICAURADAMAGESELFOTHER = "suffer",
67 | PERIODICAURADAMAGESELFSELF = "suffer",
68 | PERIODICAURAHEALOTHEROTHER = "gain",
69 | PERIODICAURAHEALOTHERSELF = "gain",
70 | PERIODICAURAHEALSELFOTHER = "gain",
71 | PERIODICAURAHEALSELFSELF = "gain",
72 | POWERGAINOTHEROTHER = "gain",
73 | POWERGAINOTHERSELF = "gain",
74 | POWERGAINSELFSELF = "gain",
75 | POWERGAINSELFOTHER = "gain",
76 | PROCRESISTOTHEROTHER = "resist",
77 | PROCRESISTOTHERSELF = "resist",
78 | PROCRESISTSELFOTHER = "resist",
79 | PROCRESISTSELFSELF = "resist",
80 | SIMPLECASTOTHEROTHER = "cast",
81 | SIMPLECASTOTHERSELF = "cast",
82 | SIMPLECASTSELFOTHER = "cast",
83 | SIMPLECASTSELFSELF = "cast",
84 | SIMPLEPERFORMOTHEROTHER = "perform",
85 | SIMPLEPERFORMOTHERSELF = "perform",
86 | SIMPLEPERFORMSELFOTHER = "perform",
87 | SIMPLEPERFORMSELFSELF = "perform",
88 | SPELLBLOCKEDOTHEROTHER = "block",
89 | SPELLBLOCKEDOTHERSELF = "block",
90 | SPELLBLOCKEDSELFOTHER = "block",
91 | SPELLBLOCKEDSELFSELF = "block",
92 | SPELLCASTOTHERSTART = "begin",
93 | SPELLCASTSELFSTART = "begin",
94 | SPELLDEFLECTEDOTHEROTHER = "deflect",
95 | SPELLDEFLECTEDOTHERSELF = "deflect",
96 | SPELLDEFLECTEDSELFOTHER = "deflect",
97 | SPELLDEFLECTEDSELFSELF = "deflect",
98 | SPELLDODGEDOTHEROTHER = "dodge",
99 | SPELLDODGEDOTHERSELF = "dodge",
100 | SPELLDODGEDSELFOTHER = "dodge",
101 | SPELLEVADEDOTHEROTHER = "evade",
102 | SPELLEVADEDOTHERSELF = "evade",
103 | SPELLEVADEDSELFOTHER = "evade",
104 | SPELLEVADEDSELFSELF = "evade",
105 | SPELLEXTRAATTACKSOTHER = "extra",
106 | SPELLEXTRAATTACKSOTHER_SINGULAR = "extra",
107 | SPELLEXTRAATTACKSSELF = "extra",
108 | SPELLEXTRAATTACKSSELF_SINGULAR = "extra",
109 | SPELLFAILCASTSELF = "fail",
110 | SPELLFAILPERFORMSELF = "fail",
111 | SPELLIMMUNEOTHEROTHER = "immune",
112 | SPELLIMMUNEOTHERSELF = "immune",
113 | SPELLIMMUNESELFOTHER = "immune",
114 | SPELLIMMUNESELFSELF = "immune",
115 | SPELLINTERRUPTOTHEROTHER = "interrupt",
116 | SPELLINTERRUPTOTHERSELF = "interrupt",
117 | SPELLINTERRUPTSELFOTHER = "interrupt",
118 | SPELLLOGABSORBOTHEROTHER = "absorb",
119 | SPELLLOGABSORBOTHERSELF = "absorb",
120 | SPELLLOGABSORBSELFOTHER = "absorb",
121 | SPELLLOGABSORBSELFSELF = "absorb",
122 | SPELLLOGCRITOTHEROTHER = "crit",
123 | SPELLLOGCRITOTHERSELF = "crit",
124 | SPELLLOGCRITSCHOOLOTHEROTHER = "crit",
125 | SPELLLOGCRITSCHOOLOTHERSELF = "crit",
126 | SPELLLOGCRITSCHOOLSELFOTHER = "crit",
127 | SPELLLOGCRITSCHOOLSELFSELF = "crit",
128 | SPELLLOGCRITSELFOTHER = "crit",
129 | SPELLLOGOTHEROTHER = "hit",
130 | SPELLLOGOTHERSELF = "hit",
131 | SPELLLOGSCHOOLOTHEROTHER = "hit",
132 | SPELLLOGSCHOOLOTHERSELF = "hit",
133 | SPELLLOGSCHOOLSELFOTHER = "hit",
134 | SPELLLOGSCHOOLSELFSELF = "hit",
135 | SPELLLOGSELFOTHER = "hit",
136 | SPELLMISSOTHEROTHER = "miss",
137 | SPELLMISSOTHERSELF = "miss",
138 | SPELLMISSSELFOTHER = "miss",
139 | SPELLPARRIEDOTHEROTHER = "parr",
140 | SPELLPARRIEDOTHERSELF = "parr",
141 | SPELLPARRIEDSELFOTHER = "parr",
142 | SPELLPERFORMOTHERSTART = "begin",
143 | SPELLPERFORMSELFSTART = "begin",
144 | SPELLPOWERDRAINOTHEROTHER = "drain",
145 | SPELLPOWERDRAINOTHERSELF = "drain",
146 | SPELLPOWERDRAINSELFOTHER = "drain",
147 | SPELLPOWERLEECHOTHEROTHER = "drain",
148 | SPELLPOWERLEECHOTHERSELF = "drain",
149 | SPELLPOWERLEECHSELFOTHER = "drain",
150 | SPELLREFLECTOTHEROTHER = "reflect",
151 | SPELLREFLECTOTHERSELF = "reflect",
152 | SPELLREFLECTSELFOTHER = "reflect",
153 | SPELLREFLECTSELFSELF = "reflect",
154 | SPELLRESISTOTHEROTHER = "resist",
155 | SPELLRESISTOTHERSELF = "resist",
156 | SPELLRESISTSELFOTHER = "resist",
157 | SPELLRESISTSELFSELF = "resist",
158 | SPELLSPLITDAMAGESELFOTHER = "cause",
159 | SPELLSPLITDAMAGEOTHEROTHER = "cause",
160 | SPELLSPLITDAMAGEOTHERSELF = "cause",
161 | SPELLTERSEPERFORM_OTHER = "perform",
162 | SPELLTERSEPERFORM_SELF = "perform",
163 | SPELLTERSE_OTHER = "cast",
164 | SPELLTERSE_SELF = "cast",
165 | VSABSORBOTHEROTHER = "absorb",
166 | VSABSORBOTHERSELF = "absorb",
167 | VSABSORBSELFOTHER = "absorb",
168 | VSBLOCKOTHEROTHER = "block",
169 | VSBLOCKOTHERSELF = "block",
170 | VSBLOCKSELFOTHER = "block",
171 | VSBLOCKSELFSELF = "block",
172 | VSDEFLECTOTHEROTHER = "deflect",
173 | VSDEFLECTOTHERSELF = "deflect",
174 | VSDEFLECTSELFOTHER = "deflect",
175 | VSDEFLECTSELFSELF = "deflect",
176 | VSDODGEOTHEROTHER = "dodge",
177 | VSDODGEOTHERSELF = "dodge",
178 | VSDODGESELFOTHER = "dodge",
179 | VSDODGESELFSELF = "dodge",
180 | VSENVIRONMENTALDAMAGE_FALLING_OTHER = "fall",
181 | VSENVIRONMENTALDAMAGE_FALLING_SELF = "fall",
182 | VSENVIRONMENTALDAMAGE_FIRE_OTHER = "fire",
183 | VSENVIRONMENTALDAMAGE_FIRE_SELF = "fire",
184 | VSENVIRONMENTALDAMAGE_LAVA_OTHER = "lava",
185 | VSENVIRONMENTALDAMAGE_LAVA_SELF = "lava",
186 | VSEVADEOTHEROTHER = "evade",
187 | VSEVADEOTHERSELF = "evade",
188 | VSEVADESELFOTHER = "evade",
189 | VSEVADESELFSELF = "evade",
190 | VSIMMUNEOTHEROTHER = "immune",
191 | VSIMMUNEOTHERSELF = "immune",
192 | VSIMMUNESELFOTHER = "immune",
193 | VSPARRYOTHEROTHER = "parr",
194 | VSPARRYOTHERSELF = "parr",
195 | VSPARRYSELFOTHER = "parr",
196 | VSRESISTOTHEROTHER = "resist",
197 | VSRESISTOTHERSELF = "resist",
198 | VSRESISTSELFOTHER = "resist",
199 | VSRESISTSELFSELF = "resist",
200 | VSENVIRONMENTALDAMAGE_FATIGUE_OTHER = "exhaust",
201 | VSENVIRONMENTALDAMAGE_SLIME_OTHER = "slime",
202 | VSENVIRONMENTALDAMAGE_SLIME_SELF = "slime",
203 | VSENVIRONMENTALDAMAGE_DROWNING_OTHER = "drown",
204 | UNITDIESSELF = "die",
205 | UNITDIESOTHER = "die",
206 | UNITDESTROYEDOTHER = "destroy",
207 |
208 | }
209 |
210 | end
211 |
212 | end
213 |
214 |
--------------------------------------------------------------------------------
/Kui_Nameplates_Auras/lib/ParserLib/optimizer-enUS.lua:
--------------------------------------------------------------------------------
1 |
2 | if GetLocale() == "enUS" then
3 |
4 | if not ParserLibOptimizer then
5 | ParserLibOptimizer = {
6 | AURAADDEDOTHERHARMFUL = "afflict",
7 | AURAADDEDOTHERHELPFUL = "gain",
8 | AURAADDEDSELFHARMFUL = "afflict",
9 | AURAADDEDSELFHELPFUL = "gain",
10 | AURAAPPLICATIONADDEDOTHERHARMFUL = "afflict",
11 | AURAAPPLICATIONADDEDOTHERHELPFUL = "gain",
12 | AURAAPPLICATIONADDEDSELFHARMFUL = "afflict",
13 | AURAAPPLICATIONADDEDSELFHELPFUL = "gain",
14 | AURADISPELOTHER = "remove",
15 | AURADISPELSELF = "remove",
16 | AURAREMOVEDOTHER = "fade",
17 | AURAREMOVEDSELF = "fade",
18 | COMBATHITCRITOTHEROTHER = "crit",
19 | COMBATHITCRITOTHERSELF = "crit",
20 | COMBATHITCRITSELFOTHER = "crit",
21 | COMBATHITCRITSELFSELF = "crit",
22 | COMBATHITCRITSCHOOLOTHEROTHER = "crit",
23 | COMBATHITCRITSCHOOLOTHERSELF = "crit",
24 | COMBATHITCRITSCHOOLSELFOTHER = "crit",
25 | COMBATHITCRITSCHOOLSELFSELF = "crit",
26 | COMBATHITOTHEROTHER = "hit",
27 | COMBATHITOTHERSELF = "hit",
28 | COMBATHITSELFOTHER = "hit",
29 | COMBATHITSELFSELF = "hit",
30 | COMBATHITSCHOOLOTHEROTHER = "hit",
31 | COMBATHITSCHOOLOTHERSELF = "hit",
32 | COMBATHITSCHOOLSELFOTHER = "hit",
33 | COMBATHITSCHOOLSELFSELF = "hit",
34 | DAMAGESHIELDOTHEROTHER = "reflect",
35 | DAMAGESHIELDOTHERSELF = "reflect",
36 | DAMAGESHIELDSELFOTHER = "reflect",
37 | DISPELFAILEDOTHEROTHER = "fail",
38 | DISPELFAILEDOTHERSELF = "fail",
39 | DISPELFAILEDSELFOTHER = "fail",
40 | DISPELFAILEDSELFSELF = "fail",
41 | HEALEDCRITOTHEROTHER = "crit",
42 | HEALEDCRITOTHERSELF = "crit",
43 | HEALEDCRITSELFOTHER = "crit",
44 | HEALEDCRITSELFSELF = "crit",
45 | HEALEDOTHEROTHER = "heal",
46 | HEALEDOTHERSELF = "heal",
47 | HEALEDSELFOTHER = "heal",
48 | HEALEDSELFSELF = "heal",
49 | IMMUNESPELLOTHEROTHER = "immune",
50 | IMMUNESPELLSELFOTHER = "immune",
51 | IMMUNESPELLOTHERSELF = "immune",
52 | IMMUNESPELLSELFSELF = "immune",
53 | ITEMENCHANTMENTADDOTHEROTHER = "cast",
54 | ITEMENCHANTMENTADDOTHERSELF = "cast",
55 | ITEMENCHANTMENTADDSELFOTHER = "cast",
56 | ITEMENCHANTMENTADDSELFSELF = "cast",
57 | MISSEDOTHEROTHER = "miss",
58 | MISSEDOTHERSELF = "miss",
59 | MISSEDSELFOTHER = "miss",
60 | MISSEDSELFSELF = "miss",
61 | OPEN_LOCK_OTHER = "perform",
62 | OPEN_LOCK_SELF = "perform",
63 | PARTYKILLOTHER = "slain",
64 | PERIODICAURADAMAGEOTHEROTHER = "suffer",
65 | PERIODICAURADAMAGEOTHERSELF = "suffer",
66 | PERIODICAURADAMAGESELFOTHER = "suffer",
67 | PERIODICAURADAMAGESELFSELF = "suffer",
68 | PERIODICAURAHEALOTHEROTHER = "gain",
69 | PERIODICAURAHEALOTHERSELF = "gain",
70 | PERIODICAURAHEALSELFOTHER = "gain",
71 | PERIODICAURAHEALSELFSELF = "gain",
72 | POWERGAINOTHEROTHER = "gain",
73 | POWERGAINOTHERSELF = "gain",
74 | POWERGAINSELFSELF = "gain",
75 | POWERGAINSELFOTHER = "gain",
76 | PROCRESISTOTHEROTHER = "resist",
77 | PROCRESISTOTHERSELF = "resist",
78 | PROCRESISTSELFOTHER = "resist",
79 | PROCRESISTSELFSELF = "resist",
80 | SIMPLECASTOTHEROTHER = "cast",
81 | SIMPLECASTOTHERSELF = "cast",
82 | SIMPLECASTSELFOTHER = "cast",
83 | SIMPLECASTSELFSELF = "cast",
84 | SIMPLEPERFORMOTHEROTHER = "perform",
85 | SIMPLEPERFORMOTHERSELF = "perform",
86 | SIMPLEPERFORMSELFOTHER = "perform",
87 | SIMPLEPERFORMSELFSELF = "perform",
88 | SPELLBLOCKEDOTHEROTHER = "block",
89 | SPELLBLOCKEDOTHERSELF = "block",
90 | SPELLBLOCKEDSELFOTHER = "block",
91 | SPELLBLOCKEDSELFSELF = "block",
92 | SPELLCASTOTHERSTART = "begin",
93 | SPELLCASTSELFSTART = "begin",
94 | SPELLDEFLECTEDOTHEROTHER = "deflect",
95 | SPELLDEFLECTEDOTHERSELF = "deflect",
96 | SPELLDEFLECTEDSELFOTHER = "deflect",
97 | SPELLDEFLECTEDSELFSELF = "deflect",
98 | SPELLDODGEDOTHEROTHER = "dodge",
99 | SPELLDODGEDOTHERSELF = "dodge",
100 | SPELLDODGEDSELFOTHER = "dodge",
101 | SPELLEVADEDOTHEROTHER = "evade",
102 | SPELLEVADEDOTHERSELF = "evade",
103 | SPELLEVADEDSELFOTHER = "evade",
104 | SPELLEVADEDSELFSELF = "evade",
105 | SPELLEXTRAATTACKSOTHER = "extra",
106 | SPELLEXTRAATTACKSOTHER_SINGULAR = "extra",
107 | SPELLEXTRAATTACKSSELF = "extra",
108 | SPELLEXTRAATTACKSSELF_SINGULAR = "extra",
109 | SPELLFAILCASTSELF = "fail",
110 | SPELLFAILPERFORMSELF = "fail",
111 | SPELLIMMUNEOTHEROTHER = "immune",
112 | SPELLIMMUNEOTHERSELF = "immune",
113 | SPELLIMMUNESELFOTHER = "immune",
114 | SPELLIMMUNESELFSELF = "immune",
115 | SPELLINTERRUPTOTHEROTHER = "interrupt",
116 | SPELLINTERRUPTOTHERSELF = "interrupt",
117 | SPELLINTERRUPTSELFOTHER = "interrupt",
118 | SPELLLOGABSORBOTHEROTHER = "absorb",
119 | SPELLLOGABSORBOTHERSELF = "absorb",
120 | SPELLLOGABSORBSELFOTHER = "absorb",
121 | SPELLLOGABSORBSELFSELF = "absorb",
122 | SPELLLOGCRITOTHEROTHER = "crit",
123 | SPELLLOGCRITOTHERSELF = "crit",
124 | SPELLLOGCRITSCHOOLOTHEROTHER = "crit",
125 | SPELLLOGCRITSCHOOLOTHERSELF = "crit",
126 | SPELLLOGCRITSCHOOLSELFOTHER = "crit",
127 | SPELLLOGCRITSCHOOLSELFSELF = "crit",
128 | SPELLLOGCRITSELFOTHER = "crit",
129 | SPELLLOGOTHEROTHER = "hit",
130 | SPELLLOGOTHERSELF = "hit",
131 | SPELLLOGSCHOOLOTHEROTHER = "hit",
132 | SPELLLOGSCHOOLOTHERSELF = "hit",
133 | SPELLLOGSCHOOLSELFOTHER = "hit",
134 | SPELLLOGSCHOOLSELFSELF = "hit",
135 | SPELLLOGSELFOTHER = "hit",
136 | SPELLMISSOTHEROTHER = "miss",
137 | SPELLMISSOTHERSELF = "miss",
138 | SPELLMISSSELFOTHER = "miss",
139 | SPELLPARRIEDOTHEROTHER = "parr",
140 | SPELLPARRIEDOTHERSELF = "parr",
141 | SPELLPARRIEDSELFOTHER = "parr",
142 | SPELLPERFORMOTHERSTART = "begin",
143 | SPELLPERFORMSELFSTART = "begin",
144 | SPELLPOWERDRAINOTHEROTHER = "drain",
145 | SPELLPOWERDRAINOTHERSELF = "drain",
146 | SPELLPOWERDRAINSELFOTHER = "drain",
147 | SPELLPOWERLEECHOTHEROTHER = "drain",
148 | SPELLPOWERLEECHOTHERSELF = "drain",
149 | SPELLPOWERLEECHSELFOTHER = "drain",
150 | SPELLREFLECTOTHEROTHER = "reflect",
151 | SPELLREFLECTOTHERSELF = "reflect",
152 | SPELLREFLECTSELFOTHER = "reflect",
153 | SPELLREFLECTSELFSELF = "reflect",
154 | SPELLRESISTOTHEROTHER = "resist",
155 | SPELLRESISTOTHERSELF = "resist",
156 | SPELLRESISTSELFOTHER = "resist",
157 | SPELLRESISTSELFSELF = "resist",
158 | SPELLSPLITDAMAGESELFOTHER = "cause",
159 | SPELLSPLITDAMAGEOTHEROTHER = "cause",
160 | SPELLSPLITDAMAGEOTHERSELF = "cause",
161 | SPELLTERSEPERFORM_OTHER = "perform",
162 | SPELLTERSEPERFORM_SELF = "perform",
163 | SPELLTERSE_OTHER = "cast",
164 | SPELLTERSE_SELF = "cast",
165 | VSABSORBOTHEROTHER = "absorb",
166 | VSABSORBOTHERSELF = "absorb",
167 | VSABSORBSELFOTHER = "absorb",
168 | VSBLOCKOTHEROTHER = "block",
169 | VSBLOCKOTHERSELF = "block",
170 | VSBLOCKSELFOTHER = "block",
171 | VSBLOCKSELFSELF = "block",
172 | VSDEFLECTOTHEROTHER = "deflect",
173 | VSDEFLECTOTHERSELF = "deflect",
174 | VSDEFLECTSELFOTHER = "deflect",
175 | VSDEFLECTSELFSELF = "deflect",
176 | VSDODGEOTHEROTHER = "dodge",
177 | VSDODGEOTHERSELF = "dodge",
178 | VSDODGESELFOTHER = "dodge",
179 | VSDODGESELFSELF = "dodge",
180 | VSENVIRONMENTALDAMAGE_FALLING_OTHER = "fall",
181 | VSENVIRONMENTALDAMAGE_FALLING_SELF = "fall",
182 | VSENVIRONMENTALDAMAGE_FIRE_OTHER = "fire",
183 | VSENVIRONMENTALDAMAGE_FIRE_SELF = "fire",
184 | VSENVIRONMENTALDAMAGE_LAVA_OTHER = "lava",
185 | VSENVIRONMENTALDAMAGE_LAVA_SELF = "lava",
186 | VSEVADEOTHEROTHER = "evade",
187 | VSEVADEOTHERSELF = "evade",
188 | VSEVADESELFOTHER = "evade",
189 | VSEVADESELFSELF = "evade",
190 | VSIMMUNEOTHEROTHER = "immune",
191 | VSIMMUNEOTHERSELF = "immune",
192 | VSIMMUNESELFOTHER = "immune",
193 | VSPARRYOTHEROTHER = "parr",
194 | VSPARRYOTHERSELF = "parr",
195 | VSPARRYSELFOTHER = "parr",
196 | VSRESISTOTHEROTHER = "resist",
197 | VSRESISTOTHERSELF = "resist",
198 | VSRESISTSELFOTHER = "resist",
199 | VSRESISTSELFSELF = "resist",
200 | VSENVIRONMENTALDAMAGE_FATIGUE_OTHER = "exhaust",
201 | VSENVIRONMENTALDAMAGE_SLIME_OTHER = "slime",
202 | VSENVIRONMENTALDAMAGE_SLIME_SELF = "slime",
203 | VSENVIRONMENTALDAMAGE_DROWNING_OTHER = "drown",
204 | UNITDIESSELF = "die",
205 | UNITDIESOTHER = "die",
206 | UNITDESTROYEDOTHER = "destroy",
207 |
208 | }
209 |
210 | end
211 |
212 | end
213 |
214 |
--------------------------------------------------------------------------------