mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Bug fix for menu items
This commit is contained in:
parent
3d859555ad
commit
3d2c11f469
57 changed files with 73 additions and 172 deletions
|
@ -16,6 +16,12 @@ namespace RimWorldAnimationStudio
|
|||
public DialogBox newAnimationDialog;
|
||||
public SelectAnimationDialog selectAnimationDialog;
|
||||
|
||||
public void Start()
|
||||
{
|
||||
LoadAlienRaceDefs();
|
||||
LoadCustomArrays();
|
||||
}
|
||||
|
||||
public void TryToCloseApplication()
|
||||
{
|
||||
exitDialog.Pop();
|
||||
|
@ -56,10 +62,7 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
public void LoadAnimation(AnimationDef animationDef)
|
||||
{
|
||||
LoadAlienRaceDefs();
|
||||
LoadCustomArrays();
|
||||
UpdateCustomArrays(animationDef);
|
||||
|
||||
RunPostLoadOperations(animationDef);
|
||||
|
||||
Debug.Log("Loaded AnimationDef: " + animationDef.defName);
|
||||
|
|
|
@ -138,19 +138,19 @@ namespace RimWorldAnimationStudio
|
|||
|
||||
public void ActorMovementMode()
|
||||
{
|
||||
if (Workspace.animationDef == null) return;
|
||||
//if (Workspace.animationDef == null) return;
|
||||
AnimationController.Instance.ToggleActorManipulationMode(0);
|
||||
}
|
||||
|
||||
public void ActorRotateMode()
|
||||
{
|
||||
if (Workspace.animationDef == null) return;
|
||||
//if (Workspace.animationDef == null) return;
|
||||
AnimationController.Instance.ToggleActorManipulationMode(1);
|
||||
}
|
||||
|
||||
public void ActorFacingMode()
|
||||
{
|
||||
if (Workspace.animationDef == null) return;
|
||||
//if (Workspace.animationDef == null) return;
|
||||
AnimationController.Instance.ToggleActorManipulationMode(2);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue