mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-15 14:15:07 +00:00
74f54df651
* put things in better places oh this looks. so much fucking better. wow * new icons and stuff * modifier, zoom formula, tab name tab name is future proofing. also, dllnotfoundexception when using the file explorer? wtf * dialog placement mostly working basically ready to pr. just gotta merge stuff into it * a few tweaks! all good now --------- Co-authored-by: ev <85412919+iloveoatmeal2022@users.noreply.github.com>
26 lines
No EOL
654 B
C#
26 lines
No EOL
654 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using HeavenStudio.Editor.Track;
|
|
|
|
using TMPro;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class ZoomDialog : Dialog
|
|
{
|
|
// [SerializeField] private TMP_Text snapText;
|
|
[SerializeField] RectTransform btnRectTransform;
|
|
|
|
public void SwitchZoomDialog()
|
|
{
|
|
if (dialog.activeSelf) {
|
|
dialog.SetActive(false);
|
|
} else {
|
|
ResetAllDialogs();
|
|
SetPosRelativeToButtonPos(btnRectTransform, new Vector2(146, 120));
|
|
dialog.SetActive(true);
|
|
}
|
|
}
|
|
}
|
|
} |