public override void OnActive() { Debug.Log ("Aktywacja StateY"); menu = GameObject.Find ("GUI").GetComponent("Menu2") as Menu2; menu.enabled = true; Debug.Log (menu); }
public ActionResult DeleteConfirmed(int id) { Menu2 menu2 = db.Menu2.Find(id); db.Menu2.Remove(menu2); db.SaveChanges(); return(RedirectToAction("Index")); }
public void initialize() { start = new Start(); selection = new Selection(); menu1 = new Menu1(); menu2 = new Menu2(); state = State.START; }
public void press() { Menu2.SetActive(false); Menu3.SetActive(true); Menu4.SetActive(false); MenuSettings.SetActive(false); Menu1.SetActive(false); Menu5.SetActive(false); }
private void OnTriggerExit2D(Collider2D collision) { if (collision.gameObject.tag == "Player") { Menu.SetActive(false); Menu2.SetActive(false); Enter = false; Stay = false; } }
static Interrupter() { Menu2.AddGroupLabel("Interrupter Settings"); _qInterrupt = Menu2.Add("qInterrupt", new CheckBox("Interrupt low/med-danger spells with Q")); Menu2.AddSeparator(13); _qInterruptDangerous = Menu2.Add("rInterrupt", new CheckBox("Interrupt high-danger spells with Q")); Menu2.AddSeparator(13); }
public ActionResult Edit([Bind(Include = "menu2_id,menu_id,menu2_CNtext,menu2_TWtext,menu2_url,menu2_sort,menu2_status,menu2_type")] Menu2 menu2) { if (ModelState.IsValid) { db.Entry(menu2).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.menu_id = new SelectList(db.Menu, "menu_id", "menu_TWtext", menu2.menu_id); return(View(menu2)); }
// game choice (solo or vs) public void PlayvsCom() { Menu1.SetActive(false); Menu2.SetActive(false); Menu3.SetActive(false); Menu4.SetActive(false); Menu5.SetActive(false); MenuSettings.SetActive(false); Menu4IA.SetActive(true); Menu5IA.SetActive(false); }
// <Snippet61> // Gets all the tables in the data model. protected void GetTables() { System.Collections.IList tables = MetaModel.Default.Tables; if (tables.Count == 0) { throw new InvalidOperationException( "There are no tables in the data model."); } Menu2.DataSource = tables; Menu2.DataBind(); }
/// <summary> /// 初始化二级栏目 /// </summary> void InitMenu2Type() { Menu2Type = Utils.GetEnumValue <Menu2>(Utils.GetQueryStringValue("sl"), Menu2.None); switch (Menu2Type) { case Menu2.客户管理_单位直客: ListTypeName = "单位直客"; break; case Menu2.客户管理_同行客户: ListTypeName = "同行客户"; break; default: AjaxResponse("错误的请求"); break; } }
private void onYesExit() { string str = "yes"; Close(); if (str == "yes") { Log.printLog("공고 등록 성공"); Menu2.getInstance().selectData(); Menu2.getInstance().BringToFront(); } }
// GET: Menu2/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Menu2 menu2 = db.Menu2.Find(id); if (menu2 == null) { return(HttpNotFound()); } return(View(menu2)); }
protected void Page_Load(object sender, EventArgs e) { System.Collections.IList l2sTables = Global.L2Smodel.VisibleTables; System.Collections.IList efTables = Global.EFmodel.VisibleTables; if (l2sTables.Count == 0 && efTables.Count == 0) { throw new InvalidOperationException("There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages."); } Menu1.DataSource = l2sTables; Menu1.DataBind(); Menu2.DataSource = efTables; Menu2.DataBind(); }
//#################################################################################################### #region MonoBehaviour callbacks //######################################## // Use this for initialization private void Start() { // 初期で表示するCanvasの設定 Menu1.SetActive(value: true); Menu2.SetActive(value: true); Menu1.GetComponent <Canvas>().enabled = true; Menu2.GetComponent <Canvas>().enabled = false; // PhotonMasterServerAddress = UnityEngine.GameObject.Find(name: "PhotonMasterServerAddressInputField").transform.Find("Text").GetComponent <Text>(); PhotonMasterServerPort = UnityEngine.GameObject.Find(name: "PhotonMasterServerPortInputField").transform.Find("Text").GetComponent <Text>(); PhotonAppId = UnityEngine.GameObject.Find(name: "PhotonAppIdInputField").transform.Find("Text").GetComponent <Text>(); GameVersion = UnityEngine.GameObject.Find(name: "GameVersionInputField").transform.Find("Text").GetComponent <Text>(); }
// GET: Menu2/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Menu2 menu2 = db.Menu2.Find(id); if (menu2 == null) { return(HttpNotFound()); } ViewBag.menu_id = new SelectList(db.Menu, "menu_id", "menu_TWtext", menu2.menu_id); return(View(menu2)); }
public List <Menu2> GetMenus(int codRol) { List <Menu> rows = _context.Menu.ToList(); List <Menu2> menus = new List <Menu2>(); foreach (Menu row in rows) { Menu2 menu = new Menu2(); menu.cod_menu = row.cod_menu; menu.nombre = row.nombre; menu.orden = row.orden; menu.icono = row.icono; menu.enlace = row.enlace; menu.inicio = row.inicio; List <MenuOpcion> rowsP = (from m in _context.MenuOpcion join n in _context.Permiso on m.cod_menu_opcion equals n.cod_menu_opcion where m.cod_menu == menu.cod_menu && n.cod_rol == codRol && n.estado == 1 orderby m.orden ascending select m).ToList(); List <MenuOpcion> permisos = new List <MenuOpcion>(); int cnt = 0; foreach (MenuOpcion rowP in rowsP) { MenuOpcion per = new MenuOpcion(); per.cod_menu_opcion = rowP.cod_menu_opcion; per.nombre = rowP.nombre; per.estado = rowP.estado; per.orden = rowP.orden; per.enlace = rowP.enlace; permisos.Add(per); cnt++; } //Comprueba si existen permisos para el menú, de lo contrario no lo incluye. if (cnt > 0) { menu.permisos = permisos; menus.Add(menu); } } return(menus); }
// confirm player public void clickConfirm() { if (Menu4.activeInHierarchy) { if (confirmButton.activeInHierarchy) { if (Input.GetKeyDown(KeyCode.Return) || Input.GetButtonDown("Start")) { Menu1.SetActive(false); Menu2.SetActive(false); Menu3.SetActive(false); Menu4.SetActive(false); Menu5.SetActive(true); MenuSettings.SetActive(false); } } } }
void Update() { GotItPress(); GoToMenu3(); CancelPlayer1(); CancelPlayer2(); Confirm(); clickConfirm(); cancelArena(); confirmArena(); if (dataHolder.FromMenuButton) { Menu4.SetActive(false); Menu1.SetActive(false); Menu2.SetActive(false); Menu3.SetActive(true); MenuSettings.SetActive(false); dataHolder.FromMenuButton = false; } }
private void SignIn_Click(object sender, EventArgs e) /* Goes to Menu2 form */ { /* HashPassword hsp = new HashPassword(); * string salt = hsp.CreateSalt(10); * loginText.Text = hsp.ComparePassword(loginText.Text, salt); * passwordText.Text = hsp.ComparePassword(loginText.Text, salt);*/ if (xml.CheckForInternetConnection()) { string login; string password; int id = 0; ReadAndUpdateData r = new ReadAndUpdateData(); login = loginText.Text; password = passwordText.Text; r.ReadLoginAndPassword(); if (r.LogInProcess(ref id, login, password)) { Hide(); Menu2 menu = new Menu2(id); menu.ShowDialog(); Close(); menu = null; } else { MessageBox.Show("Niepoprawne dane!"); } } else { MessageBox.Show("Brak połączenia Internetowego!"); } }
private void ShowCorrectContent() { FadeBack = false; if (menuVisible == true) { // First menu selection if (CurrentSelected == 1) { Menu1.SetActive(true); selectionRing1.SetActive(true); HideAllInstructions(); if (ExperienceFinished == false) { PanelIns6.SetActive(true); } else { Menu1.SetActive(false); selectionRing1.SetActive(false); PanelIns6.SetActive(false); } if (MenuOption1 == 1) { selectionRing1.transform.position = Menu1Positions[0].position; } if (MenuOption1 == 2) { selectionRing1.transform.position = Menu1Positions[1].position; } if (MenuOption1 == 3) { selectionRing1.transform.position = Menu1Positions[2].position; } } else { Menu1.SetActive(false); selectionRing1.SetActive(false); } // Second menu selection if (CurrentSelected == 2 && NarrativeVisible == false) { Menu2.SetActive(true); HideAllInstructions(); PanelIns5.SetActive(true); // Show correct options // T1 Options if (MenuOption1 == 1) { T1Options.SetActive(true); T1SelectionRing.SetActive(true); // Move cursor if (MenuOption2 == 1) { T1SelectionRing.transform.position = T1MenuPositions[0].position; } if (MenuOption2 == 2) { T1SelectionRing.transform.position = T1MenuPositions[1].position; } } else { T1Options.SetActive(false); } // T2 Options if (MenuOption1 == 2) { T2Options.SetActive(true); T2SelectionRing.SetActive(true); // Move cursor if (MenuOption2 == 1) { T2SelectionRing.transform.position = T2MenuPositions[0].position; } if (MenuOption2 == 2) { T2SelectionRing.transform.position = T2MenuPositions[1].position; } if (MenuOption2 == 3) { T2SelectionRing.transform.position = T2MenuPositions[2].position; } } else { T2Options.SetActive(false); } // T3 Options if (MenuOption1 == 3) { T3Options.SetActive(true); T3SelectionRing.SetActive(true); // Move cursor if (MenuOption2 == 1) { T3SelectionRing.transform.position = T3MenuPositions[0].position; } if (MenuOption2 == 2) { T3SelectionRing.transform.position = T3MenuPositions[1].position; } if (MenuOption2 == 3) { T3SelectionRing.transform.position = T3MenuPositions[2].position; } if (MenuOption2 == 4) { T3SelectionRing.transform.position = T3MenuPositions[3].position; } } else { T3Options.SetActive(false); } } else { Menu2.SetActive(false); T1SelectionRing.SetActive(false); T2SelectionRing.SetActive(false); T3SelectionRing.SetActive(false); } // Third menu selection if (CurrentSelected > 2) { Menu3.SetActive(true); HideAllInstructions(); PanelIns2.SetActive(true); FloatingContent.SetActive(true); // T1 // T1 Images if (MenuOption1 == 1 && MenuOption2 == 1) { T1ImageHolder.SetActive(true); FloatingT1ImageHolder.SetActive(true); for (int i = 0; i < T1Images.Length; i++) { if (i == CurrentT1Image - 1) { T1Images[i].SetActive(true); } else { T1Images[i].SetActive(false); } } } else { T1ImageHolder.SetActive(false); FloatingT1ImageHolder.SetActive(false); } // T1 Timeline if (MenuOption1 == 1 && MenuOption2 == 2) { T1TimelineHolder.SetActive(true); FloatingT1TimelineHolder.SetActive(true); } else { T1TimelineHolder.SetActive(false); FloatingT1TimelineHolder.SetActive(false); } // T2 // T2 Images if (MenuOption1 == 2 && MenuOption2 == 1) { T2ImageHolder.SetActive(true); FloatingT2ImageHolder.SetActive(true); for (int i = 0; i < T2Images.Length; i++) { if (i == CurrentT2Image - 1) { T2Images[i].SetActive(true); } else { T2Images[i].SetActive(false); } } } else { T2ImageHolder.SetActive(false); FloatingT2ImageHolder.SetActive(false); } // T2 Videos if (MenuOption1 == 2 && MenuOption2 == 2) { T2VideoHolder.SetActive(true); FloatingT2VideoHolder.SetActive(true); HideAllInstructions(); PanelIns4.SetActive(true); for (int i = 0; i < T2Videos.Length; i++) { if (i == CurrentT2Video - 1) { T2Videos[i].SetActive(true); } else { T2Videos[i].SetActive(false); } } } else { T2VideoHolder.SetActive(false); FloatingT2VideoHolder.SetActive(false); } // T2 Timeline if (MenuOption1 == 2 && MenuOption2 == 3) { T2TimelineHolder.SetActive(true); FloatingT2TimelineHolder.SetActive(true); } else { T2TimelineHolder.SetActive(false); FloatingT2TimelineHolder.SetActive(false); } // T3 // T3 Images if (MenuOption1 == 3 && MenuOption2 == 1) { T3ImageHolder.SetActive(true); FloatingT3ImageHolder.SetActive(true); for (int i = 0; i < T3Images.Length; i++) { if (i == CurrentT3Image - 1) { T3Images[i].SetActive(true); } else { T3Images[i].SetActive(false); } } } else { T3ImageHolder.SetActive(false); FloatingT3ImageHolder.SetActive(false); } // T3 Videos if (MenuOption1 == 3 && MenuOption2 == 2) { T3VideoHolder.SetActive(true); FloatingT3VideoHolder.SetActive(true); HideAllInstructions(); PanelIns4.SetActive(true); for (int i = 0; i < T3Videos.Length; i++) { if (i == CurrentT3Video - 1) { T3Videos[i].SetActive(true); } else { T3Videos[i].SetActive(false); } } } else { T3VideoHolder.SetActive(false); FloatingT3VideoHolder.SetActive(false); } // T3 Archive if (MenuOption1 == 3 && MenuOption2 == 3) { T3ArchiveHolder.SetActive(true); FloatingT3ArchiveHolder.SetActive(true); for (int i = 0; i < T3Archive.Length; i++) { if (i == CurrentT3Archive - 1) { T3Archive[i].SetActive(true); } else { T3Archive[i].SetActive(false); } } } else { T3ArchiveHolder.SetActive(false); FloatingT3ArchiveHolder.SetActive(false); } // T3 Timeline if (MenuOption1 == 3 && MenuOption2 == 4) { T3TimelineHolder.SetActive(true); FloatingT3TimelineHolder.SetActive(true); } else { T3TimelineHolder.SetActive(false); FloatingT3TimelineHolder.SetActive(false); } } else { Menu3.SetActive(false); FloatingContent.SetActive(false); } } }
public void FindPizzaTest() { Assert.IsTrue(Menu1.FindPizza() is Pizza); Assert.IsNull(Menu2.FindPizza()); }
private static void Loading_OnComplete(EventArgs args) { if (Gragas.Hero != Champion.Gragas) { return; } Bootstrap.Init(null); Chat.Print("[Addon] [Champion] [Gragas]"); Q = new Spell.Skillshot(SpellSlot.Q, 775, SkillShotType.Circular, 1, 1000, 110); Q.AllowedCollisionCount = int.MaxValue; W = new Spell.Active(SpellSlot.W); E = new Spell.Skillshot(SpellSlot.E, 675, SkillShotType.Linear, 0, 1000, 50); R = new Spell.Skillshot(SpellSlot.R, 1100, SkillShotType.Circular, 1, 1000, 700); R.AllowedCollisionCount = int.MaxValue; Menu = MainMenu.AddMenu("Gragas", "Gragas"); var Enemies = EntityManager.Heroes.Enemies.Where(a => !a.IsMe).OrderBy(a => a.BaseSkinName); Menu1 = Menu.AddSubMenu("Combo"); Menu1.AddSeparator(); Menu1.AddLabel("Combo Configs"); Menu1.Add("ComboQ", new CheckBox("Use [Q] on Combo")); Menu1.Add("ComboW", new CheckBox("Use [W] on Combo")); Menu1.Add("ComboE", new CheckBox("Use [E] on Combo")); Menu1.Add("ComboR", new CheckBox("Use [R] on Combo", false)); Menu1.AddLabel("Use [R] only on:"); foreach (var a in Enemies) { Menu1.Add("Ult_" + a.BaseSkinName, new CheckBox(a.BaseSkinName)); } Menu1.Add("MinR", new Slider("Use R if min Champs on [R] range:", 2, 1, 5)); Menu1.AddSeparator(); Menu1.AddLabel("Harass"); Menu1.Add("ManaH", new Slider("Mana Percent > %", 40)); Menu1.Add("HarassQ", new CheckBox("Use [Q] on Harass")); Menu1.Add("HarassW", new CheckBox("Use [W] on Harass")); Menu1.Add("HarassE", new CheckBox("Use [E] on Harass")); Menu1.AddSeparator(); Menu1.AddLabel("KillSteal"); Menu1.Add("KQ", new CheckBox("Use Q on KillSteal")); Menu1.Add("KE", new CheckBox("Use E to KillSteal")); Menu1.Add("KR", new CheckBox("Use R to KillSteal")); Menu2 = Menu.AddSubMenu("Farming"); Menu2.AddLabel("LastHit Configs"); Menu2.Add("ManaL", new Slider("Dont use Skills if Mana <= ", 40)); Menu2.Add("LastQ", new CheckBox("Use Q on LastHit")); Menu2.Add("LastW", new CheckBox("Use W on LastHit")); Menu2.Add("LastE", new CheckBox("Use E on LastHit")); Menu2.AddLabel("Lane Clear Config"); Menu2.Add("ManaF", new Slider("Dont use Skills if Mana <=", 40)); Menu2.Add("FarmQ", new CheckBox("Use Q on LaneClear")); Menu2.Add("FarmW", new CheckBox("Use W on LaneClear")); Menu2.Add("FarmE", new CheckBox("Use E on LaneClear")); Menu2.Add("MinionQ", new Slider("Use Q when count minions more than :", 3, 1, 5)); Menu2.AddLabel("Jungle Clear Config"); Menu2.Add("ManaJ", new Slider("Dont use Skills if Mana <=", 40)); Menu2.Add("JungQ", new CheckBox("Use Q on Jungle")); Menu2.Add("JungW", new CheckBox("Use W on Jungle")); Menu2.Add("JungE", new CheckBox("Use E on Jungle")); Draws = Menu.AddSubMenu("Draws"); Draws.Add("drawQ", new CheckBox(" Draw do Q")); Draws.Add("drawE", new CheckBox(" Draw do E")); Draws.Add("drawR", new CheckBox(" Draw do R")); Misc = Menu.AddSubMenu("Misc"); Misc.Add("useEGapCloser", new CheckBox("E on GapCloser")); Misc.Add("useRGapCloser", new CheckBox("R on GapCloser")); Misc.Add("useEInterrupter", new CheckBox("use E to Interrupt")); Misc.Add("useRInterrupter", new CheckBox("use R to Interrupt")); Misc.Add("Key", new KeyBind("Key to insec", false, KeyBind.BindTypes.HoldActive, (uint)'A')); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Game_OnDraw; GameObject.OnCreate += Game_ObjectCreate; //GameObject.OnDelete += Game_OnDelete; //Orbwalker.OnPostAttack += Reset; Game.OnTick += Game_OnTick; Interrupter.OnInterruptableSpell += game_Interrupter; Gapcloser.OnGapcloser += Gap_Closer; }
public void StartPress() { Menu1.SetActive(false); Menu2.SetActive(true); }
public void OnBack() { Menu1.SetActive(true); Menu2.SetActive(false); Menu3.SetActive(false); }
public void CreditSwitch() { Menu1.SetActive(false); Menu2.SetActive(false); Menu3.SetActive(true); }