John Fernandez
03f6f09c93
Merge branch 'scp-fs2open:master' into Coverity-Reference-Issues
2024-03-22 11:50:46 -04:00
Mike Nelson
74c2a204c7
API to get the PXO urls ( #6054 )
...
* API to get the PXO urls
* whitespace
2024-03-22 08:30:33 -04:00
Goober5000
7a04f76a46
Merge pull request #6049 from Goober5000/gr_string_size
...
add getStringHeight and getStringSize
2024-03-17 19:55:31 -04:00
Goober5000
006d2a49b1
Merge pull request #6050 from Goober5000/hud_high_contrast
...
add a HUD virtvar for contrast
2024-03-17 19:55:20 -04:00
Goober5000
a281f35f1a
add a HUD virtvar for contrast
...
Adds a hu.HUDHighContrast virtvar. Also renames `HUD_contrast` to `HUD_high_contrast` for clarity and makes it a boolean.
2024-03-17 16:18:02 -04:00
Goober5000
f2998a2c69
add getStringHeight and getStringSize
...
We already have `gr.getStringWidth()`, but these functions are useful too.
2024-03-16 21:15:40 -04:00
Mike Nelson
5e274a008c
Add lua function to validate a string as a valid IP ( #6043 )
2024-03-16 21:14:00 -04:00
Mike Nelson
0450ef0d1a
Fix multi option virtvars so they can be read without being set ( #6044 )
2024-03-16 08:14:19 -04:00
Mike Nelson
2e34c29215
Scpui multi pxo api ( #5845 )
...
* multi pxo api
(cherry picked from commit 9af26da728a19b9d6c890968a314e8e56ecc1ddf)
* multi pxo help api
(cherry picked from commit f4df704576ddb648e9c486907b07ae172c859feb)
* minor fixes
* not extern
* break out chat message data into a table
* address some feedback
* return empty strings if not in multi
* use GetChannelByUser() instead
* once more with feeling
* correct documentation
2024-03-13 15:23:44 -04:00
Goober5000
45a434a60a
some parse upgrades
...
Turn `Parse_names` into a vector and add SCP_string overloads of ship registry functions. Refactor calling code to use registry as appropriate. Remove an unused overload of `mission_parse_get_parse_object`.
2024-03-12 14:30:07 -04:00
Goober5000
df531fc595
Merge pull request #6006 from Goober5000/lua_invalid_returns_nil
...
allow invalid arguments to be nil
2024-03-07 21:32:13 -05:00
Mike Nelson
7d62d741b9
expose parse skip_to_string ( #5936 )
2024-03-05 10:48:51 -05:00
Mike Nelson
45258aabb4
allow ba.xstr to lookup from strings.tbl ( #5949 )
2024-03-05 10:42:29 -05:00
Goober5000
529ac05034
add a useful function
2024-03-03 11:47:28 -05:00
Goober5000
63756c00af
add extra ways to modify background elements in missions ( #6005 )
...
* add extra ways to modify background elements in missions
This adds Lua API methods for getting suns and bitaps by index, as well as modifying their scale and position. This removes the need to completely add and remove a background element that only needs to be modified.
* big pruning of (int) casts
2024-03-02 11:24:58 -05:00
Goober5000
58053a02b2
several coverity fixes
...
Some false positive annotations, some range checks, and commenting dead code.
2024-03-01 13:47:00 -05:00
Goober5000
be8725c6c6
change isSubsytemValid to isValid
2024-02-26 16:19:53 -05:00
Goober5000
ec241fcab3
standardize on isValid() and make validity member functions const
2024-02-26 15:56:41 -05:00
Goober5000
e33419c48d
refactor str_wrap_to_width to use string starting offsets and lengths
2024-01-29 22:07:37 -05:00
John Fernandez
248cec7cf9
Merge pull request #5921 from MjnMixael/save_multi_settings
...
Save these to the ini file
2024-01-25 00:20:50 -05:00
John Fernandez
e987d1cd7b
Merge pull request #5929 from MjnMixael/clean_cutscene_info
...
Cleanup ui cutscene api
2024-01-25 00:20:18 -05:00
mjn-mixael
3bfc37172a
Expose unloading a player and campaign file
2024-01-14 22:32:25 -06:00
mjn-mixael
562875130c
Cleanup ui cutscene handling
2024-01-08 13:57:51 -06:00
mjn-mixael
4401101fea
lua method to check if a movie is currently playing
2024-01-07 14:41:01 -06:00
mjn-mixael
509f887f6c
Save these to the ini file
2024-01-05 17:04:58 -06:00
John Fernandez
7b7b19b71b
Change many references to const auto&
...
A few uses of auto were also removed, where using a direct function call was superior.
2023-12-20 19:43:11 -05:00
JohnAFernandez
252392b26a
Merge pull request #5865 from MjnMixael/scpui_multi_options
...
Scpui multi options
2023-12-11 11:54:53 -05:00
Fabian Woltermann
e316c28258
Merge pull request #5607 from EatThePath/opt/luastring
...
LuaDrawstring optimization
2023-12-08 17:18:20 +01:00
mjn-mixael
7ce3217f17
multi login info & ip address list API
2023-12-06 12:49:38 -06:00
BMagnu
43afcd5ea6
VR Lua interface ( #5858 )
...
* Allow lua to check whether VR is enabled
* Add global hook condition
* Add missing descriptionm
2023-12-04 20:39:26 +00:00
ETP
f7f2c58746
New method to wrap strings to drawing widths, and use of that method in lua gr.drawstring, resolves #5495
2023-12-03 14:31:33 -05:00
Asteroth
125e47d749
Add cockpit 'sway' ( #5840 )
...
* add cockpit sway
* remove 5000 scaling factor
2023-11-30 10:52:39 -05:00
Mike Nelson
691ec74406
Mission custom strings ( #5544 )
2023-11-26 19:15:30 -05:00
JohnAFernandez
6f263365af
Merge pull request #5761 from JohnAFernandez/Coverity-COPY_INSTEAD_OF_MOVE-ISSUES
...
These std moves were suggested by Coverity as optimizations
2023-11-19 23:11:26 -05:00
mjn-mixael
e34c82d7d1
bool + static cast
2023-11-08 09:25:22 -06:00
mjn-mixael
67e00da79b
mainhall ignore input
2023-11-08 08:57:31 -06:00
John Fernandez
0a5cf6ad9d
Try the std moves suggested by Coverity
...
For many coverity issues
2023-11-03 14:40:04 -04:00
JohnAFernandez
2cb12b8ff7
Merge pull request #5593 from MjnMixael/rank_display_names
...
Rank display name and title
2023-11-03 14:34:55 -04:00
JohnAFernandez
245cec5a34
Merge pull request #5694 from MjnMixael/lua_audio_upgrades
...
Upgrade Lua Sound Handling methods
2023-11-02 14:36:38 -04:00
mjn-mixael
4145717363
Merge branch 'master' into mission_custom_data
2023-11-01 15:50:41 -05:00
JohnAFernandez
db02a829aa
Fix uninitialized scalars 2 ( #5737 )
...
* Make sure we handle unknown location types
Avoids edge-case gargabe pointer 1522974
* Make sure local vectors are at least set to zero
For coverity 1522985
* Make sure from_table is initialized
When creating a replacement texture object, for coverity 1522989
* Change to Unreachable to help Linters
This was a false positive uninitialized scalar, Coverity 1523726. Hopefully, changing to UNREACHABLE() will help linters avoid this false positive in the future.
* Initialize xyw on this struct instantiation
For coverity 1523730
* Add early return for ade_set_args if error
For coverity 1523732
2023-10-31 13:49:44 -04:00
mjn-mixael
c738941ccf
Provide Lua a way to toggle the mainhall help overlay
2023-10-28 19:16:09 -04:00
Mike Nelson
ec706a6a87
Allow SCPUI saving current player data to file ( #5718 )
...
* Allow saving current player data to file
* return nil, dummy
* unused
2023-10-27 07:32:37 -04:00
mjn-mixael
5d6c34c2ab
Upgrade lua sound handle with pause/resume methods and channel selection
2023-10-25 08:31:06 -05:00
Sébastien Noel
f149c36b44
Fix a few typos ( #5598 )
2023-10-24 20:33:45 -04:00
Goober5000
e621dbe997
Merge pull request #5464 from Goober5000/render_constify
...
add const where appropriate to the modelrender API
2023-10-21 15:57:24 -04:00
Mike Nelson
ad27664ebc
Pause and Resume voices ( #5636 )
...
* pause and resume voices
* Use newer styling rather than the sound.cpp styling
2023-10-21 10:23:53 -04:00
Goober5000
2fe182a4b1
Merge pull request #5604 from Goober5000/drawString_tweak
...
small speedup to drawString
2023-10-21 01:28:23 -04:00
Goober5000
60c2718b91
add spacing
2023-10-20 23:26:46 -04:00
Tyler Blount
a9f5a11813
Merge pull request #5686 from MjnMixael/lua_add_scrollback
...
Lua add scrollback
2023-10-18 10:21:01 -07:00