Skip to content

Commit

Permalink
tremulous: chat and colors overhaul (#108)
Browse files Browse the repository at this point in the history
* tremulous: chat and colors overhaul
- Implement new message modes with the say menu for admin and clan chats.
- Implement support for custom colors defined through a hexadecimal format,
  include both a short and long format for the hex support, that is ^#fff and ^##ffffff.
- Remove extra color codes that are unused in player names.
- Implement an escape from the color escape so that ^ can be printed by typing ^^.
- Make it so that the length of names are minimally effected by the use of color codes.
- Fix the display of colorful names in the HUD kill feed.
- Have the printed line width in the console adjust with the resolution.
- Implement 62 hardcoded standard chat colors.
- Implement the command /colors
- Have editable text fields preview colors while editing.
- Implement an input history for the say menus.
- Implement cycling through message modes with page up and page down.
- Initial implementation of player mentions, and player tab completion in
  the say menu.
- Have ctrl+c clear the current line of the say menu, when the say menu is open.
- Make arrow down at the current line in the say menu clear the input, but if
  a writable key isn't pressed, don't completely delete the current line
  behind the scenes to allow up arrow to recover it.
- When the say menu is exited with unsubmitted text, the next time the say
  menu is open, it would be in a pending blank state where you can recover
  the unsubmitted text with arrow up provided you didn't already press a
  printable key.
- In the console make colors that are too dark appear brighter in the
  console so that they are more readable.
- update .gitattributes
- new version of curl curl-7.68.0 incompatble with code, so pointed to local headers for linux build
- engine: add footer labels for the color list for the command /colors.

Co-authored-by: Cengiz Gunay <cengique@users.sf.net>
  • Loading branch information
dGr8LookinSparky and cengique authored Mar 29, 2020
1 parent a36306a commit 38cbdc8
Show file tree
Hide file tree
Showing 38 changed files with 3,071 additions and 441 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,13 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu" "gnu")
endif

ifeq ($(USE_CURL),1)
CLIENT_CFLAGS += $(CURL_CFLAGS)
ifneq ($(USE_CURL_DLOPEN),1)
CLIENT_LIBS += $(CURL_LIBS)
ifeq ($(USE_LOCAL_HEADERS),1)
CLIENT_CFLAGS += -I$(CURLHDIR)
else
CLIENT_CFLAGS += $(CURL_CFLAGS)
endif
endif
endif

Expand Down Expand Up @@ -590,7 +594,7 @@ ifdef MINGW

# In the absence of wspiapi.h, require Windows XP or later
ifeq ($(shell test -e $(CMDIR)/wspiapi.h; echo $$?),1)
# FIXIT-L Update WINVER=_WIN32_WINNT_WIN7 (see https://msdn.microsoft.com/en-us/library/6sehtctf.aspx)
# FIXIT-L Update WINVER=_WIN32_WINNT_WIN7 (see https://msdn.microsoft.com/en-us/library/6sehtctf.aspx)
BASE_CFLAGS += -DWINVER=0x501
endif

Expand Down
2 changes: 1 addition & 1 deletion assets/ui/ingame_options.menu
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
style WINDOW_STYLE_EMPTY
text "Name:"
cvar "name"
maxchars 40
maxchars 256
rect CONTENT_X (CONTENT_Y+(0*ELEM_H)) CONTENT_W ELEM_H
textalign ALIGN_RIGHT
textvalign VALIGN_CENTER
Expand Down
2 changes: 1 addition & 1 deletion assets/ui/options.menu
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
style WINDOW_STYLE_EMPTY
text "Name:"
cvar "name"
maxchars 26
maxchars 256
rect X Y W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
Expand Down
Loading

0 comments on commit 38cbdc8

Please sign in to comment.