Log in to reply
 

NativeUI on the fritz?!


  • MODERATOR

    Okay, this is very weird. I am still on pre-After Hours patch (cuz I need Menyoo). I have a wee script I use to change voices. With some code like this:

            private void OnmainMenuItemSelect(UIMenu sender, UIMenuItem item, int index)
            {
                string voicename = ListOfVoices[voices.Index];
                Game.Player.Character.Voice = voicename;
                mainMenu.Visible = false;
                UI.ShowSubtitle("VOICE changed to " + ListOfNames[voices.Index], 2000);
            }
    
            private void OnKeyDown(object sender, KeyEventArgs e)
            {
                if (e.Shift && e.KeyCode == Keys.L && !modMenuPool.IsAnyMenuOpen())
                {
                    mainMenu.Visible = !mainMenu.Visible;
                }
            }
    
            private void onTick(object sender, EventArgs e)
            {
                if (modMenuPool != null)
                {
                    modMenuPool.ProcessMenus();
                }
    

    Very old code! Been using it since ages! But now, when I press Shift-L, the menu starts flickering, on and off. Most peculiar! Like:

    What the hell is going on here?! Did NativeUI become incompatible, at some point?!


  • MODERATOR

    LOL, I figured it out. Apparently -- thinking I was doing the right thing -- I had set the Interval too low, like

        	Interval = 100;
    

    This causes the menu to no longer be drawn at every frame; hence, the flickering.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.