Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Otowa Kotori
Tales of MajEyal
Commits
33312c4a
Commit
33312c4a
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
New color for ingame chat moderators & general helping guys: gold!
parent
5a9f268e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/engines/default/engine/UserChat.lua
+6
-0
6 additions, 0 deletions
game/engines/default/engine/UserChat.lua
with
6 additions
and
0 deletions
game/engines/default/engine/UserChat.lua
+
6
−
0
View file @
33312c4a
...
...
@@ -167,6 +167,7 @@ function _M:event(e)
e
.
msg
=
e
.
msg
:
removeColorCodes
()
local
color
=
colors
.
WHITE
if
e
.
status
==
'dev'
then
color
=
colors
.
CRIMSON
elseif
e
.
status
==
'mod'
then
color
=
colors
.
GOLD
elseif
e
.
donator
==
"oneshot"
then
color
=
colors
.
LIGHT_GREEN
elseif
e
.
donator
==
"recurring"
then
color
=
colors
.
ROYAL_BLUE
end
...
...
@@ -187,6 +188,7 @@ function _M:event(e)
e
.
msg
=
e
.
msg
:
removeColorCodes
()
local
color
=
colors
.
WHITE
if
e
.
status
==
'dev'
then
color
=
colors
.
CRIMSON
elseif
e
.
status
==
'mod'
then
color
=
colors
.
GOLD
elseif
e
.
donator
==
"oneshot"
then
color
=
colors
.
LIGHT_GREEN
elseif
e
.
donator
==
"recurring"
then
color
=
colors
.
ROYAL_BLUE
end
...
...
@@ -201,6 +203,7 @@ function _M:event(e)
e
.
msg
=
e
.
msg
:
removeColorCodes
()
local
color
=
colors
.
WHITE
if
e
.
status
==
'dev'
then
color
=
colors
.
CRIMSON
elseif
e
.
status
==
'mod'
then
color
=
colors
.
GOLD
elseif
e
.
donator
==
"oneshot"
then
color
=
colors
.
LIGHT_GREEN
elseif
e
.
donator
==
"recurring"
then
color
=
colors
.
ROYAL_BLUE
end
...
...
@@ -224,6 +227,7 @@ function _M:event(e)
elseif
e
.
se
==
"SerialData"
then
local
color
=
colors
.
WHITE
if
e
.
status
==
'dev'
then
color
=
colors
.
CRIMSON
elseif
e
.
status
==
'mod'
then
color
=
colors
.
GOLD
elseif
e
.
donator
==
"oneshot"
then
color
=
colors
.
LIGHT_GREEN
elseif
e
.
donator
==
"recurring"
then
color
=
colors
.
ROYAL_BLUE
end
e
.
color_name
=
color
...
...
@@ -244,6 +248,7 @@ function _M:event(e)
elseif
e
.
se
==
"Join"
then
local
color
=
colors
.
WHITE
if
e
.
status
==
'dev'
then
color
=
colors
.
CRIMSON
elseif
e
.
status
==
'mod'
then
color
=
colors
.
GOLD
elseif
e
.
donator
==
"oneshot"
then
color
=
colors
.
LIGHT_GREEN
elseif
e
.
donator
==
"recurring"
then
color
=
colors
.
ROYAL_BLUE
end
...
...
@@ -258,6 +263,7 @@ function _M:event(e)
elseif
e
.
se
==
"Part"
then
local
color
=
colors
.
WHITE
if
e
.
status
==
'dev'
then
color
=
colors
.
CRIMSON
elseif
e
.
status
==
'mod'
then
color
=
colors
.
GOLD
elseif
e
.
donator
==
"oneshot"
then
color
=
colors
.
LIGHT_GREEN
elseif
e
.
donator
==
"recurring"
then
color
=
colors
.
ROYAL_BLUE
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment