mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 21:47:39 +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:
@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user