mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 19:38:25 +00:00
Fixes for issue #318
This commit is contained in:
parent
95ed069c6b
commit
7e56bd344f
@ -1016,8 +1016,8 @@ void ShowPanel(int client, int step)
|
|||||||
FormatEx(sPanelItem, 64, "%T", "AbortZoneCreation", client);
|
FormatEx(sPanelItem, 64, "%T", "AbortZoneCreation", client);
|
||||||
pPanel.DrawItem(sPanelItem);
|
pPanel.DrawItem(sPanelItem);
|
||||||
|
|
||||||
char[] sDisplay = new char[16];
|
char[] sDisplay = new char[64];
|
||||||
FormatEx(sDisplay, 16, "%T", "GridSnap", client, gI_GridSnap[client]);
|
FormatEx(sDisplay, 64, "%T", "GridSnap", client, gI_GridSnap[client]);
|
||||||
pPanel.DrawItem(sDisplay);
|
pPanel.DrawItem(sDisplay);
|
||||||
|
|
||||||
pPanel.Send(client, ZoneCreation_Handler, 600);
|
pPanel.Send(client, ZoneCreation_Handler, 600);
|
||||||
@ -1469,7 +1469,10 @@ public int ZoneEdge_Handler(Menu menu, MenuAction action, int param1, int param2
|
|||||||
gV_Fix2[param1][iEdge] += (bIncrease? gF_Modifier[param1]:-gF_Modifier[param1]);
|
gV_Fix2[param1][iEdge] += (bIncrease? gF_Modifier[param1]:-gF_Modifier[param1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
Shavit_PrintToChat(param1, "%T", "ZoneEdgeChange", param1, sEdges[iEdge], gS_ChatStrings[sMessageVariable2], (bIncrease)? "increased":"decreased", gS_ChatStrings[sMessageText], gS_ChatStrings[sMessageVariable], gF_Modifier[param1], gS_ChatStrings[sMessageText]);
|
char changeText[64];
|
||||||
|
Format(changeText, sizeof(changeText), "%T", (bIncrease)? "ZoneIncreased":"ZoneDecreased", param1);
|
||||||
|
|
||||||
|
Shavit_PrintToChat(param1, "%T", "ZoneEdgeChange", param1, sEdges[iEdge], gS_ChatStrings[sMessageVariable2], changeText, gS_ChatStrings[sMessageText], gS_ChatStrings[sMessageVariable], gF_Modifier[param1], gS_ChatStrings[sMessageText]);
|
||||||
|
|
||||||
CreateWidthLengthMenu(param1, GetMenuSelectionPosition());
|
CreateWidthLengthMenu(param1, GetMenuSelectionPosition());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,6 +94,10 @@
|
|||||||
{
|
{
|
||||||
"en" "Successfully placed custom spawn!"
|
"en" "Successfully placed custom spawn!"
|
||||||
}
|
}
|
||||||
|
"ZoneDecreased"
|
||||||
|
{
|
||||||
|
"en" "decreased"
|
||||||
|
}
|
||||||
"ZoneEditConfirm"
|
"ZoneEditConfirm"
|
||||||
{
|
{
|
||||||
"en" "Confirm?"
|
"en" "Confirm?"
|
||||||
@ -120,6 +124,10 @@
|
|||||||
"#format" "{1:s},{2:c},{3:s},{4:c},{5:c},{6:.01f},{7:c}"
|
"#format" "{1:s},{2:c},{3:s},{4:c},{5:c},{6:.01f},{7:c}"
|
||||||
"en" "{1} edge {2}{3}{4} by {5}{6} degrees{7}."
|
"en" "{1} edge {2}{3}{4} by {5}{6} degrees{7}."
|
||||||
}
|
}
|
||||||
|
"ZoneIncreased"
|
||||||
|
{
|
||||||
|
"en" "increased"
|
||||||
|
}
|
||||||
"ZoneMenuDeleteTitle"
|
"ZoneMenuDeleteTitle"
|
||||||
{
|
{
|
||||||
"en" "Delete a zone:\nPressing a zone will delete it. This action CANNOT BE REVERTED!"
|
"en" "Delete a zone:\nPressing a zone will delete it. This action CANNOT BE REVERTED!"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user