Skip to content

Conversation

@CO2-code
Copy link
Contributor

Added the feature of displaying top 3 RA rankers on 1v1 and 2v2 ladders with their UI, Code needs cleaning , edits and reviews
also make it only if clientgametype=RA...

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

Nightly build for this pull request:

  • artifacts.zip
    This comment is automatic and is meant to allow guests to get latest automatic builds without registering. It is updated on every successful build.

@11EJDE11
Copy link
Member

Appreciate the effort, CO2. Bespoke things like a ladder UI would be better done through INI files IMO. To help with this I think we should create an XNAClientJSONLabel which could be set like:

[lblLadderRankings]
$Type=XNAClientJSONLabel
Template=Ladder players: {YR[0].player_name} ({YR[0].points:N0}), {YR[1].player_name} ({YR[1].points:N0}), {YR[2].player_name} ({YR[2].points:N0})
LoadingText=Ladder players: Loading...
URL=https://ladder.cncnet.org/api/v1/qm/ladder/rankings
RefreshIntervalSeconds=500
TimeoutSeconds=10
FallbackText=Ladder unavailable
FontIndex=1
AnchorPoint=716,148

Then it's reusable - you could use it to display news or updates, ladder players, etc and it's all configured through the ini. I can put one together if there's support for it? @SadPencil @Metadorius @MahBoiDeveloper

@CO2-code
Copy link
Contributor Author

Appreciate the effort, CO2. Bespoke things like a ladder UI would be better done through INI files IMO. To help with this I think we should create an XNAClientJSONLabel which could be set like:

[lblLadderRankings]
$Type=XNAClientJSONLabel
Template=Ladder players: {YR[0].player_name} ({YR[0].points:N0}), {YR[1].player_name} ({YR[1].points:N0}), {YR[2].player_name} ({YR[2].points:N0})
LoadingText=Ladder players: Loading...
URL=https://ladder.cncnet.org/api/v1/qm/ladder/rankings
RefreshIntervalSeconds=500
TimeoutSeconds=10
FallbackText=Ladder unavailable
FontIndex=1
AnchorPoint=716,148

Then it's reusable - you could use it to display news or updates, ladder players, etc and it's all configured through the ini. I can put one together if there's support for it? @SadPencil @Metadorius @MahBoiDeveloper

The things I added can be easily configured from LANLobby.ini just like the others (lbRA1v1title , lbRA1v1 (same for 2v2) ,and lbLadderRankings )

@CO2-code
Copy link
Contributor Author

I didn't upload LANLobby.ini mb

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.

2 participants