Loading...

Addons

world of warcraft
Categories > Plugins: Tukui > Tukui My own Edit
made by Maximvs
Tukui My Own Edit


description:
This is a really basic addon, hardly any code there, to start creating your own Tukui edit,


TukuiModification.toc -- to load this addon

Code: Select all

## Interface: 80000
## Author: Maximvs
## Version: 0.02
## Title: |cffFFFC01Tukui Modification|r
## Notes: Basic setup for modifications of Tukui externally.
## Dependencies: Tukui
## Thanks to: Tukz, Hydra, Darth Predator, Azilroka, Flyingboots and all other members of Tukui.org community.


TukuiModificationConfig.lua
TukuiModificationLocales.lua
TukuiModificationMedia.lua
TukuiModification01.lua
TukuiModification02.lua

TukuiModificationConfig.lua -- to create your own options for Tukui[

Code: Select all

local T, C, L = Tukui:unpack()

C["MyOwnOption"] = {
	["MyOwnOption01"] = false,
	["MyOwnOption02"] = false
}

TukuiModificationLocales.lua -- to make your own descriptions for added options

Code: Select all

local T, C, L = Tukui:unpack()

local MyOwnOption = {

		["MyOwnOption01"] = {
			["Name"] = "Option 01",
			["Desc"] = "Enable/Disable Option 01",
		},

		["MyOwnOption02"] = {
			["Name"] = "Option 02",
			["Desc"] = "Enable/Disable Option 02",
		},
	}
	
TukuiConfig.enUS["MyOwnOption"] = MyOwnOption


TukuiModificationMedia.lua -- file for adding your own media like fonts or textures. You will need to add the textures and fonts as well.

Code: Select all

local T, C, L = Tukui:unpack()

TukuiMedia = T["Media"]
if not C["Medias"] then C["Medias"] = {} end
-- C["Medias"]["Font"] = [=[Interface\Addons\TukuiMaxUI\Medias\Fonts\MaxUI.ttf]=]

-- adding a font:

-- Maxui normal
local Maxui = CreateFont("MaxUI")
Maxui:SetFont("Interface\\AddOns\\TukuiModification\\Medias\\MaxUI.ttf", 12)
TukuiMedia:RegisterFont("MaxUI", "MaxUI")

-- MaxUI outlined
local MaxuiOutlined = CreateFont("MaxUIoutlined")
MaxuiOutlined:SetFont("Interface\\AddOns\\TukuiModification\\Medias\\MaxUI.ttf", 14, "OUTLINE")
TukuiMedia:RegisterFont("MaxUI OUTLINED", "MaxUIoutlined")

-- adding a texture:
TukuiMedia:RegisterTexture("Gloss", "Interface\\AddOns\\TukuiModification\\Medias\\Gloss.tga")


TukuiModification01.lua -- file for creating your own code

Code: Select all

local T, C, L = Tukui:unpack()
local Panels = T.Panels


-- panels
local function Enable()

	if C["MyOwnOption"]["MyOwnOption01"] == true then

		
	
	end	
	
end
hooksecurefunc(Panels, "Enable", Enable)


TukuiModification02.lua -- file for creating more of your own code

Code: Select all

local function Enable()

	if C["MyOwnOption"]["MyOwnOption02"] == true then

		
	
	end	
	
end
hooksecurefunc(Panels, "Enable", Enable)









TukuiModification -- v. 0.04
- update to match all other Tukui plugins styles

TukuiModification -- v. 0.03
- TOC Update Patch 8.1

TukuiModification -- v. 0.02
- TOC Update
- update for Tukui 18, BFA

TukuiModification -- v. 0.01
- Initial upload

The latest version of this addon is 0.04 and was uploaded on Jan 03, 2019 at 00:15.

This file was last downloaded on Oct 23, 2021 at 10:23 and has been downloaded 7795 times.

Comments

No comments available.
You must be logged in to comment. Please login.