Beispiel #1
0
        private void OnCreateInterface(object e)
        {
            CKlaxScriptInterfaceAsset interfaceAsset = new CKlaxScriptInterfaceAsset();

            interfaceAsset.Name = "ScriptInterface";
            interfaceAsset.LoadFinished();
            CAssetRegistry.Instance.RegisterAsset(interfaceAsset, ActiveDirectory, false);
            UpdateShownAssets();
        }
Beispiel #2
0
        public void OpenAsset(CKlaxScriptInterfaceAsset interfaceAsset)
        {
            SaveAsset();
            CloseInterface();
            m_openAsset = interfaceAsset;

            // Make sure the asset is loaded
            m_openAsset.WaitUntilLoaded();
            InterfaceName = interfaceAsset.Name;
            OpenInterface(m_openAsset.Interface);
            IsVisible = true;
        }