Goober5000
0702a38e1c
Merge pull request #4750 from Goober5000/lua_mission_music_scores
...
add getMusicScore and setMusicScore
2022-10-03 19:09:56 -04:00
Goober5000
064d3a7549
add getMusicScore and setMusicScore
...
Two new Lua API methods, plus some minor refactoring.
2022-10-03 17:14:33 -04:00
EatThePath
e32e01eb50
Added an API function to allow clearing the log during play. ( #4741 )
...
* Added an API function to allow clearing the log during play.
* document test fix maybe
* return something
2022-10-04 04:17:53 +09:00
BMagnu
979d305afe
Add screenToBlob scripting function ( #4738 )
...
* extract base64 routines
* Add screenToBlob scripting method
* Fix variable shadow
* Fix variable shadow again
* Fix usused variable
2022-10-03 07:33:46 +09:00
MjnMixael
e30931b6d2
API to save the current loadout to the player file ( #4739 )
...
* API to save the current loadout to the player file
* cleanup
2022-10-02 20:23:31 +09:00
Fabian Woltermann
77476edd73
Merge pull request #4735 from The-E/fix/lua_rendering_outside_of_objectrender
...
When rendering stuff outside of ON OBJECT RENDER hooks, use immediate mode
2022-10-01 22:06:37 +02:00
Fabian Woltermann and Goober5000
e69f2b3fec
Update code/scripting/api/libs/graphics.cpp
...
Co-authored-by: Goober5000 <[email protected] >
2022-10-01 21:39:08 +02:00
Fabian Woltermann
b2ab98a979
When rendering stuff outside of ON OBJECT RENDER hooks, use immediate mode
2022-10-01 10:49:39 +02:00
MjnMixael
ef850ad302
Handle errors from create_wings() in an API friendly way ( #4730 )
2022-09-30 16:46:45 +09:00
MjnMixael
e963cfda93
return the actual number of starting wings ( #4728 )
2022-09-30 16:44:58 +09:00
MjnMixael
384e228347
Reset loadout to default and handle commit mission error returns ( #4719 )
...
* Reset loadout to default and handle commit mission error returns
* Return enum instead of int codes
* comment
2022-09-29 22:35:09 +09:00
MjnMixael
35ee34b86a
isDisabled returns if the ship is used in the mission + some documentation fixes ( #4725 )
2022-09-29 16:19:05 +09:00
MjnMixael
5979d29463
Scpui loadout pools ( #4698 )
...
* API Access to the ship and weapon pools
* func to indexer
* Make ship and weapon pools writable
2022-09-29 16:18:26 +09:00
Goober5000
ac57537f94
Merge pull request #4718 from Goober5000/script_vecmat_copy
...
a couple of scripting enhancements
2022-09-26 21:21:34 -04:00
Goober5000
1794ba87b3
address feedback
2022-09-26 19:54:18 -04:00
Goober5000
e2dbfca1c3
allow customizing of debug particle color
2022-09-26 18:45:19 -04:00
mjn-mixael
1e7ee8b345
Lua API read-only access to the actual loadout
2022-09-24 16:30:44 -05:00
EatThePath
367e19b751
Merge pull request #4694 from MjnMixael/ScpuiShipSelect
...
Scpui ship select
2022-09-24 15:15:13 -05:00
EatThePath
7c3e07ab7b
Unify default filters and consolidate the new lua category
2022-09-22 21:58:24 -05:00
MjnMixael
f7d84dfe76
Update ui.cpp
...
return
2022-09-22 09:13:27 -05:00
mjn-mixael
601a41bb60
return invalid handle
2022-09-22 08:17:19 -05:00
MjnMixael
5f183832e1
Scpui api briefing map ( #4656 )
...
* API version of the briefing map
* Cleanup
* Further cleanup
* # This is a combination of 2 commits.
Fix resizing and cleanup remaining static anim calls
Revert changes completely
* Fix documentation
* implement initBriefing and rearrange map drawing methods to match.
* Documentation
* nullptr
2022-09-22 16:04:14 +09:00
mjn-mixael
2f5ccc5b1a
unused parameter
2022-09-21 18:02:52 -05:00
mjn-mixael
655fe8d7f1
Loadout wing API (+4 squashed commit)
...
Squashed commit:
[83e8522d1] Comments
[50686ce6a] Wing Slot data
[450a0f6e1] Common Init
[0c603313e] Rough in WIP
2022-09-21 17:27:38 -05:00
EatThePath
33f24f1b4d
-luadev flag and lua log filter ( #4681 )
...
* Adds new default 'lua' filter category for all lua errors and output
Adds -luadev flag that currently only makes lua errors non-fatal.
* Correcting unreachable code.
* Missed a halting code path for luadevmode
* comment fix
2022-09-22 05:31:06 +09:00
Goober5000
5e3f72229c
Merge pull request #4684 from Goober5000/set_and_get_ship_flags
...
add setFlag and getFlag for ships and parse objects
2022-09-21 12:39:00 -04:00
Goober5000
7ff6da8b8b
Merge pull request #4664 from Goober5000/script_model_queue_render
...
use queued rendering instead of immediate rendering for scripts
2022-09-20 20:09:34 -04:00
Goober5000
ce4563867d
Merge pull request #4682 from MjnMixael/MissionTime
...
Mission time
2022-09-20 20:09:25 -04:00
MjnMixael
eddda373d3
Allow API to optionally not start the next mission. ( #4679 )
...
* Allow API to optionally not start the next mission.
* false -> true
2022-09-21 08:16:04 +09:00
Goober5000
a379411d7a
add ParsedShips indexer and update terminology
2022-09-20 16:08:43 -04:00
mjn-mixael
931cfdebb0
explicit bool
2022-09-19 20:34:10 -05:00
mjn-mixael
f7b19553c8
nullptr while I'm here
2022-09-19 19:36:11 -05:00
mjn-mixael
6579719a04
documentation
2022-09-19 19:17:34 -05:00
mjn-mixael
68f03b5328
Add isInMission and always return getMissionTime
2022-09-19 19:05:54 -05:00
Goober5000
9a2a85198a
Merge pull request #4680 from MjnMixael/ReverseHasDebriefing
...
This needs to be reversed to return the expected value
2022-09-19 17:25:06 -04:00
mjn-mixael
cbd3d7da24
This needs to be reversed to return the expected value
2022-09-19 15:26:09 -05:00
mjn-mixael
41dd60d111
Fix returning int when bool expected
2022-09-19 08:48:17 -05:00
Goober5000
56803e7c9f
Merge pull request #4615 from MjnMixael/ScpuiDebriefingLibrary
...
Scpui API debriefing library
2022-09-18 18:36:33 -04:00
Goober5000
85c1ae1f4b
use queued rendering instead of immediate rendering for scripts
...
Scripts that render models in the On Object Render hook were effectively doing immediate renders in the middle of queued renders. This caused some data, such as model orientation, to 'leak' between renders. It might also have something to do with why the bug in #4637 had the particular graphical side effects that it did.
Anyway, changing the immediate renders to queued renders fixes the leaky orientations, and is probably a good upgrade for other reasons as well.
2022-09-16 17:27:50 -04:00
Fabian Woltermann
ef496f08e0
Merge pull request #4657 from Goober5000/4602_followup
...
additional polishing of the briefing API
2022-09-16 15:47:49 +02:00
Goober5000
c9ca58f504
update
2022-09-15 20:09:55 -04:00
Goober5000
c13e262bb8
Merge pull request #4640 from Goober5000/hud_scripting_enhancements
...
several minor HUD enhancements
2022-09-15 18:34:36 -04:00
mjn-mixael
ce9dd1eaf3
cleanup includes
2022-09-15 10:41:57 -05:00
mjn-mixael
54b6efcf25
Address feedback
2022-09-15 10:27:45 -05:00
mjn-mixael
f0f23b5fd0
Address feedback
2022-09-15 10:27:38 -05:00
mjn-mixael
6f0f3a10eb
Address feedback
2022-09-15 10:27:31 -05:00
mjn-mixael
d718c76906
Some cleanup
2022-09-15 10:27:21 -05:00
Mike N
895d4dce1a
debriefing api access
2022-09-15 10:27:19 -05:00
Goober5000
e146a24f9e
additional polishing of the briefing API
...
Follow-up to #4602 . Overall the PR was good, but there are a few extra small changes that should go in. In order of priority:
1) The `exitLoop`, `skipMission`, and `skipTraining` functions should check for campaign mode.
2) The `isVisible` virtvar should be changed to a function, because calling it may have side effects. In standard usage, the briefing formula is evaluated exactly once per stage on briefing initialization, so scripts should follow this convention.
3) The `hasGoalsSlide` function should be called `hasGoalsStage`, because "stage" is the common terminology in FSO.
4) Paging out mission messages is already done in `game_level_close` and should be removed from not only the scripting method but the method it was based on.
5) For consistency, unused parameters should use the `SCP_UNUSED` macro.
6) The `isTraining` flag check can be slightly streamlined using the double-not trick.
2022-09-15 11:20:00 -04:00
MjnMixael
70609bb3b9
Cleanup Fiction, Red Alert, and Loop Brief based on feedback on other PRs ( #4649 )
2022-09-14 16:01:57 +09:00