|
@@ -1,5 +1,5 @@
|
|
|
import { _decorator, assetManager, Color, Component, Director, director, EventTouch, ImageAsset, instantiate, Label, math, Node, NodePool, Prefab, Size, Sprite, SpriteFrame, Texture2D, Toggle, Tween, tween, UITransform, Vec2, Vec3 } from 'cc';
|
|
|
-import { att_click_data, att_count_down, att_drag_data, att_question_select, att_slide_data, att_text_sound_data, att_top_data, attributes_data, widget_item_data } from '../../data/data';
|
|
|
+import { att_click_data, att_container, att_count_down, att_drag_data, att_question_select, att_slide_data, att_text_sound_data, att_top_data, attributes_data, widget_item_data } from '../../data/data';
|
|
|
import { ClientEvent } from '../clientEvent';
|
|
|
import { config } from '../config';
|
|
|
import { scroll_scene } from './scroll_scene';
|
|
@@ -196,6 +196,10 @@ export class widget_item extends Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ initConatiner(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
initCountDown(){
|
|
|
if(this.call_back==null){
|
|
|
let _time_count = instantiate(this.count_down_pf)
|
|
@@ -258,6 +262,12 @@ export class widget_item extends Component {
|
|
|
}
|
|
|
this.initCountDown()
|
|
|
this.lab_name.getComponent(Label).string =`倒计时-id:${this.m_att.id}`
|
|
|
+ }else if(this.m_data.type===config.Widget_Type_List.CONTAINER_LAYER){
|
|
|
+ if(this.m_att.container_layer===null){
|
|
|
+ this.m_att.container_layer = new att_container;
|
|
|
+ }
|
|
|
+ this.initConatiner()
|
|
|
+ this.lab_name.getComponent(Label).string =`容器层-id:${this.m_att.id}`
|
|
|
}
|
|
|
this.node.active = this.m_att.edit_active
|
|
|
}
|