Merge pull request #41 from Calinou/size-use-multiplication-symbol

Use the Unicode multiplication symbol for size OptionButtons
This commit is contained in:
Rodz Labs 2019-10-21 06:44:20 +02:00 committed by GitHub
commit 3017f0d0fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,7 @@ func create_parameter_control(p : Dictionary):
control = OptionButton.new()
for i in range(p.first, p.last+1):
var s = pow(2, i)
control.add_item("%dx%d" % [ s, s ])
control.add_item("%d×%d" % [ s, s ])
control.selected = 0 if !p.has("default") else p.default-p.first
elif p.type == "enum":
control = OptionButton.new()