Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
Martín Lucas Golini
2025-09-22 23:53:24 -03:00
9 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -311,7 +311,7 @@ void TextureAtlasEditor::fileMenuClick( const Event* Event ) {
[this]( auto event ) { onTextureAtlasClose( event ); } );
MsgBox->setTitle( "Close Texture Atlas?" );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
} else {
onTextureAtlasClose( NULL );
}
+2 -2
View File
@@ -254,13 +254,13 @@ void TextureAtlasNew::onSelectFolder( const Event* Event ) {
"The folder must contain at least one image!" );
MsgBox->setTitle( "Error" );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
}
} else {
MsgBox = UIMessageBox::New( UIMessageBox::OK, "You must select a folder!" );
MsgBox->setTitle( "Error" );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
}
}
+1 -1
View File
@@ -1051,7 +1051,7 @@ bool UICodeEditorSplitter::tryCodeEditorClose( UICodeEditor* editor,
mTryCloseMsgBox->setTitle(
editor->getUISceneNode()->i18n( "ask_close_tab", "Close Tab?" ) );
mTryCloseMsgBox->center();
mTryCloseMsgBox->show();
mTryCloseMsgBox->showWhenReady();
return false;
}
+1 -1
View File
@@ -131,7 +131,6 @@ UIFileDialog::UIFileDialog( Uint32 dialogFlags, const std::string& defaultFilePa
"Enter new folder name:" ) );
msgBox->setTitle( i18n( "uifiledialog_create_new_folder", "Create new folder" ) );
msgBox->setCloseShortcut( { KEY_ESCAPE, 0 } );
msgBox->show();
msgBox->on( Event::OnConfirm, [this, msgBox]( const Event* ) {
auto folderName( msgBox->getTextInput()->getText() );
auto newFolderPath( getCurPath() + folderName );
@@ -147,6 +146,7 @@ UIFileDialog::UIFileDialog( Uint32 dialogFlags, const std::string& defaultFilePa
msgBox->closeWindow();
} );
msgBox->showWhenReady();
}
} );
@@ -1167,7 +1167,7 @@ void MapEditor::fileMenuClick( const Event* Event ) {
MsgBox->addEventListener( Event::OnConfirm, [this]( auto event ) { onMapClose( event ); } );
MsgBox->setTitle( "Close Map?" );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
} else if ( "Quit" == txt ) {
if ( NULL == mUIWindow ) {
mUIContainer->getSceneNode()->getWindow()->close();
@@ -1339,7 +1339,7 @@ UIMessageBox* MapEditor::createAlert( const String& title, const String& text )
MsgBox->setWindowFlags( UI_WIN_DEFAULT_FLAGS | UI_WIN_RESIZEABLE | UI_WIN_MODAL );
MsgBox->setTitle( title );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
return MsgBox;
}
+1 -1
View File
@@ -1039,7 +1039,7 @@ void EETest::createColorPicker( Node* node ) {
mColorPicker = Tools::UIColorPicker::NewModal( node, []( Color color ) {
UIMessageBox* msgBox = UIMessageBox::New( UIMessageBox::OK, color.toHexString() );
msgBox->center();
msgBox->show();
msgBox->showWhenReady();
} );
// mColorPicker->getUIWindow()->center();
}
+1 -1
View File
@@ -30,7 +30,7 @@ bool onCloseRequestCallback( EE::Window::Window* ) {
MsgBox->addEventListener( Event::OnClose, []( const Event* ) { MsgBox = NULL; } );
MsgBox->setTitle( "Close Map?" );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
return false;
} else {
return true;
@@ -30,7 +30,7 @@ bool onCloseRequestCallback( EE::Window::Window* ) {
MsgBox->addEventListener( Event::OnClose, []( const Event* ) { MsgBox = NULL; } );
MsgBox->setTitle( "Close Texture Atlas Editor?" );
MsgBox->center();
MsgBox->show();
MsgBox->showWhenReady();
return false;
} else {
return true;
+1 -1
View File
@@ -878,7 +878,7 @@ bool App::onCloseRequestCallback( EE::Window::Window* ) {
mMsgBox->addEventListener( Event::OnWindowClose, [this]( const Event* ) { mMsgBox = NULL; } );
mMsgBox->setTitle( "Close Editor?" );
mMsgBox->center();
mMsgBox->show();
mMsgBox->showWhenReady();
SceneManager::instance()->setCurrentUISceneNode( mUISceneNode );
return false;