Beispiel #1
0
        private void CBAssetBrowserItem_Selected(object sender, RoutedEventArgs e)
        {
            AssetBrowserView assetBrowser = new AssetBrowserView(
                MainController.Get().GetManagers(true),
                MainController.Get().GetGame().GetAvaliableClasses());

            assetBrowser.Show();
        }
Beispiel #2
0
        public CAssetBrowserViewModel() : base("AssetBrowser")
        {
            SetIconSourcePath("Resources/Images/Tabs/assetbrowser.png");

            Content         = new AssetBrowserView();
            m_rootDirectory = new CDirectoryEntry("", this);             // Start at the project root
            RootFolders.Add(m_rootDirectory);
            SelectedFolderPath.Add(m_rootDirectory);
            ImportCommand          = new CRelayCommand(OnImport);
            DeleteAssetCommand     = new CRelayCommand(OnDeleteAsset);
            CreateMaterialCommand  = new CRelayCommand(OnCreateMaterial);
            CreateEntityCommand    = new CRelayCommand(OnCreateEntity);
            CreateInterfaceCommand = new CRelayCommand(OnCreateInterface);
        }
Beispiel #3
0
        private void ComboBoxItem_Selected(object sender, RoutedEventArgs e) // Convert me to MVVM
        {
            AssetBrowserView assetBrowser = new AssetBrowserView();

            assetBrowser.Show();
        }