public static void AddPanel(MenuCommand menuCommand) { GameObject panel = DefaultControls.CreatePanel(MenuOptions.GetStandardResources()); MenuOptions.PlaceUIElementRoot(panel, menuCommand); RectTransform component = panel.GetComponent <RectTransform>(); component.anchoredPosition = Vector2.zero; component.sizeDelta = Vector2.zero; }
public static void AddText(MenuCommand menuCommand) { MenuOptions.PlaceUIElementRoot(DefaultControls.CreateText(MenuOptions.GetStandardResources()), menuCommand); }
static public void AddLImageForTP(MenuCommand menuCommand) { GameObject go = DefaultControls.CreateLImageForTP(); MenuOptions.PlaceUIElementRoot(go, menuCommand); }
public static void AddScrollView(MenuCommand menuCommand) { GameObject element = DefaultControls.CreateScrollView(MenuOptions.GetStandardResources()); MenuOptions.PlaceUIElementRoot(element, menuCommand); }