Raised This Month: $ Target: $400
 0% 

[ANY] Extra Menu API (1.4) [15-Oct-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
8137
Plugin Version:
1.4
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows plugins to create menus with more than 1-7 selectable entries and more functionality.
    Old 07-30-2022 , 12:12   [ANY] Extra Menu API (1.4) [15-Oct-2022]
    Reply With Quote #1






    About:
    • Creates extended menus with various features.
    • On it's own this plugin does nothing, it requires other plugins to utilize the features provided.



    Details:
    • Creates more than 1-7 selectable entries compared to default menus.
    • Various menu types:
      - Selectable option only
      - Toggle option on/off
      - Select through a list of options
      - Increment and decrement by a value, with default, minimum and maximum values
    • Supports translations (the whole menu needs to be added to the translations to function).
    • Supports adding multiple pages to select through, specify where a new page starts.



    Thanks:
    • flash_cat - For the request.
    • Sreaper - For various feature suggestions and testing.
    • Psykotik - For reviewing the code and coding suggestions.



    Cvars:

    Saved to extra_menu_api.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // Path to the sound to play when moving through the menu. Or "" for no sound.
    extra_menu_sound_move "buttons/button14.wav"

    // Path to the sound to play when clicking a menu option. Or "" for no sound.
    extra_menu_sound_click "buttons/combine_button7.wav" 



    Example Plugins:

    Extra Menu API - Test Plugin
    • Shows all the different selectable menu types
    • Shows adding an extra page of menu options
    • Shows usage for other plugins, to add and delete the menu
    • Creates the command sm_menutest to open the menu

    Extra Menu API - Test Translations
    • Shows a basic menu using translations.
    • Shows opening another menu when selecting an entry
    • Shows usage for other plugins, to add and delete the menu
    • Creates the command sm_menutrans to open the menu



    Natives and Forwards for developers: (see the extra_menu.inc include file for details)
    Spoiler




    Changes:
    Code:
    1.4 (15-Oct-2022)
        - New feature: Native "ExtraMenu_Create" can now create menus that use 1/2/3/4 to move and select instead of freezing the player and using W/A/S/D keys.
        - Added new "translations/extra_menu.phrases.txt" translation file to support the new menu type.
        - Changed to store the menu data in StringMaps, for lower memory and an unlimited number of menus.
        - This is still ultra fast to store and retrieve the menu data.
    
    1.3 (27-Aug-2022)
        - Fixed not deleting some handles when deleting a menu.
    
    1.2 (15-Aug-2022)
        - Fixed errors thrown when displaying a menu and the clients index is 0.
        - Increased the maximum length of rows to support multi-byte characters.
        - Added a "meter" option demonstration to the "extra_menu_test" plugin.
    
    1.1 (04-Aug-2022)
        - Fixed the button sounds not playing.
        - Fixed the menu not ending when interrupted by another menu.
    
    1.0 (30-Jul-2022)
        - Initial release.

    Installation:
    • Download the .zip and extract the files to their respective folders in your servers \addons\sourcemod\ folder.
    • Only the \sourcemod\plugins\extra_menu.smx is required to use the plugin, all other files are for developers to use.
    Attached Files
    File Type: zip extra_menu.zip (30.4 KB, 27 views)
    __________________

    Last edited by Silvers; 10-15-2022 at 06:22.
    Silvers is offline
    bigborther
    Junior Member
    Join Date: Feb 2014
    Location: china
    Old 07-30-2022 , 12:23   Re: [ANY] Extra Menu API (1.0) [30-Jul-2022]
    Reply With Quote #2

    Thanks for shareing, nice menu!
    bigborther is offline
    eyal282
    Veteran Member
    Join Date: Aug 2011
    Old 07-30-2022 , 17:35   Re: [ANY] Extra Menu API (1.0) [30-Jul-2022]
    Reply With Quote #3

    DEVZONES!!!

    This will be an insane addition to all zone related plugins
    __________________
    I am available to make plugins for pay.

    Discord: Eyal282#1334

    Last edited by eyal282; 07-30-2022 at 17:36.
    eyal282 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 08-15-2022 , 08:30   Re: [ANY] Extra Menu API (1.2) [15-Aug-2022]
    Reply With Quote #4

    Code:
    1.2 (15-Aug-2022)
        - Fixed errors thrown when displaying a menu and the clients index is 0.
        - Increased the maximum length of rows to support multi-byte characters.
        - Added a "meter" option demonstration to the "extra_menu_test" plugin.
    __________________
    Silvers is offline
    foxhound27
    AlliedModders Donor
    Join Date: Sep 2019
    Location: Argentina
    Old 09-29-2022 , 15:21   Re: [ANY] Extra Menu API (1.3) [27-Aug-2022]
    Reply With Quote #5

    Nice job, thank you bro!
    foxhound27 is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-15-2022 , 06:22   Re: [ANY] Extra Menu API (1.4) [15-Oct-2022]
    Reply With Quote #6

    Code:
    1.4 (15-Oct-2022)
        - New feature: Native "ExtraMenu_Create" can now create menus that use 1/2/3/4 to move and select instead of freezing the player and using W/A/S/D keys.
        - Added new "translations/extra_menu.phrases.txt" translation file to support the new menu type.
        - Changed to store the menu data in StringMaps, for lower memory and an unlimited number of menus.
        - This is still ultra fast to store and retrieve the menu data.
    __________________
    Silvers is offline
    Reply


    Thread Tools
    Display Modes

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

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:19.


    Powered by vBulletin®
    Copyright ©2000 - 2022, vBulletin Solutions, Inc.
    Theme made by Freecode