Browse Source

Fix char prefix not being colored in info query

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
5180d822f9
  1. 15
      sources/InfoQueryHandler/InfoQueryHandler.uc

15
sources/InfoQueryHandler/InfoQueryHandler.uc

@ -67,6 +67,7 @@ public final static function InfoQueryHandler_OnQuery_Slot OnHelp(
Text header) Text header)
{ {
local InfoQueryHandler_OnQuery_Slot newSlot; local InfoQueryHandler_OnQuery_Slot newSlot;
StaticConstructor(); StaticConstructor();
newSlot = InfoQueryHandler_OnQuery_Slot( newSlot = InfoQueryHandler_OnQuery_Slot(
default.onHelpSignal.NewSlot(receiver)); default.onHelpSignal.NewSlot(receiver));
@ -87,6 +88,7 @@ public final static function InfoQueryHandler_OnQuery_Slot OnStatus(
Text header) Text header)
{ {
local InfoQueryHandler_OnQuery_Slot newSlot; local InfoQueryHandler_OnQuery_Slot newSlot;
StaticConstructor(); StaticConstructor();
newSlot = InfoQueryHandler_OnQuery_Slot( newSlot = InfoQueryHandler_OnQuery_Slot(
default.onStatusSignal.NewSlot(receiver)); default.onStatusSignal.NewSlot(receiver));
@ -108,6 +110,7 @@ public final static function InfoQueryHandler_OnQuery_Slot OnVersion(
Text header) Text header)
{ {
local InfoQueryHandler_OnQuery_Slot newSlot; local InfoQueryHandler_OnQuery_Slot newSlot;
StaticConstructor(); StaticConstructor();
newSlot = InfoQueryHandler_OnQuery_Slot( newSlot = InfoQueryHandler_OnQuery_Slot(
default.onVersionSignal.NewSlot(receiver)); default.onVersionSignal.NewSlot(receiver));
@ -129,6 +132,7 @@ public final static function InfoQueryHandler_OnQuery_Slot OnCredits(
Text header) Text header)
{ {
local InfoQueryHandler_OnQuery_Slot newSlot; local InfoQueryHandler_OnQuery_Slot newSlot;
StaticConstructor(); StaticConstructor();
newSlot = InfoQueryHandler_OnQuery_Slot( newSlot = InfoQueryHandler_OnQuery_Slot(
default.onCreditsSignal.NewSlot(receiver)); default.onCreditsSignal.NewSlot(receiver));
@ -224,12 +228,15 @@ private final static function StopOutput()
private final static function OutAcediaHelp() private final static function OutAcediaHelp()
{ {
local Text prefix; local MutableText prefix, builder;
local MutableText builder;
default.currentOutput default.currentOutput
.Flush() .Flush()
.WriteLine(T(default.TACEDIA_HELP)); .WriteLine(T(default.TACEDIA_HELP));
prefix = class'Commands_Feature'.static.GetChatPrefix(); prefix = class'Commands_Feature'.static
.GetChatPrefix()
.IntoMutableText()
.ChangeDefaultColor(__().color.TextEmphasis);
if (!class'Commands_Feature'.static.IsEnabled()) { if (!class'Commands_Feature'.static.IsEnabled()) {
default.currentOutput.WriteLine(T(default.TACEDIA_HELP_COMMANDS_NO)); default.currentOutput.WriteLine(T(default.TACEDIA_HELP_COMMANDS_NO));
} }
@ -306,7 +313,7 @@ defaultproperties
TACEDIA_ACKNOWLEDGMENT = 11 TACEDIA_ACKNOWLEDGMENT = 11
stringConstants(11) = "Special thanks for NikC- and Chaos for suggestions, testing and discussion" stringConstants(11) = "Special thanks for NikC- and Chaos for suggestions, testing and discussion"
TPREFIX = 12 TPREFIX = 12
stringConstants(12) = "{$TextEmphasis %PREFIX%}" stringConstants(12) = "%PREFIX%"
TSEPARATOR = 13 TSEPARATOR = 13
stringConstants(13) = "=============================" stringConstants(13) = "============================="
} }
Loading…
Cancel
Save