Commit Graph

11547 Commits

Author SHA1 Message Date
hiker
3ab66592cd Only minor cosmetic changes. 2015-11-20 17:02:47 +11:00
hiker
7a2c7125e5 Used enums instead of numbers for lobby protocol subcommands. 2015-11-20 16:41:54 +11:00
hiker
73e14a964a Cosmetic changes only. 2015-11-20 08:16:41 +11:00
hiker
c3e74d344f Add warning message in case of an unknown command, and do not send
it to the servrer (which typically just confuses it).
2015-11-20 08:07:31 +11:00
hiker
683f0fdc07 Fixed incorrect index. 2015-11-19 14:21:56 +11:00
hiker
b55b91edf1 Use const & for std::string, cosmetic changes. 2015-11-19 14:20:10 +11:00
hiker
2b687e1051 Avoid crash when voting. 2015-11-19 14:19:01 +11:00
hiker
e7cc868c85 Removed uneccesary vector copy. 2015-11-19 14:18:34 +11:00
hiker
4813637a37 Cosmetic changes only. 2015-11-19 09:21:28 +11:00
hiker
5994123b98 Fixed crash. 2015-11-19 09:21:03 +11:00
hiker
ba4ccd5621 Added command line option to start a LAN server. 2015-11-18 17:24:56 +11:00
hiker
e6c2620c90 Print 'hide address' only in WAN mode; remove commented out code. 2015-11-18 13:44:25 +11:00
hiker
90b92419f3 Avoid crash in case that a player is not logged in online. 2015-11-18 08:15:22 +11:00
hiker
17f588bcf2 Fixed storing of EnetAddresses in TransportAddress. 2015-11-18 08:14:58 +11:00
Nado
d66a70b250 Fixing some -Wunused-variable 2015-11-17 11:42:28 +01:00
Nado
97de0cbc34 Fixing clang only warnings 2015-11-17 11:42:28 +01:00
Marianne Gagnon
708608177a Fix audio listener positionning issue 2015-11-16 19:13:28 -05:00
hiker
29e0b50e14 Removed friend declaration; fixed crash caused by deleting the
ENetPeer when deleting an (STK) Event.
2015-11-17 08:11:07 +11:00
hiker
0ed22d0d6e Fixed debug message. 2015-11-16 18:46:04 +11:00
hiker
980cdf835d Avoid crash when clicking on (empty) list while server list is being refreshed. 2015-11-16 18:44:14 +11:00
hiker
785b9a9130 Don't try to hide address in LAN networking, other minor fixes. 2015-11-16 18:43:46 +11:00
Benau
f4b723de82 Merge remote-tracking branch 'origin/battleAI' into battleAI 2015-11-15 12:29:01 +08:00
Benau
2b0e3b8828 Reverse type and state 2015-11-14 10:38:14 +08:00
Benau
962fe919d2 Color the text (mainly border including title and billboard) base on current skin 2015-11-14 01:06:28 +08:00
hiker
4a3c4c552e LAN clients now start to connect to the server. 2015-11-13 08:50:03 +11:00
Benau
7cf4d662ee Allow configurable fonts file names in stk-config 2015-11-13 02:25:52 +08:00
hiker
af9018ea64 Moved Server and ServersManager into network directory. 2015-11-12 17:52:04 +11:00
hiker
6716dfce97 Removed unnecesary #include. 2015-11-12 12:04:36 +11:00
hiker
2e65b23539 Don't poll stk server if this is a LAN server. 2015-11-12 09:58:21 +11:00
hiker
5fc830825f Refactoring: Created a separate NetworkConfiguration class which stores
all information to create the STKHost.
2015-11-12 09:53:12 +11:00
hiker
8b916a7565 Fixed sfx not playing at right location (e.g. bridge in Green Valley). 2015-11-11 23:14:00 +11:00
Marianne Gagnon
6afc34c06b Try to fix audio potential issues 2015-11-10 21:31:38 -05:00
hiker
51411a796a Minor refactoring of lan handling, added client's ip address and port
to the answer from the client (which can later be used when the
client requests a connection from a server).
2015-11-10 17:00:47 +11:00
Marianne Gagnon
bf14e49ea4 Create OpenAL sound sources asychronously 2015-11-09 19:22:06 -05:00
Marianne Gagnon
86d18c0c3e Merge branch '2360_fix_attempt' 2015-11-09 18:15:02 -05:00
hiker
833c20ceff Added comment. 2015-11-10 08:34:45 +11:00
hiker
8953547305 Store TransportAddress of server in servers data structure. Avoid
copying the currently connected server, instead avoid modifying the
server data structure while while a client is connected to a server.
2015-11-10 08:31:07 +11:00
hiker
3a9576f109 Removed unnecessary #include. 2015-11-10 08:11:03 +11:00
hiker
0074550f57 Fixed typo. 2015-11-10 08:09:05 +11:00
hiker
0a23198be1 Cosmetic changes only. 2015-11-10 08:08:41 +11:00
hiker
36ebe29649 Fixed typo. 2015-11-10 08:08:22 +11:00
hiker
cdbc5cf15d One more linux compilation fix. 2015-11-09 21:51:05 +11:00
hiker
d4856f6d64 Added missing #include for memcpy. 2015-11-09 21:38:18 +11:00
hiker
453ce8cf60 Added LAN server discovery. 2015-11-09 20:51:00 +11:00
Marianne Gagnon
b1803b8dff Apply fix by Benau 2015-11-07 21:48:12 -05:00
Marianne Gagnon
35316c447d Merge remote-tracking branch 'Benau/ftcleanup#2' 2015-11-07 21:37:47 -05:00
Benau
09a6b9b502 Remove unneeded variable 2015-11-08 10:34:48 +08:00
Benau
cee7cf0b37 Implement better error detection 2015-11-08 10:24:31 +08:00
Benau
0b5a916980 Remove unused header
Also fix some spacing
2015-11-08 01:36:40 +08:00
Benau
09101e923c More clean up freetype-related code
1. Remove useless get font properties class

2. Pre-set the face dpi

3. Make all freetype related code to have a better coding style
2015-11-07 16:24:31 +08:00
hiker
9d9b83059d Fixed deadlock (when while handing a request another request was queued). 2015-11-07 00:19:16 +11:00
hiker
60f550e9d1 Fixed coding style, removed unnecessary #include in hpp file. 2015-11-06 16:50:58 +11:00
hiker
47a7bd1caf Print correct protocol name in 'has been terminated" message. 2015-11-06 16:32:18 +11:00
hiker
00843b8685 Fixed typos. 2015-11-06 16:30:34 +11:00
hiker
541509f29a Added new requestPause and requestUnpause commands for protocols,
minor code cleanups and improvements.
2015-11-06 16:11:12 +11:00
hiker
e14bc572b6 Fixed typo in comment (thanks to leyyin). 2015-11-05 23:35:37 +11:00
hiker
847a788a9c Removed server creation request (which is now down automatically
from STKHost).
2015-11-05 23:34:27 +11:00
hiker
bec317b9ed Added documentation to the table use and protocol between
game server/client and the stk server.
2015-11-05 08:03:06 +11:00
hiker
c99ad34cb0 Coding style changes. 2015-11-05 08:02:17 +11:00
hiker
73c59db858 Reverted to previous version of protocol (since it is not yet
supported by the server).
2015-11-05 08:01:37 +11:00
hiker
4fc46c510f Fixed too early release of objects, and some state changes in finite state machine. 2015-11-05 08:00:45 +11:00
hiker
b7b37b9ec9 Updated documentation. 2015-11-05 07:59:28 +11:00
hiker
35793d99c8 Create an STKHost client instance if a connection to client is
requested. The rest of the protocol is handled from STKHost.
2015-11-05 07:57:49 +11:00
hiker
f2aa1ddea6 Code cleanup. 2015-11-05 07:55:59 +11:00
hiker
bdf34edc00 Removed --client command line option (since this command needs a
server id to work).
2015-11-05 07:54:58 +11:00
Elderme
8d91ab5105 merge with master 2015-11-04 21:24:25 +01:00
Marianne Gagnon
78fd0e373f #2360 fix attempt 2015-11-03 19:15:55 -05:00
Deve
795f3148dc Revert "Added default precision qualifier in fragment shaders"
This reverts commit c23da9e855.
2015-11-02 18:20:07 +01:00
Elderme
b70fa22d23 Define default precision in fragment shaders after #extension 2015-11-02 18:14:01 +01:00
hiker
dc80fb1c11 Updated docs. 2015-11-02 16:24:05 +11:00
hiker
eab07b31dd Hide RefreshRequest class. 2015-11-02 16:14:38 +11:00
auriamg
08e3a9ea13 Merge pull request #2367 from CruzR/memory_leaks
Fix a couple of memory leaks.
2015-11-01 20:15:16 -05:00
auriamg
9d456c5459 Merge pull request #2365 from Elderme/shader_precision
Add default precision qualifier in fragment shaders
2015-11-01 20:02:18 -05:00
Thomas Glamsch
a5a9b9f6c1 Fix a memory leak in PhysicalObject::init(). 2015-11-02 01:43:54 +01:00
hiker
6946306c4c Fixed memory leak (thanks to CruzR). 2015-11-02 10:55:17 +11:00
hiker
7c51be7724 Removed need for m_fake_refrehs, some coding style improvements. 2015-11-02 09:16:39 +11:00
hiker
c0817d29d3 Minor coding style update. 2015-11-02 09:16:09 +11:00
hiker
d7d2115abd Removed setupClient (which is now done in the constructor). 2015-11-02 09:14:35 +11:00
hiker
0b62d2f82b Created two different constructors for STKHost - one for server, one for client. 2015-11-02 08:11:51 +11:00
hiker
6add49b065 Allow WAN server creation from GUI. 2015-11-01 23:42:24 +11:00
hiker
f05ee47e2b Moved lan/wan setting to static functions in STKHost. 2015-11-01 22:16:57 +11:00
hiker
15e3ac021f Fix ending STK when no STKHost exists. 2015-11-01 21:28:39 +11:00
hiker
0d84239cd2 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-11-01 19:46:00 +11:00
hiker
1334a467e3 Don't start a STKHost if neither client nor server is requested. 2015-11-01 19:45:28 +11:00
hiker
4aea491ed0 Merge remote-tracking branch 'origin/master' into refactor_networking 2015-10-31 11:41:43 +11:00
hiker
f2ae36fc65 Simplified ConnectToPeer (no more fsm). 2015-10-31 11:40:41 +11:00
auriamg
4762658a88 Merge pull request #2364 from Benau/freetype_cleanup
Clean up freetype code
2015-10-30 20:33:51 -04:00
Deve
8a288f05ff Implement lightning effect using shaders 2015-10-31 01:00:48 +01:00
Elderme
c23da9e855 Added default precision qualifier in fragment shaders 2015-10-30 22:05:08 +01:00
Benau
b9b2b538fa Clean up freetype code
1. Remove all ifdef of freetype

2. Require freetype in CMake

3. Clean up declaration

4. Add leak check

5. Make script language display better in title
2015-10-30 18:08:02 +08:00
hiker
8585afb713 Minor code cleanup. 2015-10-30 17:00:57 +11:00
hiker
94bc18df52 Removed ShowPublicAddress protocol, instead submit blocking
request in ConnectToServer.
2015-10-30 16:45:43 +11:00
hiker
dd289dc1cd Removed polling for GetPublicAddress with callback. 2015-10-29 18:58:18 +11:00
hiker
ef310a5666 Renamed types.hpp to transport_address.hpp. 2015-10-29 18:39:01 +11:00
hiker
83154ae3a7 Converted the CallbackObject to actually call a function. This
means that if protocol A starts protocol B and needs a result from B,
previously B would set a (potential private) variable in A. Now
B calls a callback in A, where the result can be set.
2015-10-29 18:27:55 +11:00
hiker
966d31dc45 Cosmetic changes, removed unused and unimplemented 'stop protocol' support. 2015-10-28 17:22:09 +11:00
hiker
cf9ce6674c Removed unused class. 2015-10-28 17:08:01 +11:00
Marianne Gagnon
66909086fd Scripting : allow smoothly animating lights 2015-10-27 19:08:12 -04:00
Marianne Gagnon
953c29089e Scripting : start adding features to control light objects 2015-10-27 18:33:54 -04:00
hiker
5df6c225ef Cosmetic changes only. 2015-10-28 08:57:05 +11:00
hiker
e919b97037 Removed unnecessary getProtocolState functions. 2015-10-28 08:24:05 +11:00
hiker
2909e42a25 Minor code cleanup for ConnectToPeer handling. 2015-10-28 08:21:35 +11:00
hiker
7e202d94a8 Removed hardcoded maximum number of players. 2015-10-28 08:03:05 +11:00
hiker
60bbfe3ab3 Remved StartServer protocol, and used executeNow() in ServerLobby instead. 2015-10-28 08:01:46 +11:00
hiker
e212276dd2 Move enet initialisation into STKHost. 2015-10-27 16:58:40 +11:00
hiker
10f8f6b3a5 Removed unnecessary function, added some docs. 2015-10-27 16:46:26 +11:00
hiker
f7f12d5431 Renmated ServerConsole to NetworkConsole. 2015-10-27 16:38:22 +11:00
hiker
d2e6a10026 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-10-27 15:00:13 +11:00
hiker
c5b8c3e3e9 Try to improve performance for sfx (#2154). 2015-10-27 14:59:20 +11:00
hiker
c511fc48af Added leak checking. 2015-10-27 08:44:28 +11:00
hiker
b47b8bd196 Removed empty file. 2015-10-27 08:25:52 +11:00
hiker
6297d8c65d Removed NetworkManager and ClientNetworkManager. 2015-10-27 08:23:59 +11:00
Benau
2096532d0e Make stk more-i18n friendly
Now supertuxkart can do:

Windows (fully test in win8 and win7 built with vs2015, mingw not tested):
Input characters using ime (CJK tested).
Fix crashes when try to paste unicode text into editbox in stk.

Linux:
Different keymap can be used in stk now, ie typing russian,hebrew (not bidi-aware) is now possible.
IME not supported.

Mac:
No work has been done, sorry mac fanboys/girls:( Though testing is welcome, esp when pasting words into stk.

Limitation:
No ime box is shown in fullscreen

(Windows)Only the used language in current setting of non-Unicode programs can be typed with its supported IME.
2015-10-27 02:34:46 +08:00
hiker
7d04cc78de Fixed printing of type name. 2015-10-27 00:26:14 +11:00
hiker
90b8db9993 Start to remove ClientNetworkManager. 2015-10-27 00:23:20 +11:00
hiker
a58f408a99 Merge branch 'refactor_networking' of https://github.com/supertuxkart/stk-code into refactor_networking 2015-10-26 21:31:11 +11:00
hiker
1e9afd473d Removed isClient/isServer from NetworkManager. 2015-10-26 21:30:41 +11:00
hiker
5564239773 Removed NetworkManager::run(). 2015-10-26 18:33:23 +11:00
hiker
b788aa6e95 Removed NetworkManager::isConnectedTO 2015-10-26 18:31:32 +11:00
hiker
d45d5a1051 Fixed type name debug print. 2015-10-26 18:29:28 +11:00
hiker
334780b5d7 Moved sendPacket from NetworkManager to STKHost. 2015-10-26 18:26:53 +11:00
hiker
51d39879b4 Moved NetworkManager::connect and STKPeer::connextTo functions into STKHost. 2015-10-26 18:01:07 +11:00
hiker
0bd2b48ea0 Removed sendPacket function and destructor. 2015-10-26 17:55:19 +11:00
hiker
cf51d2f0e0 Added missing object deletions. 2015-10-26 17:54:19 +11:00
Marianne Gagnon
af68319da7 Add profiler marker to measure material handling in Kart::update 2015-10-25 21:22:45 -04:00
Marianne Gagnon
f9f9b660d3 Rename profiler marker to clarify what it measures 2015-10-25 21:21:05 -04:00
hiker
4c0a195fdd Moved handling of peers from NetworkManager to STKHost. 2015-10-26 08:33:07 +11:00
hiker
c273e709eb Fixed linux compilation. 2015-10-26 08:25:43 +11:00
hiker
f610573295 Removed unnecessary function. 2015-10-25 20:28:35 +11:00
hiker
85cca69113 Moved GameSetup handling from NetworkManager to STKHost. 2015-10-25 00:19:30 +11:00
hiker
34f0d1b349 Moved public address data from NetworkManager to STKHost. 2015-10-24 23:30:34 +11:00
hiker
350f434c37 Started to refactor network code. 2015-10-24 12:39:17 +11:00
hiker
b8cd9cfb81 Removed unused functions. 2015-10-22 23:41:49 +11:00
hiker
e6ae208b4f Removed many unnecessary copies of NetworkString. 2015-10-22 21:43:06 +11:00
hiker
c59f958c2f Removed unnecessary #include, and disabled copying of STKPeer. 2015-10-22 18:46:01 +11:00
hiker
a102d97e3a Cosmetic changes, some minor refactoring. 2015-10-22 18:40:52 +11:00
hiker
1f4f2bce86 Coding style changes. 2015-10-22 16:03:11 +11:00
hiker
b8837d5d59 Coding style changes. 2015-10-22 14:54:12 +11:00
hiker
9b9fc2ee35 Fixed --no-graphics option. 2015-10-22 11:53:52 +11:00
hiker
4833659085 Added --stdout= command line option to change the name of
the stdout.log file.
2015-10-22 11:51:18 +11:00
hiker
65454db0ce Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-22 11:04:07 +11:00
hiker
6213959f31 Cosmetic/coding style changes. 2015-10-22 11:03:41 +11:00
Deve
8bfe048f0f Remember race type in saved GP.
Continue standard race as follow the leader and vice versa doesn't have a sense.
2015-10-21 22:42:59 +02:00
Deve
4049722677 Don't crash if selection is larger than number of items in ribbon widget 2015-10-21 22:37:38 +02:00
hiker
25ca5646ff Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-22 00:03:11 +11:00
hiker
d6e7ddf000 Avoid copying STK Events for networking. 2015-10-22 00:02:40 +11:00
hiker
f297c92039 Removed more includes of event.hpp in hpp files. 2015-10-21 17:39:53 +11:00
hiker
841d9b248e Removed some unnecessary #includes. 2015-10-21 17:31:33 +11:00
hiker
1a0fb9fa4c Renamed notifyEvent to propagateEvent for the manager to avoid
'duplicated' name (notifyEvent also exists in each protocol).
2015-10-21 17:18:27 +11:00
hiker
cce4793fa3 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-21 08:43:32 +11:00
hiker
40629d9816 Changed Event's m_peer from STKPeer** to STKPeer *. Fixes some minor memory leaks. 2015-10-21 08:11:35 +11:00
hiker
814f248cbd Fixed linux compilation. 2015-10-21 08:09:24 +11:00
hiker
9cdf7058a7 More coding style fixes. 2015-10-21 08:07:00 +11:00
hiker
94e87796f5 Coding style fixes. 2015-10-21 07:51:53 +11:00
Deve
054d9251bb Don't sort karts after loading saved GP.
This causes issues in follow the leader races, because after sorting the leader is not leader anymore.
This sorting function is most probably not needed because the list is sorted in startNextRace function (where the leader is properly skipped).
2015-10-20 19:52:57 +02:00
hiker
54a0e50fe3 Try to fix linux compilation. 2015-10-21 00:18:51 +11:00
hiker
10c612a0f6 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-20 22:44:26 +11:00
hiker
0dfa05227e Cosmetic changes mostly, removed unused functions. 2015-10-20 22:42:57 +11:00
Marianne Gagnon
cc7f7b9b4c Use SigmarOne font for digits 2015-10-19 21:02:25 -04:00
Marianne Gagnon
2dfc493adf Minor FreeType cleanup 2015-10-19 19:25:51 -04:00
hiker
6fc4b9c19d Prevent crash in case of issues creating the server. 2015-10-20 09:37:51 +11:00
hiker
46b4d275a9 Minor refactoring and coding style fixes. 2015-10-20 09:34:14 +11:00
hiker
d5a9364ece Minor cosmetic changes. 2015-10-19 17:06:14 +11:00
hiker
3a544b69eb Merge branch 'freetype_lazyloadchar' of github.com:supertuxkart/stk-code into freetype_lazyloadchar 2015-10-19 13:31:39 +11:00
hiker
52b5b7c8d1 Fixed crash caused by using a char pointer to a temporary string only (which can get
overwritten/freed before the pointer is used).
2015-10-19 13:29:52 +11:00
Marianne Gagnon
fcd402b538 Merge remote-tracking branch 'Benau/lazyloadchar' into freetype_lazyloadchar 2015-10-18 21:47:16 -04:00
Benau
109d6b91ce Choose the correct title font smartly 2015-10-19 09:39:57 +08:00
Marianne Gagnon
06fb6d4eb2 Delete old fonts and related code 2015-10-18 20:15:05 -04:00
Marianne Gagnon
6d365032f3 A few minor bugfixes, a little cleanup in TTF font code. Add Ubuntu font for latin languages since it generally looks better than Freesans for a game 2015-10-18 20:07:11 -04:00
Marianne Gagnon
1a58df0696 Fix issue in language selection screen (improper utf-8 decoding) 2015-10-18 19:53:20 -04:00
hiker
8d0c22346d Cosmetic changes only. 2015-10-19 08:15:43 +11:00
hiker
e535afc9d8 Cosmetic changes only. 2015-10-19 08:11:28 +11:00
hiker
faf697ef5d Made access to the public address thread safe, and simplified setting
of the public address.
2015-10-19 08:02:44 +11:00
Benau
218f94d181 Silence warning 2015-10-18 10:10:03 +08:00
Marianne Gagnon
d0d6476feb Merge remote-tracking branch 'Benau/lazyloadchar' into freetype_lazyloadchar 2015-10-17 21:41:56 -04:00
Benau
fad23b148b Fix travis build 2015-10-18 09:40:37 +08:00
Marianne Gagnon
cee6d9d611 Merge branch 'master' into freetype_lazyloadchar 2015-10-17 21:34:19 -04:00
Marianne Gagnon
a84b04db66 Merge remote-tracking branch 'Benau/freetype' into freetype_lazyloadchar 2015-10-17 21:31:05 -04:00
Marianne Gagnon
f909619413 Add translation help comment, for issue #2335 2015-10-17 20:47:19 -04:00
Marianne Gagnon
fcfbd82a0e Merge branch 'TranslatableDateTime' 2015-10-17 20:44:32 -04:00
hiker
4fad614d55 Removed unnecessary copy constructor call, which makes the Synchronised
class work with NoCopy objects.
2015-10-17 09:33:05 +11:00
Ben
adbaa44864 Fix typo 2015-10-17 03:03:56 +08:00
Benau
d166aa620e Add lazy load char function
Now less fonts are used to prevent mismatch, also include font license file
2015-10-17 02:57:27 +08:00
Benau
f557dce27e Fix some bugs in title font and clean up more code 2015-10-17 01:20:50 +08:00
hiker
aeec90fa0d Removed many unnecessary copies of TransportAddress. 2015-10-16 23:55:54 +11:00
Daniel Butum
8cfa2f925a Fix linux compilation 2015-10-16 11:22:20 +03:00
hiker
162bcced37 Make m_ip and m_port in TransportAddress private (adding setters and getters). 2015-10-16 16:59:42 +11:00
hiker
83811d2960 More compilation fixes :( 2015-10-16 10:37:20 +11:00
hiker
8183760cd9 Fix travis build. 2015-10-16 10:28:29 +11:00
hiker
517ba2c2df Cosmetic changes, added some convenience functions. 2015-10-16 00:52:28 +11:00
hiker
9a55da5c2c Reserve space for NetworkStrings (to reduce copying when reallocating). 2015-10-16 00:03:23 +11:00
hiker
e7860e1c14 Fixed compiler warnings. 2015-10-15 21:48:17 +11:00
Ben
ee60eb9a68 Fix scoreboard display 2015-10-15 07:43:13 +08:00
hiker
beca77e94f Use NetworkString for stun response data. 2015-10-14 00:18:13 +11:00
hiker
192e2f99b5 Merge branch 'konstin-dev' 2015-10-13 22:09:11 +11:00
hiker
7356958774 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-13 21:12:22 +11:00
hiker
86574e4521 Added comments and further cosmetic changes. Removed some duplicated functions. 2015-10-13 20:53:53 +11:00
Benau
a756f9f90e Better title font to all languages
I tested all language, all of the them only needs 2 glyph page
to load their needed chars.
2015-10-13 08:25:25 +08:00
Marianne Gagnon
a565c561e8 Scripting engine : add new getter Kart::getMaxSpeed 2015-10-12 19:59:17 -04:00
Deve
375e7ea0ed More fixes for 64-bit mingw 2015-10-13 01:05:41 +02:00
Deve
91db8620f8 Some work on support 64-bit windows compilation using mingw 2015-10-13 01:05:41 +02:00
hiker
3a023776fd Minor style changes. 2015-10-13 09:19:40 +11:00
hiker
356588e09a Merge branch 'dev' of https://github.com/konstin/stk-code into konstin-dev 2015-10-12 22:42:34 +11:00
hiker
45954e5881 Minor improvement. 2015-10-12 22:03:46 +11:00
hiker
c1d280eaa1 Cosmetic changes only. 2015-10-12 21:37:22 +11:00
Benau
786bc5d5b6 More detailed comments 2015-10-12 07:48:43 +08:00
Benau
f20158acd1 Merge remote-tracking branch 'mime/freetype_benau' into freetype 2015-10-12 07:38:25 +08:00
Benau
c7f20e549d Revert widget changes 2015-10-12 07:33:09 +08:00
hiker
da73e7d9cf Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-12 10:07:04 +11:00
hiker
c0b7fec58a Replaced another mutex with Sychronised. 2015-10-12 10:06:30 +11:00
hiker
47cb6ac2e3 Used Synchronised instead of pthread mutex. 2015-10-12 08:18:15 +11:00
hiker
124420b90a Cosmetic changes only. 2015-10-12 08:02:20 +11:00
Benau
23e1f8fb3e Default text wrapping in label widget
It should make no more text rendered out of area as stated in forum.
2015-10-12 01:48:13 +08:00
Benau
73ae81554d Better size handling to specific languages 2015-10-12 01:14:47 +08:00
hiker
4b0d4cb853 Fixed typo in comment. 2015-10-11 21:23:39 +11:00
hiker
525cf6df62 Fixed incorrect name of stkgui file. 2015-10-11 21:22:58 +11:00
Marianne Gagnon
fbf158eaa4 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-10 20:52:18 -04:00
Marianne Gagnon
d63837260f Remove seemingly uneeded rotation, see #2345. Not sure I understand what is going on 2015-10-10 20:52:12 -04:00
Deve
debb238b35 Use '3' graphical level when STK is run first time instead of custom settings.
Degraded_IBL parameter was probably accidentally set to false because option in settings means "enable IBL if true", but variable means "disable IBL if true".
2015-10-10 16:04:33 +02:00
Benau
9fe84d3dd4 More code clean up with doxygen for freetype related file 2015-10-10 16:20:33 +08:00
hiker
f0c04a8bef Started to support LAN servers in the GUI (wip). 2015-10-10 12:13:32 +11:00
Marianne Gagnon
e4095c03a3 Fix material manager issue 2015-10-09 19:46:53 -04:00
Benau
a7b2c8838f Try to fix the edged font when changing resolution
I add a debug function to write the glyph page png(s) too.
2015-10-10 01:59:29 +08:00
hiker
73cf58d13b Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-10 00:19:44 +11:00
Deve
500cbe2ebf Allow to use 1280x720 resolution.
This is quite popular resolution and it is a kind of standard. Even the most of new monitors have it because it has the same porportion as 1920x1080. And it looks much better than 1024x768 expanded to 16:9 proportionos ;) I also didn't notice any issues in gui during using it.
2015-10-09 13:47:19 +02:00
hiker
a66af6dc91 Cosmetic changes for coding style. 2015-10-09 16:47:18 +11:00
hiker
42ea2e5819 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-09 12:53:27 +11:00
hiker
4d181d3358 Make icons visible if login status is changed. 2015-10-09 12:52:49 +11:00
Marianne Gagnon
e1a6478038 Forgotten file in previous commit 2015-10-08 21:35:18 -04:00
Marianne Gagnon
7c5d6711b9 Introduce new mechanic to create keyboard shortcuts for debug functions, and start using it for FPS camera. Fixes #2341 2015-10-08 20:06:42 -04:00
hiker
92f18d03dc Removed unnecessary variable. 2015-10-09 09:43:50 +11:00
hiker
d687d17bfe Added (atm not working) LAN server menu entries. 2015-10-09 09:36:08 +11:00
Benau
486495d976 More code clean up
Now all freetype related file are written in c++ class, which enable
better coding style with current stk

Windows build tested, the edge showing issue doesn't happen on Windows btw
Maybe driver problems?
2015-10-09 01:59:22 +08:00
Benau
ebeca35460 First version of glyph page loading supporting for freetype stk
Performance should be good, it cleans some unused code too.

Windows build not tested.
2015-10-08 16:41:31 +08:00
hiker
917905c779 Removed unused functions. 2015-10-08 16:28:23 +11:00
hiker
00e7c35484 Match one more .stkgui and .cpp file name. 2015-10-07 16:37:42 +11:00
hiker
d391727879 Match more .stkgui and .cpp file names. 2015-10-07 16:33:01 +11:00
hiker
3aadc019a3 Made more .stkgui name correspond to the c++ file name. 2015-10-07 12:33:36 +11:00
hiker
14e84ed96b Minor style changes. 2015-10-07 08:22:02 +11:00
hiker
ccf8fd4e68 Renamed stkgui so that .cpp and .stkgui file names are identical. 2015-10-07 08:11:57 +11:00
Benau
1e7e895d7f Fix build and code clean up
Now billboard text should have a better alignment
2015-10-06 16:14:32 +08:00
Marianne Gagnon
ca107bf159 Translatable DateTime (see #2335) 2015-10-05 19:36:39 -04:00
Marianne Gagnon
d47faaaa89 Fix billboard text 2015-10-05 19:22:08 -04:00
Deve
6318e8c8f8 Fixed compiler warnings 2015-10-04 16:54:14 +02:00
Benau
3a5ec83ae9 Basic render of text using freetype
This is a testing version of stk using freetype

It enable better arabic font display with less blurred glyph to all fonts thanks to hinting provide by freetype.

TODO: billboard text
2015-10-04 11:59:44 +08:00
Deve
ec33e92ad0 Forgot about sun 2015-10-03 21:12:41 +02:00
Deve
bac60ff126 Fixed crash on exit race with OpenGL 2.1 2015-10-03 21:06:32 +02:00
Flakebi
abc2ae54ea Use correct cached characteristics 2015-10-03 20:14:39 +02:00
Flakebi
37ca28e868 Use cached characteristics 2015-10-03 18:15:29 +02:00
Flakebi
a789f346ad Add comments 2015-10-03 17:45:25 +02:00