mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
fix chat and grid layout
This commit is contained in:
@@ -6,10 +6,9 @@ local function onTabClick(tabButton)
|
||||
end
|
||||
|
||||
local function tabBlink(tabButton)
|
||||
if tabButton.blinking then
|
||||
tabButton:setOn(not tabButton:isOn())
|
||||
scheduleEvent(function() tabBlink(tabButton) end, 300)
|
||||
end
|
||||
if not tabButton.blinking then return end
|
||||
tabButton:setOn(not tabButton:isOn())
|
||||
scheduleEvent(function() tabBlink(tabButton) end, 500)
|
||||
end
|
||||
|
||||
-- public functions
|
||||
@@ -66,11 +65,9 @@ function UITabBar:selectTab(tabButton)
|
||||
end
|
||||
|
||||
function UITabBar:blinkTab(tabButton)
|
||||
if not tabButton:isChecked() then
|
||||
tabButton:setOn(true)
|
||||
tabButton.blinking = true
|
||||
tabBlink(tabButton)
|
||||
end
|
||||
if tabButton:isChecked() or tabButton.blinking then return end
|
||||
tabButton.blinking = true
|
||||
tabBlink(tabButton)
|
||||
end
|
||||
|
||||
function UITabBar:getTabPanel(tabButton)
|
||||
|
Reference in New Issue
Block a user