- adjusted the script-side MidPrint calls to honor the con_midconsolefont CVAR.

This commit is contained in:
Christoph Oelckers 2019-03-11 22:44:28 +01:00
parent f500414a61
commit c0d333ee56
4 changed files with 9 additions and 9 deletions

View file

@ -127,7 +127,7 @@ class PuzzleItem : Inventory
Owner.A_PlaySound ("*puzzfail", CHAN_VOICE); Owner.A_PlaySound ("*puzzfail", CHAN_VOICE);
if (Owner.CheckLocalView()) if (Owner.CheckLocalView())
{ {
Console.MidPrint ("SmallFont", PuzzFailMessage, true); Console.MidPrint (null, PuzzFailMessage, true);
} }
return false; return false;
} }

View file

@ -108,13 +108,13 @@ class AlienSpectre1 : SpectralMonster
} }
else if (cls == "AlienSpectre2") else if (cls == "AlienSpectre2")
{ {
Console.MidPrint("SmallFont", "$TXT_KILLED_BISHOP"); Console.MidPrint(null, "$TXT_KILLED_BISHOP");
log = 74; log = 74;
player.GiveInventoryType ("QuestItem21"); player.GiveInventoryType ("QuestItem21");
} }
else if (cls == "AlienSpectre3") else if (cls == "AlienSpectre3")
{ {
Console.MidPrint("SmallFont", "$TXT_KILLED_ORACLE"); Console.MidPrint(null, "$TXT_KILLED_ORACLE");
// If there are any Oracles still alive, kill them. // If there are any Oracles still alive, kill them.
ThinkerIterator it = ThinkerIterator.Create("Oracle"); ThinkerIterator it = ThinkerIterator.Create("Oracle");
Actor oracle; Actor oracle;
@ -144,7 +144,7 @@ class AlienSpectre1 : SpectralMonster
} }
else if (cls == "AlienSpectre4") else if (cls == "AlienSpectre4")
{ {
Console.MidPrint("SmallFont", "$TXT_KILLED_MACIL"); Console.MidPrint(null, "$TXT_KILLED_MACIL");
player.GiveInventoryType ("QuestItem24"); player.GiveInventoryType ("QuestItem24");
if (player.FindInventory ("QuestItem25") == null) if (player.FindInventory ("QuestItem25") == null)
{ // Richter has taken over. Macil is a snake. { // Richter has taken over. Macil is a snake.
@ -157,7 +157,7 @@ class AlienSpectre1 : SpectralMonster
} }
else if (cls == "AlienSpectre5") else if (cls == "AlienSpectre5")
{ {
Console.MidPrint("SmallFont", "$TXT_KILLED_LOREMASTER"); Console.MidPrint(null, "$TXT_KILLED_LOREMASTER");
player.GiveInventoryType ("QuestItem26"); player.GiveInventoryType ("QuestItem26");
if (!multiplayer) if (!multiplayer)

View file

@ -531,7 +531,7 @@ class Scanner : PowerupGiver
{ {
if (Owner.CheckLocalView()) if (Owner.CheckLocalView())
{ {
Console.MidPrint("SmallFont", "$TXT_NEEDMAP"); Console.MidPrint(null, "$TXT_NEEDMAP");
} }
return false; return false;
} }
@ -632,7 +632,7 @@ class RaiseAlarm : DummyStrifeItem
dropper.target.SoundAlert(dropper.target); dropper.target.SoundAlert(dropper.target);
if (dropper.target.CheckLocalView()) if (dropper.target.CheckLocalView())
{ {
Console.MidPrint(SmallFont, "$TXT_YOUFOOL"); Console.MidPrint(null, "$TXT_YOUFOOL");
} }
} }
Destroy (); Destroy ();
@ -672,7 +672,7 @@ class CloseDoor222 : DummyStrifeItem
{ {
if (dropper.target.CheckLocalView()) if (dropper.target.CheckLocalView())
{ {
Console.MidPrint(SmallFont, "$TXT_YOUREDEAD"); Console.MidPrint(null, "$TXT_YOUREDEAD");
} }
dropper.target.SoundAlert(dropper.target); dropper.target.SoundAlert(dropper.target);
} }

View file

@ -32,7 +32,7 @@ extend class Actor
if (msg != msgid) // if both are identical there was no message of this name in the stringtable. if (msg != msgid) // if both are identical there was no message of this name in the stringtable.
{ {
Console.MidPrint ("SmallFont", msg); Console.MidPrint (null, msg);
} }
} }