Skip to content

Commit

Permalink
V1.02 Hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Melioli committed Aug 28, 2023
1 parent ff77012 commit b66e8dc
Show file tree
Hide file tree
Showing 47 changed files with 58 additions and 47 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -10,7 +10,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class Config
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -10,7 +10,7 @@
using UnityEngine;
using UnityEngine.Rendering;

namespace Thry
namespace Hoyo
{
#region Constants
public class PATH
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class DecalSceneTool
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class DecalTool : EditorWindow
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -10,7 +10,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
#region Texture Drawers
public class ThryTextureDrawer : MaterialPropertyDrawer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class EditorLocale
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
using System.Linq;
using System.Reflection;
using System.Text.RegularExpressions;
using Thry.ThryEditor;
using Hoyo.ThryEditor;
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class CRect
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class GuiHelper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -9,7 +9,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class GradientEditor : EditorWindow
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class GradientEditor2 : EditorWindow
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -20,7 +20,7 @@
using UnityEngine.Networking;
using UnityEngine.Profiling;

namespace Thry
namespace Hoyo
{
static class StringExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -13,7 +13,7 @@
using UnityEngine;
using UnityEngine.Networking;

namespace Thry
namespace Hoyo
{
public class WebHelper
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry{
namespace Hoyo{
public class Localization : ScriptableObject
{
[SerializeField] Shader[] ValidateWithShaders;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class MaterialLinker
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class Mediator
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -10,7 +10,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class Parser
{
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry.ThryEditor
namespace Hoyo.ThryEditor
{
public class Presets : AssetPostprocessor
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -11,7 +11,7 @@
using UnityEditor.PackageManager;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public abstract class ModuleSettings
{
Expand Down Expand Up @@ -74,7 +74,7 @@ private void InitVariables()
_is_init = true;

if (thry_message == null)
WebHelper.DownloadStringASync(Thry.URL.SETTINGS_MESSAGE_URL, (Action<string>)delegate (string s) { thry_message = Parser.Deserialize<ButtonData>(s); });
WebHelper.DownloadStringASync(Hoyo.URL.SETTINGS_MESSAGE_URL, (Action<string>)delegate (string s) { thry_message = Parser.Deserialize<ButtonData>(s); });
}

//------------------Main GUI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
using VRC.SDK3.Avatars.Components;
#endif

namespace Thry
namespace Hoyo
{

public enum LightMode
Expand Down Expand Up @@ -1996,7 +1996,7 @@ public void OnProcessShader(Shader shader, UnityEditor.Rendering.ShaderSnippetDa
return;

// Strip shaders from the build under the following conditions:
// - Has the property "shader_is_using_thry_editor", which should be present on all shaders using ThryEditor (even if it's not using the optimizer)
// - Has the property "shader_is_using_thry_editor", which should be present on all shaders using HoyoEditor (even if it's not using the optimizer)
// - Has the property "_ShaderOptimizerEnabled", indicating the shader is using the optimizer
// - Doesn't have a name starting with "Hidden/Locked/", indicating the shader is unlocked
bool shouldStrip = shader.FindPropertyIndex("shader_is_using_thry_editor") >= 0 && shader.FindPropertyIndex("_ShaderOptimizerEnabled") >= 0 && !shader.name.StartsWith("Hidden/Locked/");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
using static Thry.ThryEditor.ShaderTranslator;
using static Hoyo.ThryEditor.ShaderTranslator;

namespace Thry.ThryEditor
namespace Hoyo.ThryEditor
{
public class ShaderTranslator : ScriptableObject
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class Styles
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class TexturePacker : EditorWindow
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using static Thry.TexturePacker;
using static Hoyo.TexturePacker;

namespace Thry
namespace Hoyo
{
public class TexturePackerConfig : ScriptableObject
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ThryAssemblyDefinitionMeli",
"name": "ThryAssemblyDefinitionHoyoToon",
"references": [],
"includePlatforms": [
"Editor"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
using Thry;
using Hoyo;
using System;
using System.Reflection;
using System.Linq;
using Thry.ThryEditor;
using Hoyo.ThryEditor;

namespace Thry
namespace Hoyo
{
public class ShaderEditor : ShaderGUI
{
Expand Down Expand Up @@ -118,7 +118,7 @@ public bool HasMixedCustomPropertySuffix
return labels;
}
string path = AssetDatabase.GUIDToAssetPath(guids[0]);
string[] data = Regex.Split(Thry.FileHelper.ReadFileIntoString(path), @"\r?\n");
string[] data = Regex.Split(Hoyo.FileHelper.ReadFileIntoString(path), @"\r?\n");
foreach (string d in data)
{
string[] set = Regex.Split(d, ":=");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry {
namespace Hoyo {
public class ThryFileCreator {

[MenuItem("Thry/ShaderUI/UI Creator Helper/Create Label Boiler", false, priority = 40)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class UnitTests
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Material/Shader Inspector for Unity 2017/2018
// Copyright (C) 2019 Thryrallo
// Copyright (C) 2023 Thryrallo & Meliodas

using System;
using System.Collections;
Expand All @@ -10,7 +10,7 @@
using UnityEditor;
using UnityEngine;

namespace Thry
namespace Hoyo
{
public class UnityHelper
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit b66e8dc

Please sign in to comment.