Skip to content

sco_ui_v1.register_overlay

Adds overlay id; overlays draw in registration order. SCO_BAD_ARG / SCO_TOO_MANY as for register_tab.

sco_result (*)(sco_plugin *, const char *, sco_ui_draw_fn, void *)

Service index

Property Value
Symbol sco_ui_v1.register_overlay
Record ID sco-ui-v1-register-overlay
Service sco.ui
Table sco_ui_v1
Version macro SCO_UI_VERSION_1_0
Packed table version 65536
Since / availability size >= 40; 1.0
Complete member extent (x64 bytes) 40
Table size (x64 bytes) 80

Header source

sco_result (*register_overlay)(sco_plugin* self, const char* id, sco_ui_draw_fn draw, void* ctx);
Adds overlay id; overlays draw in registration order. SCO_BAD_ARG / SCO_TOO_MANY as for register_tab.

Absent table: query_service NOT_FOUND; stopped self-taking methods: UNAVAILABLE; invalid/released self: BAD_ARG; allocation exceptions: TOO_MANY. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND

Strings/arguments copied; draw/ctx borrowed until unregister/unload. Host owns registry; no allocation transfer.

Any thread; draw callbacks game thread. Other recursive reentrancy unspecified.

draw callbacks game thread.

unspecified

unregister_overlay/ordinary unload/non-retained crash cleanup ends draws; off-thread unregister does not join an already-running draw. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls. Guarded draws stop, but snapshots and chord reservations remain.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sco_ui.h
(*register_overlay)
cpp typed-wrapper include/scosdk/ui.hpp
return detail::CanCall(t_, &sco_ui_v1::register_overlay) && detail::CanCall(t_, &sco_ui_v1::unregister_overlay)
? t_->register_overlay(self_, id, draw, ctx) : SCO_UNAVAILABLE;
csharp typed-wrapper sdk/csharp/Sco.Sdk/Ui.cs
fixed (byte* i = Utf8.Z(id)) r = _t->register_overlay(Self, i, &DrawTrampoline, (void*)key);
lua unsupported docs/ui.md
Scripts bind hotkeys; tabs and overlays need draw callbacks from Lua

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.