Files
armorpaint/paint/sources/base_ext.ts
T

34 lines
578 B
TypeScript
Raw Normal View History

2024-11-08 18:55:39 +01:00
function base_ext_init() {
}
function base_ext_render() {
if (context_raw.frame == 2) {
util_render_make_material_preview();
ui_base_hwnds[tab_area_t.SIDEBAR1].redraws = 2;
2024-12-02 18:23:51 +01:00
base_init_undo_layers();
2024-11-08 18:55:39 +01:00
}
2025-08-08 14:09:48 +02:00
if (context_raw.tool == tool_type_t.GIZMO) {
sim_init();
sim_update();
}
2024-12-02 18:23:51 +01:00
}
function base_ext_init_config(raw: config_t) {
2024-11-29 12:57:27 +01:00
2024-11-08 18:55:39 +01:00
}
2024-12-03 22:19:34 +01:00
function base_ext_update() {
2025-08-08 14:09:48 +02:00
if (context_raw.tool == tool_type_t.GIZMO) {
if (keyboard_down("control") && keyboard_started("d")) {
sim_duplicate();
}
2024-12-03 22:19:34 +01:00
2025-08-08 14:09:48 +02:00
if (keyboard_started("delete")) {
sim_delete();
}
}
2024-12-03 22:19:34 +01:00
}