示例#1
0
 public override void Execute()
 {
     if (new AlertDialog("Are you sure you want to reset to defaults?", "Yes", "Cancel").Show() == 0)
     {
         AppUserPreferences.Instance.ResetToDefaults();
         UI.SceneView.SceneUserPreferences.Instance.ResetToDefaults();
         UI.Timeline.TimelineUserPreferences.Instance.ResetToDefaults();
         Core.CoreUserPreferences.Instance.ResetToDefaults();
         HotkeyRegistry.ResetToDefaults();
         AppUserPreferences.Instance.ToolbarModel = AppUserPreferences.DefaultToolbarModel();
         new AlertDialog("Some actions will take place after Tangerine restart", "Ok").Show();
     }
 }
示例#2
0
 public void ResetToDefaults()
 {
     AppUserPreferences.Instance.ToolbarModel = toolbarModel = AppUserPreferences.DefaultToolbarModel();
     Initialize();
     TangerineApp.Instance.Toolbar.Rebuild(toolbarModel);
 }