Skip to content

Commit

Permalink
Version Revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
AcChosen committed Sep 6, 2023
1 parent 8695995 commit e67854f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
#if !COMPILER_UDONSHARP && UNITY_EDITOR
using UnityEditor;
using UdonSharpEditor;
using System.Collections.Immutable;
using System;
using System.IO;
#endif

#if UDONSHARP
Expand Down Expand Up @@ -1130,9 +1133,22 @@ void SetLensFlareQuality()
public class VRSL_LocalUIControlPanel_Editor : Editor
{
public static Texture logo;
public static string ver = "VR Stage Lighting ver:" + " <b><color=#6a15ce> 2.1</color></b>";
//public static string ver = "VR Stage Lighting ver:" + " <b><color=#6a15ce> 2.1</color></b>";
SerializedProperty audioLinkLasers, audiolinkLights, dmxLights, isUsingDMX,isUsingAudioLink;

static string GetVersion()
{
string path = Application.dataPath;
path = path.Replace("Assets","");
path += "Packages" + "\\" + "com.acchosen.vr-stage-lighting" + "\\";
path += "Runtime" + "\\" + "VERSION.txt";

StreamReader reader = new StreamReader(path);
string versionNum = reader.ReadToEnd();
string ver = "VR Stage Lighting ver:" + " <b><color=#b33cff>" + versionNum + "</color></b>";
return ver;
}

public void OnEnable()
{
logo = Resources.Load("VRStageLighting-Logo") as Texture;
Expand Down Expand Up @@ -1216,7 +1232,7 @@ public override void OnInspectorGUI()
EditorGUI.BeginChangeCheck();
serializedObject.Update();
DrawLogo();
ShurikenHeaderCentered(ver);
ShurikenHeaderCentered(GetVersion());
EditorGUILayout.Space();
VRSL_LocalUIControlPanel controlPanel = (VRSL_LocalUIControlPanel)target;
if (GUILayout.Button(new GUIContent("Force Update Target AudioLink Sample Texture", "Updates all AudioLink VRSL Fixtures to sample from the selected target texture when texture sampling is enabled on the fixture."))) { controlPanel._ForceUpdateVideoSampleTexture(); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void Init(bool withDMX)
}
else
{
Debug.Log("Please add atleast one fixture renderer.");
//Debug.Log("Please add atleast one fixture renderer.");
//enableInstancing = false;
}
}
Expand Down

0 comments on commit e67854f

Please sign in to comment.