Skip to content
Permalink
Browse files

Workaround for colored hint text

  • Loading branch information
Bara committed Nov 19, 2019
1 parent 82a88a8 commit caacde4799ab3be5cae766eae69d5d3e362a71eb
Showing with 6 additions and 6 deletions.
  1. +4 −4 addons/sourcemod/scripting/ttt/ttt.sp
  2. +2 −2 addons/sourcemod/scripting/ttt/ttt_shop.sp
@@ -827,7 +827,7 @@ public Action Timer_SelectionCountdown(Handle hTimer)
{
LoopValidClients(i)
{
Format(centerText, sizeof(centerText), "<pre>%T</pre>", "RoundStartedCenter", i, g_cRoundStartedFontSize.IntValue, g_sRoundStartedFontColor);
Format(centerText, sizeof(centerText), "#SFUI_Notice_NewWaveBegun_\n<pre>%T</pre>", "RoundStartedCenter", i, g_cRoundStartedFontSize.IntValue, g_sRoundStartedFontColor);
PrintCenterText(i, centerText);
}
}
@@ -843,7 +843,7 @@ public Action Timer_SelectionCountdown(Handle hTimer)

LoopValidClients(i)
{
Format(centerText, sizeof(centerText), "<pre>%T</pre>", "RoundStartCenter", i, g_cRoundStartFontSize.IntValue, g_sRoundStartFontColor, timeLeft);
Format(centerText, sizeof(centerText), "#SFUI_Notice_NewWaveBegun_\n<pre>%T</pre>", "RoundStartCenter", i, g_cRoundStartFontSize.IntValue, g_sRoundStartFontColor, timeLeft);
PrintCenterText(i, centerText);
}

@@ -3705,7 +3705,7 @@ int addKarma(int client, int karma, bool message = false)
if (g_cmessageTypKarma.IntValue == 1)
{
char sBuffer[MAX_MESSAGE_LENGTH];
Format(sBuffer, sizeof(sBuffer), "<pre>%T</pre>", "karma earned", client, karma, g_iKarma[client]);
Format(sBuffer, sizeof(sBuffer), "#SFUI_Notice_NewWaveBegun_\n<pre>%T</pre>", "karma earned", client, karma, g_iKarma[client]);
PrintCenterText(client, sBuffer);
}
else
@@ -3764,7 +3764,7 @@ int subtractKarma(int client, int karma, bool message = false)
if (g_cmessageTypKarma.IntValue == 1)
{
char sBuffer[MAX_MESSAGE_LENGTH];
Format(sBuffer, sizeof(sBuffer), "<pre>%T</pre>", "lost karma", client, karma, g_iKarma[client]);
Format(sBuffer, sizeof(sBuffer), "#SFUI_Notice_NewWaveBegun_\n<pre>%T</pre>", "lost karma", client, karma, g_iKarma[client]);
PrintCenterText(client, sBuffer);
}
else
@@ -1191,7 +1191,7 @@ void addCredits(int client, int credits, bool message = false)
char sBuffer[MAX_MESSAGE_LENGTH];
Format(sBuffer, sizeof(sBuffer), "%T", "credits earned", client, credits, g_iCredits[client]);
CFormatColor(sBuffer, sizeof(sBuffer), client);
Format(sBuffer, sizeof(sBuffer), "<pre>%s</pre>", sBuffer);
Format(sBuffer, sizeof(sBuffer), "#SFUI_Notice_NewWaveBegun_\n<pre>%s</pre>", sBuffer);
PrintCenterText(client, sBuffer);
}
else
@@ -1238,7 +1238,7 @@ void subtractCredits(int client, int credits, bool message = false)
char sBuffer[MAX_MESSAGE_LENGTH];
Format(sBuffer, sizeof(sBuffer), "%T", "lost credits", client, credits, g_iCredits[client]);
CFormatColor(sBuffer, sizeof(sBuffer), client);
Format(sBuffer, sizeof(sBuffer), "<pre>%s</pre>", sBuffer);
Format(sBuffer, sizeof(sBuffer), "#SFUI_Notice_NewWaveBegun_\n<pre>%s</pre>", sBuffer);
PrintCenterText(client, sBuffer);
}
else

0 comments on commit caacde4

Please sign in to comment.
You can’t perform that action at this time.