mjn-mixael
3f6eae0836
Update methods to optionally accept and return color objects
2023-04-18 08:37:30 -05:00
mjn-mixael
eafab41823
unify language and capitolization
2023-04-17 14:50:38 -05:00
mjn-mixael
f5a08bb694
change api description to finalize
2023-04-17 08:53:52 -05:00
mjn-mixael
da7d9f28b9
global to param
2023-04-17 08:53:26 -05:00
Mike Nelson
108def6224
Scpui Hud Config API ( #5302 )
...
* initial API for hud config elements
* get rendering, highlighting, and selecting working
* Add a way to create color objects
* some cleanup and fixes
* go away we dont need you
* allow arbitrarily scaling the hud config draw
* last few config options and innitial preset handling
* vectorize hud presets and setup handling
* some last minute fixes
* iiiiiiiiiiiiiiiiiiiiiiint
* really
* documentation and address feedback
* completely revert this as well
* more documentation
* document all the things
* comment out unused parameter
* peach emoji retentive
* whatever
* return types
* color
2023-04-16 08:13:06 -04:00
Goober5000
1083f34ffc
Merge pull request #5336 from Goober5000/rank_adjustment
...
tweak rank handling in Lua
2023-04-15 22:04:38 -04:00
Mike Nelson
3c30257816
Modular messages table ( #5285 )
...
* modular messages table
* clarify warning
2023-04-16 08:40:25 +09:00
BMagnu
023a7d3e68
"On Frame but actually Wait before you continue"-Executor ( #5314 )
...
* add 'syncronized async run'
* cleanup
* cleanup 2
* Properly free the screen
* Incorporate feedback
2023-04-16 08:39:49 +09:00
Goober5000
a932dc94c0
Merge pull request #5307 from MjnMixael/explicit_no_wrap
...
Explicitely do not split lines when making the message log
2023-04-15 14:59:09 -04:00
Goober5000
0c8a6c6f97
small streamlining
2023-04-15 14:23:05 -04:00
Goober5000
7018a560b9
streamline type conversion
2023-04-15 00:06:33 -04:00
Goober5000
bcc964d0fa
color tweaks
2023-04-15 00:06:33 -04:00
Goober5000
8fbe2c244a
address feedback
2023-04-14 20:34:19 -04:00
Goober5000
c6a2dcdfa9
tweak rank handling in Lua
...
Follow-up to #5280 :
1. Make the Rank virtvar actually return a rank object, to be consistent with other Lua API methods
2. Add a RankIndex virtvar to replicate the previous functionality
3. Make RankIndex return the expected 1-based index for Lua
This is a breaking change to the API, but since the original API is less than a month old, the impact should be small.
2023-04-14 19:17:46 -04:00
Goober5000
78d9562661
feedback and fix
2023-04-12 10:55:38 -04:00
Goober5000
b7d1270439
convert hotkey types to enum
...
Here's a suggested followup to #5249 . This converts the hotkey type to an enum for improved type safety. It also adds the corresponding Lua enums and adjusts the Type virtvar to return them.
2023-04-12 10:55:36 -04:00
Goober5000
257ba70d70
Merge pull request #5326 from Goober5000/validity_checks
...
add validity checks
2023-04-12 10:52:39 -04:00
Goober5000
10e5875289
add validity checks
...
Many of the recent scripting API enhancements are missing validity functions and validity checks, so this adds them. There are also some documentation fixes and a >= vs. > bugfix.
2023-04-12 00:14:20 -04:00
BMagnu
64de96f6ce
Fix Subsystem serialization ( #5319 )
2023-04-12 00:31:54 +09:00
Asteroth
ac9636733f
ets fixes ( #5317 )
2023-04-11 06:31:04 +09:00
Mike Nelson
e01a5359ac
Scpui API for Control Config ( #5305 )
...
* read access to controls
* Early draft of checking keypresses in scpui
* detangle some code and prepare it for API usage
* API access to the core methods required
* move these checks into the UI methods
* comment
* fix bugs
* be smarter
* Need this stuff, too
* some more presets work
* unify func naming scheme
* cleanup and clarifications
* get detect keypress working
* allow searching and creating new presets based on current controls
* address feedback
* return nil if no preset is matched
* use the builtin methods which do the same thing, but slightly cleaner
* typo
2023-04-07 12:02:13 -04:00
mjn-mixael
80004f2996
explicitely do not split lines
2023-04-02 19:43:53 -05:00
Asteroth
835285248e
No overlapping turret sounds ( #5295 )
...
* prevent overlapping turret sounds
* whitespace
* fixes
2023-03-30 21:16:32 -04:00
Mike Nelson
85bcfd56e8
force expand wings instead of toggle for scpui ( #5286 )
2023-03-28 07:40:03 -04:00
BMagnu
272d6261c4
Generic Lua Multiplayer RPC ( #4835 )
...
* Add automatic lua obj serialization function dispatch
* Implement fundamental and object de/serialization
* Proper default case for package deserialization
* Add No Multi func
* Add Serialization part
* Fix max encoding size for userdata
* Implement exception handling
* Start Implementing lua RPC
* Prepare waitAsync for RPC
* Add packet order enforcing and forwarding
* Add RPC registry
* Make RPCs callable
* Add waitRPC
* Add serializers
* Fix GCC error
* Explicitly specify lua_net_exception
* Fix Warnings
* Replace Seriliaze fundamental with cross-platform data types
* Appease Clang
* Prevent serialization CTD on invalid objects
* Actually use the temporaries assigned
* Fix OSWPT shadow
* Fix table deserialize order
* Incorporate Feedback
* Fix Warnigs
* ix WArnings 2
* Add sanity checks for OSWPT wing serialization
* Multi Bump
* Forgot we have american-style dates there
2023-03-28 03:07:03 +09:00
Fabian Woltermann
9308318199
Merge pull request #5253 from naomimyselfandi/more-flexible-dynamic-messages
...
More flexible dynamic messages
2023-03-24 10:50:39 +01:00
mjn-mixael
dceea0d7a5
don't need this
2023-03-23 13:17:51 -05:00
mjn-mixael
1fdf8b1756
access to array sizes
2023-03-23 12:52:11 -05:00
mjn-mixael
d76c733d66
nothing to see here
2023-03-23 12:23:03 -05:00
mjn-mixael
c92d383b69
scpui api for medals access
2023-03-23 11:19:46 -05:00
mjn-mixael
242c7184b8
Merge branch 'master' into scpui_hotkeys
...
# Conflicts:
# code/scripting/api/libs/ui.cpp
2023-03-22 09:14:21 -05:00
mjn-mixael
88166d58bc
Merge branch 'master' into scpui_hotkeys
...
# Conflicts:
# code/scripting/api/libs/ui.cpp
# code/source_groups.cmake
2023-03-22 08:33:11 -05:00
mjn-mixael
51c55550f0
Merge branch 'master' into scpui_game_help
...
# Conflicts:
# code/scripting/api/libs/ui.cpp
2023-03-22 08:25:33 -05:00
BMagnu
9caa9c4c7c
Expose some Nebula settings to Lua ( #5268 )
...
* Add more nebula options
* rename vars due to windows api defines
2023-03-22 12:42:18 +01:00
Mike Nelson
fbf0db09a7
Scpui Mission Log ( #5242 )
...
* SCPUI access to scrollback items (mission event log and message log)
* copy paste error
* check the objective flags instead of the action flags now
* rename actions -> segments
2023-03-21 20:03:35 -04:00
Naomi Coffman
95f5839b5f
Disenlongate method names
2023-03-11 11:39:06 -05:00
mjn-mixael
08471e8749
cleanup includes
2023-03-09 16:41:18 -06:00
mjn-mixael
465190b154
fix some issues based on testing
2023-03-09 16:38:31 -06:00
mjn-mixael
3c498e65ec
get hotkeys by line
2023-03-09 15:56:30 -06:00
mjn-mixael
aa91e93aa6
copy/paste
2023-03-09 14:36:27 -06:00
mjn-mixael
3e24e21e4d
add a dumb
2023-03-09 10:25:36 -06:00
mjn-mixael
6d142428c3
remove a dumb
2023-03-09 10:14:04 -06:00
mjn-mixael
92f140c080
add functions
2023-03-09 10:03:37 -06:00
mjn-mixael
e105b57a26
read access to mission hotkeys for scpui
2023-03-08 14:23:33 -06:00
mjn-mixael
55a89dc13d
clarify documentation
2023-03-07 13:27:00 -06:00
mjn-mixael
1d9fa9719c
some cleanup
2023-03-06 18:26:19 -06:00
mjn-mixael
bc2218a87b
use a table
2023-03-06 18:22:33 -06:00
mjn-mixael
b2e56dc408
Initial setup of lua access to help sections
2023-03-06 17:33:09 -06:00
Fabian Woltermann
c8fd2af450
Merge pull request #5090 from MjnMixael/scpui_closeup_icons
...
SCPUI methods required for handling closeup briefing icon stuff
2023-03-06 16:36:44 +01:00
Fabian Woltermann
b373ad2df4
Merge pull request #5036 from MjnMixael/lua_access_to_enums
...
allow scripts to read LuaEnums and add LuaEnums
2023-02-23 14:46:48 +01:00