Skip to main content

register_update_ui

Function register_update_ui 

Source
pub fn register_update_ui(engine: &mut ScriptEngine)
Expand description

Register the game.updateUI() JS API on the given engine.

Callable from JS as: await game.updateUI("shop", { gold: 999 }) The data argument is serialized via JSON.stringify by the Boa runtime. Produces ScriptCommand::UpdateUI { scene_name, data_json }.