5226 Commits

Author SHA1 Message Date
UnknownShadow200
b49a617d58 disable redraw debug messages for android 2020-10-11 09:59:47 +11:00
UnknownShadow200
27a0498bbc Fix with text input from mobile, if you type something then backspace so the text input is empty, the '> ' chat input prefix or background menu input turns into an invalid black texture 2020-10-10 21:24:37 +11:00
UnknownShadow200
ecddb28d34 Add keyboard type to Window_OpenKeyboard (not used yet) 2020-10-10 10:37:49 +11:00
UnknownShadow200
c508f680a3 Make Camera a component 2020-10-09 22:27:14 +11:00
UnknownShadow200
0591f755e4 move chunk updating logic for changing block out of Game.c and into MapRenderer.c where it belongs 2020-10-09 20:39:50 +11:00
UnknownShadow200
769e441953 If updating fails, specifically indicate which step failed, instead of just 'Running updater failed' 2020-10-08 12:46:56 +11:00
UnknownShadow200
168143fecc Simplify block permissions reset code 2020-10-07 19:53:46 +11:00
UnknownShadow200
18dcbd710f one less incompatibility with c89 2020-10-07 00:10:26 +11:00
UnknownShadow200
6b8a9cc1e3 Don't print garbage characters after actual debug messages to MSVC debug window 2020-10-05 20:18:02 +11:00
UnknownShadow200
ae2443bb91 Fix if you try to sign in multiple times very quickly, you'd go to the server list, but trying to start the game would show 'error: missing IP and/or port' (Thanks 123DMWM)
One way to trigger this was to click 'sign in' at MFA required menu, then click 'sign in' again on the main launcher menu.

