GUI rearrangement

This commit is contained in:
AbstractConcept 2022-10-20 00:32:13 -05:00
parent 04f8c6a2e4
commit 2e50221118
90 changed files with 435 additions and 1440 deletions

View file

@ -71,7 +71,7 @@ namespace RimWorldAnimationStudio
public void ResetCamera()
{
cam.transform.position = new Vector3(1, 0, -10);
cam.transform.position = new Vector3(0, 0, -10);
curZoom = zoom;
mouseDragActive = false;

View file

@ -57,7 +57,7 @@ namespace RimWorldAnimationStudio
public void Update()
{
if (IsDialogBoxIsActive()) return;
if (EventSystem.current.currentSelectedGameObject?.GetComponent<InputField>()?.isFocused == true) return;
if (EventSystem.current.currentSelectedGameObject != null && EventSystem.current.currentSelectedGameObject.GetComponent<InputField>()?.isFocused == true) return;
bool canRepeatThisUpdate = CanRepeatThisUpdate();
// Check keybinds