From 5e2eb7d67ae933b7566f1944d0bb7744da03d586 Mon Sep 17 00:00:00 2001 From: aura Date: Tue, 17 Feb 2026 23:42:09 +0100 Subject: move source stuff to its own folder --- sourcemod/scripting/include/smlib/menus.inc | 37 ----------------------------- 1 file changed, 37 deletions(-) delete mode 100644 sourcemod/scripting/include/smlib/menus.inc (limited to 'sourcemod/scripting/include/smlib/menus.inc') diff --git a/sourcemod/scripting/include/smlib/menus.inc b/sourcemod/scripting/include/smlib/menus.inc deleted file mode 100644 index 87f253e..0000000 --- a/sourcemod/scripting/include/smlib/menus.inc +++ /dev/null @@ -1,37 +0,0 @@ -#if defined _smlib_menus_included - #endinput -#endif -#define _smlib_menus_included - -#include -#include - -/** - * Adds an option to a menu with a String display but an integer - * identifying the option. - * - * @param menu Handle to the menu - * @param value Integer value for the option - * @param display Display text for the menu - */ -stock void Menu_AddIntItem(Menu menu, any value, char[] display) -{ - char buffer[INT_MAX_DIGITS + 1]; - IntToString(value, buffer, sizeof(buffer)); - menu.AddItem(buffer, display); -} - -/** - * Retrieves an integer-value choice from a menu, where the - * menu's information strings were created as integers. - * - * @param menu Handle to the menu - * @param param2 The item position selected from the menu. - * @return Integer choice from the menu, or 0 if the integer could not be parsed. - */ -stock any Menu_GetIntItem(Menu menu, any param2) -{ - char buffer[INT_MAX_DIGITS + 1]; - menu.GetItem(param2, buffer, sizeof(buffer)); - return StringToInt(buffer); -} -- cgit v1.2.3