public EditorSelection(Zone zone) { Asset = zone; Zone = zone; StaticStore = new VariableStoreControl(zone.StaticState, zone.name, null, true, true); DefaultStore = new VariableStoreControl(zone.DefaultState, zone.name, null, true, true); }
public EditorSelection(World world) { Asset = world; World = world; StaticStore = new VariableStoreControl(world.StaticState, world.name, null, true, true); DefaultStore = new VariableStoreControl(world.DefaultState, world.name, null, true, true); }
public PlayerSelection(ZoneData zone) { Zone = zone; PersistentStore = new VariableStoreControl(zone.PersistentState, zone.Zone.name, "", true, true); SessionStore = new VariableStoreControl(zone.SessionState, zone.Zone.name, "", true, true); LoadedStore = new VariableStoreControl(zone.LoadedState, zone.Zone.name, "", true, true); ActiveStore = new VariableStoreControl(zone.ActiveState, zone.Zone.name, "", true, true); }
private void OnEnable() { var species = (target as Species); Definitions.Instance.SpeciesTraits.Apply(species.Traits, true); _traits = new VariableStoreControl(species.Traits, "Traits", "", false, false); _skills = new SkillsControl(species); }
private void OnEnable() { var zone = target as Zone; _scene = serializedObject.FindProperty("Scene"); _backgroundMusic = serializedObject.FindProperty("BackgroundMusic"); _clampBounds = serializedObject.FindProperty("ClampBounds"); _staticState = new VariableStoreControl(zone.StaticState, null, null, true, true); _defaultState = new VariableStoreControl(zone.DefaultState, null, null, true, true); _mapLayers = zone.World.MapLayers.ToArray(); }
private void DrawPlayerStore(VariableStoreControl store) { GUILayout.Space(5); using (new GUILayout.HorizontalScope()) { GUILayout.Space(10); using (new GUILayout.VerticalScope()) store.Draw(); GUILayout.Space(10); } GUILayout.Space(5); }
private void DrawEditorStore(ScriptableObject asset, VariableStoreControl store) { GUILayout.Space(5); using (new GUILayout.HorizontalScope()) { GUILayout.Space(10); using (new GUILayout.VerticalScope()) { using (new UndoScope(asset)) store.Draw(); } GUILayout.Space(10); } GUILayout.Space(5); }
private void OnEnable() { var creature = target as Creature; Definitions.Instance.CreatureTraits.Apply(creature.Traits, true); creature.CleanUpSkills(); _speciesProperty = serializedObject.FindProperty("Species"); _context = new EcosystemInstructionContext(creature, "Edit Creature", null); _traits = new VariableStoreControl(creature.Traits, "Traits", null, false, false, DrawTrait); var moves = _moves.Setup(creature.Moves, "Moves", "", false, true, false, true, true, DrawMove); _skills.Setup(creature.Species.Skills, "Skills", "", false, false, false, false, false, DrawSkill); moves.elementHeightCallback += GetMoveHeight; moves.onAddDropdownCallback += AddMove; _regenerate.image = EditorGUIUtility.IconContent("d_preAudioLoopOff").image; _apply.image = EditorGUIUtility.IconContent("d_preAudioLoopOff").image; }
public PlayerSelection(WorldManager world) { World = world; PersistentStore = new VariableStoreControl(world.PersistentState, world.World.name, "", true, true); SessionStore = new VariableStoreControl(world.SessionState, world.World.name, "", true, true); }