2332 Commits

Author SHA1 Message Date
Fabian Greffrath
2787af02ef
Merge pull request #1450 from fabiangreffrath/animated_counts
rename Smooth to Animated Health/Armor Count
2024-02-09 10:01:44 +01:00
Fabian Greffrath
85ec51a1ea fix blinking yellow lines with Vanilla preset 2024-02-09 08:42:35 +01:00
Fabian Greffrath
34464b96c8
Merge pull request #1448 from fabiangreffrath/am_flash_vanilla
Automap: allow flashing doors and keys in Vanilla preset
2024-02-09 08:19:17 +01:00
Fabian Greffrath
b4960dd4d6 rename the config variable to hud_animated_counts
Thanks @ceski-1
2024-02-09 08:18:50 +01:00
ceski
c18f71a886
Misc. menu item cleanup (#1449)
* Move resampler and channels to config only

* Move disk I/O icon to config only
2024-02-08 12:54:18 -08:00
Fabian Greffrath
5ee241897e rename Smooth to Animated Health/Armor Count
Thanks @mikeday0
2024-02-08 20:43:05 +01:00
Roman Fomin
46e818ce37 don't overwrite voxels_rendering config item, fix printing 2024-02-08 23:21:55 +07:00
Roman Fomin
5df596063b disable voxels in strict mode 2024-02-08 17:56:57 +07:00
Roman Fomin
8dc990ebf9
voxel updates (#1437)
* Don't rotate dropped weapons

* Dynamically increase/decrease maximum distance (improves performance in WADs
  like nuts.wad)

* Load *.pk3 from *.zip (load VoxelDoom_v2.3.zip directly)

* Improve logging to terminal

* Add "Voxels" menu item

* Slightly improve the `w_rate` widget
2024-02-08 17:48:24 +07:00
Fabian Greffrath
4da8929387 Automap: highlight exit lines by default in the Boom preset 2024-02-08 11:45:21 +01:00
Fabian Greffrath
8f722834c4 Automap: allow flashing doors and keys in Vanilla preset
Fixes #1447
2024-02-08 11:30:02 +01:00
Fabian Greffrath
0e632e09c1
disable loading disk icon by default
Fixes #1444
2024-02-08 08:48:01 +01:00
ceski
a203ba5f59
Gamepad response curve cosmetic changes (#1445) 2024-02-07 23:06:04 -08:00
Roman Fomin
2a897d47fb call R_SetFuzzColumnMode from ResetResolution function 2024-02-08 11:34:31 +07:00
Roman Fomin
7f10e54382 increase the intensity of the menu/automap background shading 2024-02-08 02:10:44 +07:00
Roman Fomin
990f6277dc
don't disable menu items during demo playback (#1440)
* Show disabled items immediately when complevel/strict mode is changed

* Remove S_CRITICAL

* Bring back S_VANILLA for ghost mosters
2024-02-08 01:18:16 +07:00
Roman Fomin
fe2029cbc2
calculate widescreen width while maintaining current video height (#1433)
* Remove V_ClipRect

* Add widescreen multi choice menu item, remove 32:9 option

* Only `video.pitch` needs to be multiple of 4

* Improve accuracy of `centerx_frac` and  `centerx` calculation
2024-02-07 17:27:25 +07:00
Roman Fomin
783677d682
remove mutex, reduce player thread delay (#1430) 2024-02-07 14:23:45 +07:00
Roman Fomin
4d3d5b0fef
dark menu backdrop by default, change am preset order (#1432)
* Replaced "Menu Background" with "Menu Backdrop" with different logic
  and "Dark" by default

* Options menu now also has a dark background

* Change am_preset item order
2024-02-07 13:02:50 +07:00
Fabian Greffrath
a29109155f
move Weapons setup menu below Automap (#1436)
* move Weapons setup menu below Automap

* bring back the enum, MSVC doesn't seem to understand what const means
2024-02-06 10:52:44 +01:00
Fabian Greffrath
ccfe43de94
do not draw HUD widgets during HUD changes (#1435)
Fixes #1434
2024-02-06 09:11:07 +01:00
Roman Fomin
fee8764c9b
reset set_tab_on on menu switching (#1431) 2024-02-06 08:11:13 +07:00
Roman Fomin
a21a70641a
add "Helper Dogs" item to Enemies menu (#1425)
* Add size 4 thermo

* Fix S_LEVPARM/S_PRGWARN for thermo

* Bark sound
2024-02-04 22:00:47 +07:00
ceski
144ee61175
Dynamically update HUD mode strings (#1423)
* Dynamically update HUD mode strings

* Simplify
2024-02-03 12:03:34 -08:00
ceski
8842307ca6
Improve menu option for FOV (#1422)
* Improve menu option for FOV

* Simplify math a bit
2024-02-03 09:59:28 -08:00
Roman Fomin
74dce51731
fix setting minimum value for thermo (#1421) 2024-02-04 00:22:00 +07:00
Fabian Greffrath
7bf8fd048b
switch order of shaded and gold translation für submenu bar (#1420)
My sentiment is: If `v_lightest_color` is plain white, then this color
translated to gold may result in a very desaturated color, which then
gets shaded. I'd prefer if we translate a light shade of gray to gold
instead. Also, the colors in the HUD font are in general not full
bright, so translating from a moderate gray to gold may fit better.
2024-02-03 13:32:55 +01:00
Roman Fomin
65dff4019f fix buffer overflow 2024-02-03 19:30:48 +07:00
Fabian Greffrath
ac8202b60c
declare all color translation tables as , i.e. (#1419)
They must not get negative anyway.
2024-02-03 12:55:22 +01:00
Alaux
f1059cf22d
Use-button timer (#1414)
* Use-button timer

* Add 1 when storing time

* Fix conditions in `HU_widget_build_sttime()`

* Different rebuilding approach

* Reset `btuse_tics` in `G_PlayerFinishLevel()`

* Add comment

* Tabs instead of spaces

* Move tab

* Change format string

* Combine time and use-time

---------

Co-authored-by: Roman Fomin <rfomin@gmail.com>
2024-02-03 08:54:40 -03:00
Roman Fomin
1503cfed67
menu and related improvements (#1402)
* Use m_array in m_input, cleanup and formatting.

* M_Responder refactoring, mouse cursor in the menu.

* Windows console exit message.

* Highlight menu patches/strings.

* Convert v_trans.c to double (there were auto conversions due to double
  constants anyway).

* Implement resolution scale thermo.

* Menu items with different heights.

* Mouse support in save/load and volume menu.

* Remove S_STRING, cleanup.

* Remove dynamic help screen.

* Rearrange menus using Ceski's layout.

* Add `static` everywhere.

* Improve help messages.

* Hide mouse cursor when keys or pad buttons are pressed.

* Disable complevel menu item if COMPLVL lump is present.

* Enable mouse capture for exclusive fullscreen.

* Adjust resolution scale thermo:
  - First step is from 100% to 200%
  - 50px steps
  - Last value is native resolution height

* Remove "Mouse Treshhold" from the menu.

* Add autostrafe50 to compat menu.

* Implement S_ONOFF (alias for S_YESNO).

* Remove S_NEXT/S_PREV, implementation of tabs for page switching (thanks Ceski!)

* Add LB/RB for menu Left/Right keys.

* Add color codes support to M_DrawStringCR.

* Shaded help string.

* Cycle pages in Save/Load screen using mouse.

* Reformat and fix M_ResetDefaults function, don't reset MIDI device

---------

Co-authored-by: ceski <56656010+ceski-1@users.noreply.github.com>
2024-02-03 16:27:34 +07:00
Roman Fomin
addcf65628 update actions/upload-artifact version 2024-02-02 07:36:39 +07:00
Fabian Greffrath
491e64c400 fix tab-alignment for right-aligned HUD widgets 2024-02-01 08:20:13 +01:00
Fabian Greffrath
3cf72c4212 update update_wiki.yml to use checkout@v4 2024-01-31 09:59:02 +01:00
Fabian Greffrath
b6dc82aee9 never call CreateUpscaledTexture() if smooth_scaling is disabled
Fixes #1417
2024-01-30 13:28:23 +01:00
Fabian Greffrath
b66517dc47
precalculate gamma table (#1416) 2024-01-30 10:05:45 +01:00
Fabian Greffrath
4f7a4f70d7
do not create upscaled texture for scaling factor 1 (#1415)
Fixes #1404

Co-authored-by: ceski
2024-01-30 08:34:49 +01:00
Fabian Greffrath
8412588aff get rid of -Wbad-function-cast again 2024-01-25 12:54:46 +01:00
Roman Fomin
d6075142c1
always run R_SetupMouselook in R_ExecuteSetViewSize (#1412)
Fixes exclusive fullscreen switching.
2024-01-24 13:18:54 +07:00
ceski
906d5f7df4 Call G_UpdateSideMove() after variables are set 2024-01-23 16:33:34 -08:00
ceski
2ff1d8b801
Add auto "strafe50" option (#1411)
* Always use sidemove speed for gamepad

It's more conservative to use sidemove by default outside of strict mode.

* Prevent `ticcmd` overflow when using `-turbo`

* Simplify side speed rounding

* Add auto "strafe50" option
2024-01-23 15:42:10 -08:00
ceski
a8b898a813
Smoother frametimes (#1408) 2024-01-22 22:29:38 -08:00
Roman Fomin
7f5a0a9419
fix smooth light reset (#1409) 2024-01-23 13:01:53 +07:00
Roman Fomin
2f06e9fcb4
another attempt to fix integer overflow problem on high resolutions (#1401)
* increase VX_MINZ
2024-01-20 08:17:12 +07:00
ceski
c29b89cae2
Clean up FOV math, prevent overflow (#1400)
* Clean up FOV math, prevent overflow

* Include math.h
2024-01-19 08:10:27 -08:00
Roman Fomin
093dad5890
netgame fixes (#1399)
* Fix SDL_Net shutdown.

* Remove some demos/netgame warnings from the menu. We disable all relevant
  options anyway, so there is nothing to warn about.

* remobe bootstrap
2024-01-18 19:32:45 +07:00
Roman Fomin
cbaaff41af
use Lerp* functions everywhere (#1397)
* remove redundant declaration
2024-01-18 17:22:24 +07:00
ceski
f99bebca8e
Gamepad improvements (#1394)
* Gamepad improvements

* Prep event handler for frequent gamepad updates

* Prep responder for frequent gamepad updates

* Prep mouse for frequent gamepad updates

* Move raw input setting to config only

* Add interpolation helper functions

* Add fast gamepad polling

* Restrict side movement in strict mode or net games

* Don't use SDL_FLT_EPSILON

* Remove redundant calculation

* Menu adjustments

Remove "enable/disable gamepad" and add "extra turn sensitivity".

* Tune defaults

* Skip controller updates if not found
2024-01-17 00:01:27 -08:00
Roman Fomin
824ed291d3
save player pitch and slope (#1395) 2024-01-17 14:43:21 +07:00
Fabian Greffrath
89c64ec226
show smart kill count in stats widget (#1393)
* show smart kill count in stats widget

Fixes #949

* provide silent savegame backward compatibliity with Woof! 6.0.0+

* simplify matters

* fix typo

* function instead of macro

* cosmetics
2024-01-16 16:23:04 +01:00