Skip to content

Commit

Permalink
Create ui_nodes_custom_buttons map
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Oct 21, 2024
1 parent 20db7cd commit 83b98bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/ts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function ui_theme_create(): ui_theme_t {
return raw;
}

let ui_nodes_custom_buttons: map_t<string, (i: i32)=>void>;
let ui_nodes_custom_buttons: map_t<string, (i: i32)=>void> = map_create();

function nodes_on_custom_button(node_id: i32, button_name: string) {
let f: (i: i32) => void = map_get(ui_nodes_custom_buttons, button_name);
Expand Down

0 comments on commit 83b98bc

Please sign in to comment.