5272 Commits

Author SHA1 Message Date
UnknownShadow200
c8e6fb0b56 Fix some screens appearing messed up initially when graphics context is recreated
Note that this would automatically correct itself anyways when mouse was moved/clicked
2020-11-17 00:51:56 +11:00
UnknownShadow200
a95c17ab4e Android: Fix typing in servers search filter not actually filtering, fix if you press 'enter' in on-screen keyboard in servers menu, the on-screen keyboard stayed open even after going in-game 2020-11-16 12:01:15 +11:00
UnknownShadow200
a55580b107 Mobile: Fix if you're holding jump then open menu with a different finger, then release both in that menu, jump sometimes gets stuck down 2020-11-15 23:57:00 +11:00
UnknownShadow200
91bcfd2d37 Speed in top left status should say 'speed: 15x' instead of just 'speed: ON' 2020-11-15 18:13:38 +11:00
UnknownShadow200
85dfa73921 Android: Fix after you return to the game after having switched to something else, it had lost fullscreen (Thanks fizzwhiz) 2020-11-15 13:32:02 +11:00
UnknownShadow200
d053191cef Android: Move fullscreen variable out of Window.c and into java side activity 2020-11-15 13:12:17 +11:00
UnknownShadow200
3384dc86f2 Add basic X11 input method support, fixes not being able to type accented characters such as é on keyboard layouts such as Portuguese Brazilian (Thanks GuzzDoritos) 2020-11-15 10:37:38 +11:00
UnknownShadow200
aef4eb2f02 Mobile: Fix speed/half-speed on-screen controls getting stuck down 2020-11-14 00:26:29 +11:00
UnknownShadow200
b536b314a3
Merge pull request #755 from UnknownShadow200/NMControls
Newish mobile controls
2020-11-14 00:12:12 +11:00
UnknownShadow200
2eb533e5df Mobile: In on-screen controls, on-screen buttons that are active are drawn normally, but ones that are not active are drawn grey tinted 2020-11-14 00:07:29 +11:00
UnknownShadow200
d789184e9a Fix speed/half-speed on-screen controls getting stuck down 2020-11-13 23:11:58 +11:00
UnknownShadow200
03b8a949d0 Try to open chat/set fly/noclip etc directly rather than toggling keybinds 2020-11-13 22:44:29 +11:00
UnknownShadow200
20e16e0dc9 On-screen hacks buttons are disabled if orresponding hack is disabled
E.g -fly or -hax disables on-screen fly button
2020-11-13 22:12:04 +11:00
UnknownShadow200
eb9b0aad28 Onscreen buttons work now.. technically 2020-11-13 21:52:33 +11:00
UnknownShadow200
531a4ad34d Code cleanup 2020-11-13 01:19:49 +11:00
UnknownShadow200
37673e35e7 Initial WIP for on-screen controls menu 2020-11-12 23:45:42 +11:00
UnknownShadow200
f6920e7ac8 Webclient: Fix showing 'no error information' in chat for error codes such as INF_ERR_BLOCKTYPE 2020-11-12 23:05:05 +11:00
UnknownShadow200
54b34e909a Actually get Sensitivity option in touch controls menu working 2020-11-12 00:37:04 +11:00
UnknownShadow200
06d5a8519a Actually split up MenuOptionsScreen into separate MenuInputOverlay 2020-11-12 00:06:20 +11:00
UnknownShadow200
cafdc7f1eb Part 1 of splitting up MenuOptionsScreen into MenuInputScreen and MenuOptionsScreen 2020-11-11 23:32:21 +11:00
UnknownShadow200
4fc9aa9d2e Add back button to more and controls menu (Thanks 123DMWM) 2020-11-11 23:06:00 +11:00
UnknownShadow200
9932fb0263 Implement toggling tap/hold behaviour for place/delete in Touch Controls menu and remove Place/Delete button from main screen 2020-11-11 22:38:18 +11:00
UnknownShadow200
15bfae9be6 Start work on new touch more menu 2020-11-10 23:55:18 +11:00
UnknownShadow200
27935713e8 Fix game outright crashing when a device conifugration change occurs (Thanks GuzzDoritos)
Although now you just get a blank window, so not exactly that much better
2020-11-10 21:59:56 +11:00
UnknownShadow200
6a8ca0ebd4 Web client: Show an alert if WebGL is unsupported instead of just immediately failing with obscure error 2020-11-08 21:00:18 +11:00
UnknownShadow200
0ae4600660 Webclient: If fullscreen is not supported, show error of 'operation not supported' instead of 'no error information' (Thanks algamoda) 2020-11-08 20:43:03 +11:00
UnknownShadow200
3c640ce2ef Avoid restarting text input if possible, mostly fixes case where some devices would make letters default to uppercase every time you typed one in chat input (Thanks fizzwhiz) 2020-11-08 01:19:06 +11:00
UnknownShadow200
ce5611c91c Cleanup Http/Drawer2D a little bit more 2020-11-08 00:21:53 +11:00
UnknownShadow200
6b63ccbd38 Make Drawer2D text/font functions rely on whether font handle is NULL or not instead of Drawer2D_BitmappedText global 2020-11-07 20:36:04 +11:00
UnknownShadow200
9d1f2cda6a Use stub Font_UNSAFE_GetDefault for web client to prevent it getting bloated into ~180 lines of JS code 2020-11-07 20:14:48 +11:00
UnknownShadow200
8981b3cbbd Don't load system fonts list until actually needed 2020-11-07 19:53:34 +11:00
UnknownShadow200
549f0a5cfe Don't init FreeType library until actually required 2020-11-07 16:23:51 +11:00
UnknownShadow200
c57631e80d Fix downloaded skin data not being freed and so leaking memory 2020-11-07 15:30:38 +11:00
UnknownShadow200
7150af4ab5 Android: Fullscreen should be sticky immersive (Thanks fizzwhiz)
This means that if you tap at top or bottom of screen to get navigation/status bars to reappear, they should reappear only for a few seconds and as a translucent overlay instead. Also avoid using HttpRequest_Free in favour of Mem_Free
2020-11-07 15:05:30 +11:00
UnknownShadow200
f344c9b096 Android: Fix when you quit multiplayer and start singleplayer, last ping value still shows in top left (Thanks fizzwhiz) 2020-11-07 13:56:01 +11:00
UnknownShadow200
2e31f4046f Fix pressing enter in soft input keyboard not closing when signing in (Thanks fizzwhiz) 2020-11-07 13:46:38 +11:00
UnknownShadow200
40688812c6 Webclient: Don't intercept touchend events while soft input keyboard is open
This means you can now tap on letters to move the caret position in the input textbox (Thanks cjnator38)
2020-11-07 00:53:11 +11:00
UnknownShadow200
a6fa01eb7a Webclient: For safari ios, position chat/send buttons at bottom of game instead
With safari on ios, opening chat will also push the entire game canvas up, meaning you can't see the chat/send buttons anymore. Android does not do this however, so leave the buttons at the top. (Thanks cjnator38)
2020-11-06 23:28:26 +11:00
UnknownShadow200
9f0f58efab When skin isn't actually a .png, also log first few bytes of downloaded data to allow identifying what was actually downloaded (Thanks stein38302) 2020-11-06 21:14:51 +11:00
UnknownShadow200
5c74425d79 Try to fix weird scaling resolutions on android devices
Also rename Display.DpiX/Y to ScaleX/Y to reflect what it actually is
2020-11-06 09:31:11 +11:00
UnknownShadow200
b23027cf64 Make names of logger functions more consistent, and improve Logger_SimpleWarn 2020-11-06 09:16:45 +11:00
UnknownShadow200
2ea627dcf0 Android: Fix non ASCII characters being stuffed up when typed in/pasted (Thanks GuzzDoritos) 2020-11-05 19:46:55 +11:00
UnknownShadow200
34e4bf3605 Android: Fix trying to backspace or insert numbers in numerical fields crashing the game on old android versions (Thanks 123DMWM) 2020-11-05 17:46:43 +11:00
UnknownShadow200
63f248f793 Fix while chatlines defaults to 12 when loading from options.txt, it was 10 in chat options menu - now it's consistently 10 in classic mode and 12 in normal (Thanks fizzwhiz) 2020-11-05 01:00:54 +11:00
UnknownShadow200
de88d5c0b4 Fix bottom right CPE messages being positioned way too high up on high DPI screens (Thanks 123DMWM) 2020-11-04 18:48:42 +11:00
UnknownShadow200
65d3f399d4 Android: Fix if you quit multiplayer and start singleplayer, any CPE messages that were previously showing still show in singleplayer (Thanks 123DMWM) 2020-11-04 18:25:27 +11:00
UnknownShadow200
81f5e829e6 Add documentation in hosting-webclient.md for how to properly design webpage hosting the webclient for mobile devices 2020-11-03 22:43:36 +11:00
UnknownShadow200
d597f23a0d Webclient: When you close the game, exit fullscreen first.
Fixes being stuck in fullscreen with image of last rendered frame when you click 'quit game'
2020-11-03 12:16:22 +11:00
UnknownShadow200
20cfaba0ac temp debug messages 2020-11-03 11:42:49 +11:00
UnknownShadow200
a3f32279f6 Android: Fix singleplayer reusing texture pack from last server (thanks fizzwhiz) 2020-11-03 10:01:18 +11:00