overhaul of the phrases for consistency

renamed config files for adminmenu
cleaned up execcfg menu code

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401598
This commit is contained in:
David Anderson
2007-10-16 18:37:24 +00:00
parent 2b15d877aa
commit 5d72810449
24 changed files with 129 additions and 115 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ DisplayBanTargetMenu(client)
new Handle:menu = CreateMenu(MenuHandler_Ban);
decl String:title[100];
Format(title, sizeof(title), "%T:", "Vote Ban", client);
Format(title, sizeof(title), "%T:", "Ban vote", client);
SetMenuTitle(menu, title);
SetMenuExitBackButton(menu, true);
@@ -44,7 +44,7 @@ public AdminMenu_VoteBan(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote Ban", param);
Format(buffer, maxlength, "%T", "Ban vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
+2 -2
View File
@@ -25,7 +25,7 @@ DisplayKickTargetMenu(client)
new Handle:menu = CreateMenu(MenuHandler_Kick);
decl String:title[100];
Format(title, sizeof(title), "%T:", "Vote Kick", client);
Format(title, sizeof(title), "%T:", "Kick vote", client);
SetMenuTitle(menu, title);
SetMenuExitBackButton(menu, true);
@@ -43,7 +43,7 @@ public AdminMenu_VoteKick(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote Kick", param);
Format(buffer, maxlength, "%T", "Kick vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
+3 -5
View File
@@ -132,7 +132,7 @@ public AdminMenu_VoteMap(Handle:topmenu,
{
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Vote Map", param);
Format(buffer, maxlength, "%T", "Map vote", param);
}
else if (action == TopMenuAction_SelectOption)
{
@@ -200,7 +200,7 @@ public Action:Command_Votemap(client, args)
LoadMaps(Handle:menu)
{
decl String:mapPath[256];
BuildPath(Path_SM, mapPath, sizeof(mapPath), "configs/menu_maplist.ini");
BuildPath(Path_SM, mapPath, sizeof(mapPath), "configs/adminmenu_maplist.ini");
if (!FileExists(mapPath))
{
@@ -228,8 +228,6 @@ LoadMaps(Handle:menu)
RemoveAllMenuItems(menu);
}
LogMessage("[SM] Loading menu map list file [%s]", mapPath);
new Handle:file = OpenFile(mapPath, "rt");
if (file == INVALID_HANDLE)
{
@@ -298,4 +296,4 @@ LoadMapFolder(Handle:menu)
CloseHandle(mapDir);
return GetMenuItemCount(menu);
}
}