From 26d52cdcaebd0c60022bb3ae95c8381c22006951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pl=C3=BCss=20Roland?= Date: Fri, 20 Sep 2024 01:41:01 +0200 Subject: [PATCH] added toolti for gauge examples --- .../data/scripts/WindowScrollbars.ds | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/dstestproject/data/scripts/WindowScrollbars.ds b/dstestproject/data/scripts/WindowScrollbars.ds index c67cdd1..5208aec 100644 --- a/dstestproject/data/scripts/WindowScrollbars.ds +++ b/dstestproject/data/scripts/WindowScrollbars.ds @@ -31,6 +31,7 @@ pin Dragengine.Gui.Layouts pin Dragengine.Gui pin Dragengine.Gui pin Dragengine.Gui +pin Dragengine.Gui @@ -151,10 +152,21 @@ class WindowScrollbars extends Window p.addWidget(ScrollPanel.new(textArea)) p.addWidget(Panel.new(FlowLayout.new(LayoutAxis.x, 5), block Panel p2 - p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge1")) - p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge2")) - p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge3")) - p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge4")) + var ProgressGauge gauge = ProgressGauge.new(modelProgress, "ProgressGauge.Gauge1") + gauge.setToolTip("ProgressGauge: blendWidth=0") + p2.addWidget(gauge) + + gauge = ProgressGauge.new(modelProgress, "ProgressGauge.Gauge2") + gauge.setToolTip("ProgressGauge: blendWidth=0.25") + p2.addWidget(gauge) + + gauge = ProgressGauge.new(modelProgress, "ProgressGauge.Gauge3") + gauge.setToolTip("ProgressGauge: blendWidth=0.5") + p2.addWidget(gauge) + + gauge = ProgressGauge.new(modelProgress, "ProgressGauge.Gauge4") + gauge.setToolTip("ProgressGauge: blendWidth=1") + p2.addWidget(gauge) end)) end), BorderLayout.Area.content) end