nUI Layout Test
1 Attachment(s)
First off, this is pre-alpha-alpha code... :D
This is an attempt to manage the nUI layout without editing the nUI core files. It's main purpose is to move the ui elements around a bit too fit nicely into all those new cool nUI dashboards, but it should be possible to override any layout info from nUI_DefaultConfig. I used nUI Tribal for the artwork. Please download and install that prior to trying this out. Right, now for the code. :) Code:
local frame = CreateFrame( "Frame", "nUI_Test", UIParent ) Code:
local function setupSkin() Code:
local function setupArtwork() Code:
local function onEvent(self, event, ...) Code:
frame:SetScript("OnEvent", onEvent) Unfortunately I'm graphically challenged so all the layout coords and offsets might be all wrong, but I expect you skin guru's will be able to figure things out. Enjoy the code. If it works for you: "Wooooo!!!"; if not, then it wasn't me... :D Feel free to tweak things, even calling me an idiot and fixing things would be ok. I'm off to bed now, haven't slept in 2 days so this code might very well make your goldfish swallow your cat. :banana: -- Kodewulf |
I've never had any issues with getting an addon to show up in the list, but for the life of me I cannot get the tribal skin to show up (I'm on the PTR). The only addons I have installed are nUI, nUI Test, and nUI Tribal. The other two are showing up just fine, just not the skin.
|
It's because it's in a sub folder. In the archive it's in
Code:
nUI_Carbon_Tribal\nUI_Carbon_Tribal_2\ Code:
nUI_Carbon_Tribal_2\ |
I'll try again... thanks for pointing that out ;)
|
Ah, I was wondering if it was possible to change some settings in a separate addon so that I don't have to keep editing the files to make my main action bar buttons bigger and my micro menu customed.
|
Any of you coding gurus know where the coords for the target auras are defined? Might just be because I'm trying to do this at 4am, but it seems to be eluding me. :)
|
THey should be in [ Interface > AddOns > nUI > Layouts > Default > HUDLayouts > {hud mode} > nUI_HUDSkin_{hud mode}_Target.lua ]
|
1 Attachment(s)
If you look at the attached image, the area marked with the red is what I'd like to move. :)
|
Ah... okay... you'll find that in the "help" segment of the ["Aura"] section in [ Interface > AddOns > nUI > Layouts > Default > UnitPanels > {panel mode} > nUI_UnitSkin_{panel mode}Target.lua ]
|
Beeeaaaauuutiful... :D You're my hero. I'm so glad you have a grip on the complex code that is nUI. I'm slowly getting the hang of things. By the time I understand it all, I'll have to start learning v6.x I imagine. Lol.
|
All times are GMT -6. The time now is 02:27 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI