Commit graph

4394 commits

Author SHA1 Message Date
UnknownShadow200
0503f354de specify to skip alpha when drawing launcher on OSX
This saves 1-3 ms on average when redrawing launcher at maximised size
2019-09-17 07:49:10 +10:00
UnknownShadow200
4fa5c10046 Revert "Don't unset fullscreen before going into fullscreen"
This reverts commit 004b1b95d1.
2019-09-16 08:51:02 +10:00
UnknownShadow200
004b1b95d1 Don't unset fullscreen before going into fullscreen 2019-09-16 08:26:23 +10:00
UnknownShadow200
034a2fddae Re-add beta because the game still doesn't work properly in fullscreen on osx 2019-09-16 06:59:40 +10:00
UnknownShadow200
0b6d62c226 Fix typo breaking web client compilation oops 2019-09-15 20:57:48 +10:00
UnknownShadow200
fd8d4c66bc share some more code between carbon/cocoa 2019-09-15 20:52:02 +10:00
UnknownShadow200
6f2c597b84 Combine window with opengl context code
There's no point making them separate since each windowing backend only works with one particular opengl context backend anyways
2019-09-15 20:45:26 +10:00
UnknownShadow200
98f3b73c0a Fix mouse coordinates conversion
Now you can actually click singleplayer in the launcher and then watch the game insta-crash
2019-09-15 18:45:06 +10:00
UnknownShadow200
ddd81db6e2 Window_SetVisible -> Window_Show
We never actually need to hide the window, so it's useless having code to do this
2019-09-15 15:57:39 +10:00
UnknownShadow200
e06091a9fe More work on input events. Now it actually logs mouse x/y. 2019-09-15 15:38:00 +10:00
UnknownShadow200
fa1a00f472 Fix 'select a block' disappearing and grey-ish transparent quad behind block still showing when mouse is over an empty inventory slot in classic mode 2019-09-15 12:45:34 +10:00
UnknownShadow200
efbcef5d59 Work on input events for cocoa backend 2019-09-15 10:06:55 +10:00
UnknownShadow200
dfc1a4249c Add info.plist file for osx, start work on cocoa events 2019-09-14 19:35:30 +10:00
UnknownShadow200
faf09dc423 add extremely inefficient window drawing to cocoa backend 2019-09-14 09:03:30 +10:00
UnknownShadow200
9183838d54 Drop beta from the game title/app name
The game's basic behaviour now works properly on all of windows/osx/linux
2019-09-13 18:35:37 +10:00
UnknownShadow200
bdb57c8248
Add WIP visual studio instructions for compiling plugins 2019-09-13 07:47:06 +10:00
UnknownShadow200
dadfb2b663 add the objective C source used to generate the code for the cocoa backend in window.c 2019-09-13 07:17:17 +10:00
UnknownShadow200
550cc107ce finally fix events not working with cocoa backend 2019-09-12 18:15:07 +10:00
UnknownShadow200
e72eb3dd87 Don't even save an update.sh on osx/linux because it's not used anymore 2019-09-11 08:14:05 +10:00
UnknownShadow200
1d93a62cca Detect if .exe is in a bundle on OSX, and if so, set current directory to folder containing bundle instead of contents/macos folder 2019-09-11 07:28:47 +10:00
UnknownShadow200
7e129bab2f reorganise platform.c a little bit to reduce #ifndef mess 2019-09-11 06:59:10 +10:00
UnknownShadow200
0a2af2162f fix game starting in singleplayer as -psn_0_ user if launched from a bundle on OSX 2019-09-10 20:37:50 +10:00
UnknownShadow200
eb11dde7e6 not working attempt to get events to work with cocoa 2019-09-09 21:17:18 +10:00
UnknownShadow200
b3da71d834 Message boxes show with cocoa backend 2019-09-09 12:14:59 +10:00
UnknownShadow200
3ae754ee1f get launcher window sized and positioned properly, also share some code between carbon and cocoa 2019-09-08 23:11:59 +10:00
UnknownShadow200
d44177806e get a window showing 2019-09-08 22:19:47 +10:00
UnknownShadow200
672eeb904c Start on the incredibly ugly cocoa backend 2019-09-08 18:02:31 +10:00
UnknownShadow200
a3b2f7aad5 Fix window appearing blank white when hidden then shown in dock on OSX 2019-09-07 16:45:43 +10:00
UnknownShadow200
bdaae944b5 Fix clicking 'quit' in menubar or dock not doing anything on OSX.
Now it actually closes the game
2019-09-07 14:35:16 +10:00
UnknownShadow200
3bc620e6c5 Attempt to fix mouse not working in fullscreen on OSX 2019-09-07 12:56:46 +10:00
UnknownShadow200
96a6416725 Fix cursor staying hidden when showing dialog boxes on OSX
This is particularly annoying for the crash dialog box. Although you can still press Enter to dismiss it.
2019-09-07 10:47:28 +10:00
UnknownShadow200
96b57b80d0 Add a mac version of classicube icon 2019-09-07 09:40:10 +10:00
UnknownShadow200
9565bfc236 Fix linux and osx builds 2019-09-05 13:52:41 +10:00
UnknownShadow200
1f93dff0f6 Fix 'getting build time' erroring when used from a path with unicode characters 2019-09-05 13:47:31 +10:00
UnknownShadow200
4be290d9d4 Use the same unlink/rename on linux on OSX too
This means you won't see the terminal appear with a 5 second countdown on OSX anymore
2019-09-05 12:31:05 +10:00
UnknownShadow200
eba6ddd138 Add Font_ReducePadding method
Instead of drawing bitmapped font with large padding and then adjusting v1/v2 in the final texture, this method simply reduces the padding the bitmapped font gets drawn with
2019-09-05 08:21:52 +10:00
UnknownShadow200
c2e5e17109 Cleanup player list widget repositioning 2019-09-04 22:31:39 +10:00
UnknownShadow200
41bfc6b1ae Process_StartUpdater -> Updater_Start 2019-09-04 07:24:28 +10:00
UnknownShadow200
c5b1b019d7 Initial WIP on DPI scaling for in-game 2019-09-03 19:52:42 +10:00
UnknownShadow200
57d9b5f238 Combine input/inputhandler 2019-09-03 19:09:45 +10:00
UnknownShadow200
89f35a5293 actually fix webclient this time 2019-09-02 20:06:11 +10:00
UnknownShadow200
faa11598c3 Fix webclient 2019-09-02 20:01:53 +10:00
UnknownShadow200
4bea005354 Fix clicking on special/alt input not working 2019-09-02 17:09:42 +10:00
UnknownShadow200
c168cb24a3 Don't raise PointerEvents.Moved when old position is exact same as new position 2019-09-02 15:31:47 +10:00
UnknownShadow200
cbc3d9c05e Fix webclient build 2019-09-01 20:38:12 +10:00
UnknownShadow200
9e2a28dd2a more const 2019-09-01 14:38:35 +10:00
UnknownShadow200
21b2d9ce70 less compiler warnings 2019-09-01 13:12:25 +10:00
UnknownShadow200
441359e7b5 Fix 'your build' not updating when you leave then go back to updates menu in launcher (Thanks cybertoon) 2019-09-01 08:52:39 +10:00
UnknownShadow200
de8900c557 Fix playerclick being sent even when server doesn't support CPE. oops. 2019-09-01 08:40:17 +10:00
UnknownShadow200
a3a1784f1a Fix gen level screen selected input widget not getting reset on screen close 2019-09-01 07:58:55 +10:00