Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This reverts commit cffcb74.
…d panel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… clear of the floating panel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -- a page of its own, so that each page opens whole when the panel is docked | ||
| pages[#pages +1] = { | ||
| type = 'sprite-button', | ||
| sprite = 'utility/danger_icon', | ||
| tooltip = '[font=default-bold]Kick & ban[/font]', | ||
| name = kick_ban_button_name, | ||
| auto_toggle = true, | ||
| tags = { admin_only = false }, | ||
| } |
There was a problem hiding this comment.
I'm okay to making Admin panel a panel type. I'm not okay with moving some admin actions to a separate page.
There was a problem hiding this comment.
there's some restriction on the height apparently and you'll get a scroll bar instead if you don't move them
There was a problem hiding this comment.
Put it back in d2903c5; docked, the Players page gets the game's column scroll bar at 1080p, floating it's fine.
RedRafe would rather keep the admin actions together on one page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
If floating window doesn't get the scrollbar & fits whole, I think the docked version too should override the max height: since floating window would be sitting in the middle of the screen, if there is enough space for it, there should be enough space even if panel is docked of the upper left, correct? |
The admin panel becomes a side panel like Settings (#1675): it docks under the top buttons, the pin floats it, and the X and the top button close it.
Gui.add_panel(frameless, as wide as its page): the page buttons on the left and the page on the right, as before.player.opened, so Escape doesn't close it any more. Closing it, by the X or the top button, still raiseson_admin_gui_closed, so the moderation guide's windows close with it.Docked, a panel can be no taller than the column under the top buttons: past it, the game cuts the column off with a scroll bar of its own. The Players page is about 35 px too tall for it at 1080p, so docked it gets that scroll bar (1_docked_players); the other pages open whole. Floating, the panel is as tall as its page. Kick & ban stays on the Players page with the other admin actions.
Tests
luacheck .: 0 warnings / 0 errors.Screenshots
Docked, Players:
Docked, Map:
Docked, Lua console:
Floating:
🤖 Generated with Claude Code