Forum: Grand Theft Auto Series Modding - Our GTA Modding Team is the best around. Tutorials & Topics related to modding your GTA games, trophies, and save files! Discuss GTA game modding with the knowledgeable members of PSX-Scene and the Official GTA IV Mod Team.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Help request - for my menu
  

Results 1 to 7 of 7
  1. #1 Help request - for my menu 
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    723
    Downloads
    5
    Uploads
    1
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    190
    Likes Received
    442
    need some input cus im at the end of my rope and I have no clue why its not working.. what im doing is trying to slim down my old menu from

    OLD way...(works)
    Code:
    ......one part of the old menu..........
    
    int mod1=0,mod2=0,mod3=0,mod4=0,mod5=0,mod6=0,mod7=0,mod8=0,mod9=0,mod10=0;
    	
    
    		else if(menuSelectInt==4)//MOD5//CHANGE
    		{
    			// NON ACTIVE
    			if(mod4==1){mod4=0;}// UnHighlights above	
    			if(mod6==1){mod6=0;}// UnHighlights Below
    			if(mod5==0){mod5=1;}// Highlights current /
    			// ACTIVE
    			else if(mod4==3){mod4=2;} // UnHighlights above(if Activated)
    			else if(mod6==3){mod6=2;} // UnHighlights Below(if Activated)
    			else if(mod5==2){mod5=3;} // highlights current (if Activated)
    
    			else if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (mod5==1)) //CHANGE// if activator selected & menu int is approprate number then activate mod
    			{
    				mod5=2; // Mod now activated //CHANGE
    			}
    			else if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (mod5==3)) // if activator selected  mod is on//CHANGE
    			{
    				mod5=1; // Mod now deactivted//CHANGE
    			}
    
    		}
    to this..
    NEW way..(doesn't work)
    Code:
    int mod1=0,mod2=0,mod3=0,mod4=0,mod5=0,mod6=0,mod7=0,mod8=0,mod9=0,mod10=0;
    
    
    void MenuChoice(int Previous_Mod,int Next_Mod,int Current_Mod)
    {
    	if(Previous_Mod==1){Previous_Mod=0;}// UnHighlights above	
    	else if(Previous_Mod==3){Previous_Mod=2;} // UnHighlights above(if Activated)
    	
    	if(Next_Mod==1){Next_Mod=0;}// UnHighlights Below
    	else if(Next_Mod==3){Next_Mod=2;} // UnHighlights Below(if Activated)
    	
    	if(Current_Mod==0){Current_Mod=1;}// Highlights current
    	else if(Current_Mod==2){Current_Mod=3;} // highlights current (if Activated)
    	
    	if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (Current_Mod==1)) {Current_Mod=2;}// Mod now activated
    	else if((IS_BUTTON_JUST_PRESSED(0, ACTIVATOR_BUTTON)) && (Current_Mod==3)){Current_Mod=1;} // Mod now deactivted
    }
    void MenuNavActivationAndHighlight()
    {
    	if(IsMenuOn == 1)
    	{
    		if(menuSelectInt==0){MenuChoice(mod2,mod20,mod1);}			// MOD1  //mod20 is last
    		else if(menuSelectInt==1){MenuChoice(mod1,mod3,mod2);}		// MOD2
    		else if(menuSelectInt==2){MenuChoice(mod2,mod4,mod3);}		// MOD3
    		else if(menuSelectInt==3){MenuChoice(mod3,mod5,mod4);}		// MOD4
    		else if(menuSelectInt==4){MenuChoice(mod4,mod6,mod5);}		// MOD5
    
    
    	}
    }

    so it is all compiled in loop but when I run it in gta menu shows but it wont switch!!! why!


    any insight would be appreciated.
    Last edited by JDMAlex; 09-30-2012 at 03:53 PM.
    Reply With Quote  

  2. #2  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    744
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    743
    Likes Received
    228
    Why are you trying to slim the code down? Does that old way not work either?

    I'll have a closer look in a minute for you, I just got back home lol
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  3. #3  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    723
    Downloads
    5
    Uploads
    1
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    190
    Likes Received
    442
    the old way works fine its just a pain in the ass to add more to the menu. I'm trying to slim it down to add pages and not have to have a huge pile of code for something so simple to switch the highlight/dimming of the menu functions.
    Reply With Quote  

  4. #4  
    JDMAlex's Avatar
    JDMAlex is online now & developer
    Join Date
    Nov 2010
    Posts
    723
    Downloads
    5
    Uploads
    1
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    190
    Likes Received
    442
    not sure why my thread was locked(maybe it was me). but its open now. If someone was trying to help please continue
    Reply With Quote  

  5. #5  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,363
    Downloads
    12
    Uploads
    7
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    962
    Likes Received
    648
    My PM folders were full...why I find soo hard to take out da trash, I'll never know .
    Reply With Quote  

  6. #6  
    Colt's Avatar
    Colt is offline Developer
    Join Date
    Jun 2012
    Posts
    744
    Downloads
    0
    Uploads
    0
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    743
    Likes Received
    228
    I don't know man sorry, maybe you could use Muskelprotze's addon source?
    Sorry I couldn't help.
    Mod Videos: http://www.youtube.com/DontGetAngryBro
    Reply With Quote  

  7. #7  
    nativesith's Avatar
    nativesith is offline Moderator
    Join Date
    Jun 2011
    Location
    Los Santos
    Posts
    1,363
    Downloads
    12
    Uploads
    7
    Mentioned
    37 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    962
    Likes Received
    648
    Hey JD, time for you to take out the trash , just tried sending ya a PM...
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •