@@ -6,6 +6,7 @@ using UVC.Studio.Command;
using UVC.Studio.Config ;
using UVC.Studio.Manager ;
using UVC.Util ;
using UVC.Extention ;
public class ShortcutConfigurator : MonoBehaviour
{
@@ -18,11 +19,11 @@ public class ShortcutConfigurator : MonoBehaviour
[Inject]
private SelectionManager ? selectionManager ;
// 단축키 관리자
// <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ű <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
public ShortcutManager ? shortcutManager ;
/// <summary>
/// 단축키 관리자를 설정합니다 .
/// <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ű <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ڸ<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> մϴ<D5B4> .
/// </summary>
public async void SetupShortcutManager ( )
{
@@ -31,7 +32,7 @@ public class ShortcutConfigurator : MonoBehaviour
selectionManager = InjectorAppContext . Instance . Get < SelectionManager > ( ) ;
stageObjectManager = InjectorAppContext . Instance . Get < StageObjectManager > ( ) ;
// StudioShortcutManager 생성 또는 가져오기
// StudioShortcutManager <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> Ǵ<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
shortcutManager = ShortcutManager . Instance ;
if ( shortcutManager = = null )
{
@@ -40,7 +41,7 @@ public class ShortcutConfigurator : MonoBehaviour
DontDestroyOnLoad ( go ) ;
}
// Setting 주입
// Setting <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
Setting ? currentSetting = setting ;
if ( currentSetting = = null & & InjectorAppContext . Instance ! = null )
{
@@ -51,52 +52,52 @@ public class ShortcutConfigurator : MonoBehaviour
shortcutManager . SetSetting ( currentSetting ) ;
}
// 메뉴 단축키 등록
// <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Ű <20> <> <EFBFBD>
RegisterMenuShortcuts ( ) ;
// 도구 단축키 등록
RegisterToolShortcuts( ) ;
// <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Ű <20> <> <EFBFBD>
// RegisterToolShortcuts() ;
Debug . Log ( "[SetupShortcutManager] 단축키 관리자가 설정되었습니다 ." ) ;
Debug . Log ( "[SetupShortcutManager] <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> Ű <20> <> <EFBFBD> <EFBFBD> <EFBFBD> ڰ<EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> Ǿ<EFBFBD> <C7BE> <EFBFBD> <EFBFBD> ϴ<EFBFBD> ." ) ;
}
/// <summary>
/// 메뉴 단축키를 등록합니다 .
/// <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Ű<EFBFBD> <C5B0> <20> <> <EFBFBD> <EFBFBD> մϴ<D5B4> .
/// </summary>
private void RegisterMenuShortcuts ( )
{
if ( shortcutManager = = null ) return ;
// Edit 메뉴
// Edit <EFBFBD> <EFBFBD>
shortcutManager . RegisterMenuShortcut ( "delete" , new EditDeleteCommand ( selectionManager ! , stageObjectManager ! ) ) ;
}
/// <summary>
/// 도구 단축키를 등록합니다 .
/// <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Ű<EFBFBD> <C5B0> <20> <> <EFBFBD> <EFBFBD> մϴ<D5B4> .
/// </summary>
private void RegisterToolShortcuts ( )
{
if ( shortcutManager = = null ) return ;
// 도구 단축키 - SelectionManager를 통해 기즈모 제어
// <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> Ű - SelectionManager<EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD>
shortcutManager . RegisterToolShortcut ( "select" , ( ) = >
{
if ( selectionManager ! = null ) selectionManager. SetActiveTool( TransformToolType. Select) ;
//if ( selectionManager != null) selectionManager. SetActiveTool( TransformToolType. Select) ;
} ) ;
shortcutManager . RegisterToolShortcut ( "move" , ( ) = >
{
if ( selectionManager ! = null ) selectionManager. SetActiveTool( TransformToolType. Move ) ;
//if ( selectionManager != null) selectionManager. SetActiveTool( TransformToolType.Move) ;
} ) ;
shortcutManager . RegisterToolShortcut ( "rotate" , ( ) = >
{
if ( selectionManager ! = null ) selectionManager. SetActiveTool( TransformToolType. Rotate) ;
//if ( selectionManager != null) selectionManager. SetActiveTool( TransformToolType. Rotate) ;
} ) ;
shortcutManager . RegisterToolShortcut ( "scale" , ( ) = >
{
if ( selectionManager ! = null ) selectionManager. SetActiveTool( TransformToolType. Scale ) ;
// if ( selectionManager != null) selectionManager. SetActiveTool( TransformToolType.Scale) ;
} ) ;
shortcutManager . RegisterToolShortcut ( "node" , ( ) = >