2023-03-24 21:53:48 +01:00
|
|
|
|
2019-12-09 00:28:10 +01:00
|
|
|
class TabPlugins {
|
2019-06-20 16:50:57 +02:00
|
|
|
|
2024-02-06 19:32:21 +01:00
|
|
|
static draw = (htab: zui_handle_t) => {
|
2024-03-07 20:37:30 +01:00
|
|
|
let ui: zui_t = UIBase.ui;
|
2024-02-06 19:32:21 +01:00
|
|
|
if (zui_tab(htab, tr("Plugins"))) {
|
2019-10-10 14:27:17 +02:00
|
|
|
|
2024-02-06 19:32:21 +01:00
|
|
|
zui_begin_sticky();
|
2023-04-20 00:38:27 +02:00
|
|
|
|
2024-01-17 18:53:31 +01:00
|
|
|
///if (is_paint || is_sculpt)
|
2024-02-06 19:32:21 +01:00
|
|
|
zui_row([1 / 4]);
|
2024-01-17 18:53:31 +01:00
|
|
|
///end
|
|
|
|
|
///if is_lab
|
2024-02-06 19:32:21 +01:00
|
|
|
zui_row([1 / 14]);
|
2024-01-17 18:53:31 +01:00
|
|
|
///end
|
2023-04-20 00:38:27 +02:00
|
|
|
|
2024-02-06 19:32:21 +01:00
|
|
|
if (zui_button(tr("Manager"))) {
|
2020-04-17 12:33:51 +02:00
|
|
|
BoxPreferences.htab.position = 6; // Plugins
|
2019-11-12 10:50:25 +01:00
|
|
|
BoxPreferences.show();
|
2019-10-10 14:27:17 +02:00
|
|
|
}
|
2024-02-06 19:32:21 +01:00
|
|
|
zui_end_sticky();
|
2019-10-10 14:27:17 +02:00
|
|
|
|
2019-06-20 16:50:57 +02:00
|
|
|
// Draw plugins
|
2024-03-07 20:37:30 +01:00
|
|
|
for (let p of Plugin.plugins.values()) if (p.draw_ui != null) p.draw_ui(ui);
|
2019-06-20 16:50:57 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|