UnknownShadow200
a4ca0a0393
Fix not compiling
2019-10-20 08:23:52 +11:00
UnknownShadow200
bf85dda072
Rename HUDscreen to ChatScreen and StatusScreen to HUDScreen
...
This will make sense eventually
2019-10-20 08:16:25 +11:00
UnknownShadow200
7844c8159f
Don't split buttons down middle when width >= 400 instead of just == 400. Fixes buttons screwing up when on massive DPI screens. (Thanks 123DMWM)
2019-10-19 17:03:50 +11:00
UnknownShadow200
f533ee3769
Scale raw canvas XY by CSS size in webclient for mouse/touch events
...
This fixes mouses coordinates being wildly wrong when you open devtools or rotate the screen
2019-10-19 16:56:07 +11:00
UnknownShadow200
7ba4ef8033
Fix per-axis model scales still getting restricted for other entities.
...
Only your own entity is supposed to get restricted
2019-10-19 12:47:06 +11:00
UnknownShadow200
e61d784b64
Fix webclient not compiling
2019-10-19 09:05:03 +11:00
UnknownShadow200
2c8520e3a1
If a touch finger moves more than 5 pixels from where it started the touch, treat the input as locked to camera. This means it won't trigger block delete/plave anymore.
2019-10-19 08:21:26 +11:00
UnknownShadow200
08e29d9ac3
Actually fix menus not working in webclient on desktop
2019-10-17 10:46:41 +11:00
UnknownShadow200
040bd10bf4
And get block deleting to partially work on mobile again
2019-10-17 10:30:34 +11:00
UnknownShadow200
92de07776f
Attempt to make it so clicking on GUI means that touch pointer no longer moves camera until it is released
2019-10-17 09:16:34 +11:00
UnknownShadow200
ce6c1094a3
Fix input getting intercepted by the transparent overlay
2019-10-17 08:17:35 +11:00
UnknownShadow200
b392be3fea
show the textinput for mobile as transparent overlay over top of game
2019-10-17 08:09:04 +11:00
UnknownShadow200
b486f04f3e
Show an error in chat instead of crashing when can't go fullscreen on 32-bit mac build.
2019-10-16 22:06:38 +11:00
UnknownShadow200
8326051b08
Remove updater functions from plugin API
2019-10-16 21:21:49 +11:00
UnknownShadow200
d61b33665a
Use LSOpenCFURLRef directly to open url in browser, instead of jumping through /usr/bin/open
2019-10-16 20:17:16 +11:00
UnknownShadow200
564db66126
Make the download button front and centre in save menu in web client
...
No need for the text about MCEdit or the grey line anymore
2019-10-15 23:38:19 +11:00
UnknownShadow200
6feee064a2
Include DPI scale in /client res, also fix /client res getting DPI scaled twice when game is next started
2019-10-15 19:29:52 +11:00
UnknownShadow200
51f2ffcbe4
Fix clipboard not working with recent emcc/clang due to Window_GotClipboardText not getting exported (Thanks Fam0r)
2019-10-15 06:58:58 +11:00
UnknownShadow200
32e4d07a49
don't need to check Builder_Counts for sprites
2019-10-14 09:51:33 +11:00
UnknownShadow200
c1d61af91f
cache World.Blocks/World.Blocks2 in ReadChunkData
...
Otherwise it gets reloaded from memory every single time, i.e. at least width*height*length times
2019-10-14 09:06:43 +11:00
UnknownShadow200
cee0fd38c2
DPI scale widgets and stuff in web client too
2019-10-13 18:45:25 +11:00
UnknownShadow200
298d497c55
DPI scale mouse coordinates in web client
2019-10-13 12:50:25 +11:00
UnknownShadow200
e608660785
Show awful HUD for web client when running on a mobile device, and attempt to get touch and on-screen keyboard to work.
...
not sure if this works though since I'm only using the android emulator
2019-10-13 11:47:52 +11:00
UnknownShadow200
a6773e8f79
Use int instead of cc_bool for return types in places.
...
While this makes almost no difference in desktop builds, for the web client, the produced code ends up looking like X = func(); Y = (x<<24>>24), with Y being used. Now just X is used.
2019-10-13 10:13:13 +11:00
UnknownShadow200
1f25d5ff28
Fix map download to work in IE11
2019-10-12 13:15:45 +11:00
UnknownShadow200
cd08e91473
Build the web client with LEGACY_VM_SUPPORT so it works in IE11
2019-10-12 12:11:49 +11:00
UnknownShadow200
ba9040b17c
Fix me misspelling clipboardData which broke paste in chrome
2019-10-12 12:07:10 +11:00
UnknownShadow200
e8bc122b8d
Fix OSX build
2019-10-12 11:53:48 +11:00
UnknownShadow200
6d275b5cd7
Attempt to fix clipboard in web client with IE11
...
Sorta works when an input textbox is selected
2019-10-12 11:49:45 +11:00
UnknownShadow200
52ae9a2beb
Fix trying to save over existing map not doing anything (Thanks Fam0r)
2019-10-12 08:50:28 +11:00
UnknownShadow200
bbd0af1912
Fix launcher background stuffing up when either fully black or white (Thanks DuckTummy)
2019-10-12 08:06:04 +11:00
UnknownShadow200
db33497d03
WIP on adding a download button to save map menu in web client
...
I've only tested this on chrome, dunno if it works with other browsers. And it doesn't interact properly with the save as dialog, so there's a chance the game could corrupt the memory holding the compressed map data in the background.
2019-10-11 23:29:15 +11:00
UnknownShadow200
616e0673be
Keep in register instead of passing through a pointer in Builder1DPart_CalcOffsets
2019-10-10 21:49:05 +11:00
UnknownShadow200
3798a2d6e2
Avoid a pointless matrix copy and multiply in Entity_GetTransform
2019-10-10 19:55:05 +11:00
UnknownShadow200
2465b488d4
Start replacing static inline methods with macros
...
Although they got inlined on the desktop builds, they do not in the web client. Worse than that though, the .js file ends up with multiple copies of the same method. (For instance there are 14 copies of Vec3_Add)
2019-10-10 18:10:39 +11:00
UnknownShadow200
7eec5b3b5b
Fix system fonts
2019-10-10 15:06:06 +11:00
UnknownShadow200
7b1f08b06f
ReturnCode -> cc_result
2019-10-10 13:30:07 +11:00
UnknownShadow200
540bd993b2
bool -> cc_bool, for better compatibility with system headers that define bool type
2019-10-10 13:20:30 +11:00
UnknownShadow200
060afd7d7b
Fix R/G/B not being clamped in Gradient_Blend
2019-10-10 10:57:06 +11:00
UnknownShadow200
5513d49b85
Merge pull request #607 from UnknownShadow200/BitmapColRewrite
...
Bitmap col rewrite
2019-10-10 10:49:48 +11:00
UnknownShadow200
657a967910
Only load register once instead of 3-4 times per iteration in Png_MakeRow
2019-10-09 07:50:48 +11:00
UnknownShadow200
e07712d725
Better c89 compatibility
2019-10-07 20:33:16 +11:00
UnknownShadow200
955cfd151f
Fix textures on big-endian systems.
...
We must not forget our PowerPC comrades
2019-10-07 19:40:55 +11:00
UnknownShadow200
b62a78765d
Remove Math_FastTan
...
Despite the name, it's not even fast at all. And it's only used from one place where replacing with a simple sin(x) / cos(x) will do anyways.
2019-10-07 18:08:48 +11:00
UnknownShadow200
80ee35fdce
Fix all compile errors
...
Hopefully didn't break too much
2019-10-07 17:55:04 +11:00
UnknownShadow200
d7d73fa526
less compile errors
2019-10-07 14:56:16 +11:00
UnknownShadow200
0053d2245d
add much more detail about supported platforms
2019-10-07 13:23:07 +11:00
UnknownShadow200
df31c95f83
Initial WIP on making BitmapCol raw uint32.
...
Also causes hundreds of compile errors, oops.
2019-10-06 14:01:31 +11:00
UnknownShadow200
e0620c5887
Add a few explicit casts so less errors when compiling as C++
2019-10-06 13:58:10 +11:00
UnknownShadow200
97241ac63c
Merge pull request #606 from UnknownShadow200/ColRewrite
...
Col rewrite
2019-10-06 10:39:17 +11:00