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
UnknownShadow200
7eabf45bcd
Drawer2D_MakeTextTexture shouldn't try to draw anything and just returns an empty texture when context is lost
2019-08-29 10:31:13 +10:00
UnknownShadow200
e91d863997
Move font initing/freeing to contextlost/contextrecreated for all menus
...
This fixes clicking 'use system font' crashing the game from recent changes
2019-08-29 08:47:40 +10:00
UnknownShadow200
a4e67703cc
Don't crash if destroying OpenGL context fails
...
Frankly there's no point crashing at this point, since it's the second last thing the game thing does (last thing is saving options) before exiting anyways
2019-08-28 21:38:40 +10:00
UnknownShadow200
5279a6f2a0
Flush X11 message box on close and set WM_TRANSIENT_FOR hint.
...
This means the dialog box will immediately close instead of waiting until all initial fonts have been loaded when fontscache.txt doesn't exist. Setting WM_TRANSIENT_FOR marks the message box as a dialog box on the main window, which causes it to have the desired behaviour of not appearing in the taskbar and not having a minimise box.. at least in some WMs
2019-08-28 19:11:10 +10:00
UnknownShadow200
4f7a82356a
Instead of using sh update script with xterm on linux, just directly unlink and rename exe file, then fork/exec the process
...
This means you don't have to sit through a pointless 5 second delay, or having to leave the xterm window open because closing it closes the game. Also this fixes the updater on some recent distributions that don't have xterm included by default anymore.
2019-08-28 07:38:55 +10:00
UnknownShadow200
7e3fa33711
Fix four space instead of tab usage in a few places in the code
2019-08-27 22:35:11 +10:00
UnknownShadow200
ad6c247154
Filter events in the X11 message box to only apply to to the message box window
...
This fixes launcher window being resized incorrectly with i3 WM if the 'initing fonts cache' message box appears, but without breaking any other WMs.
2019-08-27 22:20:40 +10:00
UnknownShadow200
f18fcf4f67
Move fonts to ContextRecreated only for TexIdsOverlay/UrlWarningOverlay
2019-08-27 20:08:25 +10:00
UnknownShadow200
ea00719c2d
Fix changing system font not changing font of fonts list menu
2019-08-27 07:35:25 +10:00
UnknownShadow200
e1b2aa32ea
move a bit of code out of inputhandler and into inventory
2019-08-26 21:32:20 +10:00
UnknownShadow200
363f28f52b
Add cc_uint8 definitions for metrowerks
...
Don't be fooled though, compiling for that is still completely broken
2019-08-25 21:50:21 +10:00
UnknownShadow200
72fb33f9b6
Even more const and fix compiler warnings
2019-08-25 19:56:17 +10:00
UnknownShadow200
8b48a3381c
Fix linux build
2019-08-25 19:51:21 +10:00
UnknownShadow200
39cd47b2d3
use cc_uint8 instead of uint8_t so we can avoid stdint.h for gcc and clang
...
This fixes not compiling with mingw32 out of the box on windows (not mingw-w64, it works fine) due to WINVER being defined somewhere in the headers included by stdint.h. Even after that it would produce executables that wouldn't work properly unless DUNICODE was also added.
2019-08-25 19:36:45 +10:00
UnknownShadow200
0cf74e9878
add some const and replace some int16_t with short
2019-08-25 16:58:37 +10:00