mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
fix: deactivate draggable scrollbar skills in old protocol (#1598)
This commit is contained in:
parent
e8008af0f6
commit
118902ca1b
2 changed files with 17 additions and 1 deletions
|
|
@ -301,6 +301,22 @@ local function hideOldClientStats()
|
|||
setSkillGroupVisibility('GameAdditionalSkills', features.additionalSkills)
|
||||
setSkillGroupVisibility('GameForgeSkillStats1332', features.forgeSkills and version >= 1332)
|
||||
setSkillGroupVisibility('GameForgeSkillStats', features.forgeSkills)
|
||||
-- For very old clients (before 1098) the skills list fits without a slider.
|
||||
-- Keep the scrollbar track visible but hide the draggable slider so it's not interactive.
|
||||
if version < 1098 then
|
||||
local scroll = skillsWindow:recursiveGetChildById('miniwindowScrollBar')
|
||||
if scroll then
|
||||
local slider = scroll:getChildById('sliderButton')
|
||||
if slider then
|
||||
slider:setVisible(false)
|
||||
end
|
||||
end
|
||||
-- Also hide the offence info separator for old clients
|
||||
local sep = skillsWindow:recursiveGetChildById('separadorOnOffenceInfoChange')
|
||||
if sep then
|
||||
sep:setVisible(false)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local function hideMenuOptionsForOldClients(menu)
|
||||
|
|
|
|||
|
|
@ -286,10 +286,10 @@ MiniWindow
|
|||
image-source: /images/icons/icon_fishing
|
||||
image-size: 9 9
|
||||
SkillPercentPanel
|
||||
margin-bottom: 5
|
||||
|
||||
HorizontalSeparator
|
||||
id: separadorOnOffenceInfoChange
|
||||
margin-top: 5
|
||||
margin-bottom: 5
|
||||
|
||||
SmallSkillButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue