A game about forced loneliness, made by TACStudios
at master 49 lines 1.1 kB view raw
1using UnityEngine; 2 3namespace UnityEditor.U2D.Sprites 4{ 5 internal interface IGUIUtility 6 { 7 int GetPermanentControlID(); 8 int hotControl { get; set; } 9 int keyboardControl { get; set; } 10 int GetControlID(int hint, FocusType focus); 11 } 12 13 internal class GUIUtilitySystem : IGUIUtility 14 { 15 public int GetPermanentControlID() 16 { 17 return GUIUtility.GetPermanentControlID(); 18 } 19 20 public int hotControl 21 { 22 get 23 { 24 return GUIUtility.hotControl; 25 } 26 set 27 { 28 GUIUtility.hotControl = value; 29 } 30 } 31 32 public int keyboardControl 33 { 34 get 35 { 36 return GUIUtility.keyboardControl; 37 } 38 set 39 { 40 GUIUtility.keyboardControl = value; 41 } 42 } 43 44 public int GetControlID(int hint, FocusType focus) 45 { 46 return GUIUtility.GetControlID(hint, focus); 47 } 48 } 49}