Skip to content

Commit

Permalink
added toolti for gauge examples
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfDragons committed Sep 19, 2024
1 parent 17dec08 commit 26d52cd
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions dstestproject/data/scripts/WindowScrollbars.ds
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ pin Dragengine.Gui.Layouts
pin Dragengine.Gui
pin Dragengine.Gui
pin Dragengine.Gui
pin Dragengine.Gui



Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 26d52cd

Please sign in to comment.