Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor: Update Spine plugin with GUI template layout changes #192

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

matgis
Copy link
Contributor

@matgis matgis commented Dec 5, 2024

Updated editor plugin with corresponding changes from defold/defold#9884.

:spine-bones (s/maybe {s/Keyword s/Any})
:spine-scene-scene (s/maybe {s/Keyword s/Any})
:spine-scene-pb (s/maybe {s/Keyword s/Any})}})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are already defined in editor.gui.

(for [[name path] spine-scene-name+paths]
(let [spine-scene-resource (workspace/resolve-resource resource path)]
(g/make-nodes graph-id [spine-scene [SpineSceneNode :name name :spine-scene spine-scene-resource]]
(attach-spine-scene self spine-scenes-node spine-scene)))))))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation + unified code paths for old-spine-scenes and new-spine-scenes. Removed remnant use of (g/declared-property-labels gui/ResourceNode).

@@ -369,8 +370,7 @@
:custom-type 0
:output-node-type (:node-type info)
:output-custom-type (:custom-type info)
:deprecated true
:defaults gui/visual-base-node-defaults})]
:deprecated true})]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cleanup: :defaults is already in info.

@matgis matgis force-pushed the gui-layout-override-refactor branch from c2c1fcd to 81d6e79 Compare December 6, 2024 08:38
Copy link
Contributor

@vlaaad vlaaad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@matgis matgis merged commit 81772c2 into main Dec 6, 2024
3 of 17 checks passed
@matgis matgis deleted the gui-layout-override-refactor branch December 6, 2024 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants