From d1e5729a62bfc85312d3c46e9a1b34df938965b9 Mon Sep 17 00:00:00 2001 From: 0xNul <57599792+0xNul@users.noreply.github.com> Date: Mon, 10 Jul 2023 23:40:07 -0700 Subject: better organized tabs and added battle-sim-tab --- src/votann/tab_widget.clj | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/votann/tab_widget.clj b/src/votann/tab_widget.clj index e7ff9c1..653a12c 100644 --- a/src/votann/tab_widget.clj +++ b/src/votann/tab_widget.clj @@ -24,5 +24,19 @@ :closable false :content enhancements-view-widget}]) +(def codex-view-tab + [{:fx/type :tab + :text "Codex" + :closable false + :content {:fx/type :tab-pane + :tabs (vec (apply merge unit-view-tab enhancements-view-tab))}}]) + +(def battle-simulator-view-tab + [{:fx/type :tab + :text "Battle Simulator" + :closable false + :content {:fx/type :label + :text "placeholder battle simulator page"}}]) + (defn tab-widget [data] - (vec (apply concat [(list-view-tab data) unit-view-tab enhancements-view-tab]))) + (vec (apply concat [(list-view-tab data) codex-view-tab battle-simulator-view-tab]))) -- cgit v1.2.3