fix: deactivate draggable scrollbar skills in old protocol (#1598)

This commit is contained in:
LIBERGOD 2026-01-15 05:21:16 -08:00 committed by GitHub
parent e8008af0f6
commit 118902ca1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View file

@ -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)

View file

@ -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