mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
v 1.0.1
- 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:
parent
757cdd7f39
commit
279823a390
95 changed files with 2815 additions and 734 deletions
|
@ -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; }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue