Thread: little lua help
View Single Post
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