UnknownShadow200
86b664e05a
Launcher: Add nordic theme
...
Based on colors from nordtheme.com
Also fixes Direct3D11 backend crashing game if other code attempts to create a texture while the context is lost
2022-01-27 12:02:21 +11:00
UnknownShadow200
bbf858e6ab
Cocoa: Fixe open file dialog not filtering files in executable compiled by buildbot
2022-01-27 00:07:17 +11:00
UnknownShadow200
1010953830
Direct3D11: Use dummy 1x1 white texture instead of default transparent black texture, when Gfx_BindTexture is called with nil texture ID
2022-01-26 21:23:48 +11:00
UnknownShadow200
87bcdd1e43
Try to fix 'The database connection is closing' issues
...
Browsers may rarely randomly close the IndexedDB connection, which would prevent the game from being able to save options or maps anymore until the user restarted the game.
With this commit, the game now listens for the 'onclose' event on the IDBConnection for when the connection is unexpectedly closed - and when the 'onclose' event is raised, clears the cached IndexedDB connection global so that the next call to getDB opens a fresh IndexedDB connection.
I tested this by deleting the IndexedDB database in developer tools (which triggered 'onclose' event) and seemed to work fine
2022-01-26 20:52:50 +11:00
UnknownShadow200
8b986b5ccd
Integrate minimal IDBFS copied from emscripten directly into interop_web.js
2022-01-26 20:26:03 +11:00
UnknownShadow200
cb0cbf4cb7
Fix files from default.zip when extracted with windows built-in zip decompressor causing a 'File not found or no read permission' when attempting to later add back into a .zip file using windows built-in zip compressor
...
Previously, only the Central Diretory Records for files had their modification dates set to the current date, while the Local File Records for files had their modification dates left as 0.
Hence when extracting default.zip using windows' built-in zip decompressor, the resulting files would have a modification and creation date of '0'. (aka 10th March 1601)
Unfortunately, attempting to later put these files back into a .zip using windows' built-in zip compressor would fail with an obscure 'File not found or no read permission' error, which was actually due to the modification/creation date of these files being '0'.
This commit changes Local File Records for files to also have their modification set to the current date, which results in files extracted using windows' built-in zip decompressor now having valid modifcation and creation dates, thus bypassing the 'File not found or no read permission' error
2022-01-26 11:40:21 +11:00
UnknownShadow200
7e54209c21
Direct3D11: Survive device resets/removed situation
...
Now just recreates the device and swapchain instead of crashing
2022-01-25 11:49:17 +11:00
UnknownShadow200
746a902e2e
Add file forgot to update
2022-01-23 18:35:46 +11:00
UnknownShadow200
cc375f1082
Launcher: Move background drawing code out from LBackend.c and back into Launcher.c
2022-01-23 18:28:27 +11:00
UnknownShadow200
f03febce99
Launcher: Fix checkbox not adjusting its position when font isn't Arial
...
Usually this resulted in checkbox being drawn over first 1-2 characters of text
2022-01-23 13:13:26 +11:00
UnknownShadow200
2b0b05358c
Launcher: Change DrawBackground to draw to arbitary bitmap
2022-01-23 12:11:46 +11:00
UnknownShadow200
2b55c6fdb8
Make chat input always cover entire width of the game window (like Minecraft)
2022-01-21 08:52:44 +11:00
UnknownShadow200
03e4c19853
Make back buttons always 400 pixels wide like classic
2022-01-21 08:34:36 +11:00
UnknownShadow200
41c13a2a47
Fix crash if the first list menu you open is a menu without a 'load file' button
2022-01-20 23:00:57 +11:00
UnknownShadow200
b60d30a933
Merge pull request #927 from UnknownShadow200/LoadFile-Maps
...
Add support for loading maps through native open file dialog
2022-01-20 21:09:15 +11:00
UnknownShadow200
fc0397a7ed
Move 'Load file' onto its own line
2022-01-20 18:23:21 +11:00
UnknownShadow200
8b88d3e575
Use Zenity to add Linux support
2022-01-19 20:52:36 +11:00
UnknownShadow200
a2e6cedf42
add support to cocoa backend (64bit macOS)
2022-01-19 19:21:37 +11:00
UnknownShadow200
41226b6d67
Improve filter on Windows and webclient
2022-01-19 12:04:53 +11:00
UnknownShadow200
f7561ebb2a
Initial 'Load file' map support for Windows
...
'Load file' opens a file dialog allowing you to load maps from anywhere on disc
2022-01-19 07:48:25 +11:00
UnknownShadow200
f1b2de34d4
Launcher: Add dedicated DrawBackground method to Screens for drawing background launcher of screen/menu
...
This means that e.g. time isn't wasted with drawing default background, then completely drawing over the top of it with checkresourcescreen's custom background
2022-01-18 11:42:26 +11:00
UnknownShadow200
c83f53ae93
X11: Fix 30 bit depth showing corrupted launcher colors (Thanks colbydray), fixes #642
2022-01-15 12:54:26 +11:00
UnknownShadow200
7ec5c09696
fix linux build not compiling with missing line
2022-01-15 10:10:47 +11:00
UnknownShadow200
308d2ec21d
X11: Optimise launcher redrawing for non 24/32 bit depths
2022-01-15 10:04:34 +11:00
UnknownShadow200
3ef9938aa9
X11: Fix launcher appearing completely corrupted when visual depth is not 24/32 bit depth
2022-01-15 00:41:14 +11:00
UnknownShadow200
2502f3fe41
un-un-re-enable ModernGL build
2022-01-14 08:29:57 +11:00
UnknownShadow200
3576fdf149
Release 1.3.1
1.3.1
2022-01-11 11:53:48 +11:00
UnknownShadow200
b0387b8e46
Un-re-enable ModernGL build
2022-01-11 11:40:33 +11:00
UnknownShadow200
9b4150135c
Fix if you open inventory while holding a block hidden from inventory, the description of the hidden block no longer appears (Thanks Goodly)
2022-01-10 17:33:36 +11:00
UnknownShadow200
837d7bfff8
Disable high DPI support
2022-01-09 21:20:56 +11:00
UnknownShadow200
38bda8e1cd
Simpify button/text widget texture creation
2022-01-08 23:17:48 +11:00
UnknownShadow200
add56ce622
Quick fix for UI elements being scaled too large on desktop with high DPI (thanks FizzWhiz)
2022-01-07 23:14:22 +11:00
UnknownShadow200
1728314b59
Re-enable ModernGL build
2022-01-05 15:28:41 +11:00
UnknownShadow200
fdd6e58063
Fix last commit missing one changed file, also fixup line endings
2022-01-05 15:16:10 +11:00
UnknownShadow200
9fda93eaac
Webclient: Fix trying to click invalid urls in chat causing game crash message to appear
...
Although the game itself would keep working in this case
2022-01-05 13:06:37 +11:00
UnknownShadow200
64ad1a5f0d
Release 1.3.0
1.3.0
2022-01-04 12:04:06 +11:00
UnknownShadow200
7f21511aaa
Merge pull request #924 from UnknownShadow200/WebInactive
...
Change webclient to run in very low performance mode when tab is moved to background
2022-01-04 11:48:46 +11:00
UnknownShadow200
bf8d280d96
Remove Modern OpenGL build for now
2022-01-03 22:06:58 +11:00
UnknownShadow200
86f7d7c3fa
Windows: Fix crashing when running in OpenGL 1.1 fallback mode and you enable mipmaps (Thanks popgoesme700)
2022-01-02 17:26:17 +11:00
UnknownShadow200
fd4921ea32
Initial position should be previous position not next position whoops
2022-01-02 16:52:03 +11:00
UnknownShadow200
afa916caa9
Webclient: Fix can't be pushed when not active tab
2022-01-02 15:52:52 +11:00
UnknownShadow200
cfb6f11dfe
Webclient: Make system fonts render closer to how they are rendered on desktop/mobile
2022-01-01 22:50:20 +11:00
UnknownShadow200
cafd511d75
Fix not working in webclient
2022-01-01 17:27:02 +11:00
UnknownShadow200
7b8469573f
WIP on switching to very low performance mode when tab is hidden instead of completely suspending the game
2022-01-01 16:58:30 +11:00
UnknownShadow200
465771e2ec
Fix rare crash when generating mipmaps, fixes #923
...
When generating mipmaps from a 1 wide pixel bitmap (e.g. 1x256 --> 1x128), the bilinear filtering code would accidentally read 1 pixel past the end of the source bitmap when generating the last row.
On most devices this happened to just always work by accident, but on one user's device this would sometimes result in a SEGFAULT
2021-12-31 15:24:49 +11:00
UnknownShadow200
ade58b702e
Make ModernGL build compile for Windows
2021-12-30 22:37:34 +11:00
UnknownShadow200
f2afaf36d7
Fix DPI scaling of buttons mostly
2021-12-27 21:07:15 +11:00
UnknownShadow200
7b3feb90df
Mobile: Adjust onscreen buttons to move into multiple columns instead of overflowing into jump/fly buttons and beyond
2021-12-27 20:23:56 +11:00
UnknownShadow200
dee7cdb16e
Make menus closer to classic
...
Pause screen: Add 'game menu' title and reposition back button
Gen screen: Add 'Generate new level' title and reposition cancel button
2021-12-26 21:51:10 +11:00
UnknownShadow200
08bbf6a165
Fix LimitXYZ mode still undershooting by a couple FPS when moving around
...
This was because the frame time calculation code was not accounting for how long Window_ProcessEvents took
2021-12-25 17:16:00 +11:00