mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-24 00:35:59 +02:00
Throwdowns: the throwdown kit, so a mode is a plugin and the SDK knows no particular mode
Plugins register modes (card, replaces, order, flag, players) and publish documents through reskate.throwdowns.ui: the setup page, the waiting card, HUD slots themed on the game's HUD_<theme>_* widgets, the match panel, flags and match restrictions. SmokeyDawg58's native plumbing (throwdown_menu.cpp and its .inl files) renders them and posts throwdown_ui events back. kit::flag is the one native flag registration. General services added for it: reskate.files, reskate.ui.dialog, reskate.skater push/hold/bone_cam, reskate.camera.pad_flight, reskate.physics competition, reskate.session.world, reskate.tricks feed/gesture, and world entities. His ten modes are now Lua in his plugin: the rules, referee and wire (td/rules, referee, wire), and every page and HUD document (td/ui*.lua). Extension/Modes and reskate.modes are gone, along with every race and 1-UP branch in the SDK. The plugin test drives each mode through kit events. A native setup page is never written to while it closes into flag placement: its rows are not republished, the stock page is put back once the exit is over, and the stock Players slider is left alone while a plugin flag is out. This fixes the crashes on the Deathrace button and on 1-UP's Confirm.
This commit is contained in:
1 parent
e14064250c
commit
8444553402
186 files changed
+28015
-2747
No files matched your search
@@ -12,7 +12,9 @@
|
||||
#include "Extension/World/shader_permutation_guard.h"
|
||||
#include "Extension/World/shader_registry_guard.h"
|
||||
#include "Extension/World/light_table_guard.h"
|
||||
#include "Extension/World/guid_table_guard.h"
|
||||
#include "Extension/World/stack_check_report.h"
|
||||
#include "Extension/World/world_entities.h"
|
||||
#include "Extension/Music/music_inject.h"
|
||||
#include "Extension/Music/spotify_web.h"
|
||||
#include "Extension/Music/plex_web.h"
|
||||
@@ -341,9 +343,13 @@ extern "C" __declspec(dllexport) BOOL WINAPI DingoSDKDebugInitialize() {
|
||||
(void)dingosdk::shader_permutation_guard::install(r.base);
|
||||
(void)dingosdk::shader_registry_guard::install(r.base);
|
||||
(void)dingosdk::light_table_guard::install(r.base);
|
||||
(void)dingosdk::guid_table_guard::install(r.base);
|
||||
(void)dingosdk::load_error_guard::install(r.base);
|
||||
(void)dingosdk::texture_handle_limit::install(r.base);
|
||||
#if !defined(DINGOSDK_LEAN_PLAYTEST)
|
||||
(void)dingosdk::stack_check_report::install(r.base);
|
||||
dingosdk::console::start_memory_trace_from_environment();
|
||||
#endif
|
||||
(void)dingosdk::music_inject::install(r.base);
|
||||
(void)dingosdk::spotify_rows::install(r.base);
|
||||
dingosdk::spotify_device::start(); // (the game as a device in the player's Spotify app)
|
||||
@@ -506,6 +512,7 @@ extern "C" __declspec(dllexport) BOOL WINAPI DingoSDKDebugInitialize() {
|
||||
r.native_loading_logging = dingosdk::start_level_loading_logging(r.base,
|
||||
[](std::uintptr_t base, unsigned next) noexcept {
|
||||
dingosdk::local_profile_before_level_transition(next);
|
||||
dingosdk::world_entities::before_level_transition(base, next);
|
||||
dingosdk::multiplayer::native_menu_before_level_transition(base, next);
|
||||
dingosdk::multiplayer::throwdown_lab_before_level_transition(next);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user