daily pastebin goal
28%
SHARE
TWEET

WMGUIScreen

a guest May 16th, 2018 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using UnityEngine;
  3.  
  4. // Token: 0x020004B2 RID: 1202
  5. public static class WMGUIScreen
  6. {
  7.     // Token: 0x170003F9 RID: 1017
  8.     // (get) Token: 0x0600216D RID: 8557 RVA: 0x000292B2 File Offset: 0x000274B2
  9.     public static Vector3 Scale
  10.     {
  11.         get
  12.         {
  13.             return WMGUIScreen._scale;
  14.         }
  15.     }
  16.  
  17.     // Token: 0x170003FA RID: 1018
  18.     // (get) Token: 0x0600216E RID: 8558 RVA: 0x000292B9 File Offset: 0x000274B9
  19.     public static Vector2 Scale2D
  20.     {
  21.         get
  22.         {
  23.             return new Vector2(WMGUIScreen._scale.x, WMGUIScreen._scale.y);
  24.         }
  25.     }
  26.  
  27.     // Token: 0x0600216F RID: 8559 RVA: 0x001C35F8 File Offset: 0x001C17F8
  28.     public static void RotateAroundPivot(float angle, Vector2 pivot)
  29.     {
  30.         Vector2 pivotPoint = pivot;
  31.         pivotPoint.x *= WMGUIScreen._scale.x;
  32.         pivotPoint.y *= WMGUIScreen._scale.y;
  33.         GUIUtility.RotateAroundPivot(angle, pivotPoint);
  34.     }
  35.  
  36.     // Token: 0x06002170 RID: 8560 RVA: 0x001C3640 File Offset: 0x001C1840
  37.     public static void StartScale()
  38.     {
  39.         WMGUIScreen._scale.x = (float)Screen.width / WMGUIScreen.Width;
  40.         WMGUIScreen._scale.y = (float)Screen.height / WMGUIScreen.Height;
  41.         WMGUIScreen._scale.z = 1f;
  42.         WMGUIScreen.savedMatrix = GUI.matrix;
  43.         GUI.skin.button.fontSize = 30;
  44.         GUI.matrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, WMGUIScreen.Scale);
  45.     }
  46.  
  47.     // Token: 0x06002171 RID: 8561 RVA: 0x000292D4 File Offset: 0x000274D4
  48.     public static void EndScale()
  49.     {
  50.         GUI.matrix = WMGUIScreen.savedMatrix;
  51.     }
  52.  
  53.     // Token: 0x04003959 RID: 14681
  54.     public static float Width = 1543f;
  55.  
  56.     // Token: 0x0400395A RID: 14682
  57.     public static float Height = 1080f;
  58.  
  59.     // Token: 0x0400395B RID: 14683
  60.     private static Matrix4x4 savedMatrix;
  61.  
  62.     // Token: 0x0400395C RID: 14684
  63.     private static Vector3 _scale;
  64. }
RAW Paste Data
Top