Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pontus.fredriksson committed Mar 26, 2023
1 parent 108de8c commit a05c8be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function generationDialog(plugin, numberOfSprites, sprite, output, selectedColor
:newrow()
:separator()

if output == "slices" then
if output == "slices" or output == "sprites" then
dlg:entry { id = "baseName", label = "Base name:", text = baseName }
dlg:entry { id = "divider", label = "Divider:", text = divider }
dlg:slider { id = "columns",
Expand Down Expand Up @@ -189,9 +189,6 @@ function init(plugin)
local output = setup_data.output
plugin.preferences.output = output

local columns = setup_data.columns
plugin.preferences.columns = columns

local selectedColors = setup_data.shades
local baseName = setup_data.baseName
local divider = setup_data.divider
Expand All @@ -202,6 +199,9 @@ function init(plugin)

local generation_data = generationDialog(plugin, numberOfSprites, sprite, output, selectedColors, baseName, divider)

local columns = generation_data.columns
plugin.preferences.columns = columns

if generation_data == nil then
return
end
Expand Down

0 comments on commit a05c8be

Please sign in to comment.