mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-23 17:35:57 +02:00
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.
17 lines
815 B
C++
17 lines
815 B
C++
#pragma once
|
|
#include <cstdint>
|
|
namespace dingosdk::multiplayer {
|
|
void tick_native_throwdown_menu(std::uintptr_t base, bool loading, bool in_menu) noexcept;
|
|
bool release_native_throwdown_menu(std::uintptr_t base) noexcept;
|
|
bool native_throwdown_setup_open() noexcept;
|
|
bool native_throwdown_hud_ready() noexcept;
|
|
bool native_throwdown_match_panel_open() noexcept;
|
|
bool native_throwdown_gameplay_input_allowed() noexcept;
|
|
bool native_throwdown_match_active() noexcept;
|
|
// Prepare an owned request at native page publication or its client/UI tick.
|
|
// Presentation is independent of the native flow's camera/input confirmation.
|
|
void prepare_native_throwdown_match_panel() noexcept;
|
|
void observe_native_custom_join_details(std::uintptr_t vm) noexcept;
|
|
void observe_native_flag_interaction(std::uintptr_t vm) noexcept;
|
|
}
|