Skip to content

Add SayText2 colors package to message module (fix issue #252) #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add SayText2 colors package to message module (fix issue #252)
Signed-off-by: BackRaw <[email protected]>
  • Loading branch information
BackRaw committed Oct 15, 2018
commit e2ad3a1f0c911f3c74ea8cdc435fbdb83c9f5c0b
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# ../messages/colors/saytext2.py

# =============================================================================
# >> IMPORTS
# =============================================================================
# Source.Python Imports
# Color
from colors import Color
# Core
from core import GAME_NAME


# =============================================================================
# >> ALL DECLARATION
# =============================================================================
__all__ = ('BLUE',
'BRIGHT_GREEN',
'DARK_BLUE',
'DULL_RED',
'GRAY',
'GREEN',
'LIGHT_BLUE',
'ORANGE',
'PALE_GREEN',
'PALE_RED',
'PINK',
'RED',
# TEAM
'WHITE',
'YELLOW',
)


# =============================================================================
# >> GLOBAL VARIABLES
# =============================================================================
if GAME_NAME == 'csgo':
WHITE = '\x01'
RED = '\x02'
# Add TEAM color...
BRIGHT_GREEN = '\x04'
PALE_GREEN = '\x05'
GREEN = '\x06'
PALE_RED = '\x07'
GRAY = '\x08'
YELLOW = '\x09'
LIGHT_BLUE = '\x0A'
BLUE = '\x0B'
DARK_BLUE = '\x0C'
PINK = '\x0E'
DULL_RED = '\x0F'
ORANGE = '\x10'

else:
from colors import BLUE
from colors import GRAY
from colors import GREEN
from colors import LIGHT_BLUE
from colors import LIGHT_GREEN as BRIGHT_GREEN
from colors import LIGHT_RED as PALE_RED
from colors import ORANGE
from colors import RED
from colors import WHITE
from colors import YELLOW

DARK_BLUE = Color(0, 0, 180) # colors.DARK_BLUE constant is *too dark*
DULL_RED = Color(178, 34, 34) # http://html-color.org/B22222
PALE_GREEN = Color(208, 253, 208) # http://html-color.org/D0FDD0
PINK = Color(252, 116, 253) # http://html-color.org/FC74FD