Goober5000
debedf26ef
partial fix
2022-10-20 23:32:30 -04:00
Goober5000
49fb2f07c0
refactor per feedback, tweak to fix circular #include, use accessor, reorder, fix namespaces, fix API documentation
2022-10-19 14:44:57 -04:00
Goober5000
f24277c39e
make clang happy
2022-10-19 14:22:10 -04:00
Goober5000
77179dc183
add mn.createDebris
...
This is a new Lua API function that allows creation of arbitrary debris pieces, whether chunks of a ship's hull or shards of shrapnel. All of the parameters are optional, and a wide variety of situations are possible ranging from vaporized bits to static chunks to chunks propelled by an explosion.
2022-10-19 14:22:10 -04:00
Goober5000
848d133fe3
Merge pull request #4767 from Goober5000/enhanced_print
...
enhance ba.print and add ba.println
2022-10-14 21:40:11 -04:00
Goober5000
8f8a6ca527
warning tweak
2022-10-14 21:08:47 -04:00
MjnMixael
7ab80a0162
Toggle cockpit ( #4772 )
...
* proof of concept
* Account for shadows
* Option to tie individual HUD gauges to the cockpit option
* Do this in a more user-friendly way
* Address feedback
2022-10-13 19:42:00 +09:00
Goober5000
e95d214143
Merge pull request #4756 from Goober5000/ship_entry_and_related
...
Add Lua API for ship registry
2022-10-11 19:24:54 -04:00
MjnMixael
6ae8674615
Correctly set credits default even for scpui access ( #4768 )
...
* Correctly set credits default even for scpui access
* These also need to move up for the same reason
* Match retail functionality
2022-10-11 16:47:10 +09:00
Goober5000
3850acdd23
documentation updates
2022-10-10 22:45:14 -04:00
Goober5000
d73ac59383
enhance ba.print and add ba.println
...
There was code that could interpret any Lua type as an argument for printing, so I adapted it to be used in ba.print(), ba.warning(), and ba.error(). Also ba.println() seemed like a useful thing to add.
2022-10-06 22:52:58 -04:00
Goober5000
a47b2440d3
add ship registry
2022-10-06 20:43:09 -04:00
Goober5000
f1f234b89d
Merge pull request #4702 from EatThePath/debug-log-cleanup
...
Moved more things to debug filters, and associated cleanup
2022-10-06 16:57:27 -04:00
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
EatThePath
f641f0283e
Merge branch 'master' into debug-log-cleanup
2022-09-27 10:34:12 -05:00
David Gibson
e86bbb0138
cleanup to the cleanup of filters
...
Moved more things to debug filters, and associated cleanup
2022-09-27 10:25:50 -05: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