Fixes to DevDebug for AdditionalTiles and MainPathExtender
Changed entry to DevDebug mode to LeftAlt + M
This commit is contained in:
parent
d955f6e930
commit
cd9b233040
11 changed files with 59 additions and 17 deletions
|
@ -36,6 +36,16 @@ namespace DunGenPlus.DevTools.UIElements.Collections {
|
|||
}
|
||||
}
|
||||
|
||||
internal class ListEntryMainPathExtender : ListEntryType {
|
||||
public override object CreateEmptyObject() => null;
|
||||
|
||||
public override void CreateEntry(IList list, int index, Transform parentTransform, float layoutOffset) {
|
||||
var entry = (MainPathExtender)list[index];
|
||||
var baseValue = DevDebugManager.Instance.selectedAssetCache.mainPathExtenders.dictionary[entry];
|
||||
DevDebugManager.Instance.CreateMainPathExtenderUIField(parentTransform, new TitleParameter("Main Path Extender", layoutOffset), baseValue, (t) => list[index] = t);
|
||||
}
|
||||
}
|
||||
|
||||
internal class ListEntryNodeArchetype : ListEntryType {
|
||||
public override object CreateEmptyObject() => new NodeArchetype();
|
||||
|
||||
|
|
|
@ -30,7 +30,8 @@ namespace DunGenPlus.DevTools.UIElements {
|
|||
{ typeof(AdditionalTileSetList), new ListEntryAdditionalTileSetList() },
|
||||
{ typeof(TileInjectionRule), new ListEntryTileInjectionRule() },
|
||||
{ typeof(GraphNode), new ListEntryGraphNode() },
|
||||
{ typeof(GraphLine), new ListEntryGraphLine() }
|
||||
{ typeof(GraphLine), new ListEntryGraphLine() },
|
||||
{ typeof(MainPathExtender), new ListEntryMainPathExtender() }
|
||||
};
|
||||
|
||||
public void SetupList<T>(TitleParameter titleParameter, List<T> list) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue