- Added option to scale the size of the UI (available under the View menu)
- Vertical scrolling has been added to left and right animation panels, so all the controls are accessible when using a lower resolution monitors
- The toggles for designating allowed races for actors now enforces the requirement that actor can either be a 'Human' (also includes all alien humanoids), or one or more types of animal
This commit is contained in:
AbstractConcept 2022-12-18 00:08:37 -06:00
parent 757cdd7f39
commit 279823a390
95 changed files with 2815 additions and 734 deletions

View file

@ -19,6 +19,8 @@ namespace RimWorldAnimationStudio
Transform contentWindow = transform.FindDeepChild("Content");
Reset();
bool actorIsHuman = actor.DefNames.Contains("Human");
for (int i = 0; i < allTags.Count(); i++)
{
string tag = allTags.ElementAt(i);
@ -37,6 +39,7 @@ namespace RimWorldAnimationStudio
{ actor.DefNames.Remove(tag); }
Workspace.RecordEvent("Actor def name");
Initialize();
});
if (CustomTags.defNames.Contains(tag))
@ -49,7 +52,9 @@ namespace RimWorldAnimationStudio
});
}
if (addedNewTag && i == allTags.Count() - 1)
toggleComp.interactable = actorIsHuman == (tag == "Human") || actor.DefNames.NullOrEmpty();
if (addedNewTag && i == allTags.Count() - 1 && toggleComp.interactable)
{ toggleComp.isOn = true; }
}