Skip to content

Conversation

@Hamood-bot
Copy link

No description provided.

Introduces logic to capture and set the original size of the player name label, ensuring its height is adjusted appropriately when displaying player information in the observer control bar. This improves UI consistency and prevents layout issues when the label content changes.
@Hamood-bot
Copy link
Author

Screenshot 2025-11-01 050447 Screenshot 2025-11-01 050439

Copy link

@Skyaero42 Skyaero42 left a comment

Choose a reason for hiding this comment

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

I started reviewing this, but this is written by AI without human supervision.

Additionally, I dont think this is the way forward for observer view. There are great overlays made by e.g. Legi look better and provide a lot more information.


if (cash >= 1000000)
{
if ((cash % 1000000) == 0)

Choose a reason for hiding this comment

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

Unnecessary

}
else if (cash >= 1000)
{
if ((cash % 1000) == 0)

Choose a reason for hiding this comment

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

Unneccesary, displaying 1.0k is perfectly fine

}
else
{
const float millions = static_cast<float>(cash) / 1000000.0f;

Choose a reason for hiding this comment

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

Cast not needed

}
else
{
const float thousands = static_cast<float>(cash) / 1000.0f;

Choose a reason for hiding this comment

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

Cast not needed

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