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:
AstrlJelly
2024-05-08 15:26:43 -04:00
committed by minenice55
parent d8a99fb160
commit 8ae5a80c0d
36 changed files with 6873 additions and 2285 deletions

View File

@ -4,6 +4,7 @@ using BurstLinq;
using System.Collections.Generic;
using UnityEngine;
using Jukebox;
using HeavenStudio.Games;
namespace HeavenStudio
{
@ -23,11 +24,8 @@ namespace HeavenStudio
public Minigames.Minigame GetMinigame(string gameName)
{
if (!minigames.ContainsKey(gameName))
{
return null;
}
return minigames[gameName];
minigames.TryGetValue(gameName, out var minigame);
return minigame;
}
public Minigames.GameAction GetGameAction(Minigames.Minigame game, string action)
@ -37,9 +35,9 @@ namespace HeavenStudio
public Minigames.GameAction GetGameAction(string gameName, string action)
{
if (minigames.ContainsKey(gameName))
if (minigames.TryGetValue(gameName, out var minigame))
{
return minigames[gameName].actions.Find(c => c.actionName == action);
return minigame.actions.Find(c => c.actionName == action);
}
else
{