Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 09/23/09, 5:21 AM   #2281
Skallewag
Piston Honda
 
Skallewag's Avatar
 
Gnome Mage
 
Moonglade (EU)
Hi

Im building myself a new UI based on (mainly) Pitbull, eepanels and oUF D3Orbs. Problem is I don´t know jack about
lua programming. By reading the luafiles I can usually figure out the rough function of a line or segment of code and
figure out how to move or resize things by manipulating numbers.

But now I´ve hit a wall with the D3orbs addon (oUF D3Orbs : WoWInterface Downloads : oUF: Layouts)
I know what I want to do designwise. The main trouble is how to make one orb smaller than the other.
By default they look something like this:



but what Im trying to do is more like this (sorry for the crude drawing):



1: health
2: mana
3: innervate CD

Ive asked the addon author if its possible to do this and he told me that I simply haveto add a few lines for manaorbsize but not knowing anything about coding I have no clue how to phrase a new line. Im guessing this is the segment of code Im supposed to be editing:

--create orb func
local function d3o2_createOrb(self,type)
local orb
if type == "power" then
orb = CreateFrame("StatusBar", "oUF_D3Orbs2_PlayerPowerOrb", self)
else
orb = CreateFrame("StatusBar", nil, self)
end
orb:SetStatusBarTexture("Interface\\AddOns\\rTextures\\orb_transparent.tga")
orb:SetHeight(orbsize)
orb:SetWidth(orbsize)
orb.bg = orb:CreateTexture(nil, "BACKGROUND")
orb.bg:SetTexture("Interface\\AddOns\\rTextures\\orb_back2.tga")
orb.bg:SetAllPoints(orb)
orb.Filling = orb:CreateTexture(nil, "ARTWORK")
if type == "power" then
orb.Filling:SetTexture("Interface\\AddOns\\rTextures\\"..orbfilling_texture)
else
orb.Filling:SetTexture("Interface\\AddOns\\rTextures\\"..orbfilling_texture)
end

But all Ive managed to do with it so far is invent various ways to break the addon. This is just a wild stab in the dark but perhaps there is someone out there who has some experience with this mod or just has such awesome coding skills that a glance on this segment is enoughe? Any help would be greatly apreciated.

//Panz

Plopp plopp kaboom! This is an intelligent signature.

Offline
Reply With Quote
Old 09/23/09, 8:42 AM   #2282
Matreco
Glass Joe
 
Orc Shaman
 
Hellscream (EU)
I'd try something like replacing:

orb:SetHeight(orbsize)
orb:SetWidth(orbsize)

with this:

if type == "power" then
orb:SetHeight(orbsize)
orb:SetWidth(orbsize)
else
orb:SetHeight(orbsize * 0.75)
orb:SetWidth(orbsize * 0.75)
end

It will make all non-power orb 75% percent in size of the power orb. Replace the factor by another of your choice or stick with a plain value as desired.

Offline
Reply With Quote
Old 09/23/09, 9:07 AM   #2283
Skallewag
Piston Honda
 
Skallewag's Avatar
 
Gnome Mage
 
Moonglade (EU)
Awesome, thank you so much! Now I can get on with my UI layout. ^^

Oh and in case someone else gets the idea to change orbsizes I found out that I also need to change this part

if type == "power" then
orb.Filling:SetWidth(orbsize)
orb.Filling:SetHeight(orbsize)
else
orb.Filling:SetWidth(orbsize * 0.75)
orb.Filling:SetHeight(orbsize * 0.75)
end

in the same manner to get the background texture to match whatever size youre giving the orb.

Plopp plopp kaboom! This is an intelligent signature.

Offline
Reply With Quote
Old 09/23/09, 6:50 PM   #2284
phasedweasel
Von Kaiser
 
Draenei Shaman
 
Argent Dawn
Since 3.2.2 I cannot get Pitbull 3 or CowTip to function. I've tried reinstalling Pitbull, turning off every mod but Pitbull and deleting WTF, but Pitbull will not even load. Any help?

Offline
Reply With Quote
Old 09/23/09, 7:17 PM   #2285
harrellj
Von Kaiser
 
Gnome Warrior
 
Elune
Originally Posted by phasedweasel View Post
Since 3.2.2 I cannot get Pitbull 3 or CowTip to function. I've tried reinstalling Pitbull, turning off every mod but Pitbull and deleting WTF, but Pitbull will not even load. Any help?
Make sure "load out of date addons" is checked in the addons button in WoW?

Offline
Reply With Quote
Old 09/23/09, 7:50 PM   #2286
phasedweasel
Von Kaiser
 
Draenei Shaman
 
Argent Dawn
Originally Posted by harrellj View Post
Make sure "load out of date addons" is checked in the addons button in WoW?
Yes, that is checked - any other ideas?

EDIT: I found it - there was an embedded library (LibRock's) in another mod (Chinchilla) that had somehow become the problem. Deleting this worked.

Last edited by phasedweasel : 09/23/09 at 9:00 PM.

Offline
Reply With Quote
Old 09/25/09, 10:32 PM   #2287
MaveN
Von Kaiser
 
Draenei Shaman
 
Uldum
Hey guys, got a question about Pitbull 3.0. Its updated and everything, working fine, but for some reason, its not showing my Black arrow or piercing shot bleed debuff on my hunter. It is just showing my stings and hunters mark, nothing else. I dont know why and i have my debuff's enabled. Any ideas on how to get my other debuff's to show? Or a better question, why isnt it showing all my debuffs and how can i fix it? Thanks in advanced!

Offline
Reply With Quote
Old 09/26/09, 6:17 AM   #2288
Keldin
Von Kaiser
 
Keldin's Avatar
 
Dwarf Hunter
 
Darkmoon Faire (EU)
Using a very old version of LynSettings I'm trying to move the default unitframes to a better location. It works fine, until I enter a vehicle type mount. Like the mounts at Argent Tournament or WG machines.

Normal
Mounted
After dismounting

Now, the last screenshot can be solved with a simple /console reloadUI. But the problem in the second screenshot is persistent. I am thinking I am missing some parts of code and my experience with .lua is very, very limited.

The code I am using to move the unitframes is:

-- movin' unitframes
-- code of indie's zsettings
local tl, tc, tr, ml, mc, mr, bl, bc, br = 'TOPLEFT', 'TOP', 'TOPRIGHT', 'LEFT', 'CENTER', 'RIGHT', 'BOTTOMLEFT', 'BOTTOM', 'BOTTOMRIGHT'
function go(f, p, p1, p2, x, y)
  f:ClearAllPoints()
  f:SetPoint(p1, p, p2, x, y)
  f:SetScale(1)
end
go(PlayerFrame, UIParent, mr, mc, -150, -260)
go(TargetFrame, UIParent, ml, mc, 150, -260)

-- party frames
PartyMemberFrame1:ClearAllPoints()
PartyMemberFrame1:SetPoint("TOPLEFT", UIParent, 5, -15)

local playerlevel = UnitLevel("player")
if playerlevel == MAX_PLAYER_LEVEL then
    PlayerFrameTexture:SetTexture("Interface\\TargetingFrame\\UI-TargetingFrame-Elite.blp");
elseif playerlevel > MAX_PLAYER_LEVEL/70 then
    PlayerFrameTexture:SetTexture("Interface\\TargetingFrame\\UI-TargetingFrame-Rare-Elite.blp");
end

Offline
Reply With Quote
Old 09/26/09, 12:36 PM   #2289
Aezoc
Piston Honda
 
Orc Death Knight
 
Scilla
I'm not sure if this is a DK-specific problem or what, but I'm trying to find a mod that will reliably show me the GCD timer, and I'm having no luck. I've tried GCD, the IceHUD module, and Quartz's GCD module. All three of them have problems with sometimes failing to show the GCD, and not always at the same time. Running all three simultaneously, using an ability may cause the GCD display to trigger on two and not the third, but it happens with all of them at least sometimes. Obliterate seems to be the ability that has problems most frequently, but it's not the only culprit. It's very annoying, and having a GCD timer that only works sometimes is arguably worse than not having one at all.

So is there another GCD mod out there that's more reliable than these?

Edit: Solved it, after a little digging - it is DK-specific, in that using the last of any rune type puts the ability on a longer cooldown than the GCD, which confuses the addons. The fix is to change whatever spell the addon is using to something that doesn't use runes or have its own cooldown - rank 1 death coil seemed like the obvious choice to me (spell ID 59134). This fixed IceHUD's GlobalCooldown module, at least.

Last edited by Aezoc : 09/26/09 at 1:14 PM.

Offline
Reply With Quote
Old 09/29/09, 5:34 AM   #2290
zonekiller
Glass Joe
 
Draenei Warrior
 
Burning Steppes (EU)
hi guys, I've been trying to find a way to remove the blinking icons on the ForteXorcist cooldown timer, picture inc.



Seems that buffs with more than 3 minute show as blinking at the end of the bar? (in the white square), and I was wondering if there was any way to change this? Thanks in advance.

Offline
Reply With Quote
Old 09/29/09, 2:59 PM   #2291
Nefiir
Von Kaiser
 
Undead Priest
 
Eonar
Macro question:

I'd like to add a modifier:ctrl statement to my mouseover Dispel Magic macro in order to let me either Dispel Magic or Abolish Disease depending on the modifier, but nothing is working so far.

Basically, to combine the two below:

#showtooltip
/cast [modifier:ctrl] Abolish Disease; Dispel Magic

#showtooltip
/cast [target=mouseover,help] [help] [target=targettarget,help] [ ] Dispel Magic

I've taken a few stabs at this, but nothing so far has worked out. Shouldn't it be something like,

#showtooltip
/cast [target=mouseover,help] [help] [target=targettarget,help] [ ] [modifier:ctrl] Abolish Disease; [target=mouseover,help] [help] [target=targettarget,help] [ ] Dispel Magic

Offline
Reply With Quote
Old 09/29/09, 7:10 PM   #2292
harrellj
Von Kaiser
 
Gnome Warrior
 
Elune
Originally Posted by Nefiir View Post
Macro question:

I'd like to add a modifier:ctrl statement to my mouseover Dispel Magic macro in order to let me either Dispel Magic or Abolish Disease depending on the modifier, but nothing is working so far.

Basically, to combine the two below:

#showtooltip
/cast [modifier:ctrl] Abolish Disease; Dispel Magic

#showtooltip
/cast [target=mouseover,help] [help] [target=targettarget,help] [ ] Dispel Magic

I've taken a few stabs at this, but nothing so far has worked out. Shouldn't it be something like,

#showtooltip
/cast [target=mouseover,help] [help] [target=targettarget,help] [ ] [modifier:ctrl] Abolish Disease; [target=mouseover,help] [help] [target=targettarget,help] [ ] Dispel Magic
Does #showtooltip
/cast [target=mouseover,help,mod:ctrl][help,mod:ctrl][target=targettarget,help,mod:ctrl][target=player,mod:ctrl]Abolish Disease;[target=mouseover,help,nomod][help,nomod][target=targettarget,help,nomod][target=player,nomod]Dispel Magic

work?

Per Fitzcairn's Macro Explain-o-matic the first section for the Abolish Disease would work, but it persistently thinks that Dispel Magic can only be cast on yourself (a /cast [target=mouseover] still makes it say that it'd be cast on yourself), so I can't figure out if it'd work. According to it, the problem you were having with yours was the [], due to it always being true and the macro never going beyond that point. I added the target=player assuming you were trying to put it on yourself and the various mod and nomod things to clarify when each section would fire (programming habits, have to account for all possibilities and vagaries of computers).

Last edited by harrellj : 09/29/09 at 7:16 PM.

Offline
Reply With Quote
Old 09/29/09, 8:28 PM   #2293
PageCCCXI
Glass Joe
 
Blood Elf Paladin
 
Bleeding Hollow
Unit-Frame strata?

Hope I can phrase this in a way that makes sence. I know how I want my UI setup, but to get the clean look I want I need help with my unit frames! I have pitbull now and also tried shadowframes and so far no luck. I don't really care what addon I use, I just want this to work!

I want to overlap unit frames!

The stupid picture below sort of shows what I want. The "+" are the borders and the "." are just place holders and would be the health or mana bar, as appropriate. I want to be able to put my target's target frame on my target's frame. Maybe I have to learn how to upload a pic to show what I want.

The problem I have is when I put the ToT over my Target I cannot pick which one is on top. And it seems to always be my Target, not my ToT. Any suggestions?


+++++++++++++++++++++++++++++++++++++++++++
+......................................+....TARGET of Target health.............+
+......................................+++++++++++++++++++++++++
+.......TARGET health................................................................+
+++++++++++++++++++++++++++++++++++++++++++
+.......TARGET mana.................................................................+
+++++++++++++++++++++++++++++++++++++++++++

Offline
Reply With Quote
Old 09/30/09, 11:38 PM   #2294
Gorsgo
Von Kaiser
 
Undead Rogue
 
Mal'Ganis
Originally Posted by PageCCCXI View Post
The problem I have is when I put the ToT over my Target I cannot pick which one is on top. And it seems to always be my Target, not my ToT. Any suggestions?
There are two methods in place to allow you to control overlapping frames - one is frame strata (UITYPE FrameStrata - WoWWiki - Your guide to the World of Warcraft), the other is frame level (which is just a number. higher numbers will overlap lower numbers). Using the wow API and lua code the way to do this is with :SetFrameStrata() and :SetFrameLevel(). I'm not sure if Pitbull supports these, but you'd have to check the options. I know Stuf Unit Frames supports both of these.


Originally Posted by zonekiller View Post
hi guys, I've been trying to find a way to remove the blinking icons on the ForteXorcist cooldown timer, picture inc.

Seems that buffs with more than 3 minute show as blinking at the end of the bar? (in the white square), and I was wondering if there was any way to change this? Thanks in advance.
That's the functionality of ForteXorcist's cooldown module. Whenever two cooldowns overlap, that is to say they have a cooldown that's approximately the same remaining duration, then the icons will blink to show you all of the cooldowns (rather than one being dominant and overlapping the icons of the other cooldowns).

Offline
Reply With Quote
Old 10/01/09, 7:39 AM   #2295
judgef
Glass Joe
 
Orc Hunter
 
<TSA>
Zenedar (EU)
Grid Health shown as %

Ello.

I just started using GRID and Im very pleased with it.
But there is one thing I just cant figure out, thou I seen others has it working.
How do I get Grid to show health in "xx%" instead of "-xx"?
I going crazy here soon, please help me out!

Last edited by judgef : 10/01/09 at 4:30 PM.

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » User Interface and AddOns

Thread Tools