|
@@ -1,4 +1,4 @@
|
|
|
-import { _decorator, Color, Component, instantiate, misc, Node, Prefab, Size, Sprite, tween, Tween, UIOpacity, UITransform, Vec3, Widget } from 'cc';
|
|
|
+import { _decorator, Color, Component, instantiate, misc, Node, Prefab, ScrollView, Size, Sprite, tween, Tween, UIOpacity, UITransform, Vec3, Widget } from 'cc';
|
|
|
import { ani_frame, att_ani_data, attributes_data, event_item, event_item_delete_drag_other, guo_ju_qing_dai_dao_ju, scene_item_data, widget_item_data, zhao_xi_jie_data, zhao_xi_jie_item_data } from '../../data/data';
|
|
|
import { config } from '../config';
|
|
|
import { tools } from '../tools';
|
|
@@ -18,6 +18,7 @@ class BindTarget{
|
|
|
}
|
|
|
@ccclass('scene_page')
|
|
|
export class scene_page extends Component {
|
|
|
+ @property(Node) scroll_view:Node = null;
|
|
|
@property(Node) content:Node = null;
|
|
|
@property(Node) maskView:Node = null;
|
|
|
@property(Prefab) widget_click_prefab:Prefab = null;
|
|
@@ -353,6 +354,20 @@ export class scene_page extends Component {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public startScrollTouch(){
|
|
|
+ if(this.maskView!=null){
|
|
|
+ this.scroll_view.getComponent(ScrollView).horizontal = true
|
|
|
+ this.scroll_view.getComponent(ScrollView).vertical = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public stopScrollTouch(){
|
|
|
+ if(this.maskView!=null){
|
|
|
+ this.scroll_view.getComponent(ScrollView).horizontal = false
|
|
|
+ this.scroll_view.getComponent(ScrollView).vertical = false
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private getAniById(id:number){
|
|
|
if(this.mAnimationList.length>0){
|
|
|
for (let index = 0; index < this.mAnimationList.length; index++) {
|