예제 #1
0
 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>();
 }
예제 #2
0
 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>();
 }
예제 #3
0
 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));
 }
예제 #4
0
 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));
 }
예제 #5
0
 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));
 }
예제 #6
0
 public static TextMeshProUGUI GetTitle(this AxisPuppetMenu axisPuppetMenu)
 {
     return(axisPuppetMenu.field_Public_TextMeshProUGUI_0); //only one
 }
예제 #7
0
 public static GameObject GetCursor(this AxisPuppetMenu axisPuppetMenu)
 {
     return(GetAxisCursorGameObject(axisPuppetMenu));
 }
예제 #8
0
 public static ActionButton GetButtonLeft(this AxisPuppetMenu axisPuppetMenu) => axisPuppetMenu.field_Public_ActionButton_3;
예제 #9
0
 public static PedalGraphic GetFillLeft(this AxisPuppetMenu axisPuppetMenu) => axisPuppetMenu.field_Public_PedalGraphic_3;
예제 #10
0
 public static TextMeshProUGUI GetTitle(this AxisPuppetMenu axisPuppetMenu) => ((PuppetMenu)axisPuppetMenu).field_Public_TextMeshProUGUI_0;
예제 #11
0
 public static GameObject GetCursor(this AxisPuppetMenu axisPuppetMenu) => axisPuppetMenu.field_Public_GameObject_0;