Originally Posted by lorti
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:
for i,v in pairs({
MainMenuBarTexture0,
MainMenuBarTexture1,
MainMenuBarTexture2,
MainMenuBarTexture3,
MainMenuBarLeftEndCap,
MainMenuBarRightEndCap,
MainMenuMaxLevelBar0,
MainMenuMaxLevelBar1,
MainMenuMaxLevelBar2,
MainMenuMaxLevelBar3,
TimeManagerClockButton,
GetTimeFrame,
PlayerFrameTexture,
select(1, TimeManagerClockButton:GetRegions()),
select(1, GameTimeFrame:GetRegions()),
}) do
v:SetVertexColor(.35,.35,.35)
end