20 lines
383 B
Haxe
20 lines
383 B
Haxe
package arm.ui;
|
|
|
|
class TabPlugins {
|
|
|
|
public static function draw() {
|
|
var ui = UISidebar.inst.ui;
|
|
if (ui.tab(UISidebar.inst.htab, tr("Plugins"))) {
|
|
|
|
ui.row([1 / 4]);
|
|
if (ui.button(tr("Manager"))) {
|
|
BoxPreferences.htab.position = 5; // Plugins
|
|
BoxPreferences.show();
|
|
}
|
|
|
|
// Draw plugins
|
|
for (p in Plugin.plugins) if (p.drawUI != null) p.drawUI(ui);
|
|
}
|
|
}
|
|
}
|