-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathConEditPlus.Colors.pas
554 lines (380 loc) · 14.3 KB
/
ConEditPlus.Colors.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
// ToDo: Move all colors here
unit ConEditPlus.Colors;
interface
uses
System.SysUtils, Vcl.Graphics;
type
TEventListColors = record
SpeechBG: TColor; // Regular speech background color
SpeechBGNoAudio: TColor; // Speech without audio: background
SpeechText: TColor; // Speech text color
PlayerSpeechBG: TColor; // Player speech
PlayerSpeechBindName: TColor; // Player BindName Text color
PlayerSpeechText: TColor; // Player speech text color
ChoiceBG: TColor; // choice background
ChoiceBGNoAudio: TColor; // choice without audio
ChoiceText: TColor; // choice text color
ChoiceFlagsText: TColor; // choice flags text color
SetFlagBG: TColor; // SetFlag background
SetFlagText: TColor; // SetFlag text color
CheckFlagBG: TColor;
CheckFlagText: TColor;
CheckObjectBG: TColor;
CheckObjectText: TColor;
TransferObjectBG: TColor;
TransferObjectText: TColor;
MoveCameraBG: TColor;
MoveCameraText: TColor;
AnimationBG: TColor;
AnimationText: TColor;
TradeBG: TColor;
TradeText: TColor;
JumpBG: TColor;
JumpText: TColor;
JumpLink: TColor; // "Jump to this conversation..." link color
RandomBG: TColor;
RandomText: TColor;
RandomLabels: TColor; // list of labels
TriggerBG: TColor;
TriggerText: TColor;
AddGoalBG: TColor;
AddGoalText: TColor;
AddNoteBG: TColor;
AddNoteText: TColor;
AddSkillPointsBG: TColor;
AddSkillPointsText: TColor;
AddCreditsBG: TColor;
AddCreditsText: TColor;
CheckPersonaBG: TColor;
CheckPersonaText: TColor;
CommentBG: TColor;
CommentText: TColor;
EndBG: TColor; // No text!
HighlightEvent: TColor; // Selected event
HighlightEventFrom: TColor; // Selected Event first color of gradient fill
HighlightEventTo: TColor; // Selected Event second color of gradient fill
GridBG: TColor; // event separator first color
GridColor: TColor; // event separator second color
EventHeaderText: TColor; // Event name (Speech, Choice, etc.)
RelatedEventFrom: TColor; // Events, referenced by selected event (and vice versa), first color of gradient
RelatedEventTo: TColor; // Events, referenced by selected event (and vice versa), second color of gradient
ErrorEventFrom: TColor; // Event with error, first (left) color
ErrorEventTo: TColor; // Event with error, second (right) color
EventWithLabel: TColor; // Left part of the event, only if contains a label
EventLabelText: TColor; // ...and label text color
EventListBG: TColor;
// ß òåáå äîëæíà åù¸ è ñðàâíåíèå ðåàëèçîâàòü? À ÷åãî ñàì íå óìååøü?
class operator Equal(const Left, Right: TEventListColors): Boolean;
end;
const // Default colors for regular mode
DefaultTEventsColors: TEventListColors =
(
SpeechBG: $C0DCC0;
SpeechBGNoAudio: $FFFF00;
SpeechText: clBlack;
PlayerSpeechBG: $DCF5F5; // Beige
PlayerSpeechBindName: $800000;
PlayerSpeechText: clNavy;
ChoiceBG: $00FFFAC8;
ChoiceBGNoAudio: $00C0FFFF;
ChoiceText: clBlack;
ChoiceFlagsText: clBlue;
SetFlagBG: $00F0F0F0;
SetFlagText: clBlack;
CheckFlagBG: $00F5F5F5;
CheckFlagText: clBlack;
CheckObjectBG: $00F0F0F0;
CheckObjectText: clBlack;
TransferObjectBG: $00F5F5F5;
TransferObjectText: clBlack;
MoveCameraBG: $00F0F0F0;
MoveCameraText: clBlack;
AnimationBG: $00F0F0F0;
AnimationText: clBlack;
TradeBG: clWhite;
TradeText: clBlack;
JumpBG: $00FAFFF0;
JumpText: clBlack;
JumpLink: clBlue;
RandomBG: $00F5F5F5;
RandomText: clBlack;
RandomLabels: clBlue;
TriggerBG: $00F0FFF0;
TriggerText: clBlack;
AddGoalBG: $00FFFFF5;
AddGoalText: clBlack;
AddNoteBG: $00F0FFF0;
AddNoteText: clBlack;
AddSkillPointsBG: $00F5F0F5;
AddSkillPointsText: clBlue;
AddCreditsBG: $00FFF4F5;
AddCreditsText: clBlack;
CheckPersonaBG: $00F4F4FF;
CheckPersonaText: clBlack;
CommentBG: $00EEEEEE;
CommentText: clBlack;
EndBG: clWhite;
HighlightEvent: $701919; //5789784; //$701919; // HighlightEvent: 5789784;
HighlightEventFrom: 16767927;
HighlightEventTo: 16777215;
GridBG: clWhite;
GridColor:$808080;
EventHeaderText: clBlack;
RelatedEventFrom: clYellow;
RelatedEventTo: $F0FBFF;
ErrorEventFrom: $00A5FF;
ErrorEventTo: clRed;
EventWithLabel: clLime;
EventLabelText: clMaroon;
EventListBG: clWhite;
);
const // Softer colors for regular mode
SofterTEventsColors: TEventListColors =
(
SpeechBG: $D8E8D8; // softer green
SpeechBGNoAudio: $FFFFE0; // light yellow
SpeechText: clBlack;
PlayerSpeechBG: $E0F5F5; // light beige
PlayerSpeechBindName: $A0522D; // sienna
PlayerSpeechText: clNavy;
ChoiceBG: $E6FFFA; // light cyan
ChoiceBGNoAudio: $E0FFFF; // very light cyan
ChoiceText: clBlack;
ChoiceFlagsText: clBlue;
SetFlagBG: $F0F0F0;
SetFlagText: clBlack;
CheckFlagBG: $F5F5F5;
CheckFlagText: clBlack;
CheckObjectBG: $F0F0F0;
CheckObjectText: clBlack;
TransferObjectBG: $F5F5F5;
TransferObjectText: clBlack;
MoveCameraBG: $F0F0F0;
MoveCameraText: clBlack;
AnimationBG: $F0F0F0;
AnimationText: clBlack;
TradeBG: clWhite;
TradeText: clBlack;
JumpBG: $F0FFF0; // softer green
JumpText: clBlack;
JumpLink: clBlue;
RandomBG: $F5F5F5;
RandomText: clBlack;
RandomLabels: clBlue;
TriggerBG: $F0FFF0; // light green
TriggerText: clBlack;
AddGoalBG: $FFFFF5; // very light yellow
AddGoalText: clBlack;
AddNoteBG: $F0FFF0; // light green
AddNoteText: clBlack;
AddSkillPointsBG: $F5F0F5; // light pink
AddSkillPointsText: clBlue;
AddCreditsBG: $FFF4F5; // very light pink
AddCreditsText: clBlack;
CheckPersonaBG: $F4F4FF; // very light lavender
CheckPersonaText: clBlack;
CommentBG: $EEEEEE;
CommentText: clBlack;
EndBG: clWhite;
HighlightEvent: $FFA07A; // light salmon
HighlightEventFrom: $FFE4E1; // misty rose
HighlightEventTo: $FFF5EE; // seashell
GridBG: clWhite;
GridColor: $D3D3D3; // light gray
EventHeaderText: clBlack;
RelatedEventFrom: $FFFFE0; // light yellow
RelatedEventTo: $F0F8FF; // alice blue
ErrorEventFrom: clYellow;
ErrorEventTo: clRed;
EventWithLabel: $98FB98; // pale green
EventLabelText: $8B4513; // saddle brown
EventListBG: clWhite;
);
const
SofterDarkerTEventsColors: TEventListColors =
(
SpeechBG: $2E2E2E; // dark gray
SpeechBGNoAudio: $4E4E4E; // medium gray
SpeechText: clWhite;
PlayerSpeechBG: $3E4E4E; // darker beige
PlayerSpeechBindName: clSilver;
PlayerSpeechText: $ADD8E6; // light blue
ChoiceBG: $5E6E6E; // medium cyan
ChoiceBGNoAudio: $4E6E6E; // darker cyan
ChoiceText: clWhite;
ChoiceFlagsText: $87CEEB; // sky blue
SetFlagBG: $3A3A3A;
SetFlagText: clWhite;
CheckFlagBG: $434343;
CheckFlagText: clWhite;
CheckObjectBG: $3A3A3A;
CheckObjectText: clWhite;
TransferObjectBG: $434343;
TransferObjectText: clWhite;
MoveCameraBG: $3A3A3A;
MoveCameraText: clWhite;
AnimationBG: $3A3A3A;
AnimationText: clWhite;
TradeBG: $2E2E2E;
TradeText: clWhite;
JumpBG: $3E4E4E; // darker green
JumpText: clWhite;
JumpLink: $87CEFA; // light sky blue
RandomBG: $434343;
RandomText: clWhite;
RandomLabels: $87CEEB; // sky blue
TriggerBG: $3E4E4E; // darker green
TriggerText: clWhite;
AddGoalBG: $4E4E4E; // medium gray
AddGoalText: clWhite;
AddNoteBG: $3E4E4E; // darker green
AddNoteText: clWhite;
AddSkillPointsBG: $5E3E5E; // medium pink
AddSkillPointsText: $87CEEB; // sky blue
AddCreditsBG: $4E3E4E; // dark pink
AddCreditsText: clWhite;
CheckPersonaBG: $3E3E5E; // dark lavender
CheckPersonaText: clWhite;
CommentBG: $2E2E2E;
CommentText: clWhite;
EndBG: $2E2E2E;
HighlightEvent: $00804000;
HighlightEventFrom: $8B0000; // dark red
HighlightEventTo: $8B4513; // saddle brown
GridBG: $2E2E2E;
GridColor: $696969; // dim gray
EventHeaderText: clWhite;
RelatedEventFrom: $4E4E4E; // medium gray
RelatedEventTo: $5F9EA0; // cadet blue
ErrorEventFrom: $0000D5D5;
ErrorEventTo: $000000D5;
EventWithLabel: $32CD32; // lime green
EventLabelText: clSilver;
EventListBG: clBlack;
);
const // Shades of gray for dark mode
ShadesOfGrayTEventsColors: TEventListColors =
(
SpeechBG: $1A1A1A; // very dark gray
SpeechBGNoAudio: $333333; // dark gray
SpeechText: clWhite;
PlayerSpeechBG: $2B2B2B; // dark gray
PlayerSpeechBindName: $A9A9A9; // dark gray
PlayerSpeechText: $D3D3D3; // light gray
ChoiceBG: $3A3A3A; // medium dark gray
ChoiceBGNoAudio: $4F4F4F; // medium gray
ChoiceText: clWhite;
ChoiceFlagsText: $B0B0B0; // light gray
SetFlagBG: $2E2E2E;
SetFlagText: clWhite;
CheckFlagBG: $383838;
CheckFlagText: clWhite;
CheckObjectBG: $2E2E2E;
CheckObjectText: clWhite;
TransferObjectBG: $383838;
TransferObjectText: clWhite;
MoveCameraBG: $2E2E2E;
MoveCameraText: clWhite;
AnimationBG: $2E2E2E;
AnimationText: clWhite;
TradeBG: $1A1A1A;
TradeText: clWhite;
JumpBG: $2B2B2B; // dark gray
JumpText: clWhite;
JumpLink: $B0C4DE; // light steel blue
RandomBG: $383838;
RandomText: clWhite;
RandomLabels: $B0B0B0; // light gray
TriggerBG: $2B2B2B; // dark gray
TriggerText: clWhite;
AddGoalBG: $333333; // dark gray
AddGoalText: clWhite;
AddNoteBG: $2B2B2B; // dark gray
AddNoteText: clWhite;
AddSkillPointsBG: $3A2A3A; // dark pink
AddSkillPointsText: $B0B0B0; // light gray
AddCreditsBG: $3A2A3A; // dark pink
AddCreditsText: clWhite;
CheckPersonaBG: $2A2A3A; // dark lavender
CheckPersonaText: clWhite;
CommentBG: $1A1A1A;
CommentText: clWhite;
EndBG: $1A1A1A;
HighlightEvent: $505050; // medium gray
HighlightEventFrom: $696969; // dim gray
HighlightEventTo: $808080; // gray
GridBG: $1A1A1A;
GridColor: $A9A9A9; // dark gray
EventHeaderText: clWhite;
RelatedEventFrom: clSilver; // dark gray
RelatedEventTo: clGray; // medium gray
ErrorEventFrom: clWebDarkOrange;
ErrorEventTo: clWebMoccasin;
EventWithLabel: $2E8B57; // sea green
EventLabelText: clWhite; // dark red
EventListBG: clBlack;
);
implementation
{ TEventListColors }
class operator TEventListColors.Equal(const Left, Right: TEventListColors): Boolean;
begin
Result := (Left.SpeechBG = Right.SpeechBG) and
(Left.SpeechBGNoAudio = Right.SpeechBGNoAudio) and
(Left.SpeechText = Right.SpeechText) and
(Left.PlayerSpeechBG = Right.PlayerSpeechBG) and
(Left.PlayerSpeechBindName = Right.PlayerSpeechBindName) and
(Left.PlayerSpeechText = Right.PlayerSpeechText) and
(Left.ChoiceBG = Right.ChoiceBG) and
(Left.ChoiceBGNoAudio = Right.ChoiceBGNoAudio) and
(Left.ChoiceText = Right.ChoiceText) and
(Left.ChoiceFlagsText = Right.ChoiceFlagsText) and
(Left.SetFlagBG = Right.SetFlagBG) and
(Left.SetFlagText = Right.SetFlagText) and
(Left.CheckFlagBG = Right.CheckFlagBG) and
(Left.CheckFlagText = Right.CheckFlagText) and
(Left.CheckObjectBG = Right.CheckObjectBG) and
(Left.CheckObjectText = Right.CheckObjectText) and
(Left.TransferObjectBG = Right.TransferObjectBG) and
(Left.TransferObjectText = Right.TransferObjectText) and
(Left.MoveCameraBG = Right.MoveCameraBG) and
(Left.MoveCameraText = Right.MoveCameraText) and
(Left.AnimationBG = Right.AnimationBG) and
(Left.AnimationText = Right.AnimationText) and
(Left.TradeBG = Right.TradeBG) and
(Left.TradeText = Right.TradeText) and
(Left.JumpBG = Right.JumpBG) and
(Left.JumpText = Right.JumpText) and
(Left.JumpLink = Right.JumpLink) and
(Left.RandomBG = Right.RandomBG) and
(Left.RandomText = Right.RandomText) and
(Left.RandomLabels = Right.RandomLabels) and
(Left.TriggerBG = Right.TriggerBG) and
(Left.TriggerText = Right.TriggerText) and
(Left.AddGoalBG = Right.AddGoalBG) and
(Left.AddGoalText = Right.AddGoalText) and
(Left.AddNoteBG = Right.AddNoteBG) and
(Left.AddNoteText = Right.AddNoteText) and
(Left.AddSkillPointsBG = Right.AddSkillPointsBG) and
(Left.AddSkillPointsText = Right.AddSkillPointsText) and
(Left.AddCreditsBG = Right.AddCreditsBG) and
(Left.AddCreditsText = Right.AddCreditsText) and
(Left.CheckPersonaBG = Right.CheckPersonaBG) and
(Left.CheckPersonaText = Right.CheckPersonaText) and
(Left.CommentBG = Right.CommentBG) and
(Left.CommentText = Right.CommentText) and
(Left.EndBG = Right.EndBG) and
(Left.HighlightEvent = Right.HighlightEvent) and
(Left.HighlightEventFrom = Right.HighlightEventFrom) and
(Left.HighlightEventTo = Right.HighlightEventTo) and
(Left.GridBG = Right.GridBG) and
(Left.GridColor = Right.GridColor) and
(Left.EventHeaderText = Right.EventHeaderText) and
(Left.RelatedEventFrom = Right.RelatedEventFrom) and
(Left.RelatedEventTo = Right.RelatedEventTo) and
(Left.ErrorEventFrom = Right.ErrorEventFrom) and
(Left.ErrorEventTo = Right.ErrorEventTo) and
(Left.EventWithLabel = Right.EventWithLabel) and
(Left.EventLabelText = Right.EventLabelText) and
(Left.EventListBG = Right.EventListBG);
end;
end.