Fix label width
This commit is contained in:
parent
633f239b09
commit
304214c2ae
1
shop.lua
1
shop.lua
|
@ -271,6 +271,7 @@ local item_picker = flow.make_gui(function(player, ctx)
|
||||||
gui.HBox{
|
gui.HBox{
|
||||||
gui.ItemImage{w = 1, h = 1, item_name = ctx.item},
|
gui.ItemImage{w = 1, h = 1, item_name = ctx.item},
|
||||||
gui.Label{
|
gui.Label{
|
||||||
|
w = 1, -- Don't auto-detect the label width
|
||||||
label = ctx.desc and ctx.item ~= "" and
|
label = ctx.desc and ctx.item ~= "" and
|
||||||
S("Selected item: @1", ctx.desc) or
|
S("Selected item: @1", ctx.desc) or
|
||||||
S("No item selected")
|
S("No item selected")
|
||||||
|
|
Loading…
Reference in New Issue