|
@@ -603,6 +603,15 @@ export default class Editor extends cc.Component {
|
|
data.h = node.height.toFixed(1)
|
|
data.h = node.height.toFixed(1)
|
|
if (!sprite.trim) data.trim = sprite.trim
|
|
if (!sprite.trim) data.trim = sprite.trim
|
|
}
|
|
}
|
|
|
|
+ if (node.scaleX != 1) {
|
|
|
|
+ data.scaleX = node.scaleX
|
|
|
|
+ }
|
|
|
|
+ if (node.scaleY != 1) {
|
|
|
|
+ data.scaleY = node.scaleY
|
|
|
|
+ }
|
|
|
|
+ if (node.color.toHEX('#rrggbb') != cc.Color.WHITE.toHEX('#rrggbb')) {
|
|
|
|
+ data.color = node.color.toHEX('#rrggbb')
|
|
|
|
+ }
|
|
let layout = node.getComponent(cc.Layout)
|
|
let layout = node.getComponent(cc.Layout)
|
|
if (layout && layout.enabled) {
|
|
if (layout && layout.enabled) {
|
|
data.lay = this.cloneComponent(layout, {})
|
|
data.lay = this.cloneComponent(layout, {})
|