Inheritance: MonoBehaviour
Esempio n. 1
0
        //private BrainMapMarker currentMapMarker = null;
        public BrainMapManager(SpriteBatch spriteBatch, Soul game, AudioManager audioManager, InputManager controls, Vector2 position)
        {
            this.audioManager = audioManager;
            bg = new Sprite(spriteBatch, game, Constants.BRAIN_MAP_BG);
            mapList = new List<BrainMapMarker>();

            List<BrainMapMarker> tmpList = new List<BrainMapMarker>();
            /*mapList.Add(tmpList);
            tmpList = new List<BrainMapMarker>();
            mapList.Add(tmpList);
            tmpList = new List<BrainMapMarker>();
            mapList.Add(tmpList);*/

            menuManager = new MenuManager(controls);
            ImageButton button = new ImageButton(spriteBatch, game, controls, new Vector2((float)Constants.RESOLUTION_VIRTUAL_WIDTH * 0.5f - 150, (float)Constants.RESOLUTION_VIRTUAL_HEIGHT * 0.5f + 200), Constants.GUI_CLEANSE, "cleanse");
            button.onClick += new ImageButton.ButtonEventHandler(OnButtonPress);
            menuManager.AddButton(button);
            button = new ImageButton(spriteBatch, game, controls, new Vector2((float)Constants.RESOLUTION_VIRTUAL_WIDTH * 0.5f + 150, (float)Constants.RESOLUTION_VIRTUAL_HEIGHT * 0.5f + 200), Constants.GUI_BACK, "back");
            button.onClick += new ImageButton.ButtonEventHandler(OnButtonPress);
            menuManager.AddButton(button);
            menuManager.initialize();
            fadeinOut = new FadeInOut(spriteBatch, game, 100);
            this.position = position;
            offset = new Vector2((float)bg.X * 0.5f, (float)bg.Y *0.5f);
            this.controls = controls;
        }
Esempio n. 2
0
    public static void generateGUI(MenuManager menuManager)
    {
        MasterServer.RequestHostList(menuManager.gameName);

            GUILayout.BeginArea(new Rect(100, Screen.height/8, Screen.width -200, Screen.height/2));
                GUILayout.BeginVertical();

                    // actually get games from the master server.
                    HostData[] availableHosts = MasterServer.PollHostList();

                    // actually list games from the master server.
                    GUILayout.Box("Available Servers", GUILayout.MinWidth(Screen.width - 200));
                        foreach (HostData host in availableHosts)
                        {
                            GUILayout.BeginHorizontal();
                                GUILayout.Label(host.gameName + " (" + host.connectedPlayers + " / " + host.playerLimit + ") - " + host.comment);
                                if (GUILayout.Button("Connect", GUILayout.MaxWidth(Screen.width/8)))
                                {
                                    Network.Connect(host);
                                    menuManager.ChangeState(MenuManager.GameState.Lobby);
                                }
                            GUILayout.EndHorizontal();
                        }
                GUILayout.EndVertical();

                // buttons at the bottom (refresh and back)
                GUILayout.BeginHorizontal();
                    if (GUILayout.Button("Refresh List",GUILayout.MaxWidth(200))){MasterServer.RequestHostList(menuManager.gameName);}
                    GUILayout.Label("",GUILayout.MaxWidth(Screen.width-600));
                    if (GUILayout.Button("Back to Main Menu",GUILayout.MaxWidth(200))){menuManager.ChangeState(MenuManager.GameState.MainMenu);}
                GUILayout.EndHorizontal();
            GUILayout.EndArea();
    }
	void Awake() {

		DontDestroyOnLoad (this.gameObject);

		// initialise singleton
		_instance = this;
	}
Esempio n. 4
0
        public GameStateMenu()
        {
            _menuManager = new MenuManager("menu/main_menu");

            Game.Instance.AudioManager.PauseAllBackground();
            Game.Instance.AudioManager.PlaySound("menu/background_music", true);
        }
Esempio n. 5
0
    void Awake() {

        // Singleton of MenuManager instance.
        manager = MenuManager.Instance;
        audioSource = GetComponent<AudioSource>();

    }
Esempio n. 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        var menuMan = new MenuManager(true, false);
        var currentMenu = ((PigeonCms.BasePage)this.Page).MenuEntry;
        var menuList = new List<PigeonCms.Menu>();

        while (currentMenu.Id > 0)
        {
            menuList.Add(currentMenu);

            if (currentMenu.ParentId > 0)
                currentMenu = menuMan.GetByKey(currentMenu.ParentId);
            else
                currentMenu = new PigeonCms.Menu();
        }

        for (int i = 0; i < menuList.Count; i++)
        {
            string link = "<a href='" + menuList[i].Url + "'>" + menuList[i].Title + "</a>";
            string liClass = "";
            if (i == 0)
            {
                liClass = "last";
                link = menuList[i].Title;
            }
            else if (i == menuList.Count - 1)
                liClass = "first";

            LblContent = "<li class='"+ liClass +"'>" + link +"</li>" + LblContent;
        }
        LblContent = "<ul class='breadcrumbs " + this.BaseModule.CssClass + "'>" + LblContent + "</ul>";
    }
Esempio n. 7
0
    public static void generateGUI(MenuManager menuManager)
    {
        GUILayout.BeginArea(new Rect(Screen.width/2-150, Screen.height/2, 300,400));
                GUILayout.BeginVertical();

                // get name and description from text fields.
                menuManager.hostedGameName = GUILayout.TextField(menuManager.hostedGameName, GUILayout.MaxWidth (300));
                menuManager.hostedGameDescription = GUILayout.TextField(menuManager.hostedGameDescription, GUILayout.MaxWidth(300));

                // initialize the server and register it with unity's master server.
                if(GUILayout.Button ("Host", GUILayout.MinWidth(50)))
                {
                    Network.InitializeServer(32, Random.Range(2000,40000), !Network.HavePublicAddress());
                    MasterServer.RegisterHost(menuManager.gameName, menuManager.hostedGameName, menuManager.hostedGameDescription);

                    menuManager.ChangeState(MenuManager.GameState.Lobby);
                }

                if (GUILayout.Button("Back to Main Menu", GUILayout.MinWidth(50)))
                {
                    menuManager.ChangeState(MenuManager.GameState.MainMenu);
                }

                GUILayout.EndVertical();
                GUILayout.EndArea();
    }
 public void TransitionOn(MenuManager.MenuTransitionType transitionType, TransitionDir dir = TransitionDir.Left, TransitionCallbackDelegate callback = null, float speed = 600.0f)
 {
     //this.speed = 600.0f;
     this.transitionType = transitionType;
     this.callback = callback;
     TransitionOnInternal(dir);
 }
