menus changes
This commit is contained in:
@@ -52,14 +52,14 @@ namespace Jovian.ZoneSystem.Editor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[MenuItem("Window/Zone System/Settings")]
|
[MenuItem("Jovian/Zone System/Settings")]
|
||||||
private static void SelectOrCreateSettings() {
|
private static void SelectOrCreateSettings() {
|
||||||
ZoneEditorSettings settings = FindOrCreateSettings();
|
ZoneEditorSettings settings = FindOrCreateSettings();
|
||||||
Selection.activeObject = settings;
|
Selection.activeObject = settings;
|
||||||
EditorGUIUtility.PingObject(settings);
|
EditorGUIUtility.PingObject(settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MenuItem("Window/Zone System/Documentation")]
|
[MenuItem("Jovian/Zone System/Documentation")]
|
||||||
private static void OpenDocumentation() {
|
private static void OpenDocumentation() {
|
||||||
// Find the Documentation~ folder relative to this package
|
// Find the Documentation~ folder relative to this package
|
||||||
string[] guids = AssetDatabase.FindAssets("t:Script ZoneEditorSettings");
|
string[] guids = AssetDatabase.FindAssets("t:Script ZoneEditorSettings");
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ namespace Jovian.ZoneSystem.Editor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[MenuItem("Window/Zone System/Zone Editor")]
|
[MenuItem("Jovian/Zone System/Zone Editor")]
|
||||||
public static void Open() {
|
public static void Open() {
|
||||||
GetWindow<ZoneEditorWindow>("Zone Editor");
|
GetWindow<ZoneEditorWindow>("Zone Editor");
|
||||||
}
|
}
|
||||||
|
|||||||
12
README.md
12
README.md
@@ -18,7 +18,7 @@ Packages/com.jovian.zonesystem/
|
|||||||
│ ├── ShapeFactory.cs ← Default shape generation (square, circle, polygon)
|
│ ├── ShapeFactory.cs ← Default shape generation (square, circle, polygon)
|
||||||
│ └── ZoneExporter.cs ← Serialization to JSON
|
│ └── ZoneExporter.cs ← Serialization to JSON
|
||||||
├── Editor/
|
├── Editor/
|
||||||
│ ├── ZoneEditorWindow.cs ← Main editor window (Window → Zone System → Zone Editor)
|
│ ├── ZoneEditorWindow.cs ← Main editor window (Jovian → Zone System → Zone Editor)
|
||||||
│ ├── ZoneEditorSettings.cs ← Configurable settings: folder path, role colors
|
│ ├── ZoneEditorSettings.cs ← Configurable settings: folder path, role colors
|
||||||
│ ├── ZoneInstanceEditor.cs ← Custom inspector + scene handles for shape editing
|
│ ├── ZoneInstanceEditor.cs ← Custom inspector + scene handles for shape editing
|
||||||
│ └── ZoneDataEditor.cs ← Role-aware ZoneData inspector
|
│ └── ZoneDataEditor.cs ← Role-aware ZoneData inspector
|
||||||
@@ -30,7 +30,7 @@ Packages/com.jovian.zonesystem/
|
|||||||
|
|
||||||
1. Add the package to your project (local package in `Packages/`).
|
1. Add the package to your project (local package in `Packages/`).
|
||||||
2. Create a **ZonesObjectHolder** GameObject and set **Map Plane** to match your map (e.g. `XZ`).
|
2. Create a **ZonesObjectHolder** GameObject and set **Map Plane** to match your map (e.g. `XZ`).
|
||||||
3. Open **Window → Zone System → Zone Editor**.
|
3. Open **Jovian → Zone System → Zone Editor**.
|
||||||
4. Click **Create New Zone**, set a name and shape, then click **Create & Edit**.
|
4. Click **Create New Zone**, set a name and shape, then click **Create & Edit**.
|
||||||
5. Edit all zone data fields in the editor, then click **Save Zone**.
|
5. Edit all zone data fields in the editor, then click **Save Zone**.
|
||||||
6. Use scene handles to adjust the polygon shape.
|
6. Use scene handles to adjust the polygon shape.
|
||||||
@@ -51,9 +51,9 @@ Packages/com.jovian.zonesystem/
|
|||||||
|
|
||||||
| Menu Path | Description |
|
| Menu Path | Description |
|
||||||
|-----------|-------------|
|
|-----------|-------------|
|
||||||
| Window → Zone System → Zone Editor | Main editor window |
|
| Jovian → Zone System → Zone Editor | Main editor window |
|
||||||
| Window → Zone System → Settings | Select or create ZoneEditorSettings asset |
|
| Jovian → Zone System → Settings | Select or create ZoneEditorSettings asset |
|
||||||
| Window → Zone System → Documentation | Open HTML documentation |
|
| Jovian → Zone System → Documentation | Open HTML documentation |
|
||||||
|
|
||||||
## Runtime API
|
## Runtime API
|
||||||
|
|
||||||
@@ -75,4 +75,4 @@ List<ZoneData> zones = api.GetOverlappingZones(partyWorldPosition);
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
Full documentation is available at `Documentation~/index.html`. Open it via **Window → Zone System → Documentation**.
|
Full documentation is available at `Documentation~/index.html`. Open it via **Jovian → Zone System → Documentation**.
|
||||||
|
|||||||
@@ -11,4 +11,4 @@
|
|||||||
"defineConstraints": [],
|
"defineConstraints": [],
|
||||||
"versionDefines": [],
|
"versionDefines": [],
|
||||||
"noEngineReferences": false
|
"noEngineReferences": false
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user