Files
ReSkate/Extension/UI/NativeMenu/throwdown_menu.h
T
AyeZeeBB 0ff96018d0 Throwdowns: plugin modes on the native Throwdowns page, which is SmokeyDawg58's logo grid
reskate.throwdowns.mode{...} adds a mode to the game's own Throwdowns page: a card on
the picker, the real Spot Battle setup page relabelled with the mode's name, logo,
description, players, timer and rows (sliders, choices, buttons), and the native start
flag. The plugin hears throwdown_mode events (opened, setting, button, placed with the
flag's position and heading, start, leave, cancelled) and runs the mode itself;
release_flag takes the flag down. The flag's queue never starts a Spot Battle: its
waiting card's Start goes to the plugin, MaxPlayers is held at 10 and it is never
relayed as a drop. After SmokeyDawg58's one_up_menu and one_up_placement
(reskate-custom-mods), generalised over a mode registry.

The page is his 4-column logo grid whether or not a plugin has a mode. Its widgets and
grid records, and the game assets it uses that only some levels load, ship in
ReSkate.dll as the throwdown_menu built-in pack, taken from his asset mod's FBMOD
(dingosdk_ebx_pick trims the asset list in place). A mode's logo is a texture path in
its own mod, so no mod edits the shared list. The FPV drone is no longer a built-in pack.

Native menu data: text initialization, change-only writes, retained array publication,
owned-model rollback. Tests: registry and setup helpers, the plugin API, a test plugin
with two modes.
2026-10-19 18:38:10 -05:00

14 lines
573 B
C++

#pragma once
#include <cstdint>
// The game's own Throwdowns page as a logo grid (SmokeyDawg58's picker, whose
// assets ReSkate carries): the stock throwdowns, then the plugins' modes
// (custom_modes.h), and the Spot Battle setup page relabelled for the one
// being set up.
namespace dingosdk::multiplayer {
// Client UI thread, from the native menu tick.
void tick_native_throwdown_menu(std::uintptr_t base, bool loading) noexcept;
// Before a level unloads: false if the page could not be restored.
bool release_native_throwdown_menu(std::uintptr_t base) noexcept;
}