aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Theme/PieChart/chart_test.gd
diff options
context:
space:
mode:
author Nemrav <>2023-07-29 03:07:02 +0200
committer Hop311 <hop3114@gmail.com>2023-08-09 20:02:01 +0200
commit505176d9cabe76cff7cdac6b4d4ef1c77ccb00d9 (patch)
treeeed289104a5fc476e9033d88fc74865d109e66bb /game/src/Game/Theme/PieChart/chart_test.gd
parentff0d38b5d53fa95609f2587a2be5205f0c0d3118 (diff)
add piecharts
Diffstat (limited to 'game/src/Game/Theme/PieChart/chart_test.gd')
-rw-r--r--game/src/Game/Theme/PieChart/chart_test.gd32
1 files changed, 32 insertions, 0 deletions
diff --git a/game/src/Game/Theme/PieChart/chart_test.gd b/game/src/Game/Theme/PieChart/chart_test.gd
new file mode 100644
index 0000000..8a3b865
--- /dev/null
+++ b/game/src/Game/Theme/PieChart/chart_test.gd
@@ -0,0 +1,32 @@
+extends Control
+
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ var chart:PieChart = $LayeredChart/OuterPieChart
+ chart.addOrReplaceLabel("label4",3,"Socialist",Color(1.0,0.0,0.0))
+
+ var chart2:PieChart = $PieChart3
+ chart2.RemoveLabel("label1")
+ chart2.RemoveLabel("label2")
+ chart2.RemoveLabel("label3")
+ chart2.RemoveLabel("label4")
+
+ #$PieChart
+ #$PieChart2
+ #$PieChart/PieChart2
+ var chart3:PieChart = $LayeredChart/InnerPieChart
+ chart3.RemoveLabel("label1")
+ chart3.RemoveLabel("label2")
+ chart3.RemoveLabel("label3")
+ chart3.addOrReplaceLabel("a",3,"",Color(1.0,0.0,0.0))
+ chart3.addOrReplaceLabel("b",3,"Y",Color(0.0,1.0,0.0))
+ chart3.addOrReplaceLabel("c",3,"Z",Color(0.0,0.0,1.0))
+
+
+ var chart4:PieChart = $PieChart4
+ chart4.addOrReplaceLabel("hi",3,"antidisenstablishmentarianist antidisenstablishmentarianism",Color(0.0,0.5,0.5))
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(delta):
+ pass