Skip to content
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

admin2: forward-ported permissions widget from admin1 #426

Merged
merged 11 commits into from Jul 3, 2023

Conversation

Dark-Dragon
Copy link
Contributor

admin2 currently has a non-functional "Give admin" button in the players tab. Not only is it not functional, but it's also a considerable downgrade from admin1's quick player permission management. This pull request brings admin1's permission widget over to admin2.

Since admin2 is structured slightly differently and I'm not very well-versed in working with either of the resources I'm not 100% sure about whether I adjusted for those differences correctly in the places I had to, but feedback from the developer discord so far has been positive. Particularly the data transmission between server and client and refreshing the displayed data might need checking, because I hardly know how it's expected to be used correctly.

initial commit to forward-port admin1's permission widget to admin2
admin2: added missing SYNC definition
admin2: fixed message box type
admin2: removed redundantly passed parameters
brackets around if conditions; no space before first or after last function parameter; no space between function name and parameter brackets
aMessageBox.Show() circumvents a minor error check compared to messageBox(). I mistakenly used the latter
admin2: updated file path in head comment
@jlillis jlillis merged commit 25dcc4c into multitheftauto:master Jul 3, 2023
1 check passed
@Dark-Dragon Dark-Dragon deleted the admin2-permissionswidget branch July 9, 2023 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants