Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » User Interface and AddOns

Reply
 
LinkBack Thread Tools
Old 03/16/08, 7:14 AM   #51
issei
Von Kaiser
 
Orc Warrior
 
Kalecgos
I was trying to figure out how Prat justifies timestamps on the right of justified text (i.e., for a combat log frame) and rip that out to place into oChat, but it wasn't as simple as I'd hoped. Any advice or directions?

Offline
Reply With Quote
Old 03/16/08, 3:23 PM   #52
aow
Glass Joe
 
Draenei Shaman
 
Korgath
Sorry if this is obvious, but I am trying to get rBars working, except my main bar is displaying as 2x6 and I want it to be 1x12. How do I go about doing that?

edit: I'm an idiot. You have to change the ActionButton7 part, in case anyone else can't figure it out.

Last edited by aow : 03/16/08 at 4:31 PM.

Offline
Reply With Quote
Old 03/16/08, 8:44 PM   #53
Sichosis
Piston Honda
 
Night Elf Rogue
 
Whisperwind
Very cool layouts, I am still working on mine. How do you move the unit frames and bars?

Offline
Reply With Quote
Old 03/16/08, 8:56 PM   #54
Velveeta
Von Kaiser
 
Tauren Druid
 
Demon Soul
Originally Posted by Sichosis View Post
Very cool layouts, I am still working on mine. How do you move the unit frames and bars?
You need to edit the layout.lua file to position the unit frames and bars where you want them. There is no in game configuration. Just remember that if you change the lua file while WoW is running, you need to do a /console reloadui for the changes to be visible.

Offline
Reply With Quote
Old 03/16/08, 9:07 PM   #55
nj00s
Bald Bull
 
Cowabanga
Tauren Druid
 
<SFR>
No WoW Account (EU)
Originally Posted by Sichosis View Post
Very cool layouts, I am still working on mine. How do you move the unit frames and bars?
The comments in rBars.lua should give you some hints. If they don't you won't get that far with the rAddOns.

  
-----------------------------------
  -- put bars to places
-----------------------------------
Moving the UFs can be done with the layout.lua, assumably with this chunk:

  player:SetPoint("CENTER", -230, -150)
  target:SetPoint("LEFT", player, "RIGHT", 240, 0)
  tot:SetPoint("RIGHT", target, "LEFT", -10, 0)
  pet:SetPoint("LEFT", player, "RIGHT", 10, 0)
  focus:SetPoint("LEFT", player, "RIGHT", 10, 0)
  party:SetPoint("TOPLEFT", 15, -15)
  raid:SetPoint("TOPLEFT", 15, -115)
Edit: So much for hitting the reply button and coming back to the tab 10mins later

(Extreme newbie tip: Use ctrl + f to find these things )

Norway Offline
Reply With Quote
Old 03/16/08, 9:14 PM   #56
vaff
Von Kaiser
 
Murloc Mage
 
Boulderfist (EU)
What kind of tooltip do you guys use together with Roth Addons, im looking for something simple / minimalistic.

Offline
Reply With Quote
Old 03/16/08, 9:42 PM   #57
Sichosis
Piston Honda
 
Night Elf Rogue
 
Whisperwind
Originally Posted by Velveeta View Post
You need to edit the layout.lua file to position the unit frames and bars where you want them. There is no in game configuration. Just remember that if you change the lua file while WoW is running, you need to do a /console reloadui for the changes to be visible.
Originally Posted by nj00s View Post
The comments in rBars.lua should give you some hints. If they don't you won't get that far with the rAddOns.

  
-----------------------------------
  -- put bars to places
-----------------------------------
Moving the UFs can be done with the layout.lua, assumably with this chunk:

  player:SetPoint("CENTER", -230, -150)
  target:SetPoint("LEFT", player, "RIGHT", 240, 0)
  tot:SetPoint("RIGHT", target, "LEFT", -10, 0)
  pet:SetPoint("LEFT", player, "RIGHT", 10, 0)
  focus:SetPoint("LEFT", player, "RIGHT", 10, 0)
  party:SetPoint("TOPLEFT", 15, -15)
  raid:SetPoint("TOPLEFT", 15, -115)
Edit: So much for hitting the reply button and coming back to the tab 10mins later

(Extreme newbie tip: Use ctrl + f to find these things )
Thankyou.

Offline
Reply With Quote
Old 03/17/08, 6:24 AM   #58
daka242
Glass Joe
 
Orc Rogue
 
Magtheridon (EU)
Originally Posted by vaff View Post
What kind of tooltip do you guys use together with Roth Addons, im looking for something simple / minimalistic.
TipTac

TipTac | World of Warcraft Addons | Curse

Offline
Reply With Quote
Old 03/17/08, 6:50 AM   #59
Zavior
Von Kaiser
 
Night Elf Rogue
 
Haomarush (EU)
How does one define which font to use for showing the hotkeys?

  function addon:makebuttongloss(name, i)
  
    local bu  = _G[name..i]
    local ic  = _G[name..i.."Icon"]
    local co  = _G[name..i.."Count"]
    local bo  = _G[name..i.."Border"]
    local ho  = _G[name..i.."HotKey"]
    local cd  = _G[name..i.."Cooldown"]
    local na  = _G[name..i.."Name"]
    local fl  = _G[name..i.."Flash"]
    local nt  = _G[name..i.."NormalTexture"]

    ho:Show()
    na:Hide()
    
    fl:SetTexture("Interface\\AddOns\\rTextures\\flash")
    bu:SetHighlightTexture("Interface\\AddOns\\rTextures\\hover")    
    bu:SetPushedTexture("Interface\\AddOns\\rTextures\\pushed")
    bu:SetCheckedTexture("Interface\\AddOns\\rTextures\\checked") 
    bu:SetFont("porky.TTf",14,"OUTLINE")
    nt:SetHeight(36)
    nt:SetWidth(36)
    nt:SetPoint("Center", 0, 0);

    ic:SetTexCoord(0.1,0.9,0.1,0.9)
    ic:SetPoint("TOPLEFT", bu, "TOPLEFT", 2, -2)
    ic:SetPoint("BOTTOMRIGHT", bu, "BOTTOMRIGHT", -2, 2)
I bolded what I tried, but the font it uses is the same as in the default ui. Seems it is defined somewhere else, or I just probably fail at trying to add it there.

Offline
Reply With Quote
Old 03/17/08, 6:55 AM   #60
vaff
Von Kaiser
 
Murloc Mage
 
Boulderfist (EU)
Originally Posted by Zavior View Post
How does one define which font to use for showing the hotkeys?

pewpew code
I bolded what I tried, but the font it uses is the same as in the default ui. Seems it is defined somewhere else, or I just probably fail at trying to add it there.
Have you added the font to the WoW/fonts/ folder ... because when I changed my font I had forgotten to do that, I was simply used to using SharedMedia, and rmods does ofcourse not support that

Offline
Reply With Quote
Old 03/17/08, 7:06 AM   #61
Zavior
Von Kaiser
 
Night Elf Rogue
 
Haomarush (EU)
Yeah, the font is in the wow/font/ folder.

Offline
Reply With Quote
Old 03/17/08, 8:52 AM   #62
Velveeta
Von Kaiser
 
Tauren Druid
 
Demon Soul
Originally Posted by Zavior View Post
How does one define which font to use for showing the hotkeys?

  function addon:makebuttongloss(name, i)
  
    local bu  = _G[name..i]
    local ic  = _G[name..i.."Icon"]
    local co  = _G[name..i.."Count"]
    local bo  = _G[name..i.."Border"]
    local ho  = _G[name..i.."HotKey"]
    local cd  = _G[name..i.."Cooldown"]
    local na  = _G[name..i.."Name"]
    local fl  = _G[name..i.."Flash"]
    local nt  = _G[name..i.."NormalTexture"]

    ho:Show()
    na:Hide()
    
    fl:SetTexture("Interface\\AddOns\\rTextures\\flash")
    bu:SetHighlightTexture("Interface\\AddOns\\rTextures\\hover")    
    bu:SetPushedTexture("Interface\\AddOns\\rTextures\\pushed")
    bu:SetCheckedTexture("Interface\\AddOns\\rTextures\\checked") 
    bu:SetFont("porky.TTf",14,"OUTLINE")
    nt:SetHeight(36)
    nt:SetWidth(36)
    nt:SetPoint("Center", 0, 0);

    ic:SetTexCoord(0.1,0.9,0.1,0.9)
    ic:SetPoint("TOPLEFT", bu, "TOPLEFT", 2, -2)
    ic:SetPoint("BOTTOMRIGHT", bu, "BOTTOMRIGHT", -2, 2)
I bolded what I tried, but the font it uses is the same as in the default ui. Seems it is defined somewhere else, or I just probably fail at trying to add it there.
You're on the right track, but you would use:

ho:SetFont("Fonts\\skurri", 12, OUTLINE)

That would set the hotkey fonts.

Offline
Reply With Quote
Old 03/17/08, 8:55 AM   #63
Velveeta
Von Kaiser
 
Tauren Druid
 
Demon Soul
For the hotkeys on the buttons, does anyone know a script that can be inserted into the lua file that would shorten the hotkey name? For example, when I used Bongos2 it would show NumPad1 as NP1, I looked in the Bongos2 lua files but couldn't see anything specific to this.

Any help is appreciated.

Offline
Reply With Quote
Old 03/17/08, 4:47 PM   #64
Crugon
Glass Joe
 
Night Elf Druid
 
Magtheridon
Love using rBars, trying to figure out everything is a pain but once you get it working you understand it so much more. I finally figured out how to make my bar 1x12 but for some reason when i shapeshift the last button(Button 12) starts a new row by itself. I am trying to figure out why this is happening. Here is the code i am using:

BonusActionBarFrame:SetParent(UIParent)
BonusActionButton1:ClearAllPoints()
BonusActionButton1:SetPoint("BOTTOM",UIParent,"BOTTOM",-230,14);

ActionButton12:ClearAllPoints()
ActionButton12:SetPoint("BOTTOMLEFT",ActionButton1,"BOTTOMLEFT",462,0);

BonusActionButton12:ClearAllPoints()
BonusActionButton12:SetPoint("BOTTOMLEFT",BonusActionButton1,"TOPLEFT",0,5);

MultiBarBottomLeftButton1:ClearAllPoints()
MultiBarBottomLeftButton1:SetPoint("BOTTOMLEFT",ActionButton6,"BOTTOMRIGHT",-245,40);

MultiBarBottomLeftButton12:ClearAllPoints()
MultiBarBottomLeftButton12:SetPoint("BOTTOMLEFT",MultiBarBottomLeftButton1,"TOPLEFT", 460,-37);

MultiBarBottomRightButton1:ClearAllPoints()
MultiBarBottomRightButton1:SetPoint("BOTTOMLEFT",ActionButton7,"TOPLEFT",0,15);

MultiBarRight:ClearAllPoints()
MultiBarRight:SetPoint("RIGHT",-15, 0);

ShapeshiftButton1:ClearAllPoints()
ShapeshiftButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton1,"TOPLEFT",-75,15);

PetActionButton1:ClearAllPoints()
PetActionButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton1,"TOPLEFT",7,15);

if PossessButton1 then
PossessButton1:ClearAllPoints()
PossessButton1:SetPoint("BOTTOMLEFT",MultiBarBottomRightButton1,"TOPLEFT",0,15);
end

Any advice will be helpful, Thanks again for sharing these addons.

Offline
Reply With Quote
Old 03/17/08, 5:02 PM   #65
Quarant
Glass Joe
 
Undead Priest
 
Eonar
I recently downloaded the mods and I love them, the only problem I've been having is that I'm not able to get combo points to show for some reason. I was wondering if anyone could help me with this?

Offline
Reply With Quote
Old 03/17/08, 5:11 PM   #66
Driea
Glass Joe
 
Night Elf Druid
 
Auchindoun (EU)
Originally Posted by Quarant View Post
I recently downloaded the mods and I love them, the only problem I've been having is that I'm not able to get combo points to show for some reason. I was wondering if anyone could help me with this?
Layout.lua, about line 269

local cpoints = self:CreateFontString(nil, "OVERLAY")
cpoints:SetPoint("RIGHT", self, "Left", -15, 25)
cpoints:SetFont(DAMAGE_TEXT_FONT, 38)
cpoints:SetTextColor(1, 1, 1)
cpoints:SetJustifyH"RIGHT"
self.CPoints = cpoints


The bolded part is commented out by default iirc, i modified the italic values

Offline
Reply With Quote
Old 03/17/08, 10:11 PM   #67
finduluin
Von Kaiser
 
Night Elf Rogue
 
Sargeras (EU)
I'm using rBars now and after an evening searching everywhere.... I'm not able to figure how to hide Tooltips on the action bars. :'(

I've check in Bartender but I think it calls too complex functions to do it (or it uses libraries it don't use).

Here is the screen with a tooltip I want to remove (from a totally OOC faded rBar) :



I've found this in the last rBars.lua Zork posted :
  	-- Handle range indicator
  	if ( this.rangeTimer ) then
  		this.rangeTimer = this.rangeTimer - elapsed;
  
  		if ( this.rangeTimer <= 0 ) then
  			ActionButton_UpdateUsable();
  			this.rangeTimer = TOOLTIP_UPDATE_TIME;
  		end
  	end
  
  	if ( not this.updateTooltip ) then
  		return;
  	end
  
  	this.updateTooltip = this.updateTooltip - elapsed;
  	if ( this.updateTooltip > 0 ) then
  		return;
  	end
  
  	if ( GameTooltip:IsOwned(this) ) then
  		ActionButton_SetTooltip();
  	else
  		this.updateTooltip = nil;
  	end
Perhaps there is an hint to clear the buttons from their tooltips there... But not sure :?

Let me know if I missed something.

[edit]
In the same way... How to fade the MainBar after a shapeshift (normal to stealth in my case) ?
I fade the MainMenuBar to 0, but, when stealthed, the actionbar is showing nonetheless.

Thanks.

Last edited by finduluin : 03/18/08 at 3:35 AM.

Save a forum,
Read a post-it.

Finduluin UI@Curse.com

Offline
Reply With Quote
Old 03/18/08, 6:29 AM   #68
zork
Don Flamenco
 
zork's Avatar
 
Dwarf Warrior
 
Eredar (EU)
Check: http://wdnaddons.com/

This is the source for Blizzard FrameXML Code - online.

Its a great help if you want to know what the Blizzard UI does.

You can rewrite Blizzard functions and replace stuff with your own version. This can be done really easily.

I show you how to do it:

Open: http://wdnaddons.com/0408049/FrameXML/ActionButton.lua

Find the function UpdateUsable
  
  function ActionButton_UpdateUsable()
    local icon = getglobal(this:GetName().."Icon");
    local normalTexture = getglobal(this:GetName().."NormalTexture");
    local isUsable, notEnoughMana = IsUsableAction(this.action);
    if ( isUsable ) then
      icon:SetVertexColor(1.0, 1.0, 1.0);
      normalTexture:SetVertexColor(1.0, 1.0, 1.0);
    elseif ( notEnoughMana ) then
      icon:SetVertexColor(0.5, 0.5, 1.0);
      normalTexture:SetVertexColor(0.5, 0.5, 1.0);
    else
      icon:SetVertexColor(0.4, 0.4, 0.4);
      normalTexture:SetVertexColor(1.0, 1.0, 1.0);
    end
  end
Now you can rewrite this function in your addon.

Like this:
  
  ActionButton_UpdateUsable = function()
    local icon = getglobal(this:GetName().."Icon");
    local normalTexture = getglobal(this:GetName().."NormalTexture");
    if ( IsActionInRange(ActionButton_GetPagedID(this)) == 0 ) 
    then
      icon:SetVertexColor(1,0,0);
      normalTexture:SetVertexColor(1,1,1);
    else
      local isUsable, notEnoughMana = IsUsableAction(ActionButton_GetPagedID(this));
      if ( notEnoughMana ) then
        icon:SetVertexColor(0,0,1);
        normalTexture:SetVertexColor(1,1,1);
      elseif ( isUsable ) then
        icon:SetVertexColor(1, 1, 1);
        normalTexture:SetVertexColor(1,1,1);
      else
        icon:SetVertexColor(0.3,0.3,0.3);
        normalTexture:SetVertexColor(1,1,1);
      end
    end
  end
The most important line is marked red. "ActionButton_UpdateUsable" now uses the new function.

You can do this with every Blizzard function you want to change.


Offline
Reply With Quote
Old 03/18/08, 6:57 AM   #69
Gretten
custom title
 
Gretten's Avatar
 
Human Warlock
 
Deathwing (EU)
I'm currently having a problem with something that seems really easy in rBuffs, namely changing their size.

I've tried to change the SetScale function, but it doesn't work. However, changing the font does. Anyone know the problem?
      --BuffFrame:SetScale(2)


Offline
Reply With Quote
Old 03/18/08, 7:16 AM   #70
finduluin
Von Kaiser
 
Night Elf Rogue
 
Sargeras (EU)
Thanks Zork for the hint.

I'm already checking that and trying to find why rBuff (and pBuff) don't want to show buff/debuff Frame :?

Perhaps it's due to PitBull_Aura which is hiding these frames... Still working on it.

Save a forum,
Read a post-it.

Finduluin UI@Curse.com

Offline
Reply With Quote
Old 03/18/08, 8:14 AM   #71
infin1te
Glass Joe
 
Worgen Death Knight
 
Xavius (EU)
Originally Posted by Gretten View Post
I'm currently having a problem with something that seems really easy in rBuffs, namely changing their size.

I've tried to change the SetScale function, but it doesn't work. However, changing the font does. Anyone know the problem?
      --BuffFrame:SetScale(2)
that's odd, seems to work fine for me by just removing the comments.

on another note, how would I make the buffbars sort buffs/debuffs after time left? meaning the normal raid buffs: fort, motw etc. would allways be on the right while short procs: mongoose, haste etc. would be on the left/lower end of the bars.

Sweden Offline
Reply With Quote
Old 03/18/08, 10:06 AM   #72
Velveeta
Von Kaiser
 
Tauren Druid
 
Demon Soul
Originally Posted by Gretten View Post
I'm currently having a problem with something that seems really easy in rBuffs, namely changing their size.

I've tried to change the SetScale function, but it doesn't work. However, changing the font does. Anyone know the problem?
      --BuffFrame:SetScale(2)

Those two lines at the beginning of the line ("--") indicate the line is commented out or ignored. You need to remove them so they are used when the mod loads. Also, SetScale is a number from .1 to 1.0, IIRC.

Offline
Reply With Quote
Old 03/18/08, 10:46 AM   #73
Gretten
custom title
 
Gretten's Avatar
 
Human Warlock
 
Deathwing (EU)
Originally Posted by Velveeta View Post
Those two lines at the beginning of the line ("--") indicate the line is commented out or ignored. You need to remove them so they are used when the mod loads. Also, SetScale is a number from .1 to 1.0, IIRC.
If that is the case, is there any way to make the buff frames larger?


Offline
Reply With Quote
Old 03/18/08, 11:01 AM   #74
Led ++
Piston Honda
 
Led ++'s Avatar
 
Undead Death Knight
 
Draenor (EU)
Yes like he said, just delete the -- so it becomes

BuffFrame:SetScale(2)

http://thepiratebootybay.com/ THE best Addon site out there!

Offline
Reply With Quote
Old 03/18/08, 11:21 AM   #75
Gretten
custom title
 
Gretten's Avatar
 
Human Warlock
 
Deathwing (EU)
Originally Posted by Led ++ View Post
Yes like he said, just delete the -- so it becomes

BuffFrame:SetScale(2)
Oh, I thought that he said that any value higher than 1.0 would be impossible. Anyway, thanks!


Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » User Interface and AddOns

Thread Tools