Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[ANY] Extra Menu API (1.0) [30-Jul-2022]


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
68747470733a2f2f692e696d6775722e636f6d2f


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.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 (26.0 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...