mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 04:47:38 +02:00
Editor Refresh (R1) (#911)
* 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>
This commit is contained in:
26
Assets/Scripts/LevelEditor/ZoomDialog/ZoomDialog.cs
Normal file
26
Assets/Scripts/LevelEditor/ZoomDialog/ZoomDialog.cs
Normal file
@ -0,0 +1,26 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Scripts/LevelEditor/ZoomDialog/ZoomDialog.cs.meta
Normal file
11
Assets/Scripts/LevelEditor/ZoomDialog/ZoomDialog.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aeb3c233812091c44899fa5535852773
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user