Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Page 2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    Page 2

    Hi Guys, i have a weapon menu on my server, and this is now very full (40 weapons), i want to make a page 2 , but idk how i can make this. Can somebody help me? and if you take your weapon a secoundary menu will come, if you know how to make please answer back.

    thank you

  2. #2
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    Create the second page, and the scrolling buttons (e.g. "Next Page", "Previous Page") at the first one, what opens the new menu. Its pretty simple. xd

  3. #3
    Private First Class thOuMta's Avatar
    Join Date
    Oct 2012
    Location
    France
    Posts
    191
    Thanks
    139
    Thanked 35 Times in 28 Posts
    PHP Code:
    action
    {
        
    play "mouse_click";
        
    open page2;
    }
    onFocus
    {
        
    play "mouse_over";

    Juste make it, its very simple

  4. #4
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    No, its not easy and and it will not open.

  5. #5
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Loveboy View Post
    No, its not easy and and it will not open.
    Modding elementary - post your code for us to check.

    I will say - if it isn't opening, check the name of your page2 menu with the menu action "open". The "open" action looks for a menu name. If the menu name is wrong, it wont open.

    BTW - when I say menu name, I do not mean the name of the menu file. I mean the name you have to give a menu after menuDef{}.

    Example:

    PHP Code:
        menuDef
        
    {
            
    name            "page2"
            
    rect            0 0 640 480
            focuscolor        GLOBAL_FOCUSED_COLOR
            style            WINDOW_STYLE_EMPTY
            blurWorld        5.0
        

    Last edited by Tally; 1st June 2013 at 13:18.

  6. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (1st June 2013)

  7. #6
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    it will open. Make sure u edit _menus.gsc
    Code:
    action 
    { 
        play "mouse_click"; 
        close "page1";
        open "page2"; 
    } 
    onFocus 
    { 
        play "mouse_over"; 
    }

  8. The Following User Says Thank You to Ni3ls For This Useful Post:

    thOuMta (1st June 2013)

  9. #7
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Ni3ls View Post
    it will open. Make sure u edit _menus.gsc
    Code:
    action 
    { 
        play "mouse_click"; 
        close "page1";
        open "page2"; 
    } 
    onFocus 
    { 
        play "mouse_over"; 
    }
    There is nothing in that menu code which is monitored in _menus.gsc.

  10. #8
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by Tally View Post
    There is nothing in that menu code which is monitored in _menus.gsc.
    You need to define your menu and precache it

  11. #9
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Ni3ls View Post
    You need to define your menu and precache it
    Yeah, but you don't have to do that in _menus.gsc. You can do that in any file. The way you said it, you implied it needed some sort of menu waiter in _menus.gsc. So, what you should have said was: "Don't forget to precache your menu".

  12. #10
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Lemme just say this one word:

    Precache.

Posting Permissions

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