position and rotation adjustment value snap mode in scenery editor, position adjustment for memory cells in scenery editor

This commit is contained in:
tmj-fstate
2018-07-10 01:09:20 +02:00
parent e01f05f57c
commit 219e8badc5
8 changed files with 102 additions and 10 deletions

View File

@@ -105,6 +105,13 @@ ui_layer::on_key( int const Key, int const Action ) {
}
if( Action == GLFW_RELEASE ) { return true; } // recognized, but ignored
EditorModeFlag = ( Key == GLFW_KEY_F11 );
if( ( true == EditorModeFlag )
&& ( false == Global.ControlPicking ) ) {
glfwSetInputMode( m_window, GLFW_CURSOR, GLFW_CURSOR_NORMAL );
Global.ControlPicking = true;
}
}
default: { // everything else
@@ -243,8 +250,6 @@ ui_layer::update() {
"" ) );
}
EditorModeFlag = ( Global.iTextMode == GLFW_KEY_F11 );
switch( Global.iTextMode ) {
case( GLFW_KEY_F1 ) : {