private static System.Collections.IEnumerator WaitForAxisMenu() { while (GameObject.Find("UserInterface/ActionMenu/MenuR/ActionMenu/AxisPuppetMenu") == null) { yield return(null); } fourAxisPuppetMenuLeft = Utilities.CloneGameObject("UserInterface/ActionMenu/MenuL/ActionMenu/AxisPuppetMenu", "UserInterface/ActionMenu/MenuL/ActionMenu").GetComponent <AxisPuppetMenu>(); fourAxisPuppetMenuRight = Utilities.CloneGameObject("UserInterface/ActionMenu/MenuR/ActionMenu/AxisPuppetMenu", "UserInterface/ActionMenu/MenuR/ActionMenu").GetComponent <AxisPuppetMenu>(); }
public static void Setup() { fourAxisPuppetMenuLeft = Utilities .CloneGameObject("UserInterface/ActionMenu/MenuL/ActionMenu/AxisPuppetMenu", "UserInterface/ActionMenu/MenuL/ActionMenu").GetComponent <AxisPuppetMenu>(); fourAxisPuppetMenuRight = Utilities .CloneGameObject("UserInterface/ActionMenu/MenuR/ActionMenu/AxisPuppetMenu", "UserInterface/ActionMenu/MenuR/ActionMenu").GetComponent <AxisPuppetMenu>(); }
GetFillLeft(this AxisPuppetMenu axisPuppetMenu) //Build 1088 axisPuppetMenu.field_Public_PedalGraphic_3 { if (axisPuppetFillLeftProperty != null) { return(getAxisFillLeftDelegate(axisPuppetMenu)); } axisPuppetFillLeftProperty = typeof(AxisPuppetMenu) .GetProperties(BindingFlags.Public | BindingFlags.Instance).Single( p => p.PropertyType == typeof(PedalGraphic) && ((PedalGraphic)p.GetValue(axisPuppetMenu)).name.Equals("Fill Left") ); getAxisFillLeftDelegate = (Func <AxisPuppetMenu, PedalGraphic>)Delegate.CreateDelegate( typeof(Func <AxisPuppetMenu, PedalGraphic>), axisPuppetFillLeftProperty.GetGetMethod()); return(getAxisFillLeftDelegate(axisPuppetMenu)); }
GetButtonDown(this AxisPuppetMenu axisPuppetMenu) //Build 1088 axisPuppetMenu.field_Public_ActionButton_2 { if (axisPuppetButtonDownProperty != null) { return(getAxisPuppetButtonDownDelegate(axisPuppetMenu)); } axisPuppetButtonDownProperty = typeof(AxisPuppetMenu) .GetProperties(BindingFlags.Public | BindingFlags.Instance).Single( p => p.PropertyType == typeof(ActionButton) && ((ActionButton)p.GetValue(axisPuppetMenu)).name.Equals("ButtonDown") ); getAxisPuppetButtonDownDelegate = (Func <AxisPuppetMenu, ActionButton>)Delegate.CreateDelegate(typeof(Func <AxisPuppetMenu, ActionButton>), axisPuppetButtonDownProperty.GetGetMethod()); return(getAxisPuppetButtonDownDelegate(axisPuppetMenu)); }
GetAxisCursorGameObject(AxisPuppetMenu axisPuppetMenu) //Build 1088 axisPuppetMenu.field_Public_GameObject_0 { if (axisPuppetCursorProperty != null) { return(getAxisCursorGameObjectDelegate(axisPuppetMenu)); } axisPuppetCursorProperty = typeof(AxisPuppetMenu).GetProperties(BindingFlags.Public | BindingFlags.Instance) .Single( p => p.PropertyType == typeof(GameObject) && ((GameObject)p.GetValue(axisPuppetMenu)).name.Equals("Cursor") ); getAxisCursorGameObjectDelegate = getAxisCursorGameObjectDelegate = (Func <AxisPuppetMenu, GameObject>)Delegate.CreateDelegate(typeof(Func <AxisPuppetMenu, GameObject>), axisPuppetCursorProperty.GetGetMethod()); return(getAxisCursorGameObjectDelegate(axisPuppetMenu)); }
public static TextMeshProUGUI GetTitle(this AxisPuppetMenu axisPuppetMenu) { return(axisPuppetMenu.field_Public_TextMeshProUGUI_0); //only one }
public static GameObject GetCursor(this AxisPuppetMenu axisPuppetMenu) { return(GetAxisCursorGameObject(axisPuppetMenu)); }
public static ActionButton GetButtonLeft(this AxisPuppetMenu axisPuppetMenu) => axisPuppetMenu.field_Public_ActionButton_3;
public static PedalGraphic GetFillLeft(this AxisPuppetMenu axisPuppetMenu) => axisPuppetMenu.field_Public_PedalGraphic_3;
public static TextMeshProUGUI GetTitle(this AxisPuppetMenu axisPuppetMenu) => ((PuppetMenu)axisPuppetMenu).field_Public_TextMeshProUGUI_0;
public static GameObject GetCursor(this AxisPuppetMenu axisPuppetMenu) => axisPuppetMenu.field_Public_GameObject_0;