summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0xNul <57599792+0xNul@users.noreply.github.com>2023-07-22 13:53:11 -0700
committer0xNul <57599792+0xNul@users.noreply.github.com>2023-07-22 13:53:11 -0700
commit70b20ae50962dc7270577893d1cf3da561303840 (patch)
treea4dc6984271121d5ad2389adef57bc4288573eee
parenta38788a33a12e128361bfd2668951f21406344db (diff)
changed background color
-rw-r--r--src/votann/battle_simulator_widget.clj1
-rw-r--r--src/votann/current_list_widget.clj7
-rw-r--r--src/votann/list_widget.clj10
-rw-r--r--src/votann/models/leagues_of_votann.clj2
4 files changed, 11 insertions, 9 deletions
diff --git a/src/votann/battle_simulator_widget.clj b/src/votann/battle_simulator_widget.clj
index cfc383d..256f9a3 100644
--- a/src/votann/battle_simulator_widget.clj
+++ b/src/votann/battle_simulator_widget.clj
@@ -32,6 +32,7 @@
(defn battle-simulator-widget [{:keys [data total-damage data-type count weapon-type rolls target-count tokens disabled]}]
{:fx/type :v-box
+ :style "-fx-background-color: #e1e0e1;"
:children [{:fx/type :h-box
:alignment :center
:padding 12
diff --git a/src/votann/current_list_widget.clj b/src/votann/current_list_widget.clj
index 0a75fca..79dd09f 100644
--- a/src/votann/current_list_widget.clj
+++ b/src/votann/current_list_widget.clj
@@ -41,10 +41,15 @@
:on-key-pressed {:event/type :event/export-list-enter}
:text "Export"}]}]})
-(defn current-list-widget [{:keys [units]}]
+(defn current-list-scroll-widget [{:keys [units]}]
{:fx/type :scroll-pane
:pref-height 904
:pref-width 300
:content {:fx/type :v-box
:alignment :top-center
:children (current-list units)}})
+
+(defn current-list-widget [data]
+ {:fx/type :v-box
+ :alignment :top-center
+ :children [(current-list-label-widget data) (current-list-scroll-widget data)]})
diff --git a/src/votann/list_widget.clj b/src/votann/list_widget.clj
index 94cfb85..dbec987 100644
--- a/src/votann/list_widget.clj
+++ b/src/votann/list_widget.clj
@@ -1,15 +1,11 @@
(ns votann.list-widget
(:require [votann.point-chart-widget :refer [point-chart-widget]]
[votann.units-and-points-widget :refer [unit-and-points-widget]]
- [votann.current-list-widget :refer [current-list-label-widget current-list-widget]]
+ [votann.current-list-widget :refer [current-list-widget]]
[cljfx.api :as fx]))
-(defn left-widget [data]
- {:fx/type :v-box
- :alignment :top-center
- :children [(current-list-label-widget data) (current-list-widget data)]})
-
(defn list-view-widget [data]
{:fx/type :h-box
+ :style "-fx-background-color: #e1e0e1;"
:alignment :top-center
- :children [(left-widget data) (point-chart-widget data) unit-and-points-widget]})
+ :children [(current-list-widget data) (point-chart-widget data) unit-and-points-widget]})
diff --git a/src/votann/models/leagues_of_votann.clj b/src/votann/models/leagues_of_votann.clj
index 0a9b56e..a27c2b4 100644
--- a/src/votann/models/leagues_of_votann.clj
+++ b/src/votann/models/leagues_of_votann.clj
@@ -36,7 +36,7 @@
{:core ["Leader"]
:faction ["Eye of the Ancestors"]
:other [{:name "Kindered Hero"
- :description "While this model is leading a unit, weapons equipped by a models in that unit have the [LETHAL HITS] ability."}
+ :description "While this model is leading a unit, weapons equipped by models in that unit have the [LETHAL HITS] ability."}
{:name "Grim Efficiency"
:description "Once per battle round, in your Command phase, you can select one model from your army with this ability, then select one enemy unit that is visibile to that model. That enemy unit gains 1 Judgement token."}]
:wargear-abilities [{:name "Rampart Crest"