mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
Make tab navigation more intuitive
This commit is contained in:
parent
20b68c6a42
commit
291960d159
@ -390,6 +390,8 @@ function UIMoveableTabBar:selectNextTab()
|
||||
local widget = showPostTab(self)
|
||||
self:selectTab(widget)
|
||||
updateTabs(self)
|
||||
else
|
||||
self:selectTab(self.tabs[1])
|
||||
end
|
||||
return
|
||||
end
|
||||
@ -418,6 +420,8 @@ function UIMoveableTabBar:selectPrevTab()
|
||||
local widget = showPreTab(self)
|
||||
self:selectTab(widget)
|
||||
updateTabs(self)
|
||||
else
|
||||
self:selectTab(self.tabs[#self.tabs])
|
||||
end
|
||||
return
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user