-
Notifications
You must be signed in to change notification settings - Fork 565
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
TGUI / Bugfixes / Improvements: Security Cleanup #4558
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good - a few small things I feel that should be touched up. I don't know MP well enough to test it all out myself but we can try it on a TM. If you can address the minor issues at some point
@@ -0,0 +1,8 @@ | |||
export const CRIMESTATUS2COLOR = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to use scss rather than hard coded strings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find anywhere in the code an example of where this has been done before. Are you sure it's possible / better than just using the string like all other components?
if (!search) return true; | ||
const { name, rank } = record; | ||
|
||
switch (true) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure a switch case statement is really the way to do this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to if statements.
fix this issue while you're at it, very simple fix. #4309
|
This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ 7 days, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself |
About the pull request
For optimisation, some data is not always accurate when modified from an outside source. I do not want to refresh the data of 100+ players every tick.
Screenshots supplied in the dropdown.
Explain why it's good for the game
Modern UI. Fixes some broken features. Easier to read SecHud
Testing Photographs and Procedure
Screenshots & Videos
Main UI:
Comments tab:
Forensics scanner with prints added (bottom left):
SecHud:
Printed record:
Changelog
🆑 Casper
fix: fixed record-related bugs
ui: added security records TGUI
refactor: cleaned-up SecHud text
/:cl: