Loading...

adjust the Tukui Config

#1
Is there a way to make the whole Tukui Config window movable or with some external coding anchored a bit more to the top? Because I've added some options and fonts and now the dropdown menu is larger/longer then the bottom of the screen. I've been trying to move it but my lua probably isn't good enough...

Code: Select all

local function CreateConfigWindow(self)
	local ConfigFrame = self.ConfigFrame
	ConfigFrame:ClearAllPoints()
	ConfigFrame:Point("CENTER", 0, 100)
end
hooksecurefunc(TukuiConfig, "CreateConfigWindow", CreateConfigWindow)
any help is appreciated.
Maximvs-Aszune, MaxUI

adjust the Tukui Config

#3
Thanks, code below seems to work!

Code: Select all

local function CreateConfigWindow(self)
	TukuiConfigFrame:ClearAllPoints()
	TukuiConfigFrame:Point("CENTER", 0, 100)
end
hooksecurefunc(TukuiConfig, "CreateConfigWindow", CreateConfigWindow)
Maximvs-Aszune, MaxUI

adjust the Tukui Config

#5
next question...

I've added my own options to a already existing category of tukui config, for instance:

Code: Select all

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

C["ActionBars"]["ActionbarClass"] = false	-- Set Class art backdrop for actionbars
C["ActionBars"]["RotationBox"] = false		-- set a movable rotation panel for placing a rotation WA.
C["ActionBars"]["MouseoverAB"] = true 		-- MaxUI actionbar adjustments

Code: Select all

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

local MaxUIActionBars = {
	-- class art actionbars
		["ActionbarClass"] = {
		["Name"] = "Class Texture actionbars",
		["Desc"] = "Set a Class texture as backdrop for the actionbars.",
		},

	-- show/hide Rotation box, need to place adddon or WA icons yourself
		["RotationBox"] = {
		["Name"] = "Rotation Box",
		["Desc"] = "Show/Hide a panel/box for MANUALLY placing a set of rotation icons from a WeakAura's string or rotation addon.",
		},

	-- Make the side actionbars mouseover showable
		["MouseoverAB"] = {
		["Name"] = "Mouseover Side Actionbars",
		["Desc"] = "Enable/Disable the mouseover function on the left and right actionbars (ab 2 and 3).",
		},
}
TukuiConfig.enUS["ActionBars"] = MaxUIActionBars
this all works except that by doing this it doesn't show and use the original name and descriptions set for tukui config for the original options anymore, it will only adjust the new options with the specified name and description for the mouseover tooltip. So the the tukui options are there but the locales for them with name and desc aren't showing anymore, and the newly added ones do. How do I keep the original Name and descriptions in the orignal tukui locales working?
Maximvs-Aszune, MaxUI

adjust the Tukui Config  [Accepted Answer]

#6
That's because you are overwriting the original table by doing ["ActionBars"] = MaxUIActionBars.

Do this instead:

Code: Select all

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

-- class art actionbars
local ActionbarClass = {
	["Name"] = "Class Texture actionbars",
	["Desc"] = "Set a Class texture as backdrop for the actionbars.",
}

-- show/hide Rotation box, need to place adddon or WA icons yourself
local RotationBox = {
	["Name"] = "Rotation Box",
	["Desc"] = "Show/Hide a panel/box for MANUALLY placing a set of rotation icons from a WeakAura's string or rotation addon.",
}

-- Make the side actionbars mouseover showable
local MouseoverAB = {
	["Name"] = "Mouseover Side Actionbars",
	["Desc"] = "Enable/Disable the mouseover function on the left and right actionbars (ab 2 and 3).",
}

TukuiConfig.enUS["ActionBars"]["ActionbarClass"] = ActionbarClass
TukuiConfig.enUS["ActionBars"]["RotationBox"] = RotationBox
TukuiConfig.enUS["ActionBars"]["MouseoverAB"] = MouseoverAB
This way you add to the existing table instead of overwriting it.
ElvUI: Request Feature | Report Bug

My replies might be short sometimes due to time constraints. Nothing personal.

adjust the Tukui Config

#8
Really like what you did Max with this edit, it look great in my opinion.

Great design, great layout, simple and clean. Love it.
Don't commit on master when drunk.

adjust the Tukui Config

#9
Thanks Tukz!

Still learning how to do things properly. But everyone is really helpful. Trying to contribute by uploading the smaller tukui plugins.

Your welcome to 'steal' anything for a new Tukui version or update.
Maximvs-Aszune, MaxUI

Who is online

Users browsing this forum: No registered users and 2 guests