public EntityEditorInstance(IntPtr instancePtr, EntityEditorView view) : base("EntityEditor") { this.view = view; registerEvents(); call("setType", (UInt64)view.getTargetType()); flush(); //TODO: FIX THIS MULTIPLE FLUSH ISSUE! call("setTargetId", view.getId()); flush(); call("setTargetInstance", instancePtr); flush(); }
public EntityEditorInstance(IntPtr instancePtr, EntityEditorView view, String filename) : base("EntityEditor") { this.view = view; registerEvents(); call("setType", (UInt64)view.getTargetType()); flush(); //TODO: FIX THIS MULTIPLE FLUSH ISSUE! call("setTargetTypeName", filename); flush(); call("setTargetInstance", instancePtr); flush(); // Refresh the GUI for the types data. call("update"); }
public void createTypeEditorByFilename(String file) { EntityEditorView tev = new EntityEditorView(this,getCurrentEditor().instance.getInstancePtr() , 0, file, EntityEditTargetType.TARGET_TYPE); for (int i = 0; i < componentInfoManager.count(); ++i) tev.addComponentClassNameToList(componentInfoManager.getComponentInfoByIndex(i)); dockPanel.Invoke((MethodInvoker)(() => tev.Show(dockPanel, DockState.Float))); entityEditorInstanceList.Add(new EntityEditorInstance(getCurrentEditor().instance.getInstancePtr() , tev, file)); }