|
@@ -240,16 +240,19 @@ export class new_frame extends Component {
|
|
|
if(up_frame.anchor_point_y==undefined||up_frame==null) {
|
|
|
up_frame.anchor_point_y = 0.5
|
|
|
}
|
|
|
- if(up_frame.scale_x==undefined||up_frame==null) {
|
|
|
- up_frame.scale_x = 1
|
|
|
- }
|
|
|
- if(up_frame.scale_y==undefined||up_frame==null) {
|
|
|
- up_frame.scale_y = 1
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
this.m_data.rotation = up_frame?up_frame.rotation:0
|
|
|
this.m_data.anchor_point_x = up_frame?up_frame.anchor_point_x:att.anchor_x
|
|
|
this.m_data.anchor_point_y = up_frame?up_frame.anchor_point_y:att.anchor_y
|
|
|
+
|
|
|
+ if(up_frame.scale_x==undefined) {
|
|
|
+ up_frame.scale_x = 1
|
|
|
+ }
|
|
|
+ if(up_frame.scale_y==undefined) {
|
|
|
+ up_frame.scale_y = 1
|
|
|
+ }
|
|
|
+
|
|
|
this.m_data.scale_x = up_frame.scale_x
|
|
|
this.m_data.scale_y = up_frame.scale_y
|
|
|
this.lab_origin_pos.getComponent(Label).string = `(x:${Math.floor(att.x)},y:${Math.floor(att.y)})`
|