68 cursorPos, cursorX, selectedPos, selectionDx: LongInt; |
68 cursorPos, cursorX, selectedPos, selectionDx: LongInt; |
69 LastKeyPressTick: LongWord; |
69 LastKeyPressTick: LongWord; |
70 |
70 |
71 |
71 |
72 const |
72 const |
73 colors: array[#0..#12] of TSDL_Color = ( |
73 colors: array[#0..#9] of TSDL_Color = ( |
74 (r:$FF; g:$FF; b:$FF; a:$FF), // #0 unused, feel free to take it for anything |
74 (r:$FF; g:$FF; b:$FF; a:$FF), // #0 unused, feel free to take it for anything |
75 (r:$FF; g:$FF; b:$FF; a:$FF), // #1 chat message [White] |
75 (r:$FF; g:$FF; b:$FF; a:$FF), // #1 chat message [White] |
76 (r:$FF; g:$00; b:$FF; a:$FF), // #2 action message [Purple] |
76 (r:$FF; g:$00; b:$FF; a:$FF), // #2 action message [Purple] |
77 (r:$90; g:$FF; b:$90; a:$FF), // #3 join/leave message [Lime] |
77 (r:$90; g:$FF; b:$90; a:$FF), // #3 join/leave message [Lime] |
78 (r:$FF; g:$FF; b:$A0; a:$FF), // #4 team message [Light Yellow] |
78 (r:$FF; g:$FF; b:$A0; a:$FF), // #4 team message [Light Yellow] |
79 (r:$FF; g:$00; b:$00; a:$FF), // #5 error messages [Red] |
79 (r:$FF; g:$00; b:$00; a:$FF), // #5 error messages [Red] |
80 (r:$00; g:$FF; b:$FF; a:$FF), // #6 input line [Light Blue] |
80 (r:$00; g:$FF; b:$FF; a:$FF), // #6 input line [Light Blue] |
81 (r:$FF; g:$80; b:$80; a:$FF), // #7 team gone [Light Red] |
81 (r:$FF; g:$80; b:$80; a:$FF), // #7 team gone [Light Red] |
82 (r:$FF; g:$D0; b:$80; a:$FF), // #8 team back [Light Orange] |
82 (r:$FF; g:$D0; b:$80; a:$FF), // #8 team back [Light Orange] |
83 (r:$DF; g:$DF; b:$DF; a:$FF), // #9 hog speech [Light Gray] |
83 (r:$DF; g:$DF; b:$DF; a:$FF) // #9 hog speech [Light Gray] |
84 (r:$FF; g:$00; b:$FF; a:$AF), // #10 music credits [Purple] |
|
85 (r:$00; g:$FF; b:$FF; a:$AF), // #11 map credits [Light Blue] |
|
86 (r:$FF; g:$D0; b:$80; a:$AF) // #12 theme credits [Light Orange] |
|
87 ); |
84 ); |
88 ChatCommandz: array [TChatCmd] of record |
85 ChatCommandz: array [TChatCmd] of record |
89 ChatCmd: string[31]; |
86 ChatCmd: string[31]; |
90 ProcedureCallChatCmd: string[31]; |
87 ProcedureCallChatCmd: string[31]; |
91 end = ( |
88 end = ( |
239 cl.color:= color; |
232 cl.color:= color; |
240 |
233 |
241 // set texture, note: variables cl.s and str will be different here if isInput |
234 // set texture, note: variables cl.s and str will be different here if isInput |
242 RenderChatLineTex(cl, str); |
235 RenderChatLineTex(cl, str); |
243 |
236 |
244 if credits then |
237 cl.Time:= RealTicks + ClDisplayDuration; |
245 cl.Time:= RealTicks + CreditsDisplayDur |
|
246 else |
|
247 cl.Time:= RealTicks + ClDisplayDuration; |
|
248 end; |
238 end; |
249 |
239 |
250 // For uStore texture recreation |
240 // For uStore texture recreation |
251 procedure ReloadLines; |
241 procedure ReloadLines; |
252 var i: LongWord; |
242 var i: LongWord; |