public void Start() { nRS = FindObjectOfType <NumberReaderScript>(); rBN = FindObjectOfType <ReadBetNums>(); zPG = FindObjectOfType <ZoomPanelGestures>(); cB = FindObjectOfType <ClickButton>(); }
public override void OnInspectorGUI() { ClickButton clickButton = (ClickButton)target; EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Recording", GUILayout.Width(100))) { clickButton.Recording(); } if (GUILayout.Button("Diaplasis", GUILayout.Width(100))) { clickButton.Diaplasis(); } EditorGUILayout.EndHorizontal(); EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("RecordingParent", GUILayout.Width(100))) { clickButton.RecordingParent(); } if (GUILayout.Button("DiaplasisParent", GUILayout.Width(100))) { clickButton.DiaplasisParent(); } EditorGUILayout.EndHorizontal(); base.DrawDefaultInspector(); }
/** * generate the marble of the user each call a new one */ void GenerateUserMarbleSet(int n) { UserMarbles = new GameObject[n]; float delta = (bounds.GetRightLimit() * 2f) / (n + 1f); float fmp = bounds.GetLeftLimit() + delta; float verPos = bounds.GetBottomLimit() + ((bounds.GetTopLimit() * 2) / 2); float marbleSize = delta; if (ShortTermMemory.memory.GetSpacing()) { marbleSize -= tileOffset; } Vector3 size3D = new Vector3(marbleSize, marbleSize, 1); for (int i = 0; i < n; i++) { UserMarbles[i] = Instantiate(baseMarble, userContainer.transform); UserMarbles[i].name = "userMarble" + i; UserMarbles[i].GetComponent <SpriteRenderer>().color = colorPalette.GetZeroColor(); Vector2 pos = new Vector2(fmp + delta * i, verPos); UserMarbles[i].transform.position = pos; UserMarbles[i].transform.localScale = size3D; ClickButton cb = UserMarbles[i].GetComponent <ClickButton>(); cb.Setgc(gameObject.GetComponent <GameControl>()); cb.SetType("NextColor"); } }
private IEnumerable <ClickButton> BuildButton() { var result = new List <ClickButton>(); foreach (var r in Rows.Where(r => String.IsNullOrEmpty(r.RootId))) { var button = new ClickButton { Name = r.Title, Key = r.Key, Type = r.MenuType == "View" ? ClickButtonType.view : ClickButtonType.click }; if (button.Type == ClickButtonType.view) { button.Url = r.Url; } var subButton = Rows.Where(s => s.RootId == r.Id); if (subButton.Any()) { button.SubButton = subButton.Select(s => new ClickButton { Name = s.Title, Key = s.Key, Type = s.MenuType == "View" ? ClickButtonType.view : ClickButtonType.click, Url = s.MenuType == "View" ? s.Url : "" }).Take(5); } result.Add(button); } return(result.Take(3)); }
public CClickMouse(CRuneScape _runescape, ClickButton _button, Point _location, uint rand_diam) : base(_runescape) { this.btnToClick = _button; this.ptLocationToClick = _location; this.uiRandomDiam = rand_diam; }
protected override void ApplyTheme() { base.ApplyTheme(); _accordion.ApplyTheme(Themes.Button.AccordionTheme); ClickButton.ApplyTheme(Themes.Button.ButtonTheme); }
/** * generate a marble set passing a preexistent one... gemini function of GenerateUserMarbleSet */ GameObject[] GenerateUserMarbleSet(int n, GameObject[] um, GameObject uc) { GameObject[] newUsMar = new GameObject[n]; float delta = (bounds.GetRightLimit() * 2f) / (n + 1f); float fmp = bounds.GetLeftLimit() + delta; float verPos = bounds.GetBottomLimit() + ((bounds.GetTopLimit() * 2) / 2); float marbleSize = delta; if (ShortTermMemory.memory.GetSpacing()) { marbleSize -= tileOffset; } Vector3 size3D = new Vector3(marbleSize, marbleSize, 1); for (int i = 0; i < n; i++) { newUsMar[i] = Instantiate(um[i], uc.transform); newUsMar[i].name = "userMarble" + i; UserMarbles[i].transform.localScale = size3D; ClickButton cb = newUsMar[i].GetComponent <ClickButton>(); cb.Setgc(gameObject.GetComponent <GameControl>()); cb.SetType("NextColor"); Vector2 pos = new Vector2(fmp + delta * i, verPos); newUsMar[i].transform.position = pos; } return(newUsMar); }
protected virtual GameObject MakePopupGameObject(TextButton templateButton, string selected = null) { // create popup menu GameObject popupGameObject = gameObject.MakeUiObject("Popup"); // create blocker ClickBlocker clickBlocker = ClickBlocker.MakeClickBlocker(popupGameObject, gameObject); // create menu _gameObjectMenu = popupGameObject.MakeUiObject("Menu"); // create background GameObject gameObjectBackground = _gameObjectMenu.MakeUiObject("Background"); Image backgroundImage = gameObjectBackground.AddComponent <Image>(); backgroundImage.sprite = popupBgSprite; float btnWidth = popupTextButton.GetWidth() + padding * 2; float btnHeight = popupTextButton.GetHeight() + padding * 2; float bgHeight = (btnHeight - padding) * _menuItems.Length + padding; backgroundImage.SetSize(btnWidth, bgHeight); backgroundImage.SetY(backgroundImage.GetHeight() / 2 - btnHeight / 2); // set selected, this will move the background Selected = selected; // check if popup in within display region if (!UtilsRect.AinsideB(backgroundImage, clickBlocker)) { // if not, then reverse menuItem order // causing menu to build in the opposite direction Array.Reverse(_menuItems); Selected = selected; } // create selection buttons float yLoc = 0; int counter = 0; _menuButtons = new ClickButton[_menuItems.Length]; foreach (string menuItem in _menuItems) { int index = counter++; TextButton textButton = MakeTextButton(templateButton, menuItem); ClickButton clickButton = textButton.ClickButton; clickButton.SetY(yLoc); clickButton.onClickEvent.AddListener(delegate { MenuButtonClicked(new PopupMenuEventArgs(menuItem, index)); }); clickButton.OnRolloverEvent += delegate { MenuButtonRolled(menuItem, index); }; yLoc += clickButton.GetHeight() + padding; if (index == _selectedIndex) { clickButton.Selected = true; clickButton.Enabled = false; } _menuButtons[index] = clickButton; } return(popupGameObject); }
public void Start() { if (languageButton is null) { languageButton = GameObject.Find("Language Button").GetComponent <ClickButton>(); } languageButton.onClickEvent.AddListener(OnClickLanguage); if (foreignButton is null) { foreignButton = GameObject.Find("Foreign Button").GetComponent <ClickButton>(); } foreignButton.onClickEvent.AddListener(OnClickForeign); if (englishButton is null) { englishButton = GameObject.Find("English Button").GetComponent <ClickButton>(); } englishButton.onClickEvent.AddListener(OnClickEnglish); // languageButton defaults in the scene as visible, // if it's not visible, then it's not meant to be shown. if (languageButton.gameObject.activeSelf) { UpdateButtons(); } }
public void FireClickButton(Office.IRibbonControl control) { if (null == ClickButton) { return; } ClickButton.Invoke(this, control); }
protected override GameObject MakePopupGameObject(TextButton templateButton, string selected = null) { // TODO: not this. Messy manipulation of popupTextButton // ensure popupTextButton in position popupTextButton.SetX(0); // create popup menu GameObject popupGameObject = gameObject.MakeUiObject("Hamberger"); // create blocker ClickBlocker clickBlocker = ClickBlocker.MakeClickBlocker(popupGameObject, gameObject); // create menu _gameObjectMenu = popupGameObject.MakeUiObject("Menu"); // create background GameObject gameObjectBackground = _gameObjectMenu.MakeUiObject("Background"); Image backgroundImage = gameObjectBackground.AddComponent <Image>(); backgroundImage.sprite = popupBgSprite; float btnWidth = popupTextButton.GetWidth() + padding * 2; float btnHeight = popupTextButton.GetHeight() + padding * 2; float bgHeight = (btnHeight - padding) * _menuItems.Length + padding; backgroundImage.SetSize(btnWidth, bgHeight); backgroundImage.SetY(backgroundImage.GetHeight() / 2 - padding); backgroundImage.SetX(backgroundImage.GetWidth() / 2 - padding); // set selected, this will move the background Selected = selected; // create selection buttons float yLoc = 0; for (int i = 0; i < _menuItems.Length; ++i) { int index = _menuItems.Length - i - 1; string menuItem = _menuItems[index]; TextButton textButton = MakeTextButton(templateButton, menuItem); ClickButton clickButton = textButton.ClickButton; clickButton.SetY(yLoc); clickButton.onClickEvent.AddListener(delegate { MenuButtonClicked(new PopupMenuEventArgs(menuItem, index)); }); clickButton.OnRolloverEvent += delegate { MenuButtonRolled(menuItem, index); }; yLoc += clickButton.GetHeight() + padding; if (index == _selectedIndex) { clickButton.Selected = true; clickButton.Enabled = false; } } // TODO: not this. Messy manipulation of popupTextButton // move popupTextButton offscreen. Can't hide it as factory it won't duplicate it when hidden. popupTextButton.SetX(-10000); return(popupGameObject); }
private void StarButton_MouseUp(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { press = false; Invalidate(); } ClickButton?.Invoke(this, null); }
static void Main(string[] args) { EventClick click = new EventClick(); ClickButton Button = new ClickButton(new ClickCommand(click)); Button.PressButton1(); Button.PressButton2(); Console.Read(); }
public static void ClickButtonByName(this UIAutomationFacade facade, int processId, string controlName, int timeOut) { ClickButton button = new ClickButton(); button.ProcessId = processId; button.ControlName = controlName; button.TimeOut = timeOut; button.Execute(button); }
public static void ClickButtonById(this UIAutomationFacade facade, int processId, string automationId, int timeOut) { ClickButton button = new ClickButton(); button.ProcessId = processId; button.AutomationId = automationId; button.TimeOut = timeOut; button.Execute(button); }
public static void ClickButtonAsyncByName(this UIAutomationFacade facade, string windowName, string name, int timeout) { ClickButton action = new ClickButton(); action.WindowName = windowName; action.Name = name; action.Timeout = timeout; action.IsSynchronous = false; facade.Runner.Execute(action); }
public static void ClickButtonById(this UIAutomationFacade facade, string windowName, string automationId, int timeout) { ClickButton action = new ClickButton(); action.WindowName = windowName; action.AutomationId = automationId; action.Timeout = timeout; action.IsSynchronous = true; facade.Runner.Execute(action); }
public static void ClickButtonByName(this UIAutomationFacade facade, int processId, string name, int timeout) { ClickButton action = new ClickButton(); action.ProcessId = processId; action.Name = name; action.Timeout = timeout; action.IsSynchronous = true; facade.Runner.Execute(action); }
public static void ClickButtonAsyncById(this UIAutomationFacade facade, int processId, string automationId, int timeout) { ClickButton action = new ClickButton(); action.ProcessId = processId; action.AutomationId = automationId; action.Timeout = timeout; action.IsSynchronous = false; facade.Runner.Execute(action); }
public void OnClickButton(ClickButton button) { if (_popupGameObject.activeSelf) { HidePopup(); } else { ShowPopup(); } }
protected override void Start() { base.Start(); Title.text = $"ID {Point.Id}. {Point.GetType().Name.Substring(4)}"; ClickButton = GetComponent <Button>(); ClickButton.OnClickAsObservable() .Do(_ => MessageLabel.text = $"Item message: {Point.Message}") .Select(_ => Camera.main.GetComponent <LookableCamera>()) .Where(c => c != null) .Do(c => c.Look(Point.AsPoint().Look(c.transform))) .Subscribe(); }
public static ClickButton MakeClickButton(this GameObject parent, ClickButton template) { ClickButton clickButton = parent.MakeUiComponent(template, "Button"); // TODO: Check this. CopyComponent() in MakeUiComponent() should copy these? clickButton.useDefaultSound = template.useDefaultSound; clickButton.clickSound = template.clickSound; clickButton.rollSound = template.rollSound; clickButton.waitForClickSound = template.waitForClickSound; // clickButton.SetStyle(template.style); clickButton.onClickEvent = new ClickButtonEvent(); return(clickButton); }
public void Select(string value, bool giveWarning = true) { for (int i = 0; i < _menuItems.Length; ++i) { string menuItem = _menuItems[i]; if (value == menuItem) { ClickButton clickButton = _menuButtons[i]; ClickButtonEvent onClickEvent = clickButton.onClickEvent; onClickEvent?.Invoke(clickButton); return; } } if (giveWarning) { Logger.Warning("Could not select button \"" + value + "\" on popup."); } }
protected override GameObject MakePopupGameObject(TextButton templateButton, string selected = null) { // create popup menu GameObject popupGameObject = gameObject.MakeUiObject("DropDown"); // create blocker ClickBlocker clickBlocker = ClickBlocker.MakeClickBlocker(popupGameObject, gameObject); // create menu _gameObjectMenu = popupGameObject.MakeUiObject("Menu"); // create background GameObject gameObjectBackground = _gameObjectMenu.MakeUiObject("Background"); Image backgroundImage = gameObjectBackground.AddComponent <Image>(); backgroundImage.sprite = popupBgSprite; float btnWidth = popupTextButton.GetWidth() + padding * 2; float btnHeight = popupTextButton.GetHeight() + padding * 2; float bgHeight = (btnHeight - padding) * (_menuItems.Length + 1) + padding * 1.5f; backgroundImage.SetSize(btnWidth, bgHeight); backgroundImage.SetY(backgroundImage.GetHeight() / 2 - btnHeight / 2); // set selected, this will move the background Selected = selected; // create selection buttons float yLoc = 0; for (int i = 0; i < _menuItems.Length; ++i) { int index = _menuItems.Length - i - 1; string menuItem = _menuItems[index]; TextButton textButton = MakeTextButton(templateButton, menuItem); ClickButton clickButton = textButton.ClickButton; clickButton.SetY(yLoc); clickButton.onClickEvent.AddListener(delegate { MenuButtonClicked(new PopupMenuEventArgs(menuItem, index)); }); clickButton.OnRolloverEvent += delegate { MenuButtonRolled(menuItem, index); }; yLoc += clickButton.GetHeight() + padding; } return(popupGameObject); }
void ReleaseDesignerOutlets() { if (ClickButton != null) { ClickButton.Dispose(); ClickButton = null; } if (ClickCountLabel != null) { ClickCountLabel.Dispose(); ClickCountLabel = null; } if (ClickLabel != null) { ClickLabel.Dispose(); ClickLabel = null; } if (ContainerView != null) { ContainerView.Dispose(); ContainerView = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (EnableLabel != null) { EnableLabel.Dispose(); EnableLabel = null; } if (EnableSwitch != null) { EnableSwitch.Dispose(); EnableSwitch = null; } }
void ReleaseDesignerOutlets() { if (ClickButton != null) { ClickButton.Dispose(); ClickButton = null; } if (ClickCountLabel != null) { ClickCountLabel.Dispose(); ClickCountLabel = null; } if (ClickLabel != null) { ClickLabel.Dispose(); ClickLabel = null; } if (ContainerView != null) { ContainerView.Dispose(); ContainerView = null; } if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (LongClickCountLabel != null) { LongClickCountLabel.Dispose(); LongClickCountLabel = null; } if (LongClickLabel != null) { LongClickLabel.Dispose(); LongClickLabel = null; } }
void OnTriggerEnter(Collider col) { if (col.gameObject.tag == "Bottom") { gameObject.GetComponent <Renderer>().material.color = Color.black; //gameObject.GetComponentInParent<Renderer>().material.color = Color.green; //Transform particleObject = (Transform)Instantiate(Resources.Load("Particle/Effect1", typeof(Transform)), new Vector3(transform.position.x, -29f, -1), Quaternion.identity); switch (noteBlockNum) { case 1: button = GameObject.Find("Button1").GetComponent <ClickButton>(); button.count += 1; button.MissCombo(); break; case 2: button = GameObject.Find("Button2").GetComponent <ClickButton>(); button.count += 1; button.MissCombo(); break; case 3: button = GameObject.Find("Button3").GetComponent <ClickButton>(); button.count += 1; button.MissCombo(); break; case 4: button = GameObject.Find("Button4").GetComponent <ClickButton>(); button.count += 1; button.MissCombo(); break; case 5: button = GameObject.Find("Button5").GetComponent <ClickButton>(); button.count += 1; button.MissCombo(); break; } Destroy(gameObject); } }
protected override void BindControls() { base.BindControls(); var set = this.CreateBindingSet <ButtonClickViewController, ButtonClickItemViewModel>(); set.Bind(_accordion).For("TitleLabel").To(vm => vm.Title); set.Bind(_accordion).For("Open").To(vm => vm.CellOpen); set.Bind(_accordion.Toggle).For(v => v.Command).To(vm => vm.ToggleFoldStateCommand); set.Bind(ClickButton).For("Title").To(vm => vm.ButtonText); set.Bind(ClickButton).To(vm => vm.ClickCommand); set.Bind(ClickButton.LongPress()).For(lp => lp.Command).To(vm => vm.LongClickCommand); set.Bind(LongClickLabel).To(vm => vm.LongClickLabel); set.Bind(LongClickCountLabel).To(vm => vm.LongClickCount); set.Bind(ClickLabel).To(vm => vm.ClickLabel); set.Bind(ClickCountLabel).To(vm => vm.ClickCount); set.Apply(); }
public static TextButton MakeTextButton(this GameObject parent, TextButton template, string label) { // create ClickButton ClickButton clickButton = parent.MakeClickButton(template.ClickButton); GameObject gameObject = clickButton.gameObject; // create text label TextMeshProUGUI textField = gameObject.MakeTextMesh(template.textField, label); textField.text = label; // create TextButton TextButton textButton = gameObject.AddComponent <TextButton>(); textButton.textField = textField; textButton.SetStyle(template.ClickButton.style.textButtonStyle); // TODO: create IconButton return(textButton); }
public void ClickMouse(ClickButton button, Point ptStart) { windowInteraction.ClickMouse(button, new Point(ptStart.X + bmpOrig.ptCompensate.X, ptStart.Y + bmpOrig.ptCompensate.Y)); }
public CClickMouse(CRuneScape _runescape, ClickButton _button, Point _location) : base(_runescape) { this.btnToClick = _button; this.ptLocationToClick = _location; }
public void ClickMouse(ClickButton btnToClick, Point ptLocation, uint uiRandomClickSpace) { QueueAction(new CClickMouse(runeScape, btnToClick, ptLocation, uiRandomClickSpace)); }
public CClickMouse(CRuneScape _runescape, ClickButton _button) : base(_runescape) { this.btnToClick = _button; }
protected override void Ready(Object arg1) { Logo = null; RawImage image = UITool.GetUIComponent <RawImage>(skin.transform, "ChildNode/Scheme/CreateOffer/Content/OfferProduce/ScrollView/itemPictures/RawImage"); if (image != null) { Logo = image.texture; } //image = skin.transform.FindChild("RawImage").GetComponent<RawImage>(); //image.gameObject.SetActive(false); #region Top top = skin.transform.FindChild("Top"); TopLeft = skin.transform.FindChild("TopLeft"); topRight = skin.transform.FindChild("TopRight"); menuGroup = UITool.GetUIComponent <GridLayoutGroup>(top, "Menu"); Transform tLeft = UITool.GetUIComponent <Transform>(top, "Menu/Left"); open = UITool.AddUIComponent <ClickButton>(tLeft, "open"); if (Application.platform == RuntimePlatform.IPhonePlayer) { UITool.SetActionFalse(open.gameObject); } save = UITool.AddUIComponent <ClickButton>(tLeft, "save"); redo = UITool.AddUIComponent <ClickButton>(tLeft, "redo"); undo = UITool.AddUIComponent <ClickButton>(tLeft, "undo"); Transform tCenter = UITool.GetUIComponent <Transform>(top, "Menu/Center"); template = UITool.AddUIComponent <ToggleButton>(tCenter, "template"); innerLine = UITool.AddUIComponent <ToggleButton>(tCenter, "innerLine"); middleLine = UITool.AddUIComponent <ToggleButton>(tCenter, "middleLine"); measurement = UITool.AddUIComponent <ToggleButton>(tCenter, "measurement"); show = UITool.AddUIComponent <ToggleButton>(tCenter, "show"); Transform tRight = UITool.GetUIComponent <Transform>(top, "Menu/Right"); render = UITool.AddUIComponent <ClickButton>(tRight, "render"); offer = UITool.AddUIComponent <ClickButton>(tRight, "offer"); share = UITool.AddUIComponent <ClickButton>(tRight, "share"); cameraView = UITool.AddUIComponent <ToggleButton>(tRight, "CameraView"); cameraView.gameObject.SetActive(true); cameraView.gameObject.SetActive(false); Transform topLeft = skin.transform.FindChild("TopLeft"); exit = UITool.GetUIComponent <Button>(topLeft, "exit"); SaveBox = UITool.GetUIComponent <RectTransform>(topLeft, "exit/IsSave"); cancelSave = UITool.GetUIComponent <Button>(SaveBox, "cancel"); confirmSave = UITool.GetUIComponent <Button>(SaveBox, "confirm"); exitSave = UITool.GetUIComponent <Button>(SaveBox, "exitSave"); material = UITool.GetUIComponent <Button>(topLeft, "Material"); scheme = UITool.AddUIComponent <ClickButton>(topLeft, "scheme"); schemeName = UITool.GetUIComponent <Text>(topLeft, "scheme/name"); Vector2 v2 = schemeName.rectTransform.anchoredPosition; v2.x = 0; schemeName.rectTransform.anchoredPosition = v2; thereD = UITool.GetUIComponent <Button>(topRight, "thereD"); twoD = UITool.GetUIComponent <Button>(topRight, "twoD"); //two_D_No_Menu.Add(open); two_D_No_Menu.Add(template); two_D_No_Menu.Add(innerLine); two_D_No_Menu.Add(middleLine); two_D_No_Menu.Add(measurement); #endregion #region Bottom // 渲染 部分还没有 写 。。。 bottomRight = skin.transform.FindChild("BottomRight"); setup = UITool.GetUIComponent <Button>(bottomRight, "set_up"); query = UITool.GetUIComponent <Button>(bottomRight, "query"); #endregion #region Center centerRight = skin.transform.FindChild("CenterRight"); addButton = UITool.GetUIComponent <Button>(centerRight, "addButton"); #endregion #region ChildNode ChildNode = UITool.GetUIComponent <RectTransform>(skin.transform, "ChildNode"); SkinScheme = ChildNode.FindChild("Scheme").gameObject; //Scheme.Instance.SetData(skin); SkinTemplate = ChildNode.FindChild("Template").gameObject; //TemplatePage.Instance.SetData(skin); SkinRender = ChildNode.FindChild("Render").gameObject; //UITool.GetUIComponent<RectTransform>(ChildNode, "Render"); //RenderPage.Instance.SetData(skin); SkinShow = ChildNode.FindChild("Show").gameObject; // UITool.GetUIComponent<RectTransform>(ChildNode, "Show"); //ShowOrHide.Instance.SetData(skin); SkinSelelctOptions = skin.transform.FindChild("BottomCenter").gameObject; SkinMaterialScorll = ChildNode.FindChild("MaterialScroll").gameObject; // UITool.GetUIComponent<RectTransform>(ChildNode, "MaterialScroll"); //MaterialPage.Instance.SetData(skin); SkinCameraViewScroll = ChildNode.FindChild("CameraView").gameObject; SkinParticular = ChildNode.FindChild("Particulars").gameObject; saveScheme = ChildNode.FindChild("SaveScheme").gameObject; SkinSetWall = ChildNode.FindChild("SetWall").gameObject; //UITool.GetUIComponent<RectTransform>(ChildNode, "SetWall"); //SetWallPage.Instance.SetData(skin); SkinSetting = ChildNode.FindChild("Setting").gameObject; //UITool.GetUIComponent<RectTransform>(ChildNode, "Setting"); //SettingPage.Instance.SetData(skin); SkinKeyBoard = ChildNode.FindChild("KeyBoard").gameObject; //UITool.GetUIComponent<RectTransform>(ChildNode,"KeyBoard"); //KeyBoard.Instance.SetData(skin); SkinGroup = ChildNode.FindChild("GroupCollect").gameObject; // UITool.GetUIComponent<RectTransform>(ChildNode,"Group"); //GroupPage.Instance.SetData(skin); #endregion loadSceneProgress = skin.transform.FindChild("LoadSceneProgress") as RectTransform; loadingScene = UITool.GetUIComponent <RectTransform>(loadSceneProgress, "LoadingScene"); loadExit = UITool.GetUIComponent <Button>(loadSceneProgress, "LoadExit"); loadProgressImage = UITool.GetUIComponent <Image>(loadingScene, "progress"); loadProgressText = UITool.GetUIComponent <Text>(loadingScene, "progressText"); LoadSucceed = skin.transform.FindChild("LoadSceneProgress/LoadSucceed") as RectTransform; UITool.SetActionFalse(loadSceneProgress.gameObject); UITool.SetActionFalse(loadingScene.gameObject); UITool.SetActionFalse(LoadSucceed.gameObject); ChildTransfrom.Add(top); ChildTransfrom.Add(topLeft); ChildTransfrom.Add(topRight); ChildTransfrom.Add(SkinSelelctOptions.transform); ChildTransfrom.Add(bottomRight); ChildTransfrom.Add(centerRight); ChildTransfrom.Add(ChildNode); }
public void ClickMouse(ClickButton btnToClick, Point ptTargetLocation) { QueueAction(new CClickMouse(runeScape, btnToClick, ptTargetLocation)); }
public void ClickMouse(ClickButton btnToClick) { QueueAction(new CClickMouse(runeScape, btnToClick)); }
public void OnClickSecond(ClickButton button) { _dialogManager.HideDialogs(); _sencondBtnCallback?.Invoke(); }
CustomMenu CreateMenu1() { MultiButton btn1 = new MultiButton();//菜单一 btn1.name = "关于旗忠"; ClickButton btn10 = new ClickButton(); btn10.name = "最新通知"; btn10.key = "最新通知"; ViewButton btn11 = new ViewButton(); btn11.name = "旗忠微站"; btn11.url = "http://wap.qi-zhong.com"; ViewButton btn12 = new ViewButton(); btn12.name = "驾校介绍"; btn12.url = "http://wx.qi-zhong.com/about.aspx"; ViewButton btn13 = new ViewButton(); btn13.name = "报名价格表"; btn13.url = "http://wx.qi-zhong.com/train.aspx"; ViewButton btn14 = new ViewButton(); btn14.name = "联系方式"; btn14.url = "http://wx.qi-zhong.com/contact.aspx"; btn1.AddClickButton(btn10); btn1.AddViewButton(btn11); btn1.AddViewButton(btn12); btn1.AddViewButton(btn13); btn1.AddViewButton(btn14); ViewButton btn2 = new ViewButton();//菜单二 btn2.name = "预约学车"; btn2.url = "http://117.74.136.117:7000/logging/LoginUser.aspx?trainUnitCode=R0007-00"; MultiButton btn3 = new MultiButton();//菜单三 btn3.name = "我的专区"; ViewButton btn31 = new ViewButton(); btn31.name = "报名优惠"; btn31.url = "http://wx.qi-zhong.com/activity.aspx"; ViewButton btn32 = new ViewButton(); btn32.name = "个人中心"; btn32.url = "http://wx.qi-zhong.com/Default.aspx"; ClickButton btn33 = new ClickButton(); btn33.name = "流量领取"; btn33.key = "Menu_LiuLiang"; btn3.AddViewButton(btn31); btn3.AddViewButton(btn32); btn3.AddClickButton(btn33); CustomMenu cmenu = new CustomMenu(); cmenu.AddMulitButton(btn1); cmenu.AddViewButton(btn2); cmenu.AddMulitButton(btn3); return cmenu; }