Commit graph

4277 commits

Author SHA1 Message Date
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
UnknownShadow200
f668cc0be3 temp fix mouse input being broken 2019-09-01 07:39:58 +10:00
UnknownShadow200
08cf8f5805 WIP changes 2019-09-01 07:29:27 +10:00
UnknownShadow200
5072b8566d MouseEvents -> PointerEvents 2019-08-31 17:28:06 +10:00
UnknownShadow200
b3a7397e77 Key_Clear shouldn't change mouse button state
also rename KeyEvents to InputEvents
2019-08-31 07:45:49 +10:00
UnknownShadow200
8aaa91e591
Merge pull request #602 from UnknownShadow200/KeyRewrite
Key rewrite
2019-08-30 20:06:09 +10:00
UnknownShadow200
53349919c4 Fix PlayerClick still being sent with F10 overlay open 2019-08-29 23:24:36 +10:00
UnknownShadow200
6d8e4fb3a1 Fix playerclick sending
Originally if you were say holding down left and pressed right, a false 'left mouse released' playerclick packet got sent to the server.
2019-08-29 20:53:05 +10:00
UnknownShadow200
a3380f8a6e Rename stuff from Key_Names/Pressed to Input_Names/Pressed and start tidying up InputHandler 2019-08-29 20:09:40 +10:00
UnknownShadow200
b719422ffc Fix pressing key buttons (like T) leaking through in listscreen to screens underneath
i.e. you could press T while in change texture pack and that would open chat, even though it shouldn't
2019-08-29 19:36:57 +10:00
UnknownShadow200
9505a8c373 Treat left/right mouse as keys too, so hotkeys can be bound to them 2019-08-29 19:31:13 +10:00
UnknownShadow200
d82b40bb0b Treat middle mouse button as a key instead.
This means you can rebind 'pick block' to another key, and then assign a hotkey to middle mouse
2019-08-29 18:34:21 +10:00
UnknownShadow200
11e44e9a6b Cache height for fonts 2019-08-29 15:16:44 +10:00
UnknownShadow200
12833fdaa5 Take FontDesc out of Core.h and remove its Typedef 2019-08-29 13:28:28 +10:00
UnknownShadow200
aac15edbab Fix OSX build 2019-08-29 13:14:11 +10:00
UnknownShadow200
83ac758a38 Move the freetype system font stuff out of platform.c and into its more logical place in Drawer2D
Except for actually getting list of system fonts, that's still completely platform specific so stays in Platform.c
2019-08-29 13:05:54 +10:00
UnknownShadow200
acf288d67f Release 1.0.7 2019-08-29 10:55:14 +10:00
UnknownShadow200
6530f376f2 Fix OpenGL build on windows 2019-08-29 10:43:47 +10:00