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
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
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
UnknownShadow200
482df54808
Drop UniString
...
The only thing I intended to use it for was exe path with setcurrentdirectory, but that doesn't matter anymore
2019-08-25 11:57:39 +10:00
UnknownShadow200
bad7f79b7a
Fix chat input caret appearing at wrong Y position after resize with opengl
2019-08-25 11:41:08 +10:00
UnknownShadow200
2dea000b71
remove hardcoded connect to 127.0.0.1, am idiot
2019-08-25 10:51:11 +10:00
UnknownShadow200
d1fb95092e
Merge pull request #601 from UnknownShadow200/ScreenRewrite
...
Merge screen rewrite stuff
2019-08-25 10:44:12 +10:00
UnknownShadow200
88c8ed3cc6
fix font resizing for OpenGL
2019-08-25 10:36:57 +10:00
UnknownShadow200
5d4a3a0df4
fix alt text being placed improperly on resize
2019-08-25 09:48:18 +10:00
UnknownShadow200
8da37b0437
WIP on getting alt text input to layout properly on unminimise
2019-08-24 20:34:05 +10:00
UnknownShadow200
fae4fcbb1a
Inventory table widget isn't hardcoded to centre alignment anymore
2019-08-24 20:09:43 +10:00
UnknownShadow200
ffb92f652f
Fix chatlines not updating
2019-08-23 21:14:45 +10:00
UnknownShadow200
49152ee5d9
Remove some unused freetype code
2019-08-23 20:38:19 +10:00
UnknownShadow200
9c8037b95d
Fix blank line appearing when you type /client cuboid
2019-08-23 08:01:56 +10:00
UnknownShadow200
13b6407b3d
Fix leaving fullscreen resetting maximised state on linux
2019-08-22 19:21:52 +10:00
UnknownShadow200
e10237c5e5
Status should be rendered behind menus/inventory menu instead of on top
2019-08-22 08:00:13 +10:00
UnknownShadow200
451400fd19
Fix alt input widget not being moved up when you append to input by clicking on chat
...
Also fix chat geting positioned wrongly in OpenGL build and when reconnecting
2019-08-21 21:16:03 +10:00
UnknownShadow200
812094465b
To make original classic, loading menu disables showing or interacting with all other menus
2019-08-21 21:05:41 +10:00
UnknownShadow200
f9bf1029fa
Fix disconnect screen not disappearing when you click Reconnect
2019-08-21 20:52:04 +10:00
UnknownShadow200
5febbe41d0
Fix texpack/url overlays not properly stopping mouse events propagating to menus underneath
2019-08-21 20:44:10 +10:00
UnknownShadow200
ac7e02208c
Fix position/hacks status still showing in top-left even when in menus
2019-08-21 20:26:38 +10:00
UnknownShadow200
15b67e1b02
Fix generating screen not getting closed, fixed MouseUp PlayerClick not being sent when going into a screen
2019-08-21 20:13:46 +10:00
UnknownShadow200
3d7957570b
try to use TextHeight instead of MeasureText
2019-08-21 19:58:18 +10:00
UnknownShadow200
b6d9b9b88d
Fix scroll position in chat and chat input caret getting reset on window resize by separating out init/contextrecreated
2019-08-21 19:26:03 +10:00
UnknownShadow200
60565346fa
Changing font doesn't need to call Elem_HandlesMouseMove anymore, separate Init/ContextRecreated in TexIdsOverlay.
...
This means all screens in Menus.c are now separated. Now onto the mess that is HUDScreen.
2019-08-20 22:21:19 +10:00
UnknownShadow200
711c77a48d
Fix menu input disappearing on resize
...
Also make all screen/widget VTABLEs const
2019-08-20 21:32:04 +10:00
UnknownShadow200
42aa261440
Fix extended help disappearing on window resize and changing FPS limit mode
2019-08-20 20:55:40 +10:00
UnknownShadow200
4eed4d6234
WIP on redesigning menuoptionsscreen to separate init/contextrecreated
2019-08-20 19:34:27 +10:00
UnknownShadow200
1f93a262f8
Less compile warnings on linux
2019-08-20 07:17:05 +10:00
UnknownShadow200
53f1c4463b
Fix game crashing with 'making default font failed' if the file associated with the default font is deleted
2019-08-19 21:41:18 +10:00