mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 10:14:42 -04:00
Fixed issue on exporting spritesheet
The spritesheet_rows/column variable wasn't updated when choosing between Columns/Rows. Also updated the GitHub Contributors in the About dialog.
This commit is contained in:
parent
3ae679fe00
commit
2be96f5d53
3 changed files with 15 additions and 11 deletions
|
@ -25,16 +25,16 @@ func _ready() -> void:
|
|||
developers.create_item(dev_root).set_text(0, " John Nikitakis (Erevos) - UI Designer")
|
||||
|
||||
var contributor_root := contributors.create_item()
|
||||
contributors.create_item(contributor_root).set_text(0, " Calinou")
|
||||
contributors.create_item(contributor_root).set_text(0, " greusser")
|
||||
contributors.create_item(contributor_root).set_text(0, " tiritto")
|
||||
contributors.create_item(contributor_root).set_text(0, " YeldhamDev")
|
||||
contributors.create_item(contributor_root).set_text(0, " Martin1991zab")
|
||||
contributors.create_item(contributor_root).set_text(0, " Hugo Locurcio")
|
||||
contributors.create_item(contributor_root).set_text(0, " CheetoHead")
|
||||
contributors.create_item(contributor_root).set_text(0, " Dawid Niedźwiedzki")
|
||||
contributors.create_item(contributor_root).set_text(0, " Michael Alexsander")
|
||||
contributors.create_item(contributor_root).set_text(0, " Martin Zabinski")
|
||||
contributors.create_item(contributor_root).set_text(0, " azagaya")
|
||||
contributors.create_item(contributor_root).set_text(0, " Schweini07")
|
||||
contributors.create_item(contributor_root).set_text(0, " Andreev Andrei")
|
||||
contributors.create_item(contributor_root).set_text(0, " Subhang Nanduri")
|
||||
contributors.create_item(contributor_root).set_text(0, " danielnaoexiste")
|
||||
contributors.create_item(contributor_root).set_text(0, " SbNanduri")
|
||||
contributors.create_item(contributor_root).set_text(0, " AndreevAndrei")
|
||||
contributors.create_item(contributor_root).set_text(0, " JunYouIntrovert")
|
||||
|
||||
var donors_root := donors.create_item()
|
||||
|
|
|
@ -4,11 +4,13 @@ var current_export_path := ""
|
|||
var export_option := 0
|
||||
var resize := 100
|
||||
var interpolation = Image.INTERPOLATE_NEAREST
|
||||
var frames_spinbox : SpinBox
|
||||
var per_rows := false
|
||||
var spritesheet_rows = 1
|
||||
var spritesheet_columns = 1
|
||||
|
||||
func _ready() -> void:
|
||||
frames_spinbox = Global.find_node_by_name(self, "Frames")
|
||||
var children := []
|
||||
for i in range(get_child_count()):
|
||||
if i > 7:
|
||||
|
@ -34,10 +36,11 @@ func _on_Interpolation_item_selected(ID : int) -> void:
|
|||
|
||||
func _on_ColumnsOrRows_item_selected(ID) -> void:
|
||||
per_rows = bool(ID)
|
||||
# Update spritesheet_rows/columns variable
|
||||
_on_Frames_value_changed(frames_spinbox.value)
|
||||
|
||||
func _on_Frames_value_changed(value):
|
||||
value = min(value, Global.canvases.size())
|
||||
var frames_spinbox : SpinBox = Global.find_node_by_name(self, "Frames")
|
||||
|
||||
if per_rows:
|
||||
spritesheet_rows = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue