From 91b2e8acf67d95a3ad577f2e3ba373aca6ac28c4 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Sat, 23 Apr 2022 15:34:28 +0200 Subject: [PATCH] Format --- Sources/arm/History.hx | 2 +- Sources/arm/Project.hx | 2 +- Sources/arm/ui/UINodes.hx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/arm/History.hx b/Sources/arm/History.hx index 7398811a..dad813e4 100644 --- a/Sources/arm/History.hx +++ b/Sources/arm/History.hx @@ -188,7 +188,7 @@ class History { swapCanvas(step); } else if (step.name == tr("Delete Node Group")) { - Project.materialGroups.insert(step.canvas_group,{ canvas: null, nodes: new Nodes() }); + Project.materialGroups.insert(step.canvas_group, { canvas: null, nodes: new Nodes() }); swapCanvas(step); } else if (step.name == tr("New Material")) { diff --git a/Sources/arm/Project.hx b/Sources/arm/Project.hx index 731e0968..5dd3464a 100644 --- a/Sources/arm/Project.hx +++ b/Sources/arm/Project.hx @@ -606,7 +606,7 @@ class Project { return null; } - public static function isMaterialGroupInUse(group: TNodeGroup) { + public static function isMaterialGroupInUse(group: TNodeGroup): Bool { var canvases: Array = []; for (m in materials) canvases.push(m.canvas); for (m in materialGroups) canvases.push(m.canvas); diff --git a/Sources/arm/ui/UINodes.hx b/Sources/arm/ui/UINodes.hx index 7cdeae92..fa39c462 100644 --- a/Sources/arm/ui/UINodes.hx +++ b/Sources/arm/ui/UINodes.hx @@ -910,7 +910,7 @@ class UINodes { if (isGroupCategory) { for (g in Project.materialGroups) { ui.fill(0, 1, ui._w / ui.SCALE(), ui.t.BUTTON_H + 2, ui.t.ACCENT_SELECT_COL); - ui.fill(1, 1, ui._w / ui.SCALE() - 2, ui.t.BUTTON_H + 1 , ui.t.SEPARATOR_COL); + ui.fill(1, 1, ui._w / ui.SCALE() - 2, ui.t.BUTTON_H + 1, ui.t.SEPARATOR_COL); ui.enabled = canPlaceGroup(g.canvas.name); ui.row([5 / 6, 1 / 6]); if (ui.button(" " + g.canvas.name, Left)) {