Renamed ForcedTiles to AdditionalTiles
Added backwards support (kinda, it needs to be looked at again since it probs don't work) Added two behaviours for MainRoomDoorwayGroup. The original behaviour (RemoveGroup) and the new (SetInOrder) Alternate main path's initial depth is set to the MainRoomTile's depth + 1 instead of always 1 DevDebugWindow now uses the retry counter outside of Application.IsEditor
This commit is contained in:
parent
32cebc67d6
commit
d955f6e930
16 changed files with 258 additions and 67 deletions
|
@ -46,21 +46,21 @@ namespace DunGenPlus.DevTools.UIElements.Collections {
|
|||
}
|
||||
}
|
||||
|
||||
internal class ListEntryForcedTileSetList : ListEntryType {
|
||||
internal class ListEntryAdditionalTileSetList : ListEntryType {
|
||||
public override object CreateEmptyObject() {
|
||||
var forcedTileset = new ForcedTileSetList();
|
||||
var forcedTileset = new AdditionalTileSetList();
|
||||
forcedTileset.DepthWeightScale = null;
|
||||
return forcedTileset;
|
||||
}
|
||||
|
||||
public override void CreateEntry(IList list, int index, Transform parentTransform, float layoutOffset) {
|
||||
var entry = (ForcedTileSetList)list[index];
|
||||
DevDebugManager.Instance.CreateFloatInputField(parentTransform, new TitleParameter("Main Path Weight", ForcedTileSetList.MainPathWeightTooltip, layoutOffset), entry.MainPathWeight, (t) => entry.MainPathWeight = t);
|
||||
DevDebugManager.Instance.CreateFloatInputField(parentTransform, new TitleParameter("Branch Path Weight", ForcedTileSetList.BranchPathWeightTooltip, layoutOffset), entry.BranchPathWeight, (t) => entry.BranchPathWeight = t);
|
||||
var entry = (AdditionalTileSetList)list[index];
|
||||
DevDebugManager.Instance.CreateFloatInputField(parentTransform, new TitleParameter("Main Path Weight", AdditionalTileSetList.MainPathWeightTooltip, layoutOffset), entry.MainPathWeight, (t) => entry.MainPathWeight = t);
|
||||
DevDebugManager.Instance.CreateFloatInputField(parentTransform, new TitleParameter("Branch Path Weight", AdditionalTileSetList.BranchPathWeightTooltip, layoutOffset), entry.BranchPathWeight, (t) => entry.BranchPathWeight = t);
|
||||
|
||||
// depth is weird cause we have to account for every entry's unique depth curve, even if they don't have one
|
||||
DevDebugManager.Instance.CreateAnimationCurveOptionsUIField(parentTransform, new TitleParameter("Depth Weight Scale", ForcedTileSetList.DepthWeightScaleTooltip, layoutOffset), entry.DepthWeightScale, (t) => entry.DepthWeightScale = t);
|
||||
DevDebugManager.Instance.CreateListUIField(parentTransform, new TitleParameter("Tile Sets", ForcedTileSetList.TileSetsTooltip, layoutOffset), entry.TileSets);
|
||||
DevDebugManager.Instance.CreateAnimationCurveOptionsUIField(parentTransform, new TitleParameter("Depth Weight Scale", AdditionalTileSetList.DepthWeightScaleTooltip, layoutOffset), entry.DepthWeightScale, (t) => entry.DepthWeightScale = t);
|
||||
DevDebugManager.Instance.CreateListUIField(parentTransform, new TitleParameter("Tile Sets", AdditionalTileSetList.TileSetsTooltip, layoutOffset), entry.TileSets);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace DunGenPlus.DevTools.UIElements {
|
|||
{ typeof(DungeonArchetype), new ListEntryDungeonArchetype() },
|
||||
{ typeof(TileSet), new ListEntryTileSet() },
|
||||
{ typeof(NodeArchetype), new ListEntryNodeArchetype() },
|
||||
{ typeof(ForcedTileSetList), new ListEntryForcedTileSetList() },
|
||||
{ typeof(AdditionalTileSetList), new ListEntryAdditionalTileSetList() },
|
||||
{ typeof(TileInjectionRule), new ListEntryTileInjectionRule() },
|
||||
{ typeof(GraphNode), new ListEntryGraphNode() },
|
||||
{ typeof(GraphLine), new ListEntryGraphLine() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue