private void OnCreateInterface(object e) { CKlaxScriptInterfaceAsset interfaceAsset = new CKlaxScriptInterfaceAsset(); interfaceAsset.Name = "ScriptInterface"; interfaceAsset.LoadFinished(); CAssetRegistry.Instance.RegisterAsset(interfaceAsset, ActiveDirectory, false); UpdateShownAssets(); }
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; }