5226 Commits

Author SHA1 Message Date
UnknownShadow200
e5ed98c5ce Make scroll wheel must less janky on cocoa 2019-09-30 21:07:14 +10:00
UnknownShadow200
7431825e5f Fix mouse being invisible with dialog boxes and fix /client res insta-crashing with cocoa backend 2019-09-30 17:15:12 +10:00
UnknownShadow200
5d64fbb6ac Attempt to fix texture warping of bedrock outside map at certain angles with 4096 render distance (thanks tornato)
Done by breaking down into 2048x2048 instead of 65536x65536 quads at most
2019-09-29 23:20:26 +10:00
UnknownShadow200
4fa3dd2173 Map numpad clear on OSX keyboards to num lock 2019-09-29 22:27:31 +10:00
UnknownShadow200
ed193a0a92 Implement down/up for modifier flags in cocoa backend (shift/ctrl/alt/cmd/caps lock) 2019-09-29 22:14:42 +10:00
UnknownShadow200
23880246fb 64 bit osx build now updates to 64 bit osx version 2019-09-29 18:39:49 +10:00
UnknownShadow200
bdf9482fa5 print less debugging info 2019-09-29 17:55:58 +10:00
UnknownShadow200
07c4a4795c Add documentation for building 64 bit cocoa backend
Also show 'alpha' instead of 'beta' for coca backend in titlebar
2019-09-29 17:51:27 +10:00
UnknownShadow200
5140d604cf Implement cursor hiding/showing on cocoa backend 2019-09-29 17:44:05 +10:00
UnknownShadow200
68d26ee554 Fix setting cursor position moving to incorrect locations after moving window on cocoa 2019-09-29 17:13:58 +10:00
UnknownShadow200
7c96665b9d Finally fix launcher window redrawing on cocoa backend 2019-09-29 15:13:58 +10:00
UnknownShadow200
696b0ab4f0 actually get window redrawing to sort of work with cocoa
now you don't have to move your mouse over areas to force a redraw. But it still doesn't draw partial redraws properly sometimes.
2019-09-29 14:37:10 +10:00
UnknownShadow200
5b166ee496 Get rid of Init method in Widgets as unnecessary now 2019-09-28 21:55:19 +10:00
UnknownShadow200
c0595f7fb6 Simplify player list widget related code
To be consistent with other widgets, player list widget doesn't hook into events anymore.
2019-09-28 17:19:33 +10:00
UnknownShadow200
4889fc6ec0 Fix entries in tab list underneath cursor position still getting shifted right 4 pixels even when cursor isn't visible (Thanks 123DMWM) 2019-09-28 07:19:37 +10:00
UnknownShadow200
be20b6d093 Move platform-specific dynamic lib default file extension out of Game.c and into Platform.c where it belongs 2019-09-28 07:05:24 +10:00
UnknownShadow200
7cfd8a8570 Update by moving file instead of shelling out to batch script. No more 5 second wait in command prompt, updating is essentially instant now.
Sadly this doesn't fix updating not working on windows 98 still.
2019-09-27 15:18:51 +10:00
UnknownShadow200
0e5b1faa23 Implement fullscreen and getting window state (minimised/normal/fullscreen) on cocoa backend 2019-09-26 19:27:37 +10:00
UnknownShadow200
7c287922db fix not compiling anywhere 2019-09-26 17:58:56 +10:00
UnknownShadow200
fc38e999c4 Get key presses (i.e. actual characters in chat input) working 2019-09-26 08:00:19 +10:00
UnknownShadow200
884e59d864 Don't show the 'download direct3d9 build instead' in warning messages when running on intel gpu + opengl on non-windows OS 2019-09-26 07:17:00 +10:00
UnknownShadow200
61ccbdcaad Fix beeping anytime a key was pressed on cocoa backend 2019-09-25 07:48:56 +10:00
UnknownShadow200
3bb930a35b Go all out and allow any code page 437 character in passwords.
Also only let you input 0-9 in colours input widgets
2019-09-23 08:26:57 +10:00
UnknownShadow200
46ae0bb41b Allow ampersands in passwords in launcher (Thanks OK) 2019-09-23 07:15:50 +10:00
UnknownShadow200
cdd5485a1f Properly DPI offset hacks status text 2019-09-22 19:20:24 +10:00
UnknownShadow200
a637aa517d Get cursor position setting working with cocoa 2019-09-22 18:55:03 +10:00
UnknownShadow200
cde36cc0f2 Don't keep track of mouse wheel position because we only ever care about the delta anyways 2019-09-22 08:56:14 +10:00
UnknownShadow200
d167b227da Get 'quit' in dockbar to work for cocoa 2019-09-20 19:35:05 +10:00
UnknownShadow200
af0f7f9d89 Fix close crashing the game and launcher with cocoa 2019-09-18 22:43:01 +10:00
UnknownShadow200
c5d7873808 Work on handling resize/move/focus/minimise/close with cocoa
Mostly work but resize still crashes and close doesn't properly work
2019-09-18 22:10:22 +10:00
UnknownShadow200
d616cf060c Remove WINDOW_STATE_MAXIMISED and related code because it's not needed anymore. 2019-09-18 20:29:09 +10:00
UnknownShadow200
a60a502154 Get the actual game rendering on cocoa backend 2019-09-17 21:33:06 +10:00
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 004b1b95d16f10b1072b3c780aaaf967cce193a5.
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