- removed incorrect information about DrawOption, renamed to DisplayOption

- renamed DrawTitle to DisplayTitle

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401531
This commit is contained in:
David Anderson
2007-10-02 14:48:44 +00:00
parent a130fede3a
commit bd89b6d126
5 changed files with 7 additions and 21 deletions
+1 -12
View File
@@ -19,26 +19,15 @@ public AdminMenu_CancelVote(Handle:topmenu,
String:buffer[],
maxlength)
{
if (action == TopMenuAction_DrawOption)
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Cancel vote", param);
if (IsVoteInProgress())
{
return ITEMDRAW_DEFAULT;
}
else
{
return ITEMDRAW_IGNORE;
}
}
else if (action == TopMenuAction_SelectOption)
{
PerformCancelVote(param);
RedisplayAdminMenu(topmenu, param);
}
return 0;
}
public Action:Command_CancelVote(client, args)
+1 -1
View File
@@ -39,7 +39,7 @@ public AdminMenu_Kick(Handle:topmenu,
String:buffer[],
maxlength)
{
if (action == TopMenuAction_DrawOption)
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Kick player", param);
}
+1 -1
View File
@@ -16,7 +16,7 @@ public AdminMenu_ReloadAdmins(Handle:topmenu,
String:buffer[],
maxlength)
{
if (action == TopMenuAction_DrawOption)
if (action == TopMenuAction_DisplayOption)
{
Format(buffer, maxlength, "%T", "Reload admins", param);
}