3395 lines
132 KiB
C#
3395 lines
132 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using Valve.VR;
|
|
|
|
// Token: 0x020007D6 RID: 2006
|
|
public class SteamVR_Menu : MonoBehaviour
|
|
{
|
|
// Token: 0x06010743 RID: 67395 RVA: 0x004EEEFC File Offset: 0x004ED0FC
|
|
private void ODFEOGNDHKH()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.LeftParen) || Input.GetKeyDown((KeyCode)73))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.HJJEGENIAKB();
|
|
}
|
|
else
|
|
{
|
|
this.EJHDFPICENF();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-188)))
|
|
{
|
|
this.BGAHPPNMJEP(1593f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-130)))
|
|
{
|
|
this.MHNLAIDPDOM(Mathf.Clamp(this.OPJEIFPEDML() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)187))
|
|
{
|
|
this.JAFEBAAANPH(Mathf.Clamp(this.DMMAFAPJMID() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010744 RID: 67396 RVA: 0x004EEFF8 File Offset: 0x004ED1F8
|
|
private void HNMEBHKNJPK(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x170006D1 RID: 1745
|
|
// (get) Token: 0x06010745 RID: 67397 RVA: 0x004EF004 File Offset: 0x004ED204
|
|
public RenderTexture JBGLHECEOPE
|
|
{
|
|
get
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010746 RID: 67398 RVA: 0x004EF02C File Offset: 0x004ED22C
|
|
private void FKIOCKKNBHA(float KJIICGKHGHJ)
|
|
{
|
|
this.JKGNPMBDIEJ(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.GPOBCKGIHDF().localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010747 RID: 67399 RVA: 0x004EF068 File Offset: 0x004ED268
|
|
public void GEFLPONOKOF()
|
|
{
|
|
this.DBPFFHMDKKC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010748 RID: 67400 RVA: 0x004EF0D4 File Offset: 0x004ED2D4
|
|
private void GBPAGDFGNME()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.Repaint)
|
|
{
|
|
GL.Clear(true, true, Color.clear);
|
|
}
|
|
Rect rect = new Rect(1719f, 482f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(4 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(1 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1801f, (rect.height - (float)this.background.height) / 1995f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[1]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 63f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("x", new GUILayoutOption[1]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("avg_sl", this.OCHKCJOBGPN()), new GUILayoutOption[0]);
|
|
float num = GUILayout.HorizontalSlider(this.PLGHCKKDJAO(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.PLGHCKKDJAO())
|
|
{
|
|
this.BGAHPPNMJEP(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("ToolOutline_mat", new object[1]), new GUILayoutOption[0]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[0]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Cannot provide a null notification callback.", new object[1]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.PJBBJFLENDG())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.JHMKLJLDABM();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
float num2 = SteamVR_Camera.LFHDKBPKEPG();
|
|
int num3 = (int)(gomkcpfbjfl.NIENCBEPPBG() * num2);
|
|
int num4 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * num2);
|
|
int num5 = (int)(1146f * num2);
|
|
GUILayout.Label(string.Format("INVINCIBILITY_END_TIME", num3, num4, num5), new GUILayoutOption[0]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 1928f, 1129f, new GUILayoutOption[0]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.HBOCBNKJPBB((float)num6 / 554f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "_Color", new GUILayoutOption[0]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "JsonData instance doesn't hold a long", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "api/players/", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = true;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "emote", new GUILayoutOption[1]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.LIIPCDCHOLM();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("\"", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
if (GUILayout.Button("Slot", new GUILayoutOption[0]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.HAHBGCNKGAD();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.DOJAKNEKEGD();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("RpcPlaySyncedDiscPickupFeedback", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
}
|
|
if (GUILayout.Button(" argument(s): ", new GUILayoutOption[1]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("CircularBuffer has been changed during enumeration.");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("Owner" + environmentVariable, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Label("Go now!" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[1]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.BALDLPJKOOO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010749 RID: 67401 RVA: 0x004EF73C File Offset: 0x004ED93C
|
|
private void OFDCCGLFACL()
|
|
{
|
|
if (Input.GetKeyDown((KeyCode)(-74)) || Input.GetKeyDown((KeyCode)(-105)))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.HCJAHCNEJAN();
|
|
}
|
|
else
|
|
{
|
|
this.BALDLPJKOOO();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-183)))
|
|
{
|
|
this.MHNLAIDPDOM(1754f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-130)))
|
|
{
|
|
this.MHNLAIDPDOM(Mathf.Clamp(this.HDDKKHGADKN() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)83))
|
|
{
|
|
this.FKIOCKKNBHA(Mathf.Clamp(this.HDDKKHGADKN() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601074A RID: 67402 RVA: 0x004EF838 File Offset: 0x004EDA38
|
|
public void IGMOEPANGNF()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.LADJLPPKHDI();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("WWWTextureLoader");
|
|
return;
|
|
}
|
|
this.ECJMCCILDDE();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
Camera[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i++)
|
|
{
|
|
Camera camera = array2[i];
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.IDNILPAHJAF(steamVR_Camera.GPOBCKGIHDF().localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601074B RID: 67403 RVA: 0x004EF948 File Offset: 0x004EDB48
|
|
public void HJJEGENIAKB()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.IIJOAOAAIEO();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("playing");
|
|
return;
|
|
}
|
|
this.ECJMCCILDDE();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
Camera[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
Camera camera = array2[i];
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.JMILEKCAACH();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.JKGNPMBDIEJ(steamVR_Camera.MIKPIBIENPH.localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601074C RID: 67404 RVA: 0x004EFA58 File Offset: 0x004EDC58
|
|
private void GNBEMCJFOLN(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601074D RID: 67405 RVA: 0x004EFA64 File Offset: 0x004EDC64
|
|
public void MDCMGLOFIAJ()
|
|
{
|
|
this.JGFPDAOBHDL();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601074E RID: 67406 RVA: 0x004EFAD0 File Offset: 0x004EDCD0
|
|
private void MHNLAIDPDOM(float KJIICGKHGHJ)
|
|
{
|
|
this.KJIICGKHGHJ = KJIICGKHGHJ;
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.JMILEKCAACH();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.GPOBCKGIHDF().localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601074F RID: 67407 RVA: 0x004EFB0C File Offset: 0x004EDD0C
|
|
private void HAEPDHANBBJ()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.MouseDrag)
|
|
{
|
|
GL.Clear(true, false, Color.clear);
|
|
}
|
|
Rect rect = new Rect(1778f, 1773f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(5 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(6 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 551f, (rect.height - (float)this.background.height) / 1756f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[1]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 1263f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("HTTPCacheService", new GUILayoutOption[1]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("<b>ObscuredFloat:</b> ", this.DMMAFAPJMID()), new GUILayoutOption[0]);
|
|
float num = GUILayout.HorizontalSlider(this.FONDMFCJDKJ(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.OBHKMPOMDNJ())
|
|
{
|
|
this.JAFEBAAANPH(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("audio", new object[0]), new GUILayoutOption[1]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("20171214_EA", new object[0]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[0]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.PJBBJFLENDG())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.FCDPFLMFDBC;
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
float num2 = SteamVR_Camera.JMLHLHLDCGP();
|
|
int num3 = (int)(gomkcpfbjfl.INCIDHGMPGP * num2);
|
|
int num4 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * num2);
|
|
int num5 = (int)(20f * num2);
|
|
GUILayout.Label(string.Format("Active:", num3, num4, num5), new GUILayoutOption[0]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 341f, 1421f, new GUILayoutOption[0]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.AGNOLFJKHON((float)num6 / 1946f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "FULL_SCREEN_DESATURATION", new GUILayoutOption[1]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "{0}.{1}", new GUILayoutOption[0]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "reporting_player", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.JMILEKCAACH();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "F2", new GUILayoutOption[0]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.LIIPCDCHOLM();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("PUNVoice: ", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
if (GUILayout.Button("Oculus_GearVR_LThumbstickY", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.JGIGNMABFFJ();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("Current phone ends with: {0}", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
}
|
|
if (GUILayout.Button("Transparent/Diffuse", new GUILayoutOption[1]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("ak");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("<b>ObscuredInt:</b> " + environmentVariable, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Label("score" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.BALDLPJKOOO();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010750 RID: 67408 RVA: 0x004F0174 File Offset: 0x004EE374
|
|
public void ODMEIBPGABF()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.IIJOAOAAIEO();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("lifeBar");
|
|
return;
|
|
}
|
|
this.OPJGLAGMLAE();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
foreach (Camera camera in array)
|
|
{
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.LNCFDAFDLJL(steamVR_Camera.MIKPIBIENPH.localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010751 RID: 67409 RVA: 0x004F0284 File Offset: 0x004EE484
|
|
public float FONDMFCJDKJ()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06010752 RID: 67410 RVA: 0x004F028C File Offset: 0x004EE48C
|
|
private void JEHKPCHLEJA(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010753 RID: 67411 RVA: 0x004F0298 File Offset: 0x004EE498
|
|
private void HKCJGEEOFAK(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010754 RID: 67412 RVA: 0x004F02A4 File Offset: 0x004EE4A4
|
|
private void PJNMAHDNBMM()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.ScrollWheel)
|
|
{
|
|
GL.Clear(true, true, Color.clear);
|
|
}
|
|
Rect rect = new Rect(143f, 353f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(3 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(7 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1346f, (rect.height - (float)this.background.height) / 591f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[0]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 799f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("Unable to consume missing or used gift.", new GUILayoutOption[0]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("y", this.DMMAFAPJMID()), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.DMMAFAPJMID(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.OPJEIFPEDML())
|
|
{
|
|
this.BGAHPPNMJEP(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("_activity", new object[0]), new GUILayoutOption[1]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("_FadeStartSqDistance", new object[1]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.PJBBJFLENDG())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.OJABCFGOCMC();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
float num2 = SteamVR_Camera.JMLHLHLDCGP();
|
|
int num3 = (int)(gomkcpfbjfl.INCIDHGMPGP * num2);
|
|
int num4 = (int)(gomkcpfbjfl.MLDDBAMEHFB() * num2);
|
|
int num5 = (int)(1798f * num2);
|
|
GUILayout.Label(string.Format("HoverBegin ", num3, num4, num5), new GUILayoutOption[1]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 245f, 1429f, new GUILayoutOption[0]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.HBOCBNKJPBB((float)num6 / 414f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "[ACTk] Injection Detector: already running!", new GUILayoutOption[0]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "Cannot set SerializedGuid while the application is running.", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "min_fps", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "time", new GUILayoutOption[0]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.IJFAOFCBBFJ();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("_ShowSamplesBackgroundFade", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
if (GUILayout.Button("StreamList", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.GBBIPAKCKMA();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button(" seconds", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
}
|
|
if (GUILayout.Button("position", new GUILayoutOption[1]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("The event host has silenced all players");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("</color>" + environmentVariable, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Label(" to use this" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.BKJAIHOAPBD();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010755 RID: 67413 RVA: 0x004F090C File Offset: 0x004EEB0C
|
|
public RenderTexture PDLBOHGAPNC()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x06010756 RID: 67414 RVA: 0x004F0934 File Offset: 0x004EEB34
|
|
private void Awake()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("{0:N1}", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("{0:N1}", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("{0:N1}", this.scaleRate);
|
|
SteamVR_Overlay instance = SteamVR_Overlay.FCDPFLMFDBC;
|
|
if (instance != null)
|
|
{
|
|
this.GPBHIHIEEEP = instance.uvOffset;
|
|
this.PFKMOBGLKNK = instance.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010757 RID: 67415 RVA: 0x004F09C8 File Offset: 0x004EEBC8
|
|
private void JAFEBAAANPH(float KJIICGKHGHJ)
|
|
{
|
|
this.IDNILPAHJAF(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.GPOBCKGIHDF().localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010758 RID: 67416 RVA: 0x004F0A04 File Offset: 0x004EEC04
|
|
private void HMMKGAHIEDN()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Caret) || Input.GetKeyDown(KeyCode.Greater))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.ODMEIBPGABF();
|
|
}
|
|
else
|
|
{
|
|
this.EDAOKEKHHFB();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-175)))
|
|
{
|
|
this.FKIOCKKNBHA(464f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)25))
|
|
{
|
|
this.MHNLAIDPDOM(Mathf.Clamp(this.IKNGFLNLLMP() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)194))
|
|
{
|
|
this.MHNLAIDPDOM(Mathf.Clamp(this.OPJEIFPEDML() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010759 RID: 67417 RVA: 0x004F0B00 File Offset: 0x004EED00
|
|
public void EDAOKEKHHFB()
|
|
{
|
|
this.HKLJMGFJNDC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601075A RID: 67418 RVA: 0x004F0B6C File Offset: 0x004EED6C
|
|
public void OIOFFFBDCLG()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BIBOFNAFHBC();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("OUT OF AMMO");
|
|
return;
|
|
}
|
|
this.ECJMCCILDDE();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
Camera[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
Camera camera = array2[i];
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.JMILEKCAACH();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.LNCFDAFDLJL(steamVR_Camera.GPOBCKGIHDF().localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601075B RID: 67419 RVA: 0x004F0C7C File Offset: 0x004EEE7C
|
|
public RenderTexture IBJCLOBIGKO()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x0601075C RID: 67420 RVA: 0x004F0CA4 File Offset: 0x004EEEA4
|
|
public RenderTexture EDAHEKOIDBP()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x0601075D RID: 67421 RVA: 0x004F0CCC File Offset: 0x004EEECC
|
|
public void BALDLPJKOOO()
|
|
{
|
|
this.ONGFIJIPNBP();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601075E RID: 67422 RVA: 0x004F0D38 File Offset: 0x004EEF38
|
|
private void BIOPLCKCFFL()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("type", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("Failed to get Calibrated Play Area bounds! Make sure you have tracking first, and that your space is calibrated.", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("disablematerial", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.FKANPAKIENC();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601075F RID: 67423 RVA: 0x004F0DCC File Offset: 0x004EEFCC
|
|
private void FDLOMOBIEMI(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010760 RID: 67424 RVA: 0x004F0DD8 File Offset: 0x004EEFD8
|
|
private void ONMOJAKOLFA()
|
|
{
|
|
this.MKHFCKMFILP = Cursor.visible;
|
|
this.ANMGJILNKPJ = Cursor.lockState;
|
|
}
|
|
|
|
// Token: 0x06010761 RID: 67425 RVA: 0x004F0DF0 File Offset: 0x004EEFF0
|
|
public float IKNGFLNLLMP()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x170006D2 RID: 1746
|
|
// (get) Token: 0x06010762 RID: 67426 RVA: 0x004F0DF8 File Offset: 0x004EEFF8
|
|
// (set) Token: 0x060107BD RID: 67517 RVA: 0x004F6044 File Offset: 0x004F4244
|
|
public float KJIICGKHGHJ { get; private set; }
|
|
|
|
// Token: 0x06010763 RID: 67427 RVA: 0x004F0E00 File Offset: 0x004EF000
|
|
private void KAEPFOILFCG()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("Message", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("\\b", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("Gaeralagossil", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.FKANPAKIENC();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010764 RID: 67428 RVA: 0x004F0E94 File Offset: 0x004EF094
|
|
public RenderTexture AMDJCJMNCPK()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x06010765 RID: 67429 RVA: 0x004F0EBC File Offset: 0x004EF0BC
|
|
private void GJKLMFDOFPM(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010766 RID: 67430 RVA: 0x004F0EC8 File Offset: 0x004EF0C8
|
|
private void JKPAFDLMNLA()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.MouseDown)
|
|
{
|
|
GL.Clear(false, false, Color.clear);
|
|
}
|
|
Rect rect = new Rect(962f, 642f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(7 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(1 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1190f, (rect.height - (float)this.background.height) / 1961f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[0]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 138f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("pr", new GUILayoutOption[0]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("Cinematic", this.OPJEIFPEDML()), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.FONDMFCJDKJ(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[1]);
|
|
if (num != this.BJLPJIMBAJL())
|
|
{
|
|
this.BBMFFKEGBBG(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("MoveIn", new object[1]), new GUILayoutOption[0]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("F2", new object[0]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.PJBBJFLENDG())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.OJABCFGOCMC();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
float num2 = SteamVR_Camera.JLGBGEDBBPO();
|
|
int num3 = (int)(gomkcpfbjfl.OFGCLMACDEC() * num2);
|
|
int num4 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * num2);
|
|
int num5 = (int)(1752f * num2);
|
|
GUILayout.Label(string.Format("If you host Photon yourself, make sure to start the 'Instance LoadBalancing' ", num3, num4, num5), new GUILayoutOption[1]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 1365f, 427f, new GUILayoutOption[0]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.OLIEBJFCBAP((float)num6 / 1166f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "Spam Alert!", new GUILayoutOption[1]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "Ignoring Connect() because app gets closed. If this is an error, check PhotonHandler.AppQuits.", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "PreviewImageName", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "activity", new GUILayoutOption[1]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.IJFAOFCBBFJ();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("TeleportBufferSize can not contain duplicate values for ", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
if (GUILayout.Button(" TimeOfRespawn: ", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.FIAPPAFDGBG();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("Hidden/ACTk/WallHackTexture", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
}
|
|
if (GUILayout.Button("^[\\w!#$%&'*+\\-/=?\\^_`{|}~]+(\\.[\\w!#$%&'*+\\-/=?\\^_`{|}~]+)*@((([\\-\\w]+\\.)+[a-zA-Z]{2,4})|(([0-9]{1,3}\\.){3}[0-9]{1,3}))$", new GUILayoutOption[0]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("Error creating room. If this persists, please contact the developers at support@againstgrav.com.");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("HTTPConnection" + environmentVariable, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Label("newplayerpunchcardobjective_completed" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[1]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.MDCMGLOFIAJ();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010767 RID: 67431 RVA: 0x004F1530 File Offset: 0x004EF730
|
|
private void MHDFIOMCCMO()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.None) || Input.GetKeyDown(KeyCode.S))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.ShowMenu();
|
|
}
|
|
else
|
|
{
|
|
this.MDCMGLOFIAJ();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-125)))
|
|
{
|
|
this.JAFEBAAANPH(1801f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-75)))
|
|
{
|
|
this.IHHNFPNJMLG(Mathf.Clamp(this.DMMAFAPJMID() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-183)))
|
|
{
|
|
this.FKIOCKKNBHA(Mathf.Clamp(this.IKNGFLNLLMP() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010768 RID: 67432 RVA: 0x004F162C File Offset: 0x004EF82C
|
|
private void AFGEAOKINED(float KJIICGKHGHJ)
|
|
{
|
|
this.MGHFGMAOFAP(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.MIKPIBIENPH.localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010769 RID: 67433 RVA: 0x004F1668 File Offset: 0x004EF868
|
|
private void ALAHKBNFFCK()
|
|
{
|
|
this.MKHFCKMFILP = Cursor.visible;
|
|
this.ANMGJILNKPJ = Cursor.lockState;
|
|
}
|
|
|
|
// Token: 0x0601076A RID: 67434 RVA: 0x004F1680 File Offset: 0x004EF880
|
|
public RenderTexture LCBOCJGCKOL()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x0601076B RID: 67435 RVA: 0x004F16A8 File Offset: 0x004EF8A8
|
|
private void MNIDAMPOHFJ()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.KeyUp)
|
|
{
|
|
GL.Clear(true, false, Color.clear);
|
|
}
|
|
Rect rect = new Rect(70f, 615f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(7 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(1 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 303f, (rect.height - (float)this.background.height) / 42f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[1]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 376f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("RpcMasterRequestTrapOnPlayerDamage", new GUILayoutOption[1]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("#{0:00} '{1}'{2} {3}", this.OBHKMPOMDNJ()), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.PLGHCKKDJAO(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.OCHKCJOBGPN())
|
|
{
|
|
this.JAFEBAAANPH(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Verifying...", new object[0]), new GUILayoutOption[0]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Camera Yaw", new object[1]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[0]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.PJBBJFLENDG())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.OJABCFGOCMC();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
float num2 = SteamVR_Camera.JMLHLHLDCGP();
|
|
int num3 = (int)(gomkcpfbjfl.OFGCLMACDEC() * num2);
|
|
int num4 = (int)(gomkcpfbjfl.OLBKCIIJEJJ * num2);
|
|
int num5 = (int)(1887f * num2);
|
|
GUILayout.Label(string.Format("Last-Modified", num3, num4, num5), new GUILayoutOption[0]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 811f, 886f, new GUILayoutOption[1]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.COHIKKPKGIM((float)num6 / 998f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "Cached entities:", new GUILayoutOption[0]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "ConnectionBase", new GUILayoutOption[0]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "(", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.JMILEKCAACH();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "The event has not yet started", new GUILayoutOption[1]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.IJFAOFCBBFJ();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("IntegrationTest Fail", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
if (GUILayout.Button("z", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.HAHBGCNKGAD();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("\" is already in use.", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
}
|
|
if (GUILayout.Button("RpcMasterRequestCardPickup", new GUILayoutOption[0]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("Editor only.");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label(" is not parented to a weapon." + environmentVariable, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Label("activityLevel" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[1]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.GEFLPONOKOF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601076C RID: 67436 RVA: 0x004F1D10 File Offset: 0x004EFF10
|
|
public float DMMAFAPJMID()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0601076D RID: 67437 RVA: 0x004F1D18 File Offset: 0x004EFF18
|
|
private void JKGNPMBDIEJ(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601076E RID: 67438 RVA: 0x004F1D24 File Offset: 0x004EFF24
|
|
public void MOGDLBCGKBF()
|
|
{
|
|
this.HLAENAFMNKO();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601076F RID: 67439 RVA: 0x004F1D90 File Offset: 0x004EFF90
|
|
private void BDKMGEHDIIH()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("s", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("api/challenge/", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("Invalid saved data for SplitTesting. Clearing data. Version: {0}, Raw Data: {1}", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BHKADLPCPLM();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010770 RID: 67440 RVA: 0x004F1E24 File Offset: 0x004F0024
|
|
private void PAKPLLPDIOG()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("XTR_ID", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("Unable to get event status: ", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("_Red_Col", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BIBOFNAFHBC();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010771 RID: 67441 RVA: 0x004F1EB8 File Offset: 0x004F00B8
|
|
private void JGFPDAOBHDL()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x06010772 RID: 67442 RVA: 0x004F1ED0 File Offset: 0x004F00D0
|
|
public void JFCPFJBCOCH()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.LADJLPPKHDI();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("Updating...");
|
|
return;
|
|
}
|
|
this.ONMOJAKOLFA();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
foreach (Camera camera in array)
|
|
{
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.GFGODAJKGHN(steamVR_Camera.MIKPIBIENPH.localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010773 RID: 67443 RVA: 0x004F1FE0 File Offset: 0x004F01E0
|
|
private void IJMMNGEIANF(float KJIICGKHGHJ)
|
|
{
|
|
this.MGHFGMAOFAP(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.MIKPIBIENPH.localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010774 RID: 67444 RVA: 0x004F201C File Offset: 0x004F021C
|
|
private void APMBEEPEHBD()
|
|
{
|
|
this.MKHFCKMFILP = Cursor.visible;
|
|
this.ANMGJILNKPJ = Cursor.lockState;
|
|
}
|
|
|
|
// Token: 0x06010775 RID: 67445 RVA: 0x004F2034 File Offset: 0x004F0234
|
|
private void OPJGLAGMLAE()
|
|
{
|
|
this.MKHFCKMFILP = Cursor.visible;
|
|
this.ANMGJILNKPJ = Cursor.lockState;
|
|
}
|
|
|
|
// Token: 0x06010776 RID: 67446 RVA: 0x004F204C File Offset: 0x004F024C
|
|
private void BFNHLNNEOJB(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010777 RID: 67447 RVA: 0x004F2058 File Offset: 0x004F0258
|
|
private void LNCFDAFDLJL(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010778 RID: 67448 RVA: 0x004F2064 File Offset: 0x004F0264
|
|
public void GICFBLPAHNC()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BHKADLPCPLM();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("PlatformProfileId: {0}");
|
|
return;
|
|
}
|
|
this.ALAHKBNFFCK();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
Camera[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i++)
|
|
{
|
|
Camera camera = array2[i];
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.MGHFGMAOFAP(steamVR_Camera.MIKPIBIENPH.localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010779 RID: 67449 RVA: 0x004F2174 File Offset: 0x004F0374
|
|
private void AGGEJHOCGLG()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.KeyUp)
|
|
{
|
|
GL.Clear(false, false, Color.clear);
|
|
}
|
|
Rect rect = new Rect(544f, 887f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(4 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(7 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1792f, (rect.height - (float)this.background.height) / 553f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[0]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 65f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("api/equipment/", new GUILayoutOption[0]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Mirror does not have an assigned quad. Disabling this Mirror component.", this.KJIICGKHGHJ), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.PLGHCKKDJAO(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[1]);
|
|
if (num != this.OPJEIFPEDML())
|
|
{
|
|
this.MHNLAIDPDOM(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("ns.exitgames.com", new object[0]), new GUILayoutOption[0]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[0]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Do you want to invite your party to go with you?", new object[0]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[0]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.CAAAFEKOAAF)
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.JHMKLJLDABM();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
float sceneResolutionScale = SteamVR_Camera.MIDPDKHDBBP;
|
|
int num2 = (int)(gomkcpfbjfl.BDEJFCJGMGP() * sceneResolutionScale);
|
|
int num3 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * sceneResolutionScale);
|
|
int num4 = (int)(1719f * sceneResolutionScale);
|
|
GUILayout.Label(string.Format("_TintColor", num2, num3, num4), new GUILayoutOption[1]);
|
|
int num5 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num4, 1276f, 701f, new GUILayoutOption[1]));
|
|
if (num5 != num4)
|
|
{
|
|
SteamVR_Camera.MIDPDKHDBBP = (float)num5 / 1176f;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "Original health bar: ", new GUILayoutOption[0]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "TEAM_TWO_LAST_PERFORMER_INDEX", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "gizmos", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "1.87", new GUILayoutOption[1]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.IJFAOFCBBFJ();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("z", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
if (GUILayout.Button("Depth", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.GBBIPAKCKMA();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("share_cam_picture_taken", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
}
|
|
if (GUILayout.Button("alt/", new GUILayoutOption[0]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("Play");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("de" + environmentVariable, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Label("demoLong" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[1]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num6 = (float)Screen.height - Input.mousePosition.y;
|
|
float num7 = (float)this.cursor.width;
|
|
float num8 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num6, num7, num8), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.FOLEKGGFAMN();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601077A RID: 67450 RVA: 0x004F27DC File Offset: 0x004F09DC
|
|
private void BBMFFKEGBBG(float KJIICGKHGHJ)
|
|
{
|
|
this.KJIICGKHGHJ = KJIICGKHGHJ;
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.Top();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.MIKPIBIENPH.localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601077B RID: 67451 RVA: 0x004F2818 File Offset: 0x004F0A18
|
|
public RenderTexture GICFJDGIKOL()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x0601077C RID: 67452 RVA: 0x004F2840 File Offset: 0x004F0A40
|
|
public void DBEHIEEFBAJ()
|
|
{
|
|
this.JGFPDAOBHDL();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601077D RID: 67453 RVA: 0x004F28AC File Offset: 0x004F0AAC
|
|
private void HLADMFFFENH()
|
|
{
|
|
if (Input.GetKeyDown((KeyCode)77) || Input.GetKeyDown(KeyCode.Period))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.ANGMEGLHLAP();
|
|
}
|
|
else
|
|
{
|
|
this.GEFLPONOKOF();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)3))
|
|
{
|
|
this.AFGEAOKINED(1347f);
|
|
}
|
|
else if (Input.GetKey(KeyCode.Alpha3))
|
|
{
|
|
this.AFGEAOKINED(Mathf.Clamp(this.FONDMFCJDKJ() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-103)))
|
|
{
|
|
this.AFGEAOKINED(Mathf.Clamp(this.DMMAFAPJMID() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601077E RID: 67454 RVA: 0x004F29A8 File Offset: 0x004F0BA8
|
|
public RenderTexture BNIDNAILPKL()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x0601077F RID: 67455 RVA: 0x004F29D0 File Offset: 0x004F0BD0
|
|
public void FBHACALMNGM()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.LADJLPPKHDI();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("YnVmYgZwcm90bzM=");
|
|
return;
|
|
}
|
|
this.FKHFOGFLGEN();
|
|
Cursor.visible = false;
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
Camera[] array2 = array;
|
|
for (int i = 1; i < array2.Length; i += 0)
|
|
{
|
|
Camera camera = array2[i];
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.JEHKPCHLEJA(steamVR_Camera.MIKPIBIENPH.localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010780 RID: 67456 RVA: 0x004F2AE0 File Offset: 0x004F0CE0
|
|
public void HideMenu()
|
|
{
|
|
this.DBPFFHMDKKC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010781 RID: 67457 RVA: 0x004F2B4C File Offset: 0x004F0D4C
|
|
private void HKLJMGFJNDC()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x06010782 RID: 67458 RVA: 0x004F2B64 File Offset: 0x004F0D64
|
|
public RenderTexture ADEIHDDNGKO()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x06010783 RID: 67459 RVA: 0x004F2B8C File Offset: 0x004F0D8C
|
|
private void ELBDAIAMMGB()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format(". The group number should be at least 1.", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("{0}v1/deletesaved", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("Assets/Core/Content/Configs/", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.IIJOAOAAIEO();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010784 RID: 67460 RVA: 0x004F2C20 File Offset: 0x004F0E20
|
|
private void GFGODAJKGHN(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x06010785 RID: 67461 RVA: 0x004F2C2C File Offset: 0x004F0E2C
|
|
public void BKJAIHOAPBD()
|
|
{
|
|
this.IODKECAJMPA();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010786 RID: 67462 RVA: 0x004F2C98 File Offset: 0x004F0E98
|
|
private void KMEHAACNJAG()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("looktarget", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format(", but the recommended MSAA level is ", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("trackhat", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BHKADLPCPLM();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010787 RID: 67463 RVA: 0x004F2D2C File Offset: 0x004F0F2C
|
|
public void BLBBBHBEAKB()
|
|
{
|
|
this.IODKECAJMPA();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010788 RID: 67464 RVA: 0x004F2D98 File Offset: 0x004F0F98
|
|
private void FJIEBCBMBJB()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.Layout)
|
|
{
|
|
GL.Clear(false, true, Color.clear);
|
|
}
|
|
Rect rect = new Rect(141f, 418f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(1 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(6 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1470f, (rect.height - (float)this.background.height) / 1697f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[1]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 1284f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("SUMMER2013", new GUILayoutOption[1]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("RpcMasterRequestPlayerRespawn", this.OBHKMPOMDNJ()), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.OCHKCJOBGPN(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[1]);
|
|
if (num != this.BJLPJIMBAJL())
|
|
{
|
|
this.BBMFFKEGBBG(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Type of observed is unknown when receiving.", new object[0]), new GUILayoutOption[0]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[0]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("Favorite skin removed!", new object[1]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.OBMEKGBNIEO())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.FCDPFLMFDBC;
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
float num2 = SteamVR_Camera.JMLHLHLDCGP();
|
|
int num3 = (int)(gomkcpfbjfl.NIENCBEPPBG() * num2);
|
|
int num4 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * num2);
|
|
int num5 = (int)(450f * num2);
|
|
GUILayout.Label(string.Format("Bump", num3, num4, num5), new GUILayoutOption[0]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 1015f, 836f, new GUILayoutOption[0]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.HBOCBNKJPBB((float)num6 / 1829f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "ExitGames.Client.Photon.SocketWebTcp, Assembly-CSharp", new GUILayoutOption[1]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "GZipStream", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "onTweenComplete", new GUILayoutOption[1]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = true;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "scale", new GUILayoutOption[1]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.LIIPCDCHOLM();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("FarClipPlane: {0} -> {1}", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
if (GUILayout.Button("ObjectiveType", new GUILayoutOption[0]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.GBBIPAKCKMA();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.DOJAKNEKEGD();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button(":", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
}
|
|
if (GUILayout.Button("EquipShirt1", new GUILayoutOption[0]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("Unable to Join Player");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("SVM_CI" + environmentVariable, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Label("_TintColor" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.MOGDLBCGKBF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010789 RID: 67465 RVA: 0x004F3400 File Offset: 0x004F1600
|
|
public void LLCCCPMHFBI()
|
|
{
|
|
this.IODKECAJMPA();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601078A RID: 67466 RVA: 0x004F346C File Offset: 0x004F166C
|
|
public void EAENBGOOAIO()
|
|
{
|
|
this.JGFPDAOBHDL();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601078B RID: 67467 RVA: 0x004F34D8 File Offset: 0x004F16D8
|
|
private void CNANDHPIMFD()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.Repaint)
|
|
{
|
|
GL.Clear(false, true, Color.clear);
|
|
}
|
|
Rect rect = new Rect(325f, 1348f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(7 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(4 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 894f, (rect.height - (float)this.background.height) / 810f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[1]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 1894f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("click", new GUILayoutOption[1]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Duirronir", this.KJIICGKHGHJ), new GUILayoutOption[0]);
|
|
float num = GUILayout.HorizontalSlider(this.KJIICGKHGHJ, this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[1]);
|
|
if (num != this.FONDMFCJDKJ())
|
|
{
|
|
this.KBJCGIHMIAH(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("uploadtransientsingle", new object[1]), new GUILayoutOption[1]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("IntegrationTest Ignored", new object[0]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.OBMEKGBNIEO())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.FCDPFLMFDBC;
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
float num2 = SteamVR_Camera.JLGBGEDBBPO();
|
|
int num3 = (int)(gomkcpfbjfl.INCIDHGMPGP * num2);
|
|
int num4 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * num2);
|
|
int num5 = (int)(181f * num2);
|
|
GUILayout.Label(string.Format("api/storefronts/", num3, num4, num5), new GUILayoutOption[1]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 1420f, 1088f, new GUILayoutOption[1]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.AGNOLFJKHON((float)num6 / 646f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "Failed to ", new GUILayoutOption[1]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "AEMPID", new GUILayoutOption[0]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "TubeData", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = true;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.Top();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "RpcOnMasterGroupCreation", new GUILayoutOption[0]);
|
|
SteamVR_Render instance = SteamVR_Render.FCDPFLMFDBC;
|
|
if (instance.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("Authorization", new GUILayoutOption[1]))
|
|
{
|
|
instance.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
if (GUILayout.Button("Content-Length: ", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.BIDDENKOJEF;
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("x", new GUILayoutOption[0]))
|
|
{
|
|
instance.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
}
|
|
if (GUILayout.Button("Ignored PU RPC, cause item is inactive. ", new GUILayoutOption[0]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("open");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("\"" + environmentVariable, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Label("How your lives count is stored in memory when obscured: " + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.MDCMGLOFIAJ();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601078C RID: 67468 RVA: 0x004F3B40 File Offset: 0x004F1D40
|
|
private void KPFPNDKCGAO(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601078D RID: 67469 RVA: 0x004F3B4C File Offset: 0x004F1D4C
|
|
public RenderTexture ABBEJEODIHE()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x0601078E RID: 67470 RVA: 0x004F3B74 File Offset: 0x004F1D74
|
|
public void ShowMenu()
|
|
{
|
|
SteamVR_Overlay instance = SteamVR_Overlay.FCDPFLMFDBC;
|
|
if (instance == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = instance.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("Menu requires overlay texture to be a render texture.");
|
|
return;
|
|
}
|
|
this.FKHFOGFLGEN();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = instance;
|
|
this.GPBHIHIEEEP = instance.uvOffset;
|
|
this.PFKMOBGLKNK = instance.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
foreach (Camera camera in array)
|
|
{
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.Top();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.KJIICGKHGHJ = steamVR_Camera.MIKPIBIENPH.localScale.x;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601078F RID: 67471 RVA: 0x004F3C84 File Offset: 0x004F1E84
|
|
private void LHMGNEDHIHI()
|
|
{
|
|
if (Input.GetKeyDown((KeyCode)24) || Input.GetKeyDown((KeyCode)21))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.ShowMenu();
|
|
}
|
|
else
|
|
{
|
|
this.DBEHIEEFBAJ();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-94)))
|
|
{
|
|
this.BGAHPPNMJEP(1710f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-109)))
|
|
{
|
|
this.IHHNFPNJMLG(Mathf.Clamp(this.FONDMFCJDKJ() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey(KeyCode.Slash))
|
|
{
|
|
this.FKIOCKKNBHA(Mathf.Clamp(this.IKNGFLNLLMP() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010790 RID: 67472 RVA: 0x004F3D80 File Offset: 0x004F1F80
|
|
private void DLCHNOFPONJ()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("reputationDelta", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("_EmissionColor", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("{0:D4}{1:D2}{2:D2}_{3:D2}{4:D2}{5:D2}", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.IIJOAOAAIEO();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010791 RID: 67473 RVA: 0x004F3E14 File Offset: 0x004F2014
|
|
private void IHHNFPNJMLG(float KJIICGKHGHJ)
|
|
{
|
|
this.BFNHLNNEOJB(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.MIKPIBIENPH.localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010792 RID: 67474 RVA: 0x004F3E50 File Offset: 0x004F2050
|
|
private void LKKHJODBPMI()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x06010793 RID: 67475 RVA: 0x004F3E68 File Offset: 0x004F2068
|
|
public void HJGFOLCJEEH()
|
|
{
|
|
this.HLAENAFMNKO();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010794 RID: 67476 RVA: 0x004F3ED4 File Offset: 0x004F20D4
|
|
private void LHDEGPKAADF()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Alpha1) || Input.GetKeyDown((KeyCode)(-12)))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.OIOFFFBDCLG();
|
|
}
|
|
else
|
|
{
|
|
this.FCEONFOEDDC();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-43)))
|
|
{
|
|
this.MHNLAIDPDOM(621f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)134))
|
|
{
|
|
this.JAFEBAAANPH(Mathf.Clamp(this.FONDMFCJDKJ() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-87)))
|
|
{
|
|
this.AFGEAOKINED(Mathf.Clamp(this.HDDKKHGADKN() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010795 RID: 67477 RVA: 0x004F3FD0 File Offset: 0x004F21D0
|
|
public float BJLPJIMBAJL()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06010796 RID: 67478 RVA: 0x004F3FD8 File Offset: 0x004F21D8
|
|
private void KALPBIOHNKC()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x06010797 RID: 67479 RVA: 0x004F3FF0 File Offset: 0x004F21F0
|
|
public float OBHKMPOMDNJ()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x06010798 RID: 67480 RVA: 0x004F3FF8 File Offset: 0x004F21F8
|
|
private void HEKMPKDNNGB()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("Timeout waiting to spawn player (zombie room, with heartbeat)", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("Turn", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format(" secs.", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.LADJLPPKHDI();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06010799 RID: 67481 RVA: 0x004F408C File Offset: 0x004F228C
|
|
private void IDNILPAHJAF(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x0601079A RID: 67482 RVA: 0x004F4098 File Offset: 0x004F2298
|
|
private void IODKECAJMPA()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x0601079C RID: 67484 RVA: 0x004F40D8 File Offset: 0x004F22D8
|
|
public void AIMKCNMLIIJ()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.IIJOAOAAIEO();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("RoomId");
|
|
return;
|
|
}
|
|
this.ONMOJAKOLFA();
|
|
Cursor.visible = true;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
foreach (Camera camera in array)
|
|
{
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.MGHFGMAOFAP(steamVR_Camera.GPOBCKGIHDF().localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601079D RID: 67485 RVA: 0x004F41E8 File Offset: 0x004F23E8
|
|
private void LPBFEEHNDAD()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("traffic", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("b3JtYWwYAiABKAsyFC5yZWNyb29tLlZlY3RvcjNEYXRhEg4KBnJhZGl1cxgD", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("No message dialog found", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BHKADLPCPLM();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601079E RID: 67486 RVA: 0x004F427C File Offset: 0x004F247C
|
|
private void ANLNFGNBFBB()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("relationship", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format(" Ignored: ", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("JoinRoom failed (room maybe closed by now). Client stays on masterserver: {0}. State: {1}", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.BHKADLPCPLM();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0601079F RID: 67487 RVA: 0x004F4310 File Offset: 0x004F2510
|
|
public void CHIMDJKDFAB()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.FKANPAKIENC();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("YOU REVIVED ");
|
|
return;
|
|
}
|
|
this.ECJMCCILDDE();
|
|
Cursor.visible = false;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
foreach (Camera camera in array)
|
|
{
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.FDLOMOBIEMI(steamVR_Camera.GPOBCKGIHDF().localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A0 RID: 67488 RVA: 0x004F4420 File Offset: 0x004F2620
|
|
private void HLAENAFMNKO()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x060107A1 RID: 67489 RVA: 0x004F4438 File Offset: 0x004F2638
|
|
private void DBPFFHMDKKC()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x060107A2 RID: 67490 RVA: 0x004F4450 File Offset: 0x004F2650
|
|
private void FAICLPHEFNK()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.MouseMove)
|
|
{
|
|
GL.Clear(true, false, Color.clear);
|
|
}
|
|
Rect rect = new Rect(1023f, 434f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(1 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(5 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1825f, (rect.height - (float)this.background.height) / 502f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[0]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 271f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("api/gamesessions/v2/", new GUILayoutOption[0]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("numChannels", this.PLGHCKKDJAO()), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.OCHKCJOBGPN(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.DMMAFAPJMID())
|
|
{
|
|
this.AFGEAOKINED(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("timeout", new object[0]), new GUILayoutOption[1]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.Label(string.Format("SetRandomName", new object[1]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.OBMEKGBNIEO())
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.OJABCFGOCMC();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
float num2 = SteamVR_Camera.LFHDKBPKEPG();
|
|
int num3 = (int)(gomkcpfbjfl.INCIDHGMPGP * num2);
|
|
int num4 = (int)(gomkcpfbjfl.OLBKCIIJEJJ * num2);
|
|
int num5 = (int)(295f * num2);
|
|
GUILayout.Label(string.Format(" TEAM", num3, num4, num5), new GUILayoutOption[0]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 1053f, 143f, new GUILayoutOption[1]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.MIDPDKHDBBP = (float)num6 / 1675f;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "oldPing", new GUILayoutOption[1]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "Code", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "RpcAddControlPoint", new GUILayoutOption[1]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "roomcode", new GUILayoutOption[1]);
|
|
SteamVR_Render instance = SteamVR_Render.FCDPFLMFDBC;
|
|
if (instance.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("PS4PlatformManager: Failed to retrieve PSN blocked user list: ", new GUILayoutOption[1]))
|
|
{
|
|
instance.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
if (GUILayout.Button("IntegrationTest Pass", new GUILayoutOption[0]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.BIDDENKOJEF;
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("purchase", new GUILayoutOption[1]))
|
|
{
|
|
instance.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
}
|
|
if (GUILayout.Button("Failed to refresh login token: ", new GUILayoutOption[1]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("IiYKDlRvb2xIb2xkZXJEYXRhEhQKDGhlbGRfdmlld19pZBgCIAEoDEITqgIQ");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("<pre style=\"font-family:Consolas;font-size:13;color:black;background:silver;\"><span style=\"color:blue;\">using</span> System;\r\n<span style=\"color:blue;\">using</span> System.Collections.Generic;\r\n\r\n<span style=\"color:blue;\">using</span> UnityEngine;\r\n<span style=\"color:blue;\">using</span> BestHTTP.SignalR;\r\n<span style=\"color:blue;\">using</span> BestHTTP.Cookies;\r\n\r\n<span style=\"color:blue;\">public</span> <span style=\"color:blue;\">sealed</span> <span style=\"color:blue;\">class</span> <span style=\"color:#2b91af;\">ConnectionAPISample</span> : <span style=\"color:#2b91af;\">MonoBehaviour</span>\r\n{\r\n <span style=\"color:blue;\">readonly</span> <span style=\"color:#2b91af;\">Uri</span> URI = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">Uri</span>(<span style=\"color:#a31515;\">"http://besthttpsignalr.azurewebsites.net/raw-connection/"</span>);\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Possible message types that the client can send to the server</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">enum</span> <span style=\"color:#2b91af;\">MessageTypes</span>\r\n {\r\n Send, <span style=\"color:green;\">// 0</span>\r\n Broadcast, <span style=\"color:green;\">// 1</span>\r\n Join, <span style=\"color:green;\">// 2</span>\r\n PrivateMessage, <span style=\"color:green;\">// 3</span>\r\n AddToGroup, <span style=\"color:green;\">// 4</span>\r\n RemoveFromGroup, <span style=\"color:green;\">// 5</span>\r\n SendToGroup, <span style=\"color:green;\">// 6</span>\r\n BroadcastExceptMe, <span style=\"color:green;\">// 7</span>\r\n }\r\n\r\n<span style=\"color:blue;\"> #region</span> Private Fields\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Reference to the SignalR Connection</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:#2b91af;\">Connection</span> signalRConnection;\r\n\r\n <span style=\"color:green;\">// Input strings</span>\r\n <span style=\"color:blue;\">string</span> ToEveryBodyText = <span style=\"color:blue;\">string</span>.Empty;\r\n <span style=\"color:blue;\">string</span> ToMeText = <span style=\"color:blue;\">string</span>.Empty;\r\n <span style=\"color:blue;\">string</span> PrivateMessageText = <span style=\"color:blue;\">string</span>.Empty;\r\n <span style=\"color:blue;\">string</span> PrivateMessageUserOrGroupName = <span style=\"color:blue;\">string</span>.Empty;\r\n\r\n <span style=\"color:#2b91af;\">GUIMessageList</span> messages = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">GUIMessageList</span>();\r\n\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> Unity Events\r\n\r\n <span style=\"color:blue;\">void</span> Start()\r\n {\r\n <span style=\"color:green;\">// Set a "user" cookie if we previously used the 'Enter Name' button.</span>\r\n <span style=\"color:green;\">// The server will set this username to the new connection.</span>\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">PlayerPrefs</span>.HasKey(<span style=\"color:#a31515;\">"userName"</span>))\r\n <span style=\"color:#2b91af;\">CookieJar</span>.Set(URI, <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">Cookie</span>(<span style=\"color:#a31515;\">"user"</span>, <span style=\"color:#2b91af;\">PlayerPrefs</span>.GetString(<span style=\"color:#a31515;\">"userName"</span>)));\r\n\r\n signalRConnection = <span style=\"color:blue;\">new</span> <span style=\"color:#2b91af;\">Connection</span>(URI);\r\n\r\n <span style=\"color:green;\">// to serialize the Message class, set a more advanced json encoder</span>\r\n signalRConnection.JsonEncoder = <span style=\"color:blue;\">new</span> BestHTTP.SignalR.JsonEncoders.<span style=\"color:#2b91af;\">LitJsonEncoder</span>();\r\n\r\n <span style=\"color:green;\">// set up event handlers</span>\r\n signalRConnection.OnStateChanged += signalRConnection_OnStateChanged;\r\n signalRConnection.OnNonHubMessage += signalRConnection_OnGeneralMessage;\r\n\r\n <span style=\"color:green;\">// Start to connect to the server.</span>\r\n signalRConnection.Open();\r\n }\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Draw the gui.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Get input strings.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Handle function calls.</span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"></summary></span>\r\n <span style=\"color:blue;\">void</span> OnGUI()\r\n {\r\n <span style=\"color:#2b91af;\">GUIHelper</span>.DrawArea(<span style=\"color:#2b91af;\">GUIHelper</span>.ClientArea, <span style=\"color:blue;\">true</span>, () =>\r\n {\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginVertical();\r\n\r\n<span style=\"color:blue;\"> #region</span> To Everybody\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"To Everybody"</span>);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginHorizontal();\r\n \r\n ToEveryBodyText = <span style=\"color:#2b91af;\">GUILayout</span>.TextField(ToEveryBodyText, <span style=\"color:#2b91af;\">GUILayout</span>.MinWidth(100));\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Broadcast"</span>))\r\n Broadcast(ToEveryBodyText);\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Broadcast (All Except Me)"</span>))\r\n BroadcastExceptMe(ToEveryBodyText);\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Enter Name"</span>))\r\n EnterName(ToEveryBodyText);\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Join Group"</span>))\r\n JoinGroup(ToEveryBodyText);\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Leave Group"</span>))\r\n LeaveGroup(ToEveryBodyText);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndHorizontal();\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> To Me\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"To Me"</span>);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginHorizontal();\r\n\r\n ToMeText = <span style=\"color:#2b91af;\">GUILayout</span>.TextField(ToMeText, <span style=\"color:#2b91af;\">GUILayout</span>.MinWidth(100));\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Send to me"</span>))\r\n SendToMe(ToMeText);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndHorizontal();\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> Private Message\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"Private Message"</span>);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginHorizontal();\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"Message:"</span>);\r\n PrivateMessageText = <span style=\"color:#2b91af;\">GUILayout</span>.TextField(PrivateMessageText, <span style=\"color:#2b91af;\">GUILayout</span>.MinWidth(100));\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"User or Group name:"</span>);\r\n PrivateMessageUserOrGroupName = <span style=\"color:#2b91af;\">GUILayout</span>.TextField(PrivateMessageUserOrGroupName, <span style=\"color:#2b91af;\">GUILayout</span>.MinWidth(100));\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Send to user"</span>))\r\n SendToUser(PrivateMessageUserOrGroupName, PrivateMessageText);\r\n\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Send to group"</span>))\r\n SendToGroup(PrivateMessageUserOrGroupName, PrivateMessageText);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndHorizontal();\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Space(20);\r\n\r\n <span style=\"color:blue;\">if</span> (signalRConnection.State == <span style=\"color:#2b91af;\">ConnectionStates</span>.Closed)\r\n {\r\n <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Start Connection"</span>))\r\n signalRConnection.Open();\r\n }\r\n <span style=\"color:blue;\">else</span> <span style=\"color:blue;\">if</span> (<span style=\"color:#2b91af;\">GUILayout</span>.Button(<span style=\"color:#a31515;\">"Stop Connection"</span>))\r\n signalRConnection.Close();\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Space(20);\r\n\r\n <span style=\"color:green;\">// Draw the messages</span>\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Label(<span style=\"color:#a31515;\">"Messages"</span>);\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.BeginHorizontal();\r\n <span style=\"color:#2b91af;\">GUILayout</span>.Space(20);\r\n messages.Draw(<span style=\"color:#2b91af;\">Screen</span>.width - 20, 0);\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndHorizontal();\r\n\r\n <span style=\"color:#2b91af;\">GUILayout</span>.EndVertical();\r\n });\r\n }\r\n\r\n <span style=\"color:blue;\">void</span> OnDestroy()\r\n {\r\n <span style=\"color:green;\">// Close the connection when the sample is closed</span>\r\n signalRConnection.Close();\r\n }\r\n\r\n<span style=\"color:blue;\"> #endregion</span>\r\n\r\n<span style=\"color:blue;\"> #region</span> SignalR Events\r\n\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> </span><span style=\"color:gray;\"><summary></span>\r\n <span style=\"color:gray;\">///</span><span style=\"color:green;\"> Handle non-hub messages</span>\r\n [...string is too long...]" + environmentVariable, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Label("Received malformed RecNet response: '" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.HideMenu();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A3 RID: 67491 RVA: 0x004F4AB8 File Offset: 0x004F2CB8
|
|
public void NMFJDAGFHHH()
|
|
{
|
|
this.HKLJMGFJNDC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A4 RID: 67492 RVA: 0x004F4B24 File Offset: 0x004F2D24
|
|
private void OOOELHHBPFN()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.Repaint)
|
|
{
|
|
GL.Clear(true, true, Color.clear);
|
|
}
|
|
Rect rect = new Rect(1957f, 1618f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(8 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(3 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 1578f, (rect.height - (float)this.background.height) / 771f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[1]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[1]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 740f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[1]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("2", new GUILayoutOption[0]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Transparent/Diffuse", this.PLGHCKKDJAO()), new GUILayoutOption[1]);
|
|
float num = GUILayout.HorizontalSlider(this.OCHKCJOBGPN(), this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.DMMAFAPJMID())
|
|
{
|
|
this.AFGEAOKINED(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Can't start OFFLINE mode while connected!", new object[0]), new GUILayoutOption[1]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[1]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[1]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format(";", new object[0]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[1]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.CAAAFEKOAAF)
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.OJABCFGOCMC();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
float num2 = SteamVR_Camera.LFHDKBPKEPG();
|
|
int num3 = (int)(gomkcpfbjfl.BDEJFCJGMGP() * num2);
|
|
int num4 = (int)(gomkcpfbjfl.BOEEJBBEJLO() * num2);
|
|
int num5 = (int)(1567f * num2);
|
|
GUILayout.Label(string.Format("Gaelben", num3, num4, num5), new GUILayoutOption[1]);
|
|
int num6 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num5, 1272f, 1839f, new GUILayoutOption[1]));
|
|
if (num6 != num5)
|
|
{
|
|
SteamVR_Camera.HBOCBNKJPBB((float)num6 / 972f);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "Profile Info:\r\n Profile ID: {0}\r\n Profile DisplayName: {1}\r\n Junior Profile: {2}\r\n SID: {3}", new GUILayoutOption[0]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "OpAuthenticate()", new GUILayoutOption[1]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "Option", new GUILayoutOption[1]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = true;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "Error deserializing ToolHolder {0}: data empty.", new GUILayoutOption[0]);
|
|
SteamVR_Render steamVR_Render = SteamVR_Render.IJFAOFCBBFJ();
|
|
if (steamVR_Render.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("rw_dropped_frames_5to8p", new GUILayoutOption[1]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
if (GUILayout.Button("sd", new GUILayoutOption[1]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.HAHBGCNKGAD();
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.EAMLGMEEINL();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("_ScreenTexDim", new GUILayoutOption[0]))
|
|
{
|
|
steamVR_Render.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
}
|
|
if (GUILayout.Button("PERFORMER_TEAM_PLAYER_INDEX", new GUILayoutOption[1]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("pitch");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("FRIENDS" + environmentVariable, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Label("STARTING IN" + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[1]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num7 = (float)Screen.height - Input.mousePosition.y;
|
|
float num8 = (float)this.cursor.width;
|
|
float num9 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num7, num8, num9), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.FOLEKGGFAMN();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A5 RID: 67493 RVA: 0x004F518C File Offset: 0x004F338C
|
|
private void FFNNOMCPHPI()
|
|
{
|
|
if (Input.GetKeyDown((KeyCode)(-32)) || Input.GetKeyDown((KeyCode)184))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.IGMOEPANGNF();
|
|
}
|
|
else
|
|
{
|
|
this.NMFJDAGFHHH();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)147))
|
|
{
|
|
this.IHHNFPNJMLG(762f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-88)))
|
|
{
|
|
this.MHNLAIDPDOM(Mathf.Clamp(this.OBHKMPOMDNJ() + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-176)))
|
|
{
|
|
this.BBMFFKEGBBG(Mathf.Clamp(this.HDDKKHGADKN() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A6 RID: 67494 RVA: 0x004F5288 File Offset: 0x004F3488
|
|
public void FCEONFOEDDC()
|
|
{
|
|
this.HKLJMGFJNDC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A7 RID: 67495 RVA: 0x004F52F4 File Offset: 0x004F34F4
|
|
public void ANGMEGLHLAP()
|
|
{
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.LADJLPPKHDI();
|
|
if (steamVR_Overlay == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = steamVR_Overlay.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("_RaymarchedLightEpiTexDim");
|
|
return;
|
|
}
|
|
this.ONMOJAKOLFA();
|
|
Cursor.visible = false;
|
|
Cursor.lockState = CursorLockMode.Locked;
|
|
this.CHMAKPOFGBH = steamVR_Overlay;
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
foreach (Camera camera in array)
|
|
{
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.KFDFLBAOBGE();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.HNMEBHKNJPK(steamVR_Camera.GPOBCKGIHDF().localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107A8 RID: 67496 RVA: 0x004F5404 File Offset: 0x004F3604
|
|
private void ECJMCCILDDE()
|
|
{
|
|
this.MKHFCKMFILP = Cursor.visible;
|
|
this.ANMGJILNKPJ = Cursor.lockState;
|
|
}
|
|
|
|
// Token: 0x060107A9 RID: 67497 RVA: 0x004F541C File Offset: 0x004F361C
|
|
public float OCHKCJOBGPN()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060107AA RID: 67498 RVA: 0x004F5424 File Offset: 0x004F3624
|
|
private void OAGPPJEGOBC()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("RpcMasterRequestScore", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("EST", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("Failed to ", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.DOEFGAPHIBP();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107AB RID: 67499 RVA: 0x004F54B8 File Offset: 0x004F36B8
|
|
public RenderTexture MLNKJLIPFEH()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x060107AC RID: 67500 RVA: 0x004F54E0 File Offset: 0x004F36E0
|
|
public RenderTexture GOBALKOGFMN()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x060107AD RID: 67501 RVA: 0x004F5508 File Offset: 0x004F3708
|
|
private void MGHFGMAOFAP(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060107AE RID: 67502 RVA: 0x004F5514 File Offset: 0x004F3714
|
|
public RenderTexture HOBGAOBKDCB()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x060107AF RID: 67503 RVA: 0x004F553C File Offset: 0x004F373C
|
|
private void OnGUI()
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = this.CHMAKPOFGBH.texture as RenderTexture;
|
|
RenderTexture active = RenderTexture.active;
|
|
RenderTexture.active = renderTexture;
|
|
if (Event.current.type == EventType.Repaint)
|
|
{
|
|
GL.Clear(false, true, Color.clear);
|
|
}
|
|
Rect rect = new Rect(0f, 0f, (float)renderTexture.width, (float)renderTexture.height);
|
|
if (Screen.width < renderTexture.width)
|
|
{
|
|
rect.width = (float)Screen.width;
|
|
this.CHMAKPOFGBH.uvOffset.x = -(float)(renderTexture.width - Screen.width) / (float)(2 * renderTexture.width);
|
|
}
|
|
if (Screen.height < renderTexture.height)
|
|
{
|
|
rect.height = (float)Screen.height;
|
|
this.CHMAKPOFGBH.uvOffset.y = (float)(renderTexture.height - Screen.height) / (float)(2 * renderTexture.height);
|
|
}
|
|
GUILayout.BeginArea(rect);
|
|
if (this.background != null)
|
|
{
|
|
GUI.DrawTexture(new Rect((rect.width - (float)this.background.width) / 2f, (rect.height - (float)this.background.height) / 2f, (float)this.background.width, (float)this.background.height), this.background);
|
|
}
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.BeginVertical(new GUILayoutOption[0]);
|
|
if (this.logo != null)
|
|
{
|
|
GUILayout.Space(rect.height / 2f - this.logoHeight);
|
|
GUILayout.Box(this.logo, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
bool flag = GUILayout.Button("[Esc] - Close menu", new GUILayoutOption[0]);
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Scale: {0:N4}", this.KJIICGKHGHJ), new GUILayoutOption[0]);
|
|
float num = GUILayout.HorizontalSlider(this.KJIICGKHGHJ, this.scaleLimits.x, this.scaleLimits.y, new GUILayoutOption[0]);
|
|
if (num != this.KJIICGKHGHJ)
|
|
{
|
|
this.BBMFFKEGBBG(num);
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Scale limits:", new object[0]), new GUILayoutOption[0]);
|
|
string text = GUILayout.TextField(this.MGBGPNHFDCD, new GUILayoutOption[0]);
|
|
if (text != this.MGBGPNHFDCD && float.TryParse(text, out this.scaleLimits.x))
|
|
{
|
|
this.MGBGPNHFDCD = text;
|
|
}
|
|
string text2 = GUILayout.TextField(this.HBBFHKJPDPN, new GUILayoutOption[0]);
|
|
if (text2 != this.HBBFHKJPDPN && float.TryParse(text2, out this.scaleLimits.y))
|
|
{
|
|
this.HBBFHKJPDPN = text2;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
GUILayout.Label(string.Format("Scale rate:", new object[0]), new GUILayoutOption[0]);
|
|
string text3 = GUILayout.TextField(this.DNOAGCMLGNE, new GUILayoutOption[0]);
|
|
if (text3 != this.DNOAGCMLGNE && float.TryParse(text3, out this.scaleRate))
|
|
{
|
|
this.DNOAGCMLGNE = text3;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
if (GOMKCPFBJFL.CAAAFEKOAAF)
|
|
{
|
|
GOMKCPFBJFL gomkcpfbjfl = GOMKCPFBJFL.FCDPFLMFDBC;
|
|
GUILayout.BeginHorizontal(new GUILayoutOption[0]);
|
|
float sceneResolutionScale = SteamVR_Camera.MIDPDKHDBBP;
|
|
int num2 = (int)(gomkcpfbjfl.INCIDHGMPGP * sceneResolutionScale);
|
|
int num3 = (int)(gomkcpfbjfl.OLBKCIIJEJJ * sceneResolutionScale);
|
|
int num4 = (int)(100f * sceneResolutionScale);
|
|
GUILayout.Label(string.Format("Scene quality: {0}x{1} ({2}%)", num2, num3, num4), new GUILayoutOption[0]);
|
|
int num5 = Mathf.RoundToInt(GUILayout.HorizontalSlider((float)num4, 50f, 200f, new GUILayoutOption[0]));
|
|
if (num5 != num4)
|
|
{
|
|
SteamVR_Camera.MIDPDKHDBBP = (float)num5 / 100f;
|
|
}
|
|
GUILayout.EndHorizontal();
|
|
}
|
|
this.CHMAKPOFGBH.highquality = GUILayout.Toggle(this.CHMAKPOFGBH.highquality, "High quality", new GUILayoutOption[0]);
|
|
if (this.CHMAKPOFGBH.highquality)
|
|
{
|
|
this.CHMAKPOFGBH.curved = GUILayout.Toggle(this.CHMAKPOFGBH.curved, "Curved overlay", new GUILayoutOption[0]);
|
|
this.CHMAKPOFGBH.antialias = GUILayout.Toggle(this.CHMAKPOFGBH.antialias, "Overlay RGSS(2x2)", new GUILayoutOption[0]);
|
|
}
|
|
else
|
|
{
|
|
this.CHMAKPOFGBH.curved = false;
|
|
this.CHMAKPOFGBH.antialias = false;
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.Top();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.wireframe = GUILayout.Toggle(steamVR_Camera.wireframe, "Wireframe", new GUILayoutOption[0]);
|
|
SteamVR_Render instance = SteamVR_Render.FCDPFLMFDBC;
|
|
if (instance.trackingSpace == BEDFMFBLDFF.TrackingUniverseSeated)
|
|
{
|
|
if (GUILayout.Button("Switch to Standing", new GUILayoutOption[0]))
|
|
{
|
|
instance.trackingSpace = BEDFMFBLDFF.TrackingUniverseStanding;
|
|
}
|
|
if (GUILayout.Button("Center View", new GUILayoutOption[0]))
|
|
{
|
|
PPICLAHFMDO ppiclahfmdo = PONCCGLALMO.BIDDENKOJEF;
|
|
if (ppiclahfmdo != null)
|
|
{
|
|
ppiclahfmdo.DOJAKNEKEGD();
|
|
}
|
|
}
|
|
}
|
|
else if (GUILayout.Button("Switch to Seated", new GUILayoutOption[0]))
|
|
{
|
|
instance.trackingSpace = BEDFMFBLDFF.TrackingUniverseSeated;
|
|
}
|
|
}
|
|
if (GUILayout.Button("Exit", new GUILayoutOption[0]))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
GUILayout.Space(this.menuOffset);
|
|
string environmentVariable = Environment.GetEnvironmentVariable("VR_OVERRIDE");
|
|
if (environmentVariable != null)
|
|
{
|
|
GUILayout.Label("VR_OVERRIDE=" + environmentVariable, new GUILayoutOption[0]);
|
|
}
|
|
GUILayout.Label("Graphics device: " + SystemInfo.graphicsDeviceVersion, new GUILayoutOption[0]);
|
|
GUILayout.EndVertical();
|
|
GUILayout.FlexibleSpace();
|
|
GUILayout.EndHorizontal();
|
|
GUILayout.EndArea();
|
|
if (this.cursor != null)
|
|
{
|
|
float x = Input.mousePosition.x;
|
|
float num6 = (float)Screen.height - Input.mousePosition.y;
|
|
float num7 = (float)this.cursor.width;
|
|
float num8 = (float)this.cursor.height;
|
|
GUI.DrawTexture(new Rect(x, num6, num7, num8), this.cursor);
|
|
}
|
|
RenderTexture.active = active;
|
|
if (flag)
|
|
{
|
|
this.HideMenu();
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107B0 RID: 67504 RVA: 0x004F5BA4 File Offset: 0x004F3DA4
|
|
public float HDDKKHGADKN()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060107B1 RID: 67505 RVA: 0x004F5BAC File Offset: 0x004F3DAC
|
|
private void JCNFEKMPHGO()
|
|
{
|
|
if (Input.GetKeyDown((KeyCode)(-112)) || Input.GetKeyDown((KeyCode)(-110)))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.ODMEIBPGABF();
|
|
}
|
|
else
|
|
{
|
|
this.MOGDLBCGKBF();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)6))
|
|
{
|
|
this.JAFEBAAANPH(475f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-139)))
|
|
{
|
|
this.IJMMNGEIANF(Mathf.Clamp(this.KJIICGKHGHJ + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey(KeyCode.Asterisk))
|
|
{
|
|
this.IHHNFPNJMLG(Mathf.Clamp(this.DMMAFAPJMID() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107B2 RID: 67506 RVA: 0x004F5CA8 File Offset: 0x004F3EA8
|
|
public void EJHDFPICENF()
|
|
{
|
|
this.DBPFFHMDKKC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107B3 RID: 67507 RVA: 0x004F5D14 File Offset: 0x004F3F14
|
|
public float PLGHCKKDJAO()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060107B4 RID: 67508 RVA: 0x004F5D1C File Offset: 0x004F3F1C
|
|
private void FKHFOGFLGEN()
|
|
{
|
|
this.MKHFCKMFILP = Cursor.visible;
|
|
this.ANMGJILNKPJ = Cursor.lockState;
|
|
}
|
|
|
|
// Token: 0x060107B5 RID: 67509 RVA: 0x004F5D34 File Offset: 0x004F3F34
|
|
private void KBJCGIHMIAH(float KJIICGKHGHJ)
|
|
{
|
|
this.EGACMFNFABA(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.JMILEKCAACH();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.MIKPIBIENPH.localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107B6 RID: 67510 RVA: 0x004F5D70 File Offset: 0x004F3F70
|
|
public float OPJEIFPEDML()
|
|
{
|
|
return this.<DGKPKGIDDCE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x060107B7 RID: 67511 RVA: 0x004F5D78 File Offset: 0x004F3F78
|
|
private void BBKPAKKLOGB()
|
|
{
|
|
this.MGBGPNHFDCD = string.Format("_Color", this.scaleLimits.x);
|
|
this.HBBFHKJPDPN = string.Format("Created more than one singleton of ", this.scaleLimits.y);
|
|
this.DNOAGCMLGNE = string.Format("s", this.scaleRate);
|
|
SteamVR_Overlay steamVR_Overlay = SteamVR_Overlay.PJNDFEAEMDF();
|
|
if (steamVR_Overlay != null)
|
|
{
|
|
this.GPBHIHIEEEP = steamVR_Overlay.uvOffset;
|
|
this.PFKMOBGLKNK = steamVR_Overlay.distance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107B8 RID: 67512 RVA: 0x004F5E0C File Offset: 0x004F400C
|
|
public RenderTexture IHMDDBPGJLA()
|
|
{
|
|
return (!this.CHMAKPOFGBH) ? null : (this.CHMAKPOFGBH.texture as RenderTexture);
|
|
}
|
|
|
|
// Token: 0x060107B9 RID: 67513 RVA: 0x004F5E34 File Offset: 0x004F4034
|
|
public void GAGADFGNFFK()
|
|
{
|
|
this.HLAENAFMNKO();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107BA RID: 67514 RVA: 0x004F5EA0 File Offset: 0x004F40A0
|
|
private void BGAHPPNMJEP(float KJIICGKHGHJ)
|
|
{
|
|
this.JEHKPCHLEJA(KJIICGKHGHJ);
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.DAAFLFONEIO();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
steamVR_Camera.MIKPIBIENPH.localScale = new Vector3(KJIICGKHGHJ, KJIICGKHGHJ, KJIICGKHGHJ);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107BB RID: 67515 RVA: 0x004F5EDC File Offset: 0x004F40DC
|
|
public void HGHBJDLGMJO()
|
|
{
|
|
this.KALPBIOHNKC();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107BC RID: 67516 RVA: 0x004F5F48 File Offset: 0x004F4148
|
|
private void LOGFBGOPLLO()
|
|
{
|
|
if (Input.GetKeyDown((KeyCode)65) || Input.GetKeyDown((KeyCode)185))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.GICFBLPAHNC();
|
|
}
|
|
else
|
|
{
|
|
this.FOLEKGGFAMN();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown((KeyCode)(-141)))
|
|
{
|
|
this.AFGEAOKINED(1430f);
|
|
}
|
|
else if (Input.GetKey((KeyCode)(-47)))
|
|
{
|
|
this.IHHNFPNJMLG(Mathf.Clamp(this.KJIICGKHGHJ + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey((KeyCode)90))
|
|
{
|
|
this.KBJCGIHMIAH(Mathf.Clamp(this.PLGHCKKDJAO() - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107BE RID: 67518 RVA: 0x004F6050 File Offset: 0x004F4250
|
|
private void EGACMFNFABA(float NOBAPCOKFIL)
|
|
{
|
|
this.<DGKPKGIDDCE>k__BackingField = NOBAPCOKFIL;
|
|
}
|
|
|
|
// Token: 0x060107BF RID: 67519 RVA: 0x004F605C File Offset: 0x004F425C
|
|
public void HCJAHCNEJAN()
|
|
{
|
|
SteamVR_Overlay instance = SteamVR_Overlay.FCDPFLMFDBC;
|
|
if (instance == null)
|
|
{
|
|
return;
|
|
}
|
|
RenderTexture renderTexture = instance.texture as RenderTexture;
|
|
if (renderTexture == null)
|
|
{
|
|
Debug.LogError("icon");
|
|
return;
|
|
}
|
|
this.APMBEEPEHBD();
|
|
Cursor.visible = false;
|
|
Cursor.lockState = CursorLockMode.None;
|
|
this.CHMAKPOFGBH = instance;
|
|
this.GPBHIHIEEEP = instance.uvOffset;
|
|
this.PFKMOBGLKNK = instance.distance;
|
|
Camera[] array = global::UnityEngine.Object.FindObjectsOfType(typeof(Camera)) as Camera[];
|
|
Camera[] array2 = array;
|
|
for (int i = 0; i < array2.Length; i += 0)
|
|
{
|
|
Camera camera = array2[i];
|
|
if (camera.enabled && camera.targetTexture == renderTexture)
|
|
{
|
|
this.CCMFBEJLLDB = camera;
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
break;
|
|
}
|
|
}
|
|
SteamVR_Camera steamVR_Camera = SteamVR_Render.Top();
|
|
if (steamVR_Camera != null)
|
|
{
|
|
this.GFGODAJKGHN(steamVR_Camera.GPOBCKGIHDF().localScale.x);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107C0 RID: 67520 RVA: 0x004F616C File Offset: 0x004F436C
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Joystick1Button7))
|
|
{
|
|
if (this.CHMAKPOFGBH == null)
|
|
{
|
|
this.ShowMenu();
|
|
}
|
|
else
|
|
{
|
|
this.HideMenu();
|
|
}
|
|
}
|
|
else if (Input.GetKeyDown(KeyCode.Home))
|
|
{
|
|
this.BBMFFKEGBBG(1f);
|
|
}
|
|
else if (Input.GetKey(KeyCode.PageUp))
|
|
{
|
|
this.BBMFFKEGBBG(Mathf.Clamp(this.KJIICGKHGHJ + this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
else if (Input.GetKey(KeyCode.PageDown))
|
|
{
|
|
this.BBMFFKEGBBG(Mathf.Clamp(this.KJIICGKHGHJ - this.scaleRate * Time.deltaTime, this.scaleLimits.x, this.scaleLimits.y));
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107C1 RID: 67521 RVA: 0x004F6268 File Offset: 0x004F4468
|
|
public void NHJDMPIOHGB()
|
|
{
|
|
this.ONGFIJIPNBP();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = false;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107C2 RID: 67522 RVA: 0x004F62D4 File Offset: 0x004F44D4
|
|
public void FOLEKGGFAMN()
|
|
{
|
|
this.ONGFIJIPNBP();
|
|
if (this.CCMFBEJLLDB != null)
|
|
{
|
|
this.CCMFBEJLLDB.enabled = true;
|
|
}
|
|
if (this.CHMAKPOFGBH != null)
|
|
{
|
|
this.CHMAKPOFGBH.uvOffset = this.GPBHIHIEEEP;
|
|
this.CHMAKPOFGBH.distance = this.PFKMOBGLKNK;
|
|
this.CHMAKPOFGBH = null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060107C3 RID: 67523 RVA: 0x004F6340 File Offset: 0x004F4540
|
|
private void ONGFIJIPNBP()
|
|
{
|
|
Cursor.visible = this.MKHFCKMFILP;
|
|
Cursor.lockState = this.ANMGJILNKPJ;
|
|
}
|
|
|
|
// Token: 0x04002A64 RID: 10852
|
|
public Texture cursor;
|
|
|
|
// Token: 0x04002A65 RID: 10853
|
|
public Texture background;
|
|
|
|
// Token: 0x04002A66 RID: 10854
|
|
public Texture logo;
|
|
|
|
// Token: 0x04002A67 RID: 10855
|
|
public float logoHeight;
|
|
|
|
// Token: 0x04002A68 RID: 10856
|
|
public float menuOffset;
|
|
|
|
// Token: 0x04002A69 RID: 10857
|
|
public Vector2 scaleLimits = new Vector2(0.1f, 5f);
|
|
|
|
// Token: 0x04002A6A RID: 10858
|
|
public float scaleRate = 0.5f;
|
|
|
|
// Token: 0x04002A6B RID: 10859
|
|
private SteamVR_Overlay CHMAKPOFGBH;
|
|
|
|
// Token: 0x04002A6C RID: 10860
|
|
private Camera CCMFBEJLLDB;
|
|
|
|
// Token: 0x04002A6D RID: 10861
|
|
private Vector4 GPBHIHIEEEP;
|
|
|
|
// Token: 0x04002A6E RID: 10862
|
|
private float PFKMOBGLKNK;
|
|
|
|
// Token: 0x04002A70 RID: 10864
|
|
private string MGBGPNHFDCD;
|
|
|
|
// Token: 0x04002A71 RID: 10865
|
|
private string HBBFHKJPDPN;
|
|
|
|
// Token: 0x04002A72 RID: 10866
|
|
private string DNOAGCMLGNE;
|
|
|
|
// Token: 0x04002A73 RID: 10867
|
|
private CursorLockMode ANMGJILNKPJ;
|
|
|
|
// Token: 0x04002A74 RID: 10868
|
|
private bool MKHFCKMFILP;
|
|
}
|