Placing Layer Order buttons.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user