mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Bug fixes
- Fixed issue where animation would not evaluate the clip percentage correctly - Fixed pawn race selection drop down not updating - Fixed issue that was stopping animations with floating points in integer fields from loading
This commit is contained in:
parent
bb2cc29393
commit
270c4cf55b
105 changed files with 166 additions and 166 deletions
|
@ -89,14 +89,17 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
public void UpdateRaceDropdown()
|
||||
{
|
||||
raceDropdown.ClearOptions();
|
||||
int index = raceDropdown.value;
|
||||
raceDropdown.ClearOptions();
|
||||
|
||||
IEnumerable<string> optionsList = DefaultTags.defNames.Concat(CustomTags.defNames);
|
||||
foreach (string defName in optionsList)
|
||||
{ raceDropdown.options.Add(new Dropdown.OptionData(defName)); }
|
||||
|
||||
raceDropdown.value = Mathf.Clamp(index, 0, raceDropdown.options.Count - 1);
|
||||
raceDropdown.captionText.text = raceDropdown.options[raceDropdown.value].text;
|
||||
|
||||
UpdateGUI();
|
||||
}
|
||||
|
||||
public void UpdateGUI()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue