Commit graph

669 commits

Author SHA1 Message Date
Needs c43fa1f34a Make client launchable from the browser given a special link
It's the exact same mechanism than mailto:foo@bar.com links, adapted to
teeworlds.  Such links looks like:

	teeworlds:1.2.3.4:8300
	teeworlds:localhost

Browsers may require extra configuration to be able to open such
links[1].

Once everything is set up, clicking on a link in any webpage will prompt
the user to pick an application to open the link.  Choosing (a
compatible) teeworlds client will open it and automatically connect it
to the given address.

Behind the scene, the browser will run the client with only one
argument: the full address.  Hence it is the same than running the
teeworlds client with the following command line:

	teeworlds "teeworlds:1.2.3.4:8300"

The rational for this change is to allow websites like teerank.com,
teeworlds-stats.info, and others to provide a link to directly connect
to a server.  Also users or webpages could also link a server.

[1]: http://kb.mozillazine.org/Register_protocol
2017-12-10 18:29:19 +01:00
oy ea6d380f7f added „Made int packing functions safe“ by Redix. (#1502) 2017-09-17 18:31:55 +02:00
oy 3deb58d409 fixed typo 2016-12-18 11:07:26 +01:00
oy a09d498bc9 added some checks to snap handling 2016-12-18 11:07:10 +01:00
oy 0a8ce055cd removed old sdlmain code. Closes #1475 2016-09-13 21:42:28 +02:00
oy 170b487430 fixed compiling on macosx 2016-09-11 18:51:20 +02:00
oy 0c8b327e3a fixed building with sdl 2.0.4 2016-07-05 17:13:31 +02:00
oy a2935faae3 removed some unused functions 2016-07-05 15:02:21 +02:00
oy 23a1b80f60 invalidate texture when unloading a texture. Closes #1450. 2016-07-02 10:33:37 +02:00
oy ceadee1d75 fixed picking the correct default resolution 2015-12-21 11:37:59 +01:00
oy bd14ce2a1b fixed last commit 2015-12-21 11:05:23 +01:00
msiglreith afa8e57ef2 fix rectangle calculation for reading of the backbuffer 2015-12-21 10:54:34 +01:00
msiglreith a516935854 add initial support for color picking from editor view 2015-12-21 10:54:34 +01:00
oy 994005de8e fixed problem with the editboxes 2015-11-24 17:00:56 +01:00
oy 53f1ebf632 fixed last commit 2015-11-23 17:15:04 +01:00
oy 55a4ee2528 separated ingame input handling from the rendering. Closes #1056 2015-11-23 13:23:33 +01:00
oy 82771cc072 fixed problem with input handling that's not linked to rendering and some cleanup 2015-11-23 09:38:55 +01:00
oy 5bef0bcb8f fixed missing handling for mouse keys 2015-11-08 20:46:48 +01:00
oy 373f98ea3d cleaned up key press handling 2015-11-08 19:03:03 +01:00
oy bf61d41c49 improved the debug graphs. Closes #1058 2015-11-08 16:25:14 +01:00
oy f02b0c8163 made random_int() just return positive values. Closes #1427 2015-11-03 08:47:52 +01:00
oy fae0115bd8 don't reload serverlist when switching between lan and global. Closes #1281 2015-11-01 20:05:26 +01:00
oy eead3cf276 reworked serverbrowser 2015-11-01 17:50:45 +01:00
oy fdcb58ac06 added timeout for lan server info requests and some cleanup 2015-10-31 20:38:21 +01:00
oy 25a1044141 fixed updating info from connected server. Closes #1412 2015-10-31 20:22:53 +01:00
oy b84b8ddfda cleaned up usage of the rand function 2015-10-31 12:15:52 +01:00
oy d3c1cd2641 fixed utf8 text input 2015-10-31 11:09:41 +01:00
oy b864214f1e fixed updating screen config when moving the window to screen 0 2015-10-30 19:22:42 +01:00
oy 7a6d94b260 fixed command completion in the console 2015-10-29 20:01:07 +01:00
oy 23bfea6f79 changed names of the mouse buttons 2015-10-29 19:37:01 +01:00
oy dbc43249a5 fixed some unclear code safety. Closes #1285 2015-10-28 17:43:48 +01:00
oy a97c15b20c switched from scancodes to keycodes 2015-10-27 16:56:20 +01:00
oy 50b98771cc changed some comments 2015-10-25 21:07:56 +01:00
oy 4423f20cd2 ignore mouse movements in absolute mode 2015-10-25 21:02:55 +01:00
oy 98c11d3d7d fixed bad mouse state on startup for macosx 2015-10-24 21:31:28 +02:00
oy e442a023f9 fixed typo 2015-10-23 18:58:22 +02:00
oy b81e295350 added some workaround for macosx 2015-10-23 18:50:06 +02:00
oy 482f5066b8 skip duplicate mousemode changes 2015-10-23 10:06:14 +02:00
oy 7a5285cff0 disable system cursor when in relative mouse mode 2015-10-23 09:56:41 +02:00
oy 4f8e924067 center the window on startup 2015-10-23 09:46:07 +02:00
oy 989b19a342 update screen config in case the window gets moved outside teeworlds 2015-10-23 09:12:59 +02:00
oy 6d038bd621 added a menu setting to switch the screen 2015-10-22 20:28:19 +02:00
oy dd98fd86eb added workaround to make switching screen work in fullscreen 2015-10-22 19:56:10 +02:00
oy 0b29a42e2b switch screen without restarting the client 2015-10-22 19:51:53 +02:00
oy 444b605d88 use the correct screen on startup 2015-10-22 19:21:58 +02:00
oy 6f28e9e662 filled maximize window dummy function 2015-10-22 18:47:29 +02:00
oy 00ae3c874e switch vsync without restarting the client 2015-10-22 16:41:18 +02:00
oy b27b7104ab switch between bordered and and borderless window without restarting the client 2015-10-22 15:44:03 +02:00
oy 4691df2607 made fullscreen switch via config 2015-10-22 11:04:30 +02:00
oy e7534094ab switch between fullscreen and windowed mode without restarting the client 2015-09-29 19:40:35 +02:00