1834 Commits

Author SHA1 Message Date
Fabian Greffrath
adc76a8ea7 simplify matters 2023-09-13 19:42:39 +02:00
Fabian Greffrath
eb5552057e fix right-aligned hud widgets partially drawn off-screen
Fixes #1201, thanks @liPillON
2023-09-12 17:25:08 +02:00
Roman Fomin
4aa9db1ee3
implementation of PC Speaker sound (taken from Chocolate Doom) (#1200)
* add I_ShutdownModule, cosmetic changes

* move the volume adjusting to `I_PCS_UpdateSoundParams`

* use vanilla S_AdjustSoundParams

* stop all sources before shutdown the module
2023-09-12 20:50:54 +07:00
Fabian Greffrath
aabca29fcc
reset menu string editing with ESC (#1199)
* reset menu string editing with ESC

* consider ESC is catched early

* call action routine even if string change is aborted

* M_StringDuplicate() instead of strdup()
2023-09-08 08:11:21 +02:00
Fabian Greffrath
082edd25ac display Automap toggle messages with togglemsg() 2023-09-07 11:25:23 +02:00
Fabian Greffrath
178493dede
add obituaries (#1198)
* add obituaries

Fixes #1092

* add forgotten files

* cosmetics

* add Voodoo obituary

* enable by default, change default color

* special obituaries only for damaging slime and lava

* nicer formatting

* add forgotten DEH substitute for OB_VOODOO

* fix constness issue

* remove unnecesssary includes

* remove bogus comment

* ouch, add back net_client.h include
2023-09-07 08:59:43 +02:00
Roman Fomin
c8302ce682 change the verbosity level for the sndfile error message
This error always occurs when there is tracker music in PWAD.
2023-09-06 16:18:48 +07:00
Roman Fomin
89fb25806f
fix colored console output in Windows cmd.exe (#1197) 2023-09-06 14:13:57 +07:00
Fabian Greffrath
652827f4cb
review message verbosities (#1196)
* review message verbosities

Fixes #1193

* midifile.c: promote VB_WARNING to VB_ERROR

* i_winmusic.c: pass a severity parameter to MidiError()

* i_flmusic: only print serious warnings by default

* shut up fuidsynth even more

* simplify matters
2023-09-05 09:51:36 +02:00
Fabian Greffrath
4058824900
Initialize logging verbosity immediately after parsing config (#1195)
* print config and version info after I_PrintfInit()

* move config parse warning

* rearrangements

Fixes #1194 

* add comment

* replace I_PutChar() with explicit newlines

* fix forgetto

---------

Co-authored-by: Roman Fomin <rfomin@gmail.com>
2023-09-04 09:10:20 +02:00
Fabian Greffrath
9dfe03f212 kick out the -cdrom parameter 2023-09-01 08:27:39 +02:00
Fabian Greffrath
c33014ff89
clean interface for logging to console (#1191)
* initial implementation idea

* next step

* oversights

* apply PRINTF_ATTR() directly to the function definition

* hopefully fix format string error

* simpler solution

* fix linking error on windows

* make default verbosity configurable

* convert the first batch of printing calls

* register -verbose parameter

* remove ANSI color escape sequences on Windows

* convert the next batch of print calls

* fix omplicit declaration in i_sound.c

* d_main.c

* convert some more files, trailing space means no newline

* some more conversions, some comments

* more conversions

* final conversions?

* remove some more explicit newlines

* fix typo/forgetto
2023-09-01 08:23:27 +02:00
Fabian Greffrath
445ab3e208 non-existent cannot be a patch lump 2023-08-31 12:47:15 +02:00
Fabian Greffrath
275b5e73f1 properly calculate maximum HUD text line length
Fixes #1192, thanks @MrAlaux
2023-08-30 21:41:03 +02:00
Fabian Greffrath
3464ee75a1 reinitialize Automap if screen size changes while it is enabled
Fixes #1188, thanks @MrAlaux
2023-08-29 08:40:24 +02:00
Fabian Greffrath
5733435976 fix more type ambiguities
Fixes #1190, thanks again @coelckers
2023-08-27 14:59:35 +02:00
Fabian Greffrath
6b17ece275 fix a type ambiguity in maptexture_t
Fixes #1189, thanks @coelckers
2023-08-27 11:03:25 +02:00
Fabian Greffrath
288f88199f set autoload directory relative to executable directory
@MrALaux could you please test if autoload works with the AppImage from this commit?
2023-08-26 18:48:23 +02:00
Fabian Greffrath
483e4e7892
add support for XGLN/ZGLN nodes (#1186)
* add support for XGLN/ZGLN nodes

Code taken from DSDA-Doom, thanks @kraflab

Fixes #1185

* docs

* fix typo/forgetto

* document origin

* register new parameter

* add some linedef == NULL checks

* condense P_SetupLevel() logging even further

* cosmetics
2023-08-24 20:11:36 +02:00
Fabian Greffrath
06bc276c64
use CPACK_PACKAGING_INSTALL_PREFIX instead of CMAKE_INSTALL_PREFIX (#1187)
Gosh, why does it fall back to /usr/local?!
2023-08-23 14:59:13 +02:00
Fabian Greffrath
95da1a060e use CMAKE_INSTALL_PREFIX consistently 2023-08-23 14:12:52 +02:00
Fabian Greffrath
f5e237b544
save the index of the current screen in the first page's S_END element's y coordinate (#1183)
Fixes #1181
2023-08-23 08:48:15 +02:00
Fabian Greffrath
4be06980d2 let HUlib_init_multiline() clear all lines 2023-08-22 20:45:14 +02:00
Fabian Greffrath
629c1662a4 empty messages clear the whole widget 2023-08-22 20:25:06 +02:00
Fabian Greffrath
4e0bccdf53
move stats widget to the top-left in no-HUD mode (#1184)
* Revert "move stats widget to the top-left in distributed mode"

This reverts commit 44b4172253e0cacc3568d03096d2467dd8e6a508.

* move stats widget to the top-left in no-HUD mode
2023-08-22 20:16:03 +02:00
Fabian Greffrath
44b4172253 move stats widget to the top-left in distributed mode 2023-08-22 19:21:08 +02:00
Fabian Greffrath
c8d7c4b429 Merge branch 'master' of github.com:fabiangreffrath/woof 2023-08-22 09:41:11 +02:00
Fabian Greffrath
2546592066 set CPACK_PACKAGING_INSTALL_PREFIX to /usr as well 2023-08-22 09:29:51 +02:00
Fabian Greffrath
913b7f6958
organize HUD fonts in a dedicated struct (#1182)
* origanize HUD fonts in a dedicated struct (WIP)

* fix includes, comments

* some rearrangement

* try to make a bit more sense

* f->patches is an array of pointers

* const correctness

* do not redefine BG/FG macros

* some more constness fun

* bring back bar graph chars
2023-08-22 09:18:32 +02:00
Fabian Greffrath
b7c669c47c
bring back three-lined coords/stats widgets (#1180)
* bring back three-lined coords/stats widgets

Fixes #1131

* fix typo

* try to shut MSVC up

* restore original buffer length

* rearrange menu items

* simplify matters

* restore init ordering

* some final adjustments
2023-08-22 08:24:16 +02:00
Fabian Greffrath
4265250240 set CMake install prefix to /usr 2023-08-22 08:03:01 +02:00
Fabian Greffrath
c915aba59a unambigious names for CI workflows 2023-08-22 08:00:50 +02:00
Fabian Greffrath
19c25e94c3
complete overhaul of the HU widgets system (i.e. hu_lib.*) (#1178)
* stuff compiles, but crashes

* stuff runs, kind of

* stuff works, mostly

* add back support for centered player messages

* pointers!

* more stuff working

* some aesthetics

* some more minor stuff

* some more clean-up

* some optimizations

* some more minor stuff

* update woofhud.md

* some rearrangements, comments

* make the "space" character 5 px wide

* build the w_title widget a bot earlier

* nicer

* fix some more minor alignment issues
2023-08-21 09:01:10 +02:00
Fabian Greffrath
77af6e50f6 skip "hidden" files in ZIP archives 2023-08-18 09:18:17 +02:00
Julia Nechaevskaya
edf67b8ebe
Improve BFG and SW2STONE brightmaps (#1179) 2023-08-17 22:05:56 +02:00
Fabian Greffrath
5e3150decd
consolidate hu_stext_t and hu_itext_t into hu_mtext_t (#1177)
* make hu_stext_t, hu_mtext_t, hu_itext_t all API-compatible

* consolidate hu_stext_t and hu_itext_t into hu_mtext_t

* rename abigious x member of hu_mtext_t
2023-08-15 11:57:46 +02:00
Fabian Greffrath
5c11fb69d8
optional widescreen widget arrangement (#1176) 2023-08-11 21:30:14 +02:00
Fabian Greffrath
837212ebde
remove some useless fields from textline widgets (#1174) 2023-08-10 13:49:08 +02:00
Fabian Greffrath
59adb20e17
optionally draw bar graphs in Boom HUD widgets (#1173) 2023-08-09 20:44:39 +02:00
Fabian Greffrath
34bc2ef837 hard-code startchar to HU_FONTSTART for all widgets 2023-08-09 20:44:04 +02:00
Fabian Greffrath
7ab38ec4a6 correctly bottom-align if Crispy HUD is preferred but not active 2023-08-09 20:14:35 +02:00
Fabian Greffrath
0d205abf97
make HU widget strings local to the respective builder functions (#1172)
* make HU widget strings local to the respective builder functions

* express buffer sizes in terms of HU_MAXLINELENGTH
2023-08-09 20:07:50 +02:00
Julia Nechaevskaya
7cd5c8e2d0
Use greenonly1 for Armor Bonus (#1171)
See: 92e4e71e34
2023-08-08 21:24:11 +02:00
Fabian Greffrath
c7c03d895c
correctly determine string length of the map title widget (#1170)
Fixes #1163

Hopefully only an intermediate solution until the hu_lib.c rewrite. 😉
2023-08-08 16:51:17 +02:00
Fabian Greffrath
3209e4e467
alternative approach to stable vissprite sorting in Vanilla order (#1169) 2023-08-08 12:30:57 +02:00
Fabian Greffrath
5594e81de1
use reverse-DNS naming for desktop files and add AppStream metadata information (#1167)
* use reverse-DNS naming for desktop files

This is consistent with Crispy Doom, and the
desktop entry specification recommends doing this as well.

* add AppStream metadata information
2023-08-07 18:22:09 +02:00
Fabian Greffrath
a3fc158f88
replace and extend crosshair patches with the shaded variants from Nugget Doom (#1166) 2023-08-07 18:22:02 +02:00
Fabian Greffrath
7202ffa754
reorder vissprites, so that objects with higher map indices appear in front (#1165)
* fix stable vissprites sorting

* add comment
2023-08-07 18:21:47 +02:00
Roman Fomin
6aed7bf13b
reset button state when automap is turned on (#1164) 2023-08-06 17:22:26 +07:00
kraflab
ff16687847 Fix PIT_ApplyTorque when line has no length 2023-08-06 12:17:16 +02:00