Skip to content

Add Out of range battle list filter - #1237

Open
Rysicaa wants to merge 4 commits into
beyond-all-reason:masterfrom
Rysicaa:filter/out-of-range-lobbies
Open

Add Out of range battle list filter#1237
Rysicaa wants to merge 4 commits into
beyond-all-reason:masterfrom
Rysicaa:filter/out-of-range-lobbies

Conversation

@Rysicaa

@Rysicaa Rysicaa commented Jul 28, 2026

Copy link
Copy Markdown

Adds a filter for min/max os and min/max chev to chobby battle lobby list. It parses the names of the lobbies to figure out which ones match your criteria.

image

For context im 6 chev ~35 os

without filter on
image
with filter on
image

AI used: cursor to understand/write, manual review & testing

Hide lobbies whose titles advertise Min/Max chev or rating ranges the player is outside of.
@AntlerForce

Copy link
Copy Markdown
Collaborator
Screenshot_20240888

At ~1080p vertical resolution the Passworded text clips into the checkbox, and it generally appears misaligned, both vertically and horizontally, and the spacing is very uneven looking.

Screenshot_20240889

At ~768p it becomes worse, though it is not great on Alpha either:

Screenshot_20240890

@Rysicaa

Rysicaa commented Aug 2, 2026

Copy link
Copy Markdown
Author

ack, will go through all the resolutions on another pass. will be out for a few weeks so will address comments after

Flow filter checkboxes into a bottom panel that wraps at narrow widths and relayouts after UI scale changes, fixing overlap and one-step-lag issues.
@Rysicaa

Rysicaa commented Aug 19, 2026

Copy link
Copy Markdown
Author
image image image image

Redid how the bar resizes and attached the elements to the bar itself rather than to the scrollview. This should make it nice at every resolution and improves on how it is on alpha.

@burnhamrobertp burnhamrobertp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some potential simplifications, not sure all are definitely possible. Comments, naming and structure all look good to me, layout and element code looks good but I've not much experience there.

Comment thread LuaMenu/widgets/chobby/components/battle/battle_list_window.lua Outdated
Comment thread LuaMenu/widgets/chobby/components/battle/battle_list_window.lua Outdated
Comment thread LuaMenu/widgets/chobby/components/battle/battle_list_window.lua Outdated
Comment on lines +908 to +914
local myRating
if me.accountID and WG.UserHandler and WG.UserHandler.GetSnapshotSkillValue then
myRating = WG.UserHandler.GetSnapshotSkillValue(me.accountID, battle)
end
if not myRating then
myRating = tonumber(me.skill)
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I genuinely have no idea, but it's this not accessible through a single, reliable property?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and removed the check on me.skill.

Technically GetSnapshotSkillValue is more accurate as it filters by type (duel, ffa, etc), but it does fail for some edge cases (new player, etc). In those cases, me.skill is better, but even that doesn't cover all the cases since it just is the OS from the last played game. Unfortunately afaik there's no single check to get it accurately here.

The GetSnapshotSkillValue should cover the vast majority of cases/players though so I went ahead and removed the other one for clarity.

@Rysicaa

Rysicaa commented Aug 23, 2026

Copy link
Copy Markdown
Author

layout and element code looks good but I've not much experience there.

tbh, that makes both of us! I dabble in frontend and elements only when absolutely needed :')

@Rysicaa
Rysicaa requested a review from burnhamrobertp August 23, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants