Commit Graph

17329 Commits

Author SHA1 Message Date
Benau
42d4eaae96 Fix switch build 2023-12-18 10:39:21 +08:00
Benau
caf6a1b504 Revert "Drop support for the DirectX9 renderer"
This reverts commit c11a7236c7.
2023-12-18 10:35:58 +08:00
Alayan
c11a7236c7
Drop support for the DirectX9 renderer 2023-12-16 15:24:35 +01:00
CodingJellyfish
65ee612110
Fix #3754 (#4966)
* Fix portrait

* Fix vertical tabs

* Fix server selection

* Update race_setup.stkgui
2023-12-14 19:08:41 +01:00
Alayan
bba568d9b8
Use theme color for textbox cursor and fix #4947
- Change the colors of the background and borders of the textbox to ensure they always contrast with each other
- Make the color of the textbox cursor the same as the skin's text color - this ensure it always has good contrast
- Offset the display of text slightly in the textbox. This avoids the cursor 'blending in' with the textbox border
2023-12-14 18:24:37 +01:00
Alayan
f8db600d09
Fix #4965 2023-12-14 16:58:36 +01:00
Alayan
6d38bfec8c
Fix 'Replay with UID of lu' error
- Correctly format the log to display the actual UID
- Fix getReplaydIdByUid being called with an UID of 0, when no replay to compare has been selected
2023-12-06 20:00:52 +01:00
Alayan
4ca872f23d
Make the unsupported replay version warning more compact 2023-11-29 22:35:52 +01:00
Alayan
5bb5f5e86e
Fix #4951 2023-11-29 22:29:34 +01:00
Alayan
a57ac415bb
Fix #3578
- If there is 2 or 3 karts in the GP, karts in 2nd and (if any) 3rd place display a sad animation
- If there is 4 karts in the GP, the kart in 3rd displays a sad animation
- If there is 5 karts or more in the GP, all karts on the podium display a happy animation

The first kart in the GP always displays a happy animation even if alone.
2023-11-24 17:59:39 +01:00
Alayan
bf88954e31
Fix #4944 2023-11-24 16:29:18 +01:00
Alayan
2a903271aa
Fix #4844 2023-11-24 16:13:12 +01:00
Alayan
e744fd3033
More audio improvements
- Fix a bug that made the last lap SFX played only if music was on.
- Fix the behavior of the music volume adjustment when the last lap SFX is played. Previously, the music volume was only adjusted when the music volume was above a certain threshold, but when it was above that threshold, the adjustment was too strong.
2023-11-17 19:11:25 +01:00
Alayan
40511b218c
Fix #4938
- Set the minimum sound volume to 0.025f instead of effectively 0.1f. This is particularly helpful for headphone users.
- Make the step between each volume setting exponential.
- Add parameters to remember the parameters of the audio spinners.
- Increase the default number of values the audio spinners can take from 10 to 15. Old config files will keep using 10.
- Set the default values to 10 (spinners), which translates to 0.2678 (volume fraction) instead of 0.6 (previous default)
2023-11-17 18:49:25 +01:00
Alayan
858ed6bb3e
Fix #4926
Also add more explicit error logging for this case.
2023-11-12 23:02:27 +01:00
CodingJellyfish
bd245e17bf
Fix #4895 (#4896) 2023-11-12 11:32:04 +08:00
Benau
1ba1e7e59f Use high precision for time2Ticks 2023-11-12 11:29:41 +08:00
Alayan
0eb64d0ad5
Fix #4922 by enforcing the bounds
Testing with high reduce-turn-max, skidding looks fine with steer values that would have previously gone out of boundaries. No further fix is needed.
2023-11-11 01:40:04 +01:00
Alayan
f4fd914858
Mostly revert #4632 and properly fix #4609
Not displaying a win message when there is only one kart was intended behaviour. A win requires the possibility of a loss. However, displaying the finishing rank with only one kart is ugly.
2023-11-11 01:32:31 +01:00
Alayan
491c3dee34
Fix updateAndTestFinished to use time2ticks
Also remove the useless function parameter
2023-11-10 19:45:03 +01:00
Benau
e00a81a961 Fix broken ProgressBarMessage after 8f596e29b3 2023-08-15 10:48:21 +08:00
Benau
a47e69d74e Add animated by step texture matrix for kart model 2023-07-27 08:11:51 +08:00
CodingJellyfish
3b043b7f47
Fix #4876 (#4897) 2023-07-21 08:37:08 +08:00
CodingJellyfish
13f61d609c
Fix #4893 (#4894) 2023-07-16 09:53:40 +08:00
CodingJellyfish
8f596e29b3 Add multiple skin container & Fix #4891 2023-07-13 16:09:38 +08:00
kimden
1ed896bf9e Fix start positions for negative sidewards distance 2023-06-29 00:40:38 +03:00
Benau
c2840e972b Always add 1 player when leaving the lobby without splitscreen players added 2023-06-24 12:42:57 +08:00
Snoker101
747cd8f128
Update soccer_world.cpp (#4875)
* Update soccer_world.cpp

edited getRescueTransform function in soccer_world.cpp so that the rescue bird places the kart towards the ball in soccer, as requested by many players.
2023-06-20 08:50:44 +08:00
Benau
0d22d03104 Fix instruction for online options 2023-06-16 01:41:46 +08:00
Newow
41609ef69a
Add fflush(stdout) after writing to stdout with printf
fixes issues with backlog when server is running through a pipe
2023-06-11 14:55:53 +06:00
Benau
3d76bc0108 Keep server bookmarks in save order 2023-05-26 11:15:44 +08:00
QwertyChouskie
1ff8b0fc9c UI/UX: Add success dialog for password change
This brings the UX more in line with password recovery and email change
2023-05-11 12:44:04 -07:00
QwertyChouskie
4932a60a9b UI/UX: Add new icon for Lap Trial mode
Also fix more license documentation stuff
2023-05-11 12:44:04 -07:00
QwertyChouskie
4b7344c1ea UI/UX: Fix update button label bug
`setLabel()` does not work in `beforeAddingWidgets()`, use `setText()` instead as was originally used when the code was written.

This fixes a regression introduced in 0ace825d5f (almost exactly 10 years ago!)
2023-05-11 12:44:04 -07:00
QwertyChouskie
0c9a136d7c UI/UX: Use password recovery dialog instead of opening webpage 2023-05-11 12:44:04 -07:00
QwertyChouskie
365e0074ee UI/UX: Improve keybinding dialog
- Better icons for actions
- Make dialog bigger, fixes squashed text issue
2023-05-11 12:44:04 -07:00
QwertyChouskie
935c6b2191 UI/UX: Put OK/Confirm/Yes on the right
In UX, back/cancel/etc buttons usually go on the left, while forward/confirm/etc go on the right.  (Note that even the icon for "Back" is a leftwards-pointing arrow.)  STK put the Back arrow button on general screens in the upper left corner, but before this commit, put back/cancel/etc on the right in dialogs and such.  This commit fixes things to be in line with standard UX conventions, and also in line with the pre-existing upper-left corner Back button placement on screens in STK.

https://ux.stackexchange.com/a/63239
2023-05-11 12:44:04 -07:00
QwertyChouskie
4cabef6879 UI/UX: Make first Continue button in GP results screen centered
Since we only show one button at first, make it centered.  (This is the continue button that switches from displaying race results to overall GP results.)
2023-05-11 12:44:04 -07:00
QwertyChouskie
cce966683b UI/UX: Add back button on server creation screen
This functions the same as the cancel button, adding it for UI consistency.
2023-05-11 12:44:04 -07:00
QwertyChouskie
082d02eef3 UI/UX: Improve manual server connect dialog
- Center top text
 - Word wrap top text, fixes overflow on large font sizes
 - Better sizing/spacing of dialog and elements
2023-05-11 12:44:04 -07:00
QwertyChouskie
2c9e581c60 UI/UX: Fix race UX when something is unlocked
Challenge completion status is already shown on the race results screen, changing the icon and text of the Continue button just causes confusion.

Fixes https://github.com/supertuxkart/stk-code/issues/4859
2023-05-11 12:44:04 -07:00
Semphriss
fd12829e5b
Revert "Hide the cursor during gameplay (#4861)" (#4862)
This reverts commit 07e22b033b.
2023-04-25 08:40:34 +08:00
Semphriss
07e22b033b
Hide the cursor during gameplay (#4861)
* Hide the cursor during gameplay

The cursor will show back up whenever:
- The mouse is moved
- The game is paused
- The race finished

This is probably not the best implementation, but it's a start.

* Wrap mouse display code in PT_MAIN checker

* Moved mouse display code to updateGraphics

* Protect SDL calls with #ifndef SERVER_ONLY

---------

Co-authored-by: Semphris <semphris@protonmail.com>
2023-04-23 16:32:11 +08:00
Benau
94fa3c8a63 Remove some gcc compiler warnings 2023-04-15 11:55:15 +08:00
Benau
f9d10fe9ff Don't pause in network game for debug dialog 2023-03-30 08:14:47 +08:00
Benau
7817e14a5a Add pbr texture handling for vulkan engine 2023-03-19 11:35:11 +08:00
Benau
c170c69749 Load pbr textures for vulkan engine 2023-03-18 14:52:37 +08:00
Benau
12a8b1da1d Update haiku file_manager handling code 2023-03-12 08:26:20 +08:00
Benau
5e161f663d Clean m_ondemand_load_texture_paths after texture loaded 2023-03-04 10:26:31 +08:00
Benau
dcc7397668 Make dumpAllTextures usable in legacy video drivers 2023-03-03 22:35:58 +08:00
Benau
9eda9f7559 Add current ai count to server lobby 2023-02-21 10:41:54 +08:00
Benau
f5800ac487 Fix #4847 2023-02-06 08:06:53 +08:00
Benau
1f8ffccd97 Allow disabling gift boxes and bananas indicators by removing their textures 2023-02-02 08:01:45 +08:00
Benau
90277eebd5 Fix #4843 2023-01-28 10:01:12 +08:00
Benau
1041736750 Rename setting string as sven suggested 2023-01-23 08:21:01 +08:00
Benau
be0c83e9a8 Add getGeometryLevel to scripting engine 2023-01-22 14:47:40 +08:00
Jip Fr
d0bbf8f5f4 Make bot names start at one 2023-01-21 00:10:30 +01:00
Benau
ab3defb424 Remove draw_translucently in draw2DImage 2023-01-11 11:27:43 +08:00
Benau
a85bf04b1c Update download assets size 2023-01-09 16:24:41 +08:00
Benau
e798c1abee Remove rotation uniform in gl shaders 2023-01-08 08:08:35 +08:00
Benau
9dd9363ab4 Make draw2DImageCustomAlpha usable in legacy video drivers 2023-01-07 11:18:12 +08:00
Benau
65b2e2104a Avoid leaking widgets (model view especially) when closing STK
It crashes when vulkan validation is on if closing during kart
selection screen
2023-01-06 17:01:29 +08:00
Benau
7ecaf74dd3 Remove incorrect animation data in some b3d models, see #4829 2023-01-05 11:15:50 +08:00
Benau
8544f19b59 Fix #4834 2023-01-05 10:33:39 +08:00
Benau
93613d884e Compile SPIR-V shaders with multiple threads 2023-01-01 10:26:38 +08:00
Benau
bed2228ac8 Remove search textfield widget in non-network tracks screen 2022-12-30 11:05:24 +08:00
QwertyChouskie
3bad8d943a
Fix capitalization of categories, fixes #4622 (#4832)
- Fix capitalization of "Standard" in kart and track selection screens
 - Fix both "All" and "Standard" in random GP screen
 - Code style/documentation/consistency improvements
2022-12-28 01:27:55 +08:00
Benau
92a3035fb2 Fix #4830 2022-12-08 16:26:28 +08:00
Benau
ddc0b9d1ed Add setDirtyOffset for GEVulkanDynamicSPMBuffer 2022-12-05 16:32:00 +08:00
Benau
90a22a691a Use GEVulkanDynamicSPMBuffer on streaming buffers 2022-11-29 13:02:36 +08:00
Benau
fd579111e1 Add setNormal and setTCoords for IMeshBuffer 2022-11-27 09:07:07 +08:00
Benau
641dbcf9c0 Add support for 3-letter language code in android 2022-11-26 11:11:55 +08:00
Benau
0fbbd7bbaa Allow using fixed laps in server with --laps option 2022-11-21 12:30:17 +08:00
Benau
257c208a1d Use libsquish in stk-code for android 2022-11-19 16:52:08 +08:00
Benau
bc311a445e Use libsquish for skybox texture compression 2022-11-19 16:01:54 +08:00
Benau
9e70abb631 Remove IAnimatedMeshSceneNode.h in header files 2022-11-19 13:29:21 +08:00
Benau
c8a828aa00 Remove ISceneNode.h in check_line.hpp 2022-11-19 12:33:17 +08:00
Benau
b77333749c Remove irrlicht headers in referee.hpp 2022-11-18 10:36:13 +08:00
Benau
f522e4c72f Remove IMesh.h in header files 2022-11-18 10:18:19 +08:00
Benau
3ecc4ccdad Remove IFileSystem.h in file_manager.hpp 2022-11-18 09:24:31 +08:00
Benau
a688912872 Remove IrrlichtDevice.h and IVideoDriver.h in header files 2022-11-17 11:09:56 +08:00
Benau
d170f0f445 Remove irrlicht.h in remaining code if unneeded 2022-11-17 08:46:54 +08:00
Benau
6b9a34b767 Remove irrlicht.h in tracks code 2022-11-17 08:21:58 +08:00
Benau
ec76b29633 Fix android compilation 2022-11-17 08:14:41 +08:00
Benau
c4306186b1 Fix compilation 2022-11-16 21:21:33 +08:00
Benau
0a1e22451b Remove irrlicht.h in graphics code 2022-11-16 10:54:38 +08:00
Benau
8fb52db8f2 Remove irrlicht.h in font code 2022-11-16 09:26:30 +08:00
Benau
e6111a4084 Remove irrlicht.h in glwrap.hpp 2022-11-16 09:12:08 +08:00
Benau
0cd458cff4 Add skid marks rendering for legacy video drivers 2022-11-15 12:28:33 +08:00
Benau
86391e8b8e Add shadow rendering for legacy video drivers 2022-11-14 14:04:23 +08:00
Benau
58223928d8 Add rubber band rendering for legacy video drivers 2022-11-13 16:08:54 +08:00
Benau
013d604846 Update download assets size 2022-11-12 09:19:23 +08:00
Benau
b4fff82dc1 Add more options for frame rate 2022-11-10 11:17:23 +08:00
Benau
4e8744f047 Improve accuracy of frame rate limiter 2022-11-09 14:06:31 +08:00
Benau
4c7353a3a4 Add fullscreen desktop option for non-ge capable device 2022-11-08 12:08:27 +08:00
Benau
89337a6d11 Fix billboard text not disappearing after player disconnects 2022-11-05 09:05:13 +08:00
Benau
f79ffffc64 Hide slipstream for eliminated kart 2022-11-04 14:29:09 +08:00
Benau
0c2b81ac1f Fix missing rotation when lto is used, see #4811 2022-11-03 11:39:25 +08:00
Benau
412f30d2c1 Fix incorrect color emoji position after resizing window 2022-10-31 13:18:54 +08:00
Denis Kim
0546c1c91a
Avoid triggering other goal lines when the goal is already scored (#4802) 2022-10-31 11:38:05 +08:00
Jörn Eichler
538e03c514
fix parachute powerup (#4738)
only deshield karts ahead of the kart firing the parachute
2022-10-31 11:37:54 +08:00
Benau
54973d0174 Fix missing news text in main menu if loading is too fast 2022-10-31 10:39:54 +08:00
Benau
61bd2a6e70 Fix legacy device in switch homebrew
Allow setting it from config.xml
2022-10-31 09:31:44 +08:00
Benau
cab25432c2 Update download assets size 2022-10-30 16:50:27 +08:00
Benau
d2a1144cf4 Fix possible division by zero 2022-10-27 09:16:43 +08:00
Benau
b2d1f94adc Fix hovering ghost kart since 2696ef2 2022-10-26 12:55:03 +08:00
Benau
5beafdce8e Fix #4808 2022-10-25 09:48:22 +08:00
Benau
683f5ece7f Fix thunderbird traffic light in legacy video drivers 2022-10-24 13:39:01 +08:00
Benau
7109729010 Add slipstream meshes to irrlicht mesh cache
This enables instancing of them in vulkan engine
2022-10-23 10:02:54 +08:00
Benau
243f7f7008 Add slipstream rendering for all video drivers 2022-10-20 12:42:36 +08:00
Benau
1b604666c3 Fix sky particles rendering in modern gl3 too, see #2779 2022-10-17 09:33:51 +08:00
Benau
5ecdc11ffd Fix sky particles rendering in vulkan
Align them with the vertical axis
2022-10-16 12:08:02 +08:00
Benau
cfb10dbb1f Make sure sky particles always fall vertically 2022-10-15 14:31:07 +08:00
Benau
1fc460ff4e Add flips particle rendering for vulkan 2022-10-14 10:17:58 +08:00
Benau
e5318d8ea9 Fix crash when minimizing in windows 2022-10-04 13:55:51 +08:00
Benau
82218afc40 Reset video driver in GE when vulkan creation fails 2022-09-25 09:55:32 +08:00
Benau
dd9808fd05 Fix uninitialized m_current_ai 2022-09-22 16:32:54 +08:00
Benau
e4515e7454 Add AI number detection in server screen 2022-09-22 10:46:19 +08:00
Benau
cfd7fa662b Show a dialog and revert if device is not vulkan capable 2022-09-21 10:33:54 +08:00
Benau
4f0b9644a8 Update download assets size 2022-09-19 11:23:44 +08:00
Benau
7a1706834f Default to opengl render for arm64 windows
The opengl compatibility pack is pre-installed on
arm64 windows according to a user
2022-09-19 00:12:51 +08:00
Benau
dd6768911d Build for armv7 windows
No installer as armv7 windows has no x86 emulation
2022-09-18 23:54:44 +08:00
Benau
53351257fc Use vertex color alpha to draw translucently 2022-09-16 11:15:36 +08:00
Benau
16173207ee Add colorization support for gles2 driver 2022-09-15 08:30:24 +08:00
Benau
9947c87fe1 Fix #4795 2022-09-15 01:11:14 +08:00
Benau
b1fa45437f Add dedicated skybox textures folder 2022-09-13 14:23:04 +08:00
Benau
48730d1db4 Add billboard text rendering in vulkan 2022-09-12 10:56:39 +08:00
Benau
7cc238e101 Remove friend class in GE::GESPMBuffer 2022-09-11 15:04:38 +08:00
Benau
76c39afd8b Add colorization for vulkan 2022-09-11 11:05:33 +08:00
Benau
d3ddcd884d Fix broken splitscreen network when no track selection screen 2022-09-11 09:16:19 +08:00
Benau
8eb8c6392e Don't spam logging about missing rewinder 2022-09-11 00:47:34 +08:00
Benau
f1fdc98779 Always send (empty if applicable) kart data to ensure forward compatibility 2022-09-11 00:41:21 +08:00
Benau
ebd380c0bc Allow using real addon karts in networking 2022-09-10 15:49:21 +08:00
Benau
39e3c189da Make it possible to enable kart exhaust in legacy device 2022-09-09 10:25:33 +08:00
Benau
dcad21b830 Use uniform rendering code for particle rendering
1. Remove pow in shader and do srgb conversion in code

2. Fix setGreen and setBlue order

3. Multiply particle color first like vertex color in the other shaders

4. Fix incorrect smoothstep
2022-09-09 09:41:32 +08:00
Benau
155b73d452 Remove unneeded pow in transparent.frag
It's only used in 2d rendering so no srgb sampling is needed
2022-09-08 15:24:40 +08:00
Benau
efcdd79d42 Fix missing snowflake in icy soccer field
It used to work in 1.2 because the top of the invisible wall was
not covered, which will affect height map calculation. Now we
ignore physics only objects when doing the height map calculation.
2022-09-07 13:53:08 +08:00
Benau
4207714352 Use GE::GERenderInfo to draw ghost kart and ctf flag in vulkan 2022-09-06 15:46:05 +08:00
Benau
885e08c559 Fix ghost kart missing for non-colorizable kart 2022-09-06 09:54:07 +08:00
Benau
2d0c945dd8 Move RenderInfo class to GE 2022-09-05 16:22:04 +08:00
Benau
647988ad30 Load colorization data for vulkan 2022-09-05 13:39:02 +08:00
Benau
5252c78a05 Fix crash when getActiveCamera is used after rendering scene 2022-09-05 09:54:42 +08:00
Benau
4335d95215 Preload icon materials to avoid hang when firstly insert item 2022-09-04 11:37:09 +08:00
Benau
9a7e2f6c39 Simplify m_icon_node handling in item class
Item::handleNewMesh already creates new m_icon_node everytime
2022-09-04 11:12:07 +08:00
Benau
d93b5d3b8d Fix hang when switching kart in selection screen for vulkan 2022-09-03 12:04:44 +08:00
Benau
1eb19e5e13 Allow changing texture compression setting without restarting stk 2022-09-02 10:04:10 +08:00
Benau
caf9fb448b Take BPTC into account for texture compression support 2022-09-02 09:12:05 +08:00
Benau
7a5f14cb37 Don't call KartPropertiesManager::onDemandLoadKartTextures on child process 2022-09-01 16:04:47 +08:00
Benau
ad8ba4d417 Mirror UV if needed in vulkan 2022-09-01 10:54:33 +08:00
Benau
3db036d67f Fix data race when deleting GEVulkanTexture 2022-08-31 12:36:55 +08:00