Commit graph

256 commits

Author SHA1 Message Date
heinrich5991 d7f6cf2892 Fix some system.c insanity
`str_utf8_isspace` now returns true if the passed code point renders as
a space, instead of when not.

Add `str_utf8_trim_right`, use this function and
`str_utf8_skip_whitespaces` in the server.

Add tests for the three functions
2018-03-14 02:27:15 +01:00
Jupeyy 59f9d021ce buffer ingame chat 2018-03-13 21:50:49 +01:00
Learath 4031e15fc8 Remove extra conditional
Stricter scope on temporary var.
2018-02-22 20:48:47 +01:00
Learath 1f2e398819 Add ctrl-delete to chat. Closes #1032 2018-02-22 20:11:56 +01:00
def 151da9af97 Remove Emojis 2018-01-25 20:03:18 +01:00
def 949bb2d9fc Fix crash in emoji on map change, clear emojis 2018-01-15 19:08:51 +01:00
def f1af7cff98 Still render chat input even when chat is disabled 2018-01-05 20:11:05 +01:00
def 3025ed35c9 Introduce cl_show_chat_system
Set to 0 to disable server messages
2018-01-05 20:10:39 +01:00
def 04820b44f8 Simplify emoji 2017-10-28 09:08:17 +02:00
Michał ebe894faef Fix duplicate 2017-10-28 09:08:17 +02:00
Michał f7e64fe99e Quick fix 2017-10-28 09:08:17 +02:00
Michał 2e353beec2 Rendering fix, better offset calculation, optimizations 2017-10-28 09:08:17 +02:00
Michał 58b0ae5fc7 Possible emoji rendering fix 2017-10-28 09:08:17 +02:00
Michał 3c3c7abd3c Removed alias->utf replacer, added alias lookup instead, modified CEmojis class 2017-10-28 09:08:17 +02:00
Michał 07db85d806 Removed string.h, replaced some C functions with system.h ones, renamed variables 2017-10-28 09:08:17 +02:00
Michał bb419c43b7 Linux build fix + cleanup 2017-10-28 09:08:17 +02:00
Michał 35fb1ddb41 Add emoji support 2017-10-28 09:08:17 +02:00
heinrich5991 fd8bccb0f4 Fix the CMake Mac build
Fixes #805.
2017-07-26 04:30:56 +02:00
Learath 0b6c6f353d Fix chat overlapping. One to go #723 2017-04-13 01:14:53 +02:00
Learath 611b66e503 Fix a case reported in #723 2017-04-10 03:06:16 +02:00
Learath 45bc79b94b Fix alignmend... Fixes #687 2017-04-09 03:46:02 +02:00
Learath2 9d0e054a06 Remove heart from on reset messages. Fixes #710 2017-04-01 15:19:20 +02:00
Learath2 2849e23003 Fix line width. Closes #687 2017-03-22 09:56:28 +01:00
Learath2 3bd94b9ada Forgot m_Friend isn't initialized, also align the messages 2017-03-12 22:32:05 +01:00
Learath2 c81f53ab6b Forgot CID can be -1 2017-03-12 17:37:16 +01:00
Learath2 9919173ceb Just color the heart preserving team information. Fixes #606 2017-03-10 18:49:39 +01:00
Dennis Felsing 761c3c9be1 Merge pull request #646 from heinrich5991/pr_ddnet_brace_style
Fix the brace style in some places
2017-03-09 13:31:21 +01:00
Learath2 5317be824e Fix coloring of team chat. Fixes #648 2017-03-06 10:24:00 +01:00
heinrich5991 ba5af42b1f Fix the brace style in some places 2017-03-04 15:43:49 +01:00
Learath2 7af41f6765 Actually use the color chosen 2017-02-28 01:23:10 +03:00
Learath2 fa22425f26 Add a checkbox to disable friend heart 2017-02-27 23:56:22 +03:00
Learath2 c783122301 Do not override the team color 2017-02-27 23:42:48 +03:00
Learath2 cd1f337bf5 Put hearts before friends names. Closes #606 2017-02-27 22:38:08 +03:00
Dennis Felsing eb36f421c5 Merge pull request #630 from heinrich5991/pr_ddnet_cmake_basic
Add overly simple CMakeLists.txt
2017-02-27 16:28:19 +01:00
heinrich5991 8375f4888e Refactor dummy input and demo filtering
Remove references to src/game/ from src/engine/
2017-02-23 14:13:14 +01:00
Ryozuki 9af59fe8f3 tiny style changes 2017-02-18 09:02:29 +01:00
Ryozuki 141a256cb3 Delete useless brackets 2017-02-14 17:06:51 +01:00
Ryozuki ec957fc00e ctrl + backspace support on chat (Fixes ddnet#515) 2017-02-14 17:00:50 +01:00
def 1f636fe875 Fix team for echo 2017-01-06 00:30:21 +01:00
def 224b9d5443 echo command for clients prints to chat instead of mostly useless console 2017-01-06 00:17:53 +01:00
ACTom 3da2ba1f38 delete comment code 2016-09-01 21:17:27 +08:00
ACTom c06e2d71cd fix lost first character when quickly input in chat 2016-09-01 21:12:13 +08:00
Freddie Wang 7aa7e463e0 fix keystroke hold after send the chat 2016-08-14 23:02:07 -07:00
Freddie Wang e5f23cd87c Added full IME support
Now with display of editing text.
2016-08-14 22:16:06 -07:00
def eef3980b18 Revert "Highlight own whispers in F1"
This reverts commit 8d081140b0.
2016-06-03 22:47:38 +02:00
rbmz 8d081140b0 Highlight own whispers in F1 2016-05-27 08:33:43 -03:00
def d1275f239a cl_show_ids also shows ID in chat (fixes #454) 2016-05-14 01:17:18 +02:00
def b0b2774695 Clean up other paste code a bit 2016-05-11 18:00:27 +02:00
Henningstone 6a10c96e02 Fix cursor behaviour when skipping backwards 2016-05-07 01:01:56 +02:00
Henningstone cdc37493c2 Removed the check for uppercase letters 2016-05-06 19:48:36 +02:00
Henningstone 997713f9a1 Jump to special characters with CTRL+arrowkeys in chat input 2016-05-06 17:16:31 +02:00
def 4761608329 Input fixes from TW master for mouse wheel 2016-04-30 20:11:26 +02:00
def a1403ef457 Make sure GetClipboardText's null returns are handled properly 2016-04-29 21:56:38 +02:00
def 632db36fe4 Add clipboard copy&paste support (by swick) 2016-04-29 21:56:38 +02:00
H-M-H 8e24ef8020 commanddescription can now be placed directly in
the commandparamsstring: "s[file]"
2015-12-28 16:19:52 +01:00
H-M-H 11a426c18b added (console-)command usage 2015-12-23 14:29:31 +01:00
oy 70ca6f220c fixed frozen input when leaving a server with active chat 2015-08-22 21:53:00 +02:00
Learath2 aa195955be Don't highlight your own messages. 2015-08-20 17:01:34 +03:00
east 8dec8d7890 Fixed chat highlighting 2015-08-17 21:35:12 +02:00
def 547274b806 Add cl_chat_reset, which can be set to 0 so that chat is not reset when pressing escape 2015-08-12 17:03:27 +02:00
H-M-H 0086d19276 added Notifications for osx 2015-08-11 03:14:27 +02:00
def e97c8ac08f Add foes (permanently ignored players) 2015-07-22 22:16:49 +02:00
east d12c516508 fixed highlighting in demo playback 2015-07-22 15:37:00 +02:00
def 6e8ada1ac8 Fix whitespaces a bit 2015-07-09 02:12:35 +02:00
def c004a352d2 Highlight in console 2014-12-20 13:37:11 +01:00
def bc9d632103 Clean up whitespace detection a bit and add BRAILLE PATTERN BLANK (U+2800) 2014-11-08 20:14:12 +01:00
def 8d230306d8 Fix sound enabling and disabling (fixes #82) 2014-10-25 02:52:08 +02:00
BeaR 2f837a4c44 Notify player on chat highlight (windows only) 2014-10-18 16:17:36 +02:00
def 4809fcd325 Sort player completion by name 2014-10-06 13:06:35 +02:00
def 89b2e78bc8 Shift+TAB for player completion (by Wohoo) 2014-10-06 13:02:55 +02:00
CookieMichal 93ef86e1cc [Fixed] Color of normal messages 2014-07-08 19:09:30 +02:00
CookieMichal 5d8386b286 Colors of messages and laser.
Added:
 * Settings tab (HUD)
 * Posibility to change color of:
  - Team messages
  - System messages
  - Highlighted messages
  - Normal messages
  - Laser (inner and outline)
 * Some commands

Changed:
 * Moved some settings from DDNet to HUD
2014-07-07 15:47:11 +02:00
def 7875c2ec36 Android support (by Pelya) 2014-06-16 13:29:18 +02:00
def b82950c9f9 Fix dummy highlight 2014-05-17 23:31:29 +02:00
def 78d29e3301 Also highlight name of dummy 2014-05-17 22:45:44 +02:00
def 9340b1400f Add team chat sound deactivation 2014-05-04 18:35:37 +02:00
def 3006d3b03b Cleanup DDNet menu 2014-04-15 22:10:46 +02:00
def e56a99f5fc Colored chat messages 2014-04-15 00:49:24 +02:00
def 17ec1eabda More resonable sound settings 2014-03-22 10:24:10 +01:00
def 89556e184b No sound when you whisper, as some people are afraid of it 2014-02-06 18:17:29 +01:00
def d8533eea67 Proper Client Version numbers and more visible whispers 2014-01-30 16:49:15 +01:00
def 85f2cebfaf Fix: Disabling chat sound 2013-12-30 19:32:51 +01:00
def 6ad45448bd Fix name highlighting 2013-12-27 21:39:46 +01:00
def 5453c0c80f Allow longer messages 2013-12-27 04:09:45 +01:00
def 3eaad43b6b Merge remote-tracking branch 'upstream-teeworlds/0.6' into DDRace
Conflicts:
	bam.lua
	data/languages/index.txt
	src/engine/server/server.cpp
	src/engine/shared/network_server.cpp
	src/game/client/components/chat.cpp
	src/game/client/components/menus_settings.cpp
	src/game/server/entities/character.cpp
	src/game/server/gamecontext.cpp
	src/game/version.h
2013-12-26 18:02:22 +01:00
def 9a1ff10b0a Add button to disable chat 2013-11-14 16:23:15 +01:00
def 64c29fd509 More chat highlighting 2013-11-09 00:04:54 +01:00
def 60b66055bf add snd_name_only 2013-10-21 02:16:45 +02:00
def 2b11b5fc0e Allow adding default text to chat binds 2013-10-14 01:40:42 +02:00
def f0b6ff9c4c Readd chat sounds and add option to disable them 2013-10-08 17:23:00 +02:00
oy f0e09f50d9 improved chat msg spam protection 2013-04-01 20:30:58 +02:00
oy 7e8374447a switched filenames of highlight and client chat message to prevent some misunderstanding there. #966 2013-03-20 22:38:06 +01:00
oy 4e4019986a made the client not play the chat sound for empty chat messages. Closes #967 2013-02-24 17:36:54 +01:00
oy 76d7569e15 limit the number of chat messages a player can queue to 3 2013-02-24 17:28:11 +01:00
GreYFoX cd4ba53bae Merge branch 'master' of git://github.com/teeworlds/teeworlds into DDRace
Conflicts:
	bam.lua
	scripts/build.py
	scripts/make_release.py
	src/engine/server.h
	src/game/client/gameclient.cpp
	src/game/server/gamecontext.cpp
	src/game/server/gamecontext.h
	src/game/server/gamecontroller.cpp
	src/game/server/gamecontroller.h
	src/game/server/player.cpp
	src/game/version.h
2012-04-12 02:09:31 +02:00
oy 3e918075df added an option to show only chat messages from friends 2012-01-09 23:29:15 +01:00
oy e97cfaecad buffered chat input. Closes #916 2012-01-09 23:13:51 +01:00
oy 6649d651a8 switched client and highlight chat sound. Closes #630 2012-01-06 20:06:13 +01:00
oy f3ebfae18e drop multiple chat sounds that are played within 300ms. Closes #440 2012-01-06 19:47:49 +01:00
oy b592d7a591 cleaned up playing of global sounds 2012-01-06 19:38:40 +01:00
GreYFoX ff696bad6c Mac Loves Cyclic Includes 2011-08-31 13:56:04 +02:00
Shereef Marzouk c6fd4a2cc5 General whitespace and tab cleanup 2011-08-11 10:59:14 +02:00
oy eae1a97297 fixed marker position in chat 2011-06-09 23:54:11 +02:00
oy fd965ca4b2 made name highlighting in chat more strict 2011-06-09 23:49:06 +02:00
oy 37bdc4c2a1 removed some unneeded stuff 2011-06-09 23:40:35 +02:00
oy 4f402f85bb added ':' after names on start and a space separator in chat tab completion 2011-06-09 23:37:59 +02:00
oy e1ef01f656 made tab completion for names in chat start with the ones that match on the beginning 2011-06-09 23:28:20 +02:00
oy 15e1d4f1d6 distinguish [chat] and [teamchat] in console messages. Closes #643 2011-05-05 02:08:39 +02:00
oy 06115dd49d added "Whitespace and line Endings cleanup" by GreYFoX 2011-04-13 20:37:12 +02:00
oy 141089f257 fixed more compiler warnings 2011-03-28 23:30:56 +02:00
oy 63d2019b19 fixed that chat overlaps the spectator hud 2011-03-27 23:43:45 +02:00
GreYFoX 85fa86102f Refactored e to Event 2011-03-27 17:21:30 +02:00
GreYFoX eb344c83ce Chat History. Closes #521 2011-03-27 17:21:07 +02:00
oy b64db75a6b added an option to ignore other players in chat 2011-03-22 22:41:27 +01:00
oy 2beae20208 don't use highlight chat sound for server messages 2011-03-22 00:34:07 +01:00
oy 18e5412358 added sound for highlighted chat message. Closes #508 2011-03-20 15:58:59 +01:00
oy da8c0c61b5 made scoreboard show clan name and country flag and fixed overlapping spectator names. Closes #203. Closes #335 2011-03-19 18:28:47 +01:00
oy 9811c2396b made network clip flags. Closes #131 2011-03-04 17:08:10 +01:00
oy 0bc13c91eb made cl_threadsoundloading work again 2011-02-27 17:56:03 +01:00
GreYFoXGTi 1b2703aaba Refactoring & fixed WEAPONSPEC_GUN in content.py 2011-02-12 21:18:41 +01:00
oy a72848e780 added constants for teams by Choupom 2011-01-03 12:50:38 +01:00
oy ec09fbf23b let the chat lines disappear gradually. Closes #342 2010-12-16 04:20:50 +01:00
oy 6063b4c14d added auto completion of nicknames and highlighted nicknames in chat. Closes #218 2010-12-16 02:31:12 +01:00
Sworddragon fc9211c777 Updated copyrights 2010-11-20 21:26:06 +01:00
oy 764ee3fd17 optimised chat rendering a bit 2010-10-15 19:26:20 +02:00
oy eb4a56edeb tweaked auto scrolling in the chat window a bit 2010-10-11 12:31:45 +02:00
oy 411db8b885 fixed that chat message gets out of the window. Closes #102 2010-10-11 02:29:30 +02:00
oy e226b47212 close the emote selector, chat history and the scoreboard when closing the chat, console or ingame menu. Closes #111 2010-09-12 12:43:03 +02:00
Choupom 71109a98fb fixed chat message with missing name (#110) 2010-09-08 00:20:59 +02:00
oy 6299f6518a disable emote selector and chat window in the demo player. Closes #126 2010-09-07 20:01:51 +02:00
ghost 5e1b3c74ef Git does this one automatically, I guess it fixes lineendings. 2010-09-07 02:11:52 +02:00
oy 538d968349 fixed that scoreboard overlaps the chat. Closes #14 2010-08-18 03:57:35 +02:00
oy cabecb7fa9 added output level for console print function, categorised the debug messages and merged them into the new functionality. Closes #8 2010-08-18 00:06:00 +02:00
oy abc84ac0b0 added fixes for compiler errors and warnings by sworddragon 2010-08-16 02:21:18 +02:00
Tom Adams 262b566c94 increased the fontsize of the chat messages 2010-05-30 17:08:54 +00:00
Thomas 361380d630 *some esthetic changes
*split "CHud::RenderGoals()"
*added "reload" command
*added the ability to show last chat lines (+show_chat)
*updated french.txt
2010-05-30 12:01:11 +00:00
Magnus Auvinen 72c06a2589 copied refactor to trunk 2010-05-29 07:25:38 +00:00
Magnus Auvinen 878ede3080 major update with stuff 2009-10-27 14:38:53 +00:00
Magnus Auvinen 8bd49fe30b some clean up. fixed double server side record messages 2009-06-15 13:01:04 +00:00
Magnus Auvinen ab171f8f30 updated localization 2009-06-15 07:34:25 +00:00
Magnus Auvinen 4bb1df3189 moved 0.5 branch to trunk 2009-05-31 09:44:20 +00:00
Alfred Eriksson b28ede2da2 changed chatmsgs to use time instead of ticks 2009-01-24 16:09:20 +00:00
Alfred Eriksson 82f9be8ce0 added help messages for all commands. added syntax in the help msg 2009-01-24 14:10:26 +00:00
Magnus Auvinen 5f186c8906 fixed so the console show help for each command. not all commands have descriptions however 2009-01-24 13:12:04 +00:00
Magnus Auvinen 9d51d47cea added tab completion to the console. works for local and remote 2009-01-24 12:16:02 +00:00
Magnus Auvinen bd5b2b9f85 removed glfw and portaudio. SDL is now a requirement 2008-10-23 16:18:33 +00:00
Magnus Auvinen 1d094181ed fixed #479 (chat overlaps when text is 3 lines long) 2008-10-08 19:04:10 +00:00
Alfred Eriksson 777e685a24 merge from 0.4.3: chat placement/width 2008-09-07 08:44:30 +00:00
Magnus Auvinen fa266334fd fixed on_console_init and on_save 2008-09-04 21:36:44 +00:00
Magnus Auvinen cd7a3519a7 added the loading screen again 2008-08-30 22:38:56 +00:00