Skip to content

Commit 1c081ee

Browse files
author
Motive
committed
- Removed support for custom Output dialog.
- Added custom UI definitions to Cortex in the Map Data folder. See the README on how to implement this properly. - The default chat area is no longer visible, and will no longer be briefly visible before it is erased whenever you type a message. - The default output area has been moved and revamped to be prettier and fixed a number of issues with displaying unwanted characters.
1 parent 54a8925 commit 1c081ee

File tree

8 files changed

+715
-119
lines changed

8 files changed

+715
-119
lines changed

Chat/ChatHandler.galaxy

-3
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,5 @@ bool libcrtx_chat_receivedevent(bool testConds, bool runActions)
215215
}
216216

217217
libcrtx_chat_parsechat( triggerPlayer, chatMsg, libcrtx_chat_recursion_limit );
218-
219-
// Clear everyone's chat of the filth. FILTH I SAY.
220-
UIClearMessages( PlayerGroupAll(), c_messageAreaChat );
221218
return true;
222219
}

Common/Global.galaxy

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ include "Cortex/Common/Debug.galaxy"
7373
include "Cortex/Common/Settings.galaxy"
7474
include "Cortex/Common/Variables.galaxy"
7575
include "Cortex/Common/Admin.galaxy"
76-
include "Cortex/Common/Output.galaxy"
7776
include "Cortex/Common/Utility.galaxy"
7877
include "Cortex/Common/ComputerAI.galaxy"
7978
include "Cortex/Common/SharedData.galaxy"

Common/Output.galaxy

-107
This file was deleted.

Common/Utility.galaxy

+4-5
Original file line numberDiff line numberDiff line change
@@ -239,19 +239,18 @@ string libcrtx_color_to_string(color c)
239239
IntToString(Color255FromFixed(ColorGetComponent(c, c_colorComponentBlue)));
240240
}
241241

242-
// hacky code because blizzard sucked at implementing chat stuff. :(
243242
// writes to the Cortex chat area
244243
void libcrtx_write(playergroup p, string s)
245244
{
246-
libcrtx_output_addline( p, StringToText(s) );
247-
//UIDisplayMessage( p, c_messageAreaDebug, StringToText(" " + s) );
245+
//libcrtx_output_addline( p, StringToText(s) );
246+
UIDisplayMessage( p, c_messageAreaDebug, StringToText(s) );
248247
}
249248

250249
// writes to the cortex chat area.
251250
void libcrtx_write_text(playergroup p, text t)
252251
{
253-
libcrtx_output_addline( p, t );
254-
//UIDisplayMessage( p, c_messageAreaDebug, StringToText(" ") + t );
252+
//libcrtx_output_addline( p, t );
253+
UIDisplayMessage( p, c_messageAreaDebug, t );
255254
}
256255

257256
// Writes an error in the EventPlayer() context.

Cortex.galaxy

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ void libcrtx_InitLib()
6060

6161
// cortex main init.
6262
libcrtx_settings_initdefault();
63-
libcrtx_output_init();
6463

6564
if( libcrtx_MapCheck() ) {
6665
libcrtx_toolkit_init();

Events/Events.galaxy

-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ bool libcrtx_event_periodic_tick(bool checkConds, bool runActions)
124124
i = i + 1;
125125
}
126126
libcrtx_ai_update();
127-
libcrtx_output_refresh();
128127
return true;
129128
}
130129

0 commit comments

Comments
 (0)