4664 Commits

Author SHA1 Message Date
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
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