
Сообщение от
Gohar
local dummy = function() end
ChatFrameMenuButton:Hide() -- Menu button
for i = 1, 7 do
local u = _G["ChatFrame"..i.."UpButton"] -- Scroll Up button
u:Hide() -- Delete these 2 lines if you don't want to hide this button
u.Show = dummy -- Delete these 2 lines if you don't want to hide this button
local d = _G["ChatFrame"..i.."DownButton"] -- Scroll Down button
d:Hide()
d.Show = dummy
local b = _G["ChatFrame"..i.."BottomButton"] -- Scroll to bottom button
b:Hide()
b.Show = dummy
end
PHP код:
local kill
do
local dummy = function()end
kill = function(obj) obj.Show = dummy; obj:Hide(); end
end
kill(ChatFrameMenuButton)
for i = 1, 7 do
kill(_G["ChatFrame"..i.."ButtonFrameUpButton"])
kill(_G["ChatFrame"..i.."ButtonFrameDownButton"])
kill(_G["ChatFrame"..i.."ButtonFrameBottomButton"])
end