Esempio n. 9
0
 public override void LoadContent(ContentManager Content, InputManager inputManager)
 {
     base.LoadContent(Content, inputManager);
     if (font == null)
         font = content.Load<SpriteFont>("font1");
     menu = new MenuManager();
     menu.LoadContent(content, "Title");
 }
Esempio n. 10
0
 // Use this for initialization
 protected virtual void Start()
 {
     menu = GameObject.FindGameObjectWithTag("Menu").GetComponent<MenuManager>();
     mRender = transform.GetChild(1).GetComponent<Renderer>();
     baseScale = transform.localScale;
     bulgeCurve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(.5f, 1.6f), new Keyframe(1.0f, 1.0f));
     startColor = mRender.material.GetColor("_Color");
 }
Esempio n. 11
0
 public void SwitchCanvas(MenuManager.CanvasTypes ori)
 {
     if (ori == MenuManager.CanvasTypes.Land) {
         toggleCanvas(GetComponent<MenuManager>().currentMenu);
     } else if (ori == MenuManager.CanvasTypes.Port) {
         toggleCanvas(GetComponent<MenuManager>().currentMenu);
     }
 }
Esempio n. 12
0
    void Start()
    {
        parent = (MenuManager)this.transform.parent.gameObject.GetComponent<MenuManager>();

        NewGameBtn.onClick.AddListener(() => {
            parent.GotoMenu(1);
        });
    }
Esempio n. 13
0
    public void Setup(LevelData i_data, MenuManager i_mainMenuManager)
    {
        //Set Data
        data = i_data;
        mainMenuManager = i_mainMenuManager;

        //Apply Data
        GetComponentInChildren<Text>().text = (data.number + 1).ToString();
    }
Esempio n. 14
0
        public FrmRoleDetail()
        {
            InitializeComponent();

            //
            roleDetailManager = new RoleDetailManager();
            userRoleManager = new UserRoleManager();
            menuManager = new MenuManager();
        }
Esempio n. 15
0
    void Start()
    {
        instance = this;

        if (LoginInformation.loggedIn)
            ChangePanel(startupGui);
        else
            ChangePanel(loginGui);
    }
Esempio n. 16
0
    //ENT_GameManager game;

    void Awake() {
        if (instance == null) {
            instance = this;
        }
        manager = MenuManager.Instance;

        //		menu = GameObject.Find ("Menu2").GetComponent<Menu> ();
        //Debug.Log (this.GetComponent<PieMenu> ().commands.Count);
    }
Esempio n. 17
0
    public void Start()
    {
        if (!menuManager)
            menuManager = GameObject.FindObjectOfType<MenuManager>();

        if (!spellMenu)
            spellMenu = GameObject.FindObjectOfType<SpellMenu>();

        spellManager = GetComponent<SpellManager>();
    }
    private void FillMenu()
    {
        MenuManager menuManager = new MenuManager();
        long menuId = 0;
        long.TryParse(Resources.ID.FooterSocialMenuId, out menuId);
        MenuData menuData = menuManager.GetTree(menuId);

        SocialMenu.DataSource = menuData.Items;
        SocialMenu.DataBind();
    }
 void Awake()
 {
     buttonPress = GameObject.Find("ButtonPress").GetComponent<AudioSource>();
     menuManager = MenuManager.Instance();
     /*
     mainCamera = Camera.main;
     xScreen = Screen.width / 2;
     yScreen = Screen.height / 2;
      * */
 }
Esempio n. 20
0
 //-------------------------------------
 public void ShowShop(MenuManager.CanvasTypes orientationOfStore)
 {
     if(orientationOfStore == MenuManager.CanvasTypes.Port){
         HShop.enabled = false;
         VShop.enabled = true;
     }
     else if(orientationOfStore == MenuManager.CanvasTypes.Land){
         HShop.enabled = true;
         VShop.enabled = false;
     }
 }
Esempio n. 21
0
    /// <summary>
    /// Inicializacion temprana
    /// </summary>
    private void Awake()
    {
        // Si existen otras instancias, las destruimos
        if (Instance && Instance != this)
        {
            Destroy(gameObject);
        }

        // Salvamos el singleton
        Instance = this;
    }
Esempio n. 22
0
		public void executeAction(MenuManager menuManager, string action){

			switch(action){
			case "play":
				menuHandler.Execute (playGame, menuManager);
			break;
			case "quit":
				menuHandler.Execute (quitGame, menuManager);
			break;
			}
		}
Esempio n. 23
0
    void Awake()
    {
        m_loginMenu = GameObject.FindObjectOfType<LoginMenu>();
        m_mainMenu = GameObject.FindObjectOfType<MainMenu>();
        m_optionMenu = GameObject.FindObjectOfType<OptionMenu>();
        m_artworkMenu = GameObject.FindObjectOfType<ArtworksMenu>();
        m_creditsMenu = GameObject.FindObjectOfType<CreditsMenu>();
        m_shopMenu = GameObject.FindObjectOfType<ShopMenu>();

        m_singleton = this;
    }
Esempio n. 24
0
    // Use this for initialization
    void Start()
    {
        instance = this;

        musicPlayer = GetComponent<AudioSource>();

        for(int i = 0; i < nukeAtStart.Length; i++) {
            nukeAtStart[i].SetActive(false);
        }

        UpdateLive();
    }
Esempio n. 25
0
 public virtual void Start()
 {
     connectionManager = GameObject.Find("World").GetComponent("ConnectionManager") as ConnectionManager;
     playerManager     = GameObject.Find("World").GetComponent("PlayerManager") as PlayerManager;
     netPlayer = GameObject.Find("World").GetComponent("NetPlayer") as NetPlayer;
     inputDispatcher = GameObject.Find("World").GetComponent("InputDispatcher") as InputDispatcher;
     inputReceiver = GameObject.Find("World").GetComponent("InputReceiver") as InputReceiver;
     //gameManager = GameObject.Find("World").GetComponent<GameManager>() as GameManager;
     mapManager = GameObject.Find("World").GetComponent<MapManager>() as MapManager;
     menuManager = GameObject.Find("World").GetComponent<MenuManager>() as MenuManager;
     world = GameObject.Find("World");
 }
Esempio n. 26
0
 void Start()
 {
     stateManager = GetComponent<StateManager> ();
     adMnan = GetComponent<AdMan> ();
     gameStats = GetComponent<GameStats> ();
     menuManager = GetComponent<MenuManager> ();
     lanePlacer = GameObject.Find ("PROCEDURAL").GetComponent<LanePlacer> ();
     gameCamera = Camera.main.GetComponent<GameCamera> ();
     //		if(isFirstGame){
     //			menuManager.SwitchMenu(MenuManager.MenuTypes.PreGame);
     //		}
 }
Esempio n. 27
0
    // Use this for initialization
    void Start()
    {
        if (instance == null)
            //if not, set it to this.
            instance = this;
        //If instance already exists:
        else if (instance != this)
            //Destroy this, this enforces our singleton pattern so there can only be one instance of SoundManager.
            Destroy(gameObject);

        if (menuHandlerList[menuIndex] != null)
            menuHandlerList[menuIndex].gameObject.SetActive(true);
    }
Esempio n. 28
0
	void Awake()
	{
		if (Instance)
		{
			if (!imTheOriginal)
				Destroy(gameObject);
		}
		else
		{
			Instance = this;
			DontDestroyOnLoad(gameObject);
			imTheOriginal = true;
		}
	}
Esempio n. 29
0
    protected override void Awake()
    {
        SetUpInput();

        variableManager = GetComponent<VariableManager>();
        menuManager = GetComponentInChildren<MenuManager>();
        hud = menuManager.GetComponentInChildren<HUD>();

        SetUpTouchIndicators();

        qualityText = GetComponent<ObjectPool>();

        base.Awake();
    }
Esempio n. 30
0
        public override void LoadContent(ContentManager content, InputManager inputManager)
        {
            images = new List<Texture2D>();
            base.LoadContent(content, inputManager);

            menu = new MenuManager();
            menu.LoadContent(content, "Option");

            audio = new AudioManager();
            audio.LoadContent(content, "Option");
            audio.MusicVolume = 1.0f;

            audio.FadeSong(1.0f, new TimeSpan(0, 0, 0, 1));
        }
Esempio n. 31
0
 /// <summary>
 /// Open register panel
 /// </summary>
 public void openRegisterPanel()
 {
     MenuManager.switchToMenu(1);
 }
Esempio n. 32
0
        /// <inheritdoc />
        public override void OnCreate()
        {
            menu = new MenuManager();

            root = new MenuObject().SetTable(1, 4);
            root["Attack"].SetId(1000);
            root["Magic"].SetTable(1, 2);
            root["Defend"].SetId(1002);
            root["Items"].SetTable(2, 4);
            root["Escape"].SetId(1003);

            int whiteMag = 4001;

            root["Magic"]["White"].SetTable(3, 6);
            root["Magic"]["White"]["Cure"].SetId(whiteMag++);
            root["Magic"]["White"]["Cura"].SetId(whiteMag++);
            root["Magic"]["White"]["Curaga"].SetId(whiteMag++);
            root["Magic"]["White"]["Life"].SetId(whiteMag++);
            root["Magic"]["White"]["Holy"].SetId(whiteMag++);
            root["Magic"]["White"]["Ultima"].SetId(whiteMag++);
            root["Magic"]["White"]["Esuna"].SetId(whiteMag++);
            root["Magic"]["White"]["Basuna"].SetId(whiteMag++);
            root["Magic"]["White"]["Haste"].SetId(whiteMag++);
            root["Magic"]["White"]["Slow"].SetId(whiteMag++);
            root["Magic"]["White"]["Blink"].SetId(whiteMag++);
            root["Magic"]["White"]["Mini"].SetId(whiteMag++);
            root["Magic"]["White"]["Shell"].SetId(whiteMag++);
            root["Magic"]["White"]["Wall"].SetId(whiteMag++);
            root["Magic"]["White"]["Sap"].SetId(whiteMag++);
            root["Magic"]["White"]["Fog"].SetId(whiteMag++);
            root["Magic"]["White"]["Fear"].SetId(whiteMag++);
            root["Magic"]["White"]["Warp"].SetId(whiteMag++);

            int blackMag = 5001;

            root["Magic"]["Black"].SetTable(3, 4);
            root["Magic"]["Black"]["Fire"].SetId(blackMag++);
            root["Magic"]["Black"]["Fira"].SetId(blackMag++);
            root["Magic"]["Black"]["Firaga"].SetId(blackMag++);
            root["Magic"]["Black"]["Thunder"].SetId(blackMag++);
            root["Magic"]["Black"]["Thundara"].SetId(blackMag++);
            root["Magic"]["Black"]["Thundaga"].SetId(blackMag++);
            root["Magic"]["Black"]["Blizzard"].SetId(blackMag++);
            root["Magic"]["Black"]["Blizzara"].SetId(blackMag++);
            root["Magic"]["Black"]["Blizzaga"].SetId(blackMag++);
            root["Magic"]["Black"]["Quake"].SetId(blackMag++);
            root["Magic"]["Black"]["Quake2"].SetId(blackMag++);
            root["Magic"]["Black"]["Quake3"].SetId(blackMag++);
            root["Magic"]["Black"]["HalfLife"].SetId(blackMag++);
            root["Magic"]["Black"]["HalfLife2"].SetId(blackMag++);
            root["Magic"]["Black"]["HalfLife3"].SetId(blackMag++).Enable(false);
            root["Magic"]["Black"]["Bio"].SetId(blackMag++);
            root["Magic"]["Black"]["Bio2"].SetId(blackMag++);
            root["Magic"]["Black"]["Bio3"].SetId(blackMag++);
            root["Magic"]["Black"]["Demi"].SetId(blackMag++);
            root["Magic"]["Black"]["Demi2"].SetId(blackMag++);
            root["Magic"]["Black"]["Demi23"].SetId(blackMag++);
            root["Magic"]["Black"]["Drain"].SetId(blackMag++);
            root["Magic"]["Black"]["Osmose"].SetId(blackMag++);
            root["Magic"]["Black"]["Sleep"].SetId(blackMag++);
            root["Magic"]["Black"]["Stun"].SetId(blackMag++);
            root["Magic"]["Black"]["Stop"].SetId(blackMag++);
            root["Magic"]["Black"]["Confuse"].SetId(blackMag++);
            root["Magic"]["Black"]["Blind"].SetId(blackMag++);
            root["Magic"]["Black"]["Curse"].SetId(blackMag++);
            root["Magic"]["Black"]["Toad"].SetId(blackMag++);
            root["Magic"]["Black"]["Break"].SetId(blackMag++);
            root["Magic"]["Black"]["Death"].SetId(blackMag++);
            root["Magic"]["Black"]["Berserk"].SetId(blackMag++);
            root["Magic"]["Black"]["Aura"].SetId(blackMag++);
            root["Magic"]["Black"]["Flare"].SetId(blackMag++);

            int itemId = 3001;

            root["Items"]["Potion"].SetId(itemId++);
            root["Items"]["Ether"].SetId(itemId++);
            root["Items"]["Elixir"].SetId(itemId++);
            root["Items"]["SleepBag"].SetId(itemId++).Enable(false);
            root["Items"]["Tent"].SetId(itemId++).Enable(false);
            root["Items"]["Cottage"].SetId(itemId++).Enable(false);

            root.Build();
            menu.Open(root);
        }
Esempio n. 33
0
 public void QuitGame()
 {
     MenuManager.QuitGame();
 }
Esempio n. 34
0
 //
 public static void Initialize()
 {
     menuMan = new MenuManager();
 }
Esempio n. 35
0
        protected override void CreateMenu()
        {
            ComboMenu = MenuManager.Menu.AddSubMenu("Combo");
            ComboMenu.AddGroupLabel("Combo mode settings for Varus addon");

            ComboMenu.AddLabel("Piercing Arrow (Q) settings :");
            ComboMenu.Add("Plugins.Varus.ComboMenu.UseQ", new CheckBox("Use Q"));
            var qrange = ComboMenu.Add("Plugins.Varus.ComboMenu.QMinDistanceToTarget", new Slider("Minimum distance to target to use Q", 500, 0, 1250));

            qrange.OnValueChange += (a, b) =>
            {
                _changingRangeQ = true;
                Core.DelayAction(() =>
                {
                    if (!qrange.IsLeftMouseDown && !qrange.IsMouseInside)
                    {
                        _changingRangeQ = false;
                    }
                }, 2000);
            };
            ComboMenu.AddSeparator(5);

            ComboMenu.AddLabel("Hail of Arrows (E) settings :");
            ComboMenu.Add("Plugins.Varus.ComboMenu.UseE", new CheckBox("Use E"));
            ComboMenu.Add("Plugins.Varus.ComboMenu.UseEToProc", new CheckBox("Use E only to proc 3rd W stack", false));
            ComboMenu.AddSeparator(5);

            ComboMenu.AddLabel("Chain of Corruption (R) settings :");
            ComboMenu.Add("Plugins.Varus.ComboMenu.UseR", new CheckBox("Use R", false));
            ComboMenu.Add("Plugins.Varus.ComboMenu.RKeybind", new KeyBind("Manual R keybind", false, KeyBind.BindTypes.HoldActive, 'W'));

            HarassMenu = MenuManager.Menu.AddSubMenu("Harass");
            HarassMenu.AddGroupLabel("Harass mode settings for Varus addon");

            HarassMenu.AddLabel("Piercing Arrow (Q) settings :");
            HarassMenu.Add("Plugins.Varus.HarassMenu.AutoHarass",
                           new KeyBind("Enable AutoHarass with Q", false, KeyBind.BindTypes.PressToggle, 'T')).OnValueChange +=
                (sender, args) =>
            {
                AutoHarass.Value = args.NewValue;
            };
            HarassMenu.Add("Plugins.Varus.HarassMenu.MinManaQ", new Slider("Min mana percentage ({0}%) to use Q", 50, 1));
            HarassMenu.AddSeparator(2);

            if (EntityManager.Heroes.Enemies.Any())
            {
                HarassMenu.AddLabel("Enable auto harras for : ");

                EntityManager.Heroes.Enemies.ForEach(x => HarassMenu.Add("Plugins.Varus.HarassMenu.AutoHarassEnabled." + x.ChampionName, new CheckBox(x.ChampionName == "MonkeyKing" ? "Wukong" : x.ChampionName)));
            }

            LaneClearMenu = MenuManager.Menu.AddSubMenu("Clear");
            LaneClearMenu.AddGroupLabel("Lane clear settings for Varus addon");

            LaneClearMenu.AddLabel("Basic settings :");
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.EnableLCIfNoEn", new CheckBox("Enable lane clear only if no enemies nearby"));
            var scanRange = LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.ScanRange", new Slider("Range to scan for enemies", 1500, 300, 2500));

            scanRange.OnValueChange += (a, b) =>
            {
                _changingRangeScan = true;
                Core.DelayAction(() =>
                {
                    if (!scanRange.IsLeftMouseDown && !scanRange.IsMouseInside)
                    {
                        _changingRangeScan = false;
                    }
                }, 2000);
            };
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.AllowedEnemies", new Slider("Allowed enemies amount", 1, 0, 5));
            LaneClearMenu.AddSeparator(5);

            LaneClearMenu.AddLabel("Lane clear settings :");
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.UseQInLaneClear", new CheckBox("Use Q in Lane clear", false));
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.MinMinionsHitQ", new Slider("Min minions hit to use Q", 3, 1, 6));
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.UseEInLaneClear", new CheckBox("Use E in Lane clear", false));
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.MinMinionsHitE", new Slider("Min minions hit to use E", 3, 1, 6));
            LaneClearMenu.AddSeparator(5);

            LaneClearMenu.AddLabel("Jungle clear settings :");
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.UseQInJungleClear", new CheckBox("Use Q in Jungle clear", false));
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.UseEInJungleClear", new CheckBox("Use E in Jungle clear"));
            LaneClearMenu.AddSeparator(5);

            LaneClearMenu.AddLabel("Mana settings :");
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.MinManaQ", new Slider("Min mana percentage ({0}%) to use Q", 50, 1));
            LaneClearMenu.Add("Plugins.Varus.LaneClearMenu.MinManaE", new Slider("Min mana percentage ({0}%) to use E", 50, 1));

            MiscMenu = MenuManager.Menu.AddSubMenu("Misc");
            MiscMenu.AddGroupLabel("Misc settings for Varus addon");
            MiscMenu.AddLabel("Basic settings :");
            MiscMenu.Add("Plugins.Varus.MiscMenu.EnableKillsteal", new CheckBox("Enable Killsteal"));

            MenuManager.BuildAntiGapcloserMenu();

            DrawingsMenu = MenuManager.Menu.AddSubMenu("Drawings");
            DrawingsMenu.AddGroupLabel("Drawings settings for Varus addon");

            DrawingsMenu.AddLabel("Basic settings :");
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawSpellRangesWhenReady", new CheckBox("Draw spell ranges only when they are ready"));
            DrawingsMenu.AddSeparator(5);

            DrawingsMenu.AddLabel("Piercing Arrow (Q) settings :");
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawQ", new CheckBox("Draw Q range"));
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawQColor", new CheckBox("Change color", false)).OnValueChange += (a, b) =>
            {
                if (!b.NewValue)
                {
                    return;
                }

                ColorPicker[0].Initialize(System.Drawing.Color.Aquamarine);
                a.CurrentValue = false;
            };
            DrawingsMenu.AddSeparator(5);

            DrawingsMenu.AddLabel("Hail of Arrows (E) settings :");
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawE", new CheckBox("Draw E range", false));
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawEColor", new CheckBox("Change color", false)).OnValueChange += (a, b) =>
            {
                if (!b.NewValue)
                {
                    return;
                }

                ColorPicker[1].Initialize(System.Drawing.Color.Aquamarine);
                a.CurrentValue = false;
            };
            DrawingsMenu.AddSeparator(5);

            DrawingsMenu.AddLabel("Chain of Corruption (R) settings :");
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawR", new CheckBox("Draw R range", false));
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawRColor", new CheckBox("Change color", false)).OnValueChange += (a, b) =>
            {
                if (!b.NewValue)
                {
                    return;
                }

                ColorPicker[2].Initialize(System.Drawing.Color.Aquamarine);
                a.CurrentValue = false;
            };

            DrawingsMenu.AddLabel("Damage indicator settings :");
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DrawDamageIndicator", new CheckBox("Draw damage indicator")).OnValueChange += (a, b) =>
            {
                if (b.NewValue)
                {
                    DamageIndicator.DamageDelegate = HandleDamageIndicator;
                }
                else if (!b.NewValue)
                {
                    DamageIndicator.DamageDelegate = null;
                }
            };
            DrawingsMenu.Add("Plugins.Varus.DrawingsMenu.DamageIndicatorColor", new CheckBox("Change color", false)).OnValueChange += (a, b) =>
            {
                if (!b.NewValue)
                {
                    return;
                }

                ColorPicker[3].Initialize(System.Drawing.Color.Aquamarine);
                a.CurrentValue = false;
            };

            AutoHarass = MenuManager.PermaShow.AddItem("Varus.AutoHarass",
                                                       new BoolItem("Enable auto harass with Q", Settings.Harass.AutoHarassWithQ));
        }
Esempio n. 36
0
 /// <summary>
 /// Finish choosing and start ship equiping
 /// </summary>
 void GoToShipEquippinig(bool noValue)
 {
     ShipEquiperGameStatic.InitializeGame();
     MenuManager.GoTo(MenuEnum.EquippingScene);
 }
Esempio n. 37
0
        static void Main(string[] args)
        {
            MenuManager menuManager = new MenuManager();

            menuManager.MainMenu();
        }
Esempio n. 38
0
    public IMenuBehavior CreateMenu(MenuData _menu, Transform _parent)
    {
        GameObject menuObj = new GameObject(_menu.name);

        RectTransform     menuRect = menuObj.AddComponent <RectTransform>();
        List <UiSortData> tempList = new List <UiSortData>();

        menuRect.transform.SetParent(_parent);
        menuRect.anchorMin  = Vector2.zero;
        menuRect.anchorMax  = Vector2.one;
        menuRect.sizeDelta  = Vector2.zero;
        menuRect.localScale = Vector3.one;
        menuRect.transform.localPosition = Vector3.zero;
        menuRect.localEulerAngles        = Vector3.zero;

        menuObj.AddComponent <CanvasRenderer>();

        MenuManager menu = menuObj.AddComponent <MenuManager>();

        //menuRoot.AddMenu(_menu.name, menu);
        //menu.menuRoot = menuRoot;
        menu.menuType = _menu.menuType;
        menu.buttons  = new List <Button>();
        menu.images   = new List <Image>();

        foreach (UiData bd in _menu.buttons)
        {
            Button btn;
            btn = CreateButton(menuRect, bd);

            menu.buttons.Add(btn);
            tempButtons.Add(btn, bd);

            UiSortData usd;
            usd.ui    = btn.transform;
            usd.layer = bd.layer;
            if (tempList.Count > 0)
            {
                int tempI = 0;
                while (usd.layer < tempList[tempI].layer)
                {
                    tempI++;
                    if (tempI >= tempList.Count)
                    {
                        break;
                    }
                }
                tempList.Insert(tempI, usd);
            }
            else
            {
                tempList.Add(usd);
            }
        }

        foreach (UiData id in _menu.images)
        {
            Image img = CreateImage(menuRect, id);
            menu.images.Add(img);

            UiSortData usd;
            usd.ui    = img.transform;
            usd.layer = id.layer;
            if (tempList.Count > 0)
            {
                int tempI = 0;
                while (usd.layer < tempList[tempI].layer)
                {
                    tempI++;
                    if (tempI >= tempList.Count)
                    {
                        break;
                    }
                }
                tempList.Insert(tempI, usd);
            }
            else
            {
                tempList.Add(usd);
            }
        }

        if (_menu.menuType == MenuType.MainMenu)
        {
            menu.gameObject.SetActive(true);
        }
        else
        {
            menu.gameObject.SetActive(false);
        }


        tempUis.Enqueue(new KeyValuePair <Transform, List <UiSortData> >(menuRect, tempList));

        //foreach (UiSortData usd in tempList) { Debug.Log("" + usd.layer + ", : " + usd.ui.name); }

        return(menu);
    }
Esempio n. 39
0
        public static bool IsAllow(RenderContext context, Kooboo.Api.ApiMethod method)
        {
            if (context.User == null)
            {
                if (method.ClassInstance == null || !(method.ClassInstance is IApiPermissionString))
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }


            if (context.User.IsAdmin)
            {
                return(true);
            }
            else
            {
                string PermissionString = null;

                if (method.ClassInstance != null)
                {
                    if (method.ClassInstance is IPermissionControl)
                    {
                        if (method.ClassInstance is IApiPermissionString)
                        {
                            var permissionclass = method.ClassInstance as IApiPermissionString;
                            if (permissionclass != null)
                            {
                                PermissionString = permissionclass.Permission;
                            }
                        }
                        else
                        {
                            var instancetype = method.ClassInstance.GetType();

                            var type = GetPerminssionLinkUndertype(instancetype);

                            if (type != null)
                            {
                                var menuinstance = Activator.CreateInstance(type) as ICmsMenu;
                                if (menuinstance != null)
                                {
                                    PermissionString = MenuManager.GetPermissionString(menuinstance);
                                }
                            }
                        }
                    }
                }
                else
                {
                    //if (method.DeclareType != null)
                    //{
                    //    var instance = Activator.CreateInstance(method.DeclareType);
                    //    if (instance != null && instance is IApiPermissionString)
                    //    {
                    //        var permissionclass = instance as IApiPermissionString;
                    //        if (permissionclass != null)
                    //        {
                    //            PermissionString = permissionclass.Permission;
                    //        }
                    //    }
                    //}
                }


                if (string.IsNullOrWhiteSpace(PermissionString))
                {
                    return(true);
                }
                else
                {
                    var role = SiteUserService.GetRolePermission(context);

                    if (role == null)
                    {
                        return(false);
                    }
                    return(Kooboo.Sites.Authorization.PermissionService.HasPermission(PermissionString, role.Tree));
                }
            }
        }
Esempio n. 40
0
    private void CreateScene()
    {
        AssetDatabase.SaveAssets();

        Type.GetType("UnityEditor.LogEntries,UnityEditor.dll")
        .GetMethod("Clear", BindingFlags.Static | BindingFlags.Public)
        .Invoke(null, null);



        newScene = EditorSceneManager.NewScene(NewSceneSetup.DefaultGameObjects, NewSceneMode.Additive);
        EditorSceneManager.CloseScene(EditorSceneManager.GetSceneAt(0), true);

        newScene.name = folderName;

        //GameObject canvasRoot = new GameObject("CanvasRoot");
        CreateEventSystem();
        GameObject rootObj = CreateCanvas();

        menuRoot = rootObj.AddComponent <MenuRoot>();

        //menuRoot.allMenus = new Dictionary<string, MenuManager>();

        int    tempI         = 0;
        string tempFolder    = "";
        string tempFolderA   = "";
        string tempFolderDel = "";

        while (tempI < 1000)
        {
            tempFolder = "assets/" + TEMP_DIR + tempI.ToString();
            if (!Directory.Exists(tempFolder))
            {
                tempFolderDel = tempFolder;
                tempFolderA   = tempFolder + "/Resources";
                Directory.CreateDirectory(tempFolderA);
                break;
            }
            else
            {
                tempI++;
            }
        }

        tempFolderA += "/" + TEMP_SUB_DIR;

        FileUtil.CopyFileOrDirectory(sceneDirectory, tempFolderA);
        //FileUtil.CopyFileOrDirectoryFollowSymlinks(sceneDirectory, tempFolderA);
        AssetDatabase.Refresh();

        MenuData[] menus = Resources.LoadAll <MenuData>(TEMP_SUB_DIR);
        tempMenus   = new Dictionary <string, MenuManager>();
        tempButtons = new Dictionary <Button, UiData>();

        tempUis = new Queue <KeyValuePair <Transform, List <UiSortData> > >();

        foreach (MenuData md in menus)
        {
            MenuManager menu = (MenuManager)CreateMenu(md, rootObj.transform);
            menuRoot.AddMenu(menu);
            tempMenus.Add(md.name, menu);
        }

        foreach (KeyValuePair <Button, UiData> bb in tempButtons)
        {
            Type[] arguments = new Type[1];
            arguments[0] = typeof(int);
            MethodInfo        method = UnityEventBase.GetValidMethodInfo(menuRoot, "ShowMenu", arguments);
            UnityAction <int> ua     = Delegate.CreateDelegate(typeof(UnityAction <int>), menuRoot, method) as UnityAction <int>;

            if (bb.Value.action == ButtonAction.ShowMenu)
            {
                Debug.Log(menuRoot.allMenus.IndexOf(tempMenus[bb.Value.goTo.name]));
                int index = menuRoot.allMenus.IndexOf(tempMenus[bb.Value.goTo.name]);
                UnityEventTools.AddIntPersistentListener(bb.Key.onClick, ua, index);
            }
        }

        while (tempUis.Count > 0)
        {
            KeyValuePair <Transform, List <UiSortData> > tempK = tempUis.Dequeue();
            List <UiSortData> tempList = tempK.Value;
            for (int i = 0; i < tempList.Count; i++)
            {
                //Debug.Log("^^^: " + tempList[i].layer);
                tempList[i].ui.SetAsFirstSibling();
            }
        }

        EditorSceneManager.SaveScene(UnityEngine.SceneManagement.SceneManager.GetSceneAt(0), sceneDirectory + "/" + folderName + ".unity");

        FileUtil.DeleteFileOrDirectory(tempFolderDel);

        AssetDatabase.Refresh();

        if (myWindow != null)
        {
            myWindow.Close();
        }



        return;

        Debug.Log(":: " + sceneDirectory + ", " + folderName);

        // You can either filter files to get only neccessary files by its file extension using LINQ.
        // It excludes .meta files from all the gathers file list.
        IEnumerable <string> assetFiles = GetFiles(GetSelectedPathOrFallback()).Where(str => str.Contains(".meta") == false);

        foreach (string f in assetFiles)
        {
            Debug.Log("Files: " + f);
        }
    }
Esempio n. 41
0
        #pragma warning disable 1998
        public async override global::System.Threading.Tasks.Task ExecuteAsync()
        {
            BeginContext(58, 93, true);
            WriteLiteral("<ul class=\"sidebar-menu\" data-widget=\"tree\">\r\n    <li class=\"header\">MAIN NAVIGATION</li>\r\n\r\n");
            EndContext();
#line 6 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"

            var user      = Test.OpenSite.Utils.GetCurrentInfo.Instance.UserInfo();
            var menuBll   = new MenuManager();
            var menuDatas = menuBll.GetMenu(new Test.ViewModel.QueryMenuView
            {
                UserId = user.UserId
            });
            if (menuDatas != null && menuDatas.Count() > 0)
            {
                foreach (var menu in menuDatas)
                {
#line default
#line hidden
                    BeginContext(537, 167, true);
                    WriteLiteral("                <li class=\"active treeview\">\r\n                    <a href=\"#\">\r\n                        <i class=\"fa fa-pie-chart\"></i>\r\n                        <span>");
                    EndContext();
                    BeginContext(705, 9, false);
#line 20 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"
                    Write(menu.Name);

#line default
#line hidden
                    EndContext();
                    BeginContext(714, 252, true);
                    WriteLiteral("</span>\r\n                        <span class=\"pull-right-container\">\r\n                            <i class=\"fa fa-angle-left pull-right\"></i>\r\n                        </span>\r\n                    </a>\r\n\r\n                    <ul class=\"treeview-menu\">\r\n");
                    EndContext();
#line 27 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"

                    if (menu.Items != null && menu.Items.Count() > 0)
                    {
                        foreach (var item in menu.Items)
                        {
#line default
#line hidden
                            BeginContext(1205, 42, true);
                            WriteLiteral("                                    <li><a");
                            EndContext();
                            BeginWriteAttribute("href", " href=\"", 1247, "\"", 1263, 1);
#line 32 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"
                            WriteAttributeValue("", 1254, item.Url, 1254, 9, false);

#line default
#line hidden
                            EndWriteAttribute();
                            BeginContext(1264, 31, true);
                            WriteLiteral("><i class=\"fa fa-circle-o\"></i>");
                            EndContext();
                            BeginContext(1296, 9, false);
#line 32 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"
                            Write(item.Name);

#line default
#line hidden
                            EndContext();
                            BeginContext(1305, 11, true);
                            WriteLiteral("</a></li>\r\n");
                            EndContext();
#line 33 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"
                        }
                    }


#line default
#line hidden
                    BeginContext(1409, 50, true);
                    WriteLiteral("                    </ul>\r\n                </li>\r\n");
                    EndContext();
#line 38 "D:\test\net\mySite\Test.OpenSite\Views\Shared\_LeftMenu.cshtml"
                }
            }


#line default
#line hidden
            BeginContext(1492, 324, true);
            WriteLiteral(@"    <li class=""header"">LABELS</li>
    <li><a href=""#""><i class=""fa fa-circle-o text-red""></i> <span>Important</span></a></li>
    <li><a href=""#""><i class=""fa fa-circle-o text-yellow""></i> <span>Warning</span></a></li>
    <li><a href=""#""><i class=""fa fa-circle-o text-aqua""></i> <span>Information</span></a></li>
</ul>");
            EndContext();
        }
 public void HandleBackToMenuOnClickEvent()
 {
     AudioManager.Play(AudioClipName.ButtonClick);
     MenuManager.GoToMenu(MenuName.Menu);
 }
Esempio n. 43
0
 public static void LoadSetupMenu()
 {
     MenuManager.SwitchToMenu(MenuManager.SetupOptions);
     ResetSetupButtons();
 }
Esempio n. 44
0
 public void HandleMainMenuButtonClicked()
 {
     AudioManager.Play(AudioClipName.MenuButtonClick);
     MenuManager.GoToMenu(MenuName.Main);
     Destroy(this.gameObject);
 }
Esempio n. 45
0
        public override void CreateMenu()
        {
            base.CreateMenu();

            var menu = MenuManager.AddSubMenu("Drawings");

            {
                menu.NewCheckbox("disable", "Disable", false);
                menu.NewCheckbox("damageindicator", "Damage Indicator");
                menu.NewCheckbox("q", "Q");
            }

            menu = MenuManager.AddSubMenu("Combo");
            {
                menu.NewCheckbox("q", "Q");
                menu.NewCheckbox("q.smartq", "SmartQ");
                menu.NewCheckbox("q.saveqtododgespells", "Save Q to dodge spells", true, true);
                menu.NewCheckbox("w.aareset", "W AA reset", true, true);
                menu.NewCheckbox("e", "E");
                menu.NewCheckbox("r", "R");
            }

            menu = MenuManager.AddSubMenu("Harass");
            {
                menu.NewCheckbox("q", "Q");
                menu.NewCheckbox("w.aareset", "W AA reset");
                menu.NewCheckbox("e", "E");
            }

            menu = MenuManager.AddSubMenu("Lane Clear");
            {
                menu.NewCheckbox("q", "Q");
                menu.NewCheckbox("q.jimwd", "Just Q if minion will die", true, true);
                menu.NewSlider("q.minminions", "Min minions Q", 4, 1, 4, true);
                menu.NewSlider("mana%", "Min mana%", 30, 1, 99, true);
            }

            menu = MenuManager.AddSubMenu("Jungle Clear");
            {
                menu.NewCheckbox("q", "Q");
                menu.NewCheckbox("e", "E");
                menu.NewSlider("mana%", "Min mana%", 30, 1, 99, true);
            }

            menu = MenuManager.AddSubMenu("Misc");
            {
                menu.NewCheckbox("ks", "KS");
                menu.NewCheckbox("dodgefireballs", "Try to dodge dragon fireballs", true, true);
                menu.NewCheckbox("gapcloser", "Gapcloser");
            }

            menu = MenuManager.AddSubMenu("Q/W Evade Options");
            {
                menu.NewCheckbox("q/wonlyoncombo", "Just dodge spells in combo");

                foreach (AIHeroClient hero in EntityManager.Heroes.Enemies)
                {
                    menu.AddGroupLabel(hero.BaseSkinName);
                    {
                        foreach (SpellDataInst spell in hero.Spellbook.Spells)
                        {
                            if (DodgeSpells.Any(el => el == spell.SData.Name))
                            {
                                menu.NewSlider(spell.Name, hero.BaseSkinName + " : " + spell.Slot.ToString() + " : " + spell.Name, 3, 0, 3);
                                MenuSpells.Add(spell.Name);
                            }
                        }
                    }

                    menu.AddSeparator();
                }
            }
        }
Esempio n. 46
0
 void Start()
 {
     instance = this;
     SaveManager.instance.Save();
 }
Esempio n. 47
0
 private void OnAborted(object sender, EventArgs eventArgs)
 {
     MenuManager.Dispose();
 }
Esempio n. 48
0
 public MenuAppService(
     MenuManager menuManager)
 {
     _menuManager = menuManager;
 }
Esempio n. 49
0
 void Start()
 {
     mc = GameObject.FindGameObjectWithTag("GameManager").GetComponent <MultiplayerController>();
     mm = GameObject.FindGameObjectWithTag("GameManager").GetComponent <MenuManager>();
 }
Esempio n. 50
0
 // Use this for initialization
 void Start()
 {
     buttonComponent.onClick.AddListener(HandleClick);
     menuManager = GameObject.FindGameObjectWithTag("MenuManager").GetComponent <MenuManager>();
 }
Esempio n. 51
0
 public void Back()
 {
     MenuManager.GoToMenu(MenuName.Main);
     AudioManager.Play(AudioClipName.Back);
 }
Esempio n. 52
0
 /// <summary>
 /// Asign default nick to user and change mode to Offline
 /// </summary>
 public void playOffline()
 {
     PlayerPrefs.SetString("mode", "Offline");
     MenuManager.switchToMenu(2);
 }
Esempio n. 53
0
 private void Start()
 {
     instance = this;
 }
 private void OnTouchExitButton(object sender, TouchEventArgs e)
 {
     MenuManager.GetInstance().RemoveCurrentMenu();
 }
Esempio n. 55
0
        public override void WillFinishLaunching(NSNotification notification)
        {
            MenuManager = new MenuManager(NSApplication.SharedApplication.MainMenu);

            if (ClientInfo.Flavor != ClientFlavor.Inspector)
            {
                ClientApp.SharedInstance.Updater.CheckForUpdatesPeriodicallyInBackground(
                    update => UpdateHandler(null, update));
            }

            var helpMenu = NSApplication.SharedApplication.HelpMenu;
            var appMenu  = NSApplication.SharedApplication.MainMenu.ItemArray() [0].Submenu;

            if (ClientInfo.Flavor == ClientFlavor.Inspector)
            {
                // Update menu items in app/help menus
                foreach (var item in appMenu.ItemArray().Concat(helpMenu.ItemArray()))
                {
                    item.Title = item.Title.Replace("Workbooks", "Inspector");
                }

                applicationShouldOpenUntitledFile = false;
            }
            else
            {
                var checkForUpdatesMenuItem = new NSMenuItem(
                    Catalog.GetString("Check for Updates…"),
                    new Selector("checkForUpdates:"),
                    string.Empty);
                appMenu.InsertItem(checkForUpdatesMenuItem, 1);

                var enableTerminalUsageMenuItem = new NSMenuItem(
                    Catalog.GetString("Enable Terminal Usage…"),
                    new Selector("installCommandLineTool:"),
                    string.Empty);
                appMenu.InsertItem(enableTerminalUsageMenuItem, 2);

                var sampleWorkbooksMenuItem = new NSMenuItem(Catalog.GetString("Tutorials"));
                sampleWorkbooksMenuItem.Submenu = new NSMenu();
                helpMenu.InsertItem(sampleWorkbooksMenuItem, 0);

                var workbookFiles = new FilePath(NSBundle.MainBundle.ResourcePath)
                                    .Combine("Workbooks")
                                    .EnumerateFiles("*.workbook", SearchOption.TopDirectoryOnly);

                foreach (var workbookFile in workbookFiles)
                {
                    sampleWorkbooksMenuItem.Submenu.AddItem(new NSMenuItem(
                                                                workbookFile.NameWithoutExtension,
                                                                (sender, e) => NSWorkspace.SharedWorkspace.OpenFile(workbookFile)));
                }

                sampleWorkbooksMenuItem.Submenu.AddItem(NSMenuItem.SeparatorItem);
                sampleWorkbooksMenuItem.Submenu.AddItem(new NSMenuItem(
                                                            ClientInfo.DownloadWorkbooksMenuLabel,
                                                            (sender, e) => NSWorkspace.SharedWorkspace.OpenUrl(
                                                                ClientInfo.DownloadWorkbooksUri)));
            }

            if (CommandLineTool.TestDriver.ShouldRun)
            {
                CommandLineTool.TestDriver.Run(NSApplication.SharedApplication.InvokeOnMainThread);
            }

            new SessionDocumentController();
        }
Esempio n. 56
0
 /// <summary>
 /// Recupere l'instance en cours
 /// </summary>
 private void Awake()
 {
     instance = this;
 }
Esempio n. 57
0
 public void LoadMainMenu()
 {
     MenuManager.LoadScene((int)Scenes.MainMenuScene);
     isPaused = false;
 }
Esempio n. 58
0
 public static void MessageHUD(string msg, string uiSound, bool unk)
 {
     MenuManager.ShowHUDMessage(msg, uiSound, unk);
 }
Esempio n. 59
0
 /// <summary>
 /// Show message
 /// </summary>
 /// <param name="message">message to display</param>
 private void showMessage(string message)
 {
     PlayerPrefs.SetString("messageToShow", message);
     MenuManager.switchToMenu(6);
 }
Esempio n. 60
0
 public override void OnOptionSelected()
 {
     MenuManager.continueOption();
     // MenuManager.currentMenu.SetActive(false);
     // MenuManager.lastController.Activate();
 }