Exemplo n.º 1
0
        internal static void Init()
        {
            Variables.AssemblyMenu = new LeagueSharp.Common.Menu("Orianna", "dz191.oriannahunter", true);
            MenuGenerator.GenerateMenu(Variables.AssemblyMenu);
            Variables.AssemblyMenu.AddToMainMenu();
            SpellQueue.OnLoad();
            BallManager.OnLoad();

            Orianna.OnLoad();
        }
Exemplo n.º 2
0
        private void OnLoad(object sender, EventArgs e)
        {
            DZLib.Menu.ModesMenuExtensions.SetBaseName($"dzaio.champion.{ObjectManager.Player.ChampionName.ToLowerInvariant()}");
            DZLib.Logging.LogHelper.OnLoad();
            MenuGenerator.GenerateMenu();
            SPrediction.ConfigMenu.Initialize(Variables.AssemblyMenu,
                                              $"{ObjectManager.Player.ChampionName}: SPrediction");

            ChampionLoader.LoadChampion();
            DZAntigapcloser.BuildMenu(Variables.AssemblyMenu, $"{ObjectManager.Player.ChampionName}: Antigapcloser", "dzaio.antigp");

            DZAIO.Init();
        }
Exemplo n.º 3
0
        /// <summary>
        ///     The translator module
        /// </summary>
        /// <summary>
        ///     Initializes a new instance of the <see cref="SOLOBootstrap" /> class.
        /// </summary>
        public SOLOBootstrap()
        {
            if (ObjectManager.Player.ChampionName != "Vayne")
            {
                return;
            }

            if (Variables.Instance != null)
            {
                return;
            }

            TDVayne       = new TDVayne();
            MenuGenerator = new MenuGenerator();
            Antigapcloser = new SOLOAntigapcloser();
            MenuGenerator.GenerateMenu();

            PrintLoaded();
        }
Exemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["biofarma_userid"] != null)
     {
         Menu.GenerateMenu(Session["biofarma_username"].ToString(), Session["biofarma_positionname"].ToString());
         sideMenu.InnerHtml = Menu.ListMenu.ToString();
         //lblName.Text = Session["biofarma_username"].ToString();
         //getNotificationApproval();
         //getNotificationCITO();
     }
     // use to show wheter it have notification.
     // Example of function :
     // toastr.error
     // toastr.success
     // toastr.warning
     // toastr.primary
     // Info is the content of Info itself
     if (!string.IsNullOrEmpty(Session["function"] as string))
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), Session["function"].ToString(), Session["function"].ToString() + "('" + Session["info"].ToString() + "','Notifikasi');", true);
         Session["function"] = "";
         Session["info"]     = "";
     }
 }
Exemplo n.º 5
0
 //void OnLevelWasLoaded(int level)
 void SceneLoaded(Scene scene, LoadSceneMode loadSceneMode)
 {
     MenuGenerator.GenerateMenu();
 }
Exemplo n.º 6
0
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            base.OnActionExecuting(filterContext);

            ViewBag.Menu = MenuGenerator.GenerateMenu(CreateMenu());
        }