It could also be triggered by clicking Sign In, then very quickly clicking Options then Back, then clicking Sign In again.
2020-10-05 11:33:58 +11:00
UnknownShadow200
1758667f1d
Merge pull request #728 from Fam0r/master
Make enter key work in MFA screen
2020-10-05 11:02:35 +11:00
Fam0r
b211a48378 Make enter key work in MFA screen 2020-10-04 20:57:56 +03:00
UnknownShadow200
70ffe98149 if flying is disabled and you are using scrolled out third person camera, immediately reset scroll distance to default instead of when next time user tries to scroll (Thanks Goodly) 2020-10-04 17:02:21 +11:00
UnknownShadow200
bc33bfb686 Avoid the confusing ReducePadding, use simpler SetPadding instead (still got to fix chat though) 2020-10-03 17:12:38 +10:00
UnknownShadow200
ac98c00f3b fix last commit 2020-10-03 15:51:56 +10:00
UnknownShadow200
4fb020a336 font_style --> font_flags 2020-10-03 14:49:39 +10:00
UnknownShadow200
d125a133f4 call HUDScreen_Update directly instead of in Render method 2020-10-03 14:17:06 +10:00
UnknownShadow200
2d9d5561f3 Move AddVertices out of Builder_Stretch and into respective StretchX/Z methods 2020-10-02 20:21:54 +10:00
UnknownShadow200
01c7f1a08f less warnings compiling with emscripten 2020-10-02 01:04:29 +10:00
UnknownShadow200
73a68dca39 Add some touch padding to the right of the inventory scrollbar
This way if you touch your finger a little bit to the right of the scrollbar, it still activates it instead of closing the inventory. (this was quite easy to do on accident)
2020-10-01 23:07:48 +10:00
UnknownShadow200
cad713e6fe Release 1.2.0 1.2.0 2020-10-01 12:22:05 +10:00
UnknownShadow200
b14fd478d7 don't crash game if server sends invalid block id over 768 2020-09-30 23:54:56 +10:00
UnknownShadow200
2e64e28003
Merge pull request #725 from UnknownShadow200/HttpRewrite2
Improve HTTP api
2020-09-30 00:48:47 +10:00
UnknownShadow200
304a3c3651 Opening tab list shouldn't cause mouse button PlayerClick release packets to be sent (Thanks Goodly) 2020-09-29 22:03:11 +10:00
UnknownShadow200
619d061a70 fix last commit and get border around chat (when drawn) to properly DPI scale 2020-09-28 22:05:04 +10:00
UnknownShadow200
d4702e9693 chat logging is disabled on android by default, don't compile freetype code when compiling with emscripten to shave few seconds off compile time 2020-09-28 21:45:51 +10:00
UnknownShadow200
982d0bb925 Reduce target SDK version from 26 to 23 so I can use file:// uris when sharing screenshots to other applications. >= 24 throws a android.os.FileUriExposedException when I try that.
If this causes problems in the future, I made a properly working ContentProvider implementation for screenshots in AndroidContentProvider branch. I tested and it does seem to work, although it's terribly written code and probably breaks somehow. Definitely not worth the two hours I wasted on that and FileProvider.
2020-09-27 22:56:09 +10:00
UnknownShadow200
a466890ac3 Fix 'check for updates' showing 'failed' and add message in updates menu telling user they need to redownload and reinstall apk, fixes #714 2020-09-27 20:11:09 +10:00
UnknownShadow200
351c8d570c remove unused appcompat/constraintlayout dependencies for android version (debug apk 4.4 --> 2.9 MB, release 3.6 --> 2.3 MB)
Also reduce
minimum android version from 4.0 to 3.2
2020-09-27 18:42:49 +10:00
UnknownShadow200
3d220ab7d8 it's probably bad idea to exclude android version from backups 2020-09-27 18:14:00 +10:00
UnknownShadow200
c4f39e57f9 avoid reading a few optional font tables, 6 less i/o reads at startup 2020-09-27 16:09:45 +10:00
UnknownShadow200
2cdd20b4ae Add broken support for auto sharing screenshots taken on android 2020-09-27 16:03:07 +10:00
UnknownShadow200
fe44fb336d
Merge pull request #724 from UnknownShadow200/MobileInv
Improve inventory (especially for mobile)
2020-09-27 09:30:17 +10:00
UnknownShadow200
98f43a5cfa Change Http_AsyncXYZ to return request ID directly, add Http_TryCancel 2020-09-27 09:04:06 +10:00
UnknownShadow200
a8c1304342 For last slot in hotbar for mobile web client, show '...' to indicate it can be clicked on to open inventory 2020-09-26 00:11:36 +10:00
UnknownShadow200
2960e6e116 obsolete TextWidget_Make, improve HUDScreen_Layout, a few other minor fixes 2020-09-25 22:09:51 +10:00
UnknownShadow200
47fb88b86f Fix position of bottom-right CPE text being wrong after unminimising (Thanks Goodly) 2020-09-23 16:54:31 +10:00
UnknownShadow200
ab28547a69 Remove use of italic font from the launcher 2020-09-22 21:58:51 +10:00
UnknownShadow200
c200ffffe8 and fix padding for top and bottom of inventory table 2020-09-21 00:17:27 +10:00
UnknownShadow200
75d437fdb1 Adjust inventory to reduce rows if it doesn't fit on screen 2020-09-20 23:45:45 +10:00
UnknownShadow200
4875746bf6 Fix not being able to place water/lava/bedrock after loading new map in singleplayer (Thanks Guri) 2020-09-20 15:44:34 +10:00
UnknownShadow200
f1faf3250d Start adjusting inventory for DPI 2020-09-19 21:38:14 +10:00
UnknownShadow200
fa355250c1 For mobile, clicking last slot in inventory hotbar instead opens the inventory. Also replace 'inventory' with 'screenshot' in more menu. 2020-09-19 13:42:48 +10:00
UnknownShadow200
31ea08eead
Merge pull request #721 from UnknownShadow200/MobileFixes
Auto adjust game resolution on mobile device rotation  (web client)
2020-09-19 10:21:57 +10:00
UnknownShadow200
0eb62ffb24 make dynamic gl function imports a bit nicer 2020-09-18 18:31:27 +10:00
UnknownShadow200
4ea082e94a fix on desktop browser, it goes fullscreen but then resizes to lower quality windowed resolution 2020-09-17 19:47:05 +10:00
UnknownShadow200
25aed6b6d3 according to Science, it's hazardous to a program's health to read from bogus memory
Fixes auto resize on device rotation not working on ios
2020-09-16 21:31:49 +10:00
UnknownShadow200
6519e52c04 Attempt to automatically resize game window when device orientation changes for mobile web client 2020-09-16 00:58:16 +10:00
UnknownShadow200
8d2afa5e15 fix if you provide IP with 5 numbers, it wrongly just parses the first 4 numbers instead of reporting an error 2020-09-14 19:41:52 +10:00
UnknownShadow200
1d39ce5f12
Merge pull request #719 from SpiralP/patch-1
convert Flip CustomModelAnimType to use a euclidian modulo function
2020-09-14 15:03:51 +10:00