Use the Unicode multiplication symbol for size OptionButtons

This commit is contained in:
Hugo Locurcio 2019-10-21 00:39:51 +02:00
parent 1eeb3113cc
commit f225c57cdd
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -126,7 +126,7 @@ func create_parameter_control(p : Dictionary):
control = OptionButton.new() control = OptionButton.new()
for i in range(p.first, p.last+1): for i in range(p.first, p.last+1):
var s = pow(2, i) 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 control.selected = 0 if !p.has("default") else p.default-p.first
elif p.type == "enum": elif p.type == "enum":
control = OptionButton.new() control = OptionButton.new()