|
@@ -1,16 +1,18 @@
|
|
-import { _decorator, Component, instantiate, Node, Prefab, Rect, ScrollView } from 'cc';
|
|
|
|
|
|
+import { _decorator, Component, instantiate, Node, Prefab, Rect, ScrollView, UITransform, Vec3, Widget } from 'cc';
|
|
import { widget_info } from './widget_info';
|
|
import { widget_info } from './widget_info';
|
|
import { bag_drag_item } from './bag_drag_item';
|
|
import { bag_drag_item } from './bag_drag_item';
|
|
import { dai_dao_ju_item, event_item, guo_ju_qing_dai_dao_ju, widget_item_data } from '../../../data/data';
|
|
import { dai_dao_ju_item, event_item, guo_ju_qing_dai_dao_ju, widget_item_data } from '../../../data/data';
|
|
import { ClientEvent } from '../../clientEvent';
|
|
import { ClientEvent } from '../../clientEvent';
|
|
import { config } from '../../config';
|
|
import { config } from '../../config';
|
|
import { gameManager } from '../gameManager';
|
|
import { gameManager } from '../gameManager';
|
|
|
|
+import { SdkUtil } from '../../sdkUtil';
|
|
const { ccclass, property } = _decorator;
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
@ccclass('dai_dao_ju_bag')
|
|
@ccclass('dai_dao_ju_bag')
|
|
export class dai_dao_ju_bag extends Component {
|
|
export class dai_dao_ju_bag extends Component {
|
|
@property(Node) btn_tip:Node;
|
|
@property(Node) btn_tip:Node;
|
|
@property(Node) btn_addtime:Node;
|
|
@property(Node) btn_addtime:Node;
|
|
|
|
+ @property(Node) list_node:Node;
|
|
@property(Node) content:Node;
|
|
@property(Node) content:Node;
|
|
@property(Node) btn_info:Node;
|
|
@property(Node) btn_info:Node;
|
|
@property(Prefab) item_prefab:Prefab = null;
|
|
@property(Prefab) item_prefab:Prefab = null;
|
|
@@ -95,6 +97,12 @@ export class dai_dao_ju_bag extends Component {
|
|
this.mScrollView = gameManager.Singleton.getCurSceneLayerPage().getBG()
|
|
this.mScrollView = gameManager.Singleton.getCurSceneLayerPage().getBG()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ protected start(): void {
|
|
|
|
+ if(SdkUtil.tt_systemInfo.brand=='Apple') {
|
|
|
|
+ this.list_node.getComponent(Widget).bottom +=40
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
protected update(dt: number): void {
|
|
protected update(dt: number): void {
|
|
if(this.mScrollView!=null){
|
|
if(this.mScrollView!=null){
|
|
this.action_node.position = this.mScrollView.position;
|
|
this.action_node.position = this.mScrollView.position;
|