Placing Layer Order buttons.

This commit is contained in:
2025-06-18 14:47:47 -05:00
parent 338429980f
commit bd9d62d40f
2 changed files with 40 additions and 5 deletions

View File

@@ -280,7 +280,7 @@ JUI::Window* EditorApp::CreateTilesetViewerWindow(JUI::Widget* parent)
wind->Size(JUI::UDim2::FromPixels(loaded_tilesheet->GetDimensions().x, loaded_tilesheet->GetDimensions().y+20));
wind->SetResizable(false);
wind->Content()->BGColor(Colors::Black);
wind->Content()->BGColor(Colors::Black);
auto* img = new Image(wind->Content());
img->Content(loaded_tilesheet);
@@ -970,4 +970,7 @@ void EditorApp::OnKeyDown(const KeyDownEvent& e)
void EditorApp::OnKeyUp(const KeyUpEvent& e)
{
if (scene->ObserveKeyInput(e.key, false)) return;
if (e.key == Keys::T)
tileset_viewer->Visible(!tileset_viewer->IsVisible());
}