210 Commits

Author SHA1 Message Date
UnknownShadow200
12b6752f62 Fix characters in special input widget not having enough padding
Temp fix for now, need to do proper fix later
2020-11-29 10:11:52 +11:00
UnknownShadow200
64d9a03aff Split up Input_SetPressed into Input_Set/Input_SetPressed/Input_SetReleased 2020-11-23 22:40:30 +11:00
UnknownShadow200
9be6079ffc And fix those button labels being slightly offcentre 2020-11-23 00:56:38 +11:00
UnknownShadow200
892ce79bdb Add Drawer2D_MakeBitmappedFont function 2020-11-18 12:57:53 +11:00
UnknownShadow200
ce5611c91c Cleanup Http/Drawer2D a little bit more 2020-11-08 00:21:53 +11:00
UnknownShadow200
6b63ccbd38 Make Drawer2D text/font functions rely on whether font handle is NULL or not instead of Drawer2D_BitmappedText global 2020-11-07 20:36:04 +11:00
UnknownShadow200
9d1f2cda6a Use stub Font_UNSAFE_GetDefault for web client to prevent it getting bloated into ~180 lines of JS code 2020-11-07 20:14:48 +11:00
UnknownShadow200
8981b3cbbd Don't load system fonts list until actually needed 2020-11-07 19:53:34 +11:00
UnknownShadow200
549f0a5cfe Don't init FreeType library until actually required 2020-11-07 16:23:51 +11:00
UnknownShadow200
5c74425d79 Try to fix weird scaling resolutions on android devices
Also rename Display.DpiX/Y to ScaleX/Y to reflect what it actually is
2020-11-06 09:31:11 +11:00
UnknownShadow200
b23027cf64 Make names of logger functions more consistent, and improve Logger_SimpleWarn 2020-11-06 09:16:45 +11:00
UnknownShadow200
a4e08431b2 Ignore system fonts that don't have valid mappings for a/z/A/Z (Thanks 123DMWM)
On android, cuts down number of font pages from 35 to 5
2020-10-31 17:53:21 +11:00
UnknownShadow200
e31e42c665 Fix if entity name has ampersands not followed by a used colour code, the shadow back layer wrongly strips them (Thanks Goodly)
Also fix that for chat logging too
2020-10-24 10:50:06 +11:00
UnknownShadow200
88d1d9513a Avoid including String.h in almost all .h files 2020-10-18 12:23:06 +11:00
UnknownShadow200
9501564a72 String --> cc_string 2020-10-18 11:53:28 +11:00
UnknownShadow200
4e982f3b4b Rename Codepoint typedef to cc_unichar to more accurately reflect what it is
Bah, strings. A unicode codepoint definitely does not fit in 16 bits
2020-10-17 16:47:54 +11:00
UnknownShadow200
bc33bfb686 Avoid the confusing ReducePadding, use simpler SetPadding instead (still got to fix chat though) 2020-10-03 17:12:38 +10:00
UnknownShadow200
ac98c00f3b fix last commit 2020-10-03 15:51:56 +10:00
UnknownShadow200
4fb020a336 font_style --> font_flags 2020-10-03 14:49:39 +10:00
UnknownShadow200
fe44fb336d
Merge pull request #724 from UnknownShadow200/MobileInv
Improve inventory (especially for mobile)
2020-09-27 09:30:17 +10:00
UnknownShadow200
2960e6e116 obsolete TextWidget_Make, improve HUDScreen_Layout, a few other minor fixes 2020-09-25 22:09:51 +10:00
UnknownShadow200
ab28547a69 Remove use of italic font from the launcher 2020-09-22 21:58:51 +10:00
UnknownShadow200
e221e9f343 Bitmap shouldn't be typedefed 2020-08-01 12:19:58 +10:00
UnknownShadow200
5bf63e79a3 Use single Event_Register_ macro instead of Event_Register_XYZ macros
The Event_Register_XYZ were all just defined to Event_Register_Macro anyway, completely ignoring the type of the arguments given. Therefore it's better to just give a single type unsafe Event_Register_ macro, rather than misleading the user into thinking they were using type safe macros
2020-07-29 17:45:59 +10:00
UnknownShadow200
fd28ce7b27 Add single Event_UnregisterAll method, instead of having code everywhere calling Event_UnregisterXYZ 2020-07-29 11:48:30 +10:00
UnknownShadow200
8bcbad56f6 Consistently use OnInit/OnFree/OnReset everywhere 2020-07-27 18:32:01 +10:00
UnknownShadow200
149fe29c23 Enforce third person camera clipping when -noclip is in motd (thanks goodly) 2020-07-26 12:50:44 +10:00
UnknownShadow200
fa3a9ab3d7 Also include Geneva in default fonts list, fixes crashing on macOS panther 2020-07-09 22:52:30 +10:00
UnknownShadow200
e140731504 Make Bitmap use BitmapCol* instead of u8*, make fields lowercase for consistency 2020-07-05 19:57:23 +10:00
UnknownShadow200
54a223f691 Add Gfx_UpdateTexture in preparation for updating textures improvements 2020-07-05 14:15:05 +10:00
UnknownShadow200
fab91996d3 Add faster EntryList_Load alternative that doesn't check for duplicate keys. On my machine with 492 fonts, reduces loading fonts list time at startup from ~7 ms to ~1ms. 2020-07-02 21:38:50 +10:00
UnknownShadow200
6a1235f6a9 Use separator argument instead, eliminate need for separate EntryList struct 2020-07-01 23:06:17 +10:00
UnknownShadow200
278e7c70cd Remove path field from EntryList struct, move to argument for Load/Save 2020-07-01 21:12:14 +10:00
UnknownShadow200
e29e8e1ae9 Make GradientBlend a bit faster because it doesn't need to clamp each pixel. Also cleanup naming in Logger.c 2020-06-27 23:04:55 +10:00
UnknownShadow200
6332bc55e4 Try 'Slate for OnePlus' font before 'Roboto', fixes launcher text appearing as boxes on some android 10 devices (Thanks Odd0002) 2020-06-25 12:55:15 +10:00
UnknownShadow200
9d68364781 Combine GameStructs.h into Game.h
Also breaks all plugin source code, sorry about that
2020-06-13 11:13:41 +10:00
UnknownShadow200
118465330f add some more comments 2020-05-26 21:44:15 +10:00
UnknownShadow200
96676fb374 Minor style fixes 2020-05-09 14:42:01 +10:00
UnknownShadow200
8d6bce32ff
Merge pull request #655 from UnknownShadow200/GfxFixup
Use raw struct instead of typedefs for vertex structs
2020-05-09 11:07:20 +10:00
UnknownShadow200
3aa69c888a If we fail to init any system fonts in Drawer2D_MakeFont, immediately abort the client.
Otherwise just end up crashing from null pointer elsewhere
2020-05-07 10:14:37 +10:00
UnknownShadow200
9924ba2a04 Get rid of VertexStructs.h and fixup some includes 2020-05-06 22:41:16 +10:00
UnknownShadow200
ce99219bd9 remove some unused code 2020-04-30 17:59:09 +10:00
UnknownShadow200
8ce30ea785 Remove Drawer2D_MeasureText and use Drawer2D_TextWidth/Height instead 2020-04-29 20:04:36 +10:00
UnknownShadow200
3c6d837088 remove String_StripCols from public API 2020-04-29 11:44:33 +10:00
UnknownShadow200
556134290b Hide the evidence I didn't fully test last commit 2020-04-28 22:34:52 +10:00
UnknownShadow200
22e0afc2fc Make system font drawing a little bit faster 2020-04-28 22:21:43 +10:00
UnknownShadow200
7a0a9d628a Export DisplayInfo to plugins 2020-04-24 21:30:29 +10:00
UnknownShadow200
ec526e6751 Fix game not working on linux when only 16 bit depthbuffers are supported 2020-04-21 18:15:12 +10:00
UnknownShadow200
d69ac992e3 Make calculating font bitmap tile widths a fraction faster 2020-04-21 00:44:32 +10:00
UnknownShadow200
d64d0eb9e1 Fix game crashing if using default.png with width < 16 or non power of two 2020-04-20 22:47:22 +10:00