protected SimulationSceneDefinition(LoadInfo info) { name = info.GetString(NAME); presetDirectory = info.GetString(PRESET_DIRECTORY); sequenceDirectory = info.GetString(SEQUENCE_DIRECTORY); windowPresets = info.GetValueCb <SceneViewWindowPresetController>(WINDOW_PRESETS, () => { return(new SceneViewWindowPresetController()); }); AllowIK = info.GetBoolean(ALLOW_IK, false); }
public void sceneLoaded(SimScene scene) { destroyMenu(); SimulationScene simScene = scene.getDefaultSubScene().getSimElementManager <SimulationScene>(); presetWindows = simScene.WindowPresets; windowMenu = Gui.Instance.createWidgetT("PopupMenu", "PopupMenu", 0, 0, 1000, 1000, Align.Default, "Overlapped", "LayerMenu") as PopupMenu; windowMenu.Visible = false; foreach (SceneViewWindowPresetSet preset in presetWindows.PresetSets) { MenuItem item = windowMenu.addItem(preset.Name, MenuItemType.Normal); item.UserObject = preset.Name; item.MouseButtonClick += item_MouseButtonClick; } windowMenu.Closed += new MyGUIEvent(windowMenu_Closed); }
public SimulationSceneDefinition(String name) { this.name = name; windowPresets = new SceneViewWindowPresetController(); }