Goober5000
3ad0d3713d
convert arrival/departure locations to enum classes
...
To enforce type safety for arrival and departure locations, this converts them to enum classes. Various casts are added when appropriate to convert between the indexed and enum values.
2024-04-17 15:05:48 -04:00
Mike Nelson
e63383d324
Ingame prejoin API ( #6099 )
...
* ingame prejoin api
* fix type mismatch
* return boolean here
* address feedback
2024-04-17 17:48:57 +00:00
Mike Nelson
7ae8c79dea
Team Loadout API for SCPUI ( #6096 )
...
* team loadout methods
* documentation
* address feedback
* better assertions
2024-04-17 13:24:27 -04:00
Mike Nelson
002783ce7c
miscellaneous methods needed ( #6090 )
2024-04-17 12:48:27 -04:00
Goober5000
71543c9c10
Merge pull request #6058 from Goober5000/skybox_orientation_and_alpha
...
add skybox alpha, and add scripted functions for alpha and orientation
2024-04-10 17:06:24 -04:00
Mike Nelson
6b1d9304ed
Multi general api ( #6078 )
2024-04-07 16:45:51 -04:00
Mike Nelson
66ec2c8154
multi dogfight debrief api ( #6084 )
2024-04-07 16:48:23 +00:00
Mike Nelson
e3918a14f2
API for the Multi Pause UI ( #6083 )
2024-04-07 12:28:24 -04:00
Mike Nelson
052b4b29e9
Multi sync API ( #6077 )
...
* multi host settings ui initial setup
(cherry picked from commit bcb31c327653329e62e4430815fe1e981751f9dc)
* Finish the rest of the API
* include enums
* set these
* Close game needed
* Handle accepting the host setup
* Don't need to be master to set these and add ways to check master and self
* add client ui to this PR because
* Allow getting the player state string
* Multi sync api methods
* unused variables
* Fix state checking
(cherry picked from commit fcde973cdf )
* typo
* address feedback
(cherry picked from commit ecb33e7cc6 )
2024-04-02 17:34:06 +00:00
Mike Nelson
ea8e356b63
Multi Start Game UI API ( #6068 )
...
* methods for the Multi Start Game UI API
* missed a comma
* properly close the session
* name instead of password
2024-04-02 16:56:56 +00:00
Mike Nelson
9bba53c3e8
Multi Join API ( #6059 )
...
* methods required for the multi join ui api
* Move color setting because the API doesn't need it either
2024-04-02 12:19:20 -04:00
Goober5000
aa12ec7790
add skybox alpha, and add scripted functions for alpha and orientation
...
This allows the skybox orientation and alpha to be accessed and changed through Lua virtvars, and also adds a sexp to change the alpha.
Unfortunately, changing the alpha has no perceptible effect on the skybox. This will need the attention of a graphics coder to figure out what might need updating.
2024-03-22 13:23:05 -04:00
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