Thread Tools Display Modes
11-01-10, 08:00 AM   #1
lorti
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 17
little lua help

Guys, here's my UI. I need names of timer and calendar buttons to make it black as other. Anyone help? Tried calendar button, timer, timer texture, etc etc.

http://img213.imageshack.us/img213/6...0110165435.jpg
  Reply With Quote
11-01-10, 08:05 AM   #2
Maul
Ion Engines, Engage!
 
Maul's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 401
Type /fstack in game, mouse over them to get their names.
__________________

Twitter: @IonMaul | Windows Live: [email protected] | Google Talk: [email protected]
  Reply With Quote
11-01-10, 08:06 AM   #3
Wildbreath
A Cyclonian
 
Wildbreath's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 46
Originally Posted by lorti View Post
Guys, here's my UI. I need names of timer and calendar buttons to make it black as other. Anyone help? Tried calendar button, timer, timer texture, etc etc.

http://img213.imageshack.us/img213/6...0110165435.jpg
Привет, вот

select(1, TimeManagerClockButton:GetRegions()):SetVertexColor(.1,.1,.1)
select(1, GameTimeFrame:GetRegions()):SetVertexColor(.1,.1,.1)
  Reply With Quote
11-01-10, 08:28 AM   #4
lorti
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 17
for i,v in pairs({
MainMenuBarTexture0,
MainMenuBarTexture1,
MainMenuBarTexture2,
MainMenuBarTexture3,
MainMenuBarLeftEndCap,
MainMenuBarRightEndCap,
MainMenuMaxLevelBar0,
MainMenuMaxLevelBar1,
MainMenuMaxLevelBar2,
MainMenuMaxLevelBar3,
TimeManagerClockButton,
GetTimeFrame,
PlayerFrameTexture,
}) do
v:SetVertexColor(.35,.35,.35)
end

Tried to add their names here, but it didnt work. Tried to type
select(1, TimeManagerClockButton:GetRegions()):SetVertexColor(.1,.1,.1)
select(1, GameTimeFrame:GetRegions()):SetVertexColor(.1,.1,.1) too, didnt work either. What do I do wrong?

Last edited by lorti : 11-01-10 at 08:30 AM.
  Reply With Quote
11-01-10, 08:45 AM   #5
Wildbreath
A Cyclonian
 
Wildbreath's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 46
Originally Posted by lorti View Post
for i,v in pairs({
MainMenuBarTexture0,
MainMenuBarTexture1,
MainMenuBarTexture2,
MainMenuBarTexture3,
MainMenuBarLeftEndCap,
MainMenuBarRightEndCap,
MainMenuMaxLevelBar0,
MainMenuMaxLevelBar1,
MainMenuMaxLevelBar2,
MainMenuMaxLevelBar3,
TimeManagerClockButton,
GetTimeFrame,
PlayerFrameTexture,
}) do
v:SetVertexColor(.35,.35,.35)
end

Tried to add their names here, but it didnt work. Tried to type
select(1, TimeManagerClockButton:GetRegions()):SetVertexColor(.1,.1,.1)
select(1, GameTimeFrame:GetRegions()):SetVertexColor(.1,.1,.1) too, didnt work either. What do I do wrong?
попробуй так:
пишу с работы, проверить не могу никак
lua Code:
  1. for i,v in pairs({
  2.     MainMenuBarTexture0,
  3.     MainMenuBarTexture1,
  4.     MainMenuBarTexture2,
  5.     MainMenuBarTexture3,
  6.     MainMenuBarLeftEndCap,
  7.     MainMenuBarRightEndCap,
  8.     MainMenuMaxLevelBar0,
  9.     MainMenuMaxLevelBar1,
  10.     MainMenuMaxLevelBar2,
  11.     MainMenuMaxLevelBar3,
  12.     TimeManagerClockButton,
  13.     GetTimeFrame,
  14.     PlayerFrameTexture,
  15.     select(1, TimeManagerClockButton:GetRegions()),
  16.     select(1, GameTimeFrame:GetRegions()),
  17. }) do
  18.     v:SetVertexColor(.35,.35,.35)
  19. end
  Reply With Quote
11-01-10, 08:58 AM   #6
lorti
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 17
Ok it completely broke the addon.
  Reply With Quote
11-01-10, 09:37 AM   #7
lorti
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 17
Anyone else pls?
  Reply With Quote
11-01-10, 03:13 PM   #8
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Wildbreath View Post
Привет, вот

select(1, TimeManagerClockButton:GetRegions()):SetVertexColor(.1,.1,.1)
select(1, GameTimeFrame:GetRegions()):SetVertexColor(.1,.1,.1)
select() does not do what you think it does.

Code:
function foo()
     return "a", "b", "c", "d"
end
select(1, foo())
>> "a", "b", "c", "d"
select(2, foo())
>> "b", "c", "d"
You may as well leave out the extra function call.
TimeManagerClockButton:GetRegions():SetVertexColor(.1,.1,.1)
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-01-10, 03:48 PM   #9
Wildbreath
A Cyclonian
 
Wildbreath's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 46
Originally Posted by Seerah View Post
select() does not do what you think it does.

Code:
function foo()
     return "a", "b", "c", "d"
end
select(1, foo())
>> "a", "b", "c", "d"
select(2, foo())
>> "b", "c", "d"
You may as well leave out the extra function call.
TimeManagerClockButton:GetRegions():SetVertexColor(.1,.1,.1)
Hehe, thanks Seerah, it that i meant. I had a difficult day on job today and make this stupid mistakes

Lorti, сделай как она говорит

TimeManagerClockButton:GetRegions():SetVertexColor(.1,.1,.1)
GameTimeFrame:GetRegions():SetVertexColor(.1,.1,.1)

должно по идее работать
  Reply With Quote
11-01-10, 10:07 PM   #10
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Okies. At least lorti now knows how it works.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
11-02-10, 12:28 AM   #11
lorti
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 17
It doesn't work( Again same error as above.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » little lua help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off