Skip to content

admin: Fix panel FPS range label width + Fixed lint error #647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

abrahamtorrestorres
Copy link
Contributor

This is a minimal change.

Increase the FPS range label width from 0.1 to 0.12 to prevent the label text from being cut off.

This is a minimal change.

It changes the FPS range label width from 0.1 to 0.12 so the label text doesn't get cut off.
@abrahamtorrestorres
Copy link
Contributor Author

I've pushed a commit to resolve the two linter warnings in [editor]/editor_main/client/elementcreation.lua.

The issue was due to operator precedence, where not was being evaluated before the == comparison. I've corrected the logic to use the not-equal operator (~=) and and.

Before:

if not elementType == "object" or not elementType == "vehicle" then

After:

if elementType ~= "object" and elementType ~= "vehicle" then

This resolves the warnings and ensures the logic is correct.

@abrahamtorrestorres abrahamtorrestorres changed the title admin: Fix panel FPS range label width admin: Fix panel FPS range label width + Fixed lint error Jul 17, 2025
@Dutchman101 Dutchman101 merged commit 80297dd into multitheftauto:master Jul 23, 2025
1 check passed
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