Files
armorpaint/armorforge/sources/base_ext.ts
T
luboslenco dbf24344b2 Forge test
2024-12-03 22:19:12 +01:00

27 lines
474 B
TypeScript

function base_ext_init() {
sim_init();
}
function base_ext_render() {
if (context_raw.frame == 2) {
util_render_make_material_preview();
ui_base_hwnds[tab_area_t.SIDEBAR1].redraws = 2;
base_init_undo_layers();
}
sim_update();
}
function base_ext_init_config(raw: config_t) {
raw.layer_res = texture_res_t.RES8192;
raw.undo_steps = 1;
}
function base_ext_update() {
if (keyboard_down("control") && keyboard_started("d")) {
sim_duplicate();
}
}