116 lines
5.5 KiB
JavaScript
116 lines
5.5 KiB
JavaScript
System.register(["__unresolved_0", "cc", "__unresolved_1", "__unresolved_2", "__unresolved_3", "__unresolved_4", "__unresolved_5"], function (_export, _context) {
|
|
"use strict";
|
|
|
|
var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Button, PanelBase, FPSCameraController, UIManager, AudioMgr, AssetController, _dec, _dec2, _class, _class2, _descriptor, _class3, _crd, ccclass, property, QingBaoPanel;
|
|
|
|
function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
|
|
|
|
function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
|
|
|
|
function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); }
|
|
|
|
function _reportPossibleCrUseOfPanelBase(extras) {
|
|
_reporterNs.report("PanelBase", "../framework/ui/PanelBase", _context.meta, extras);
|
|
}
|
|
|
|
function _reportPossibleCrUseOfFPSCameraController(extras) {
|
|
_reporterNs.report("FPSCameraController", "../FPSCameraController", _context.meta, extras);
|
|
}
|
|
|
|
function _reportPossibleCrUseOfUIManager(extras) {
|
|
_reporterNs.report("UIManager", "../framework/ui/UIManager", _context.meta, extras);
|
|
}
|
|
|
|
function _reportPossibleCrUseOfAudioMgr(extras) {
|
|
_reporterNs.report("AudioMgr", "../framework/audio/AudioMgr", _context.meta, extras);
|
|
}
|
|
|
|
function _reportPossibleCrUseOfAssetController(extras) {
|
|
_reporterNs.report("AssetController", "../AssetController", _context.meta, extras);
|
|
}
|
|
|
|
return {
|
|
setters: [function (_unresolved_) {
|
|
_reporterNs = _unresolved_;
|
|
}, function (_cc) {
|
|
_cclegacy = _cc.cclegacy;
|
|
__checkObsolete__ = _cc.__checkObsolete__;
|
|
__checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
|
|
_decorator = _cc._decorator;
|
|
Button = _cc.Button;
|
|
}, function (_unresolved_2) {
|
|
PanelBase = _unresolved_2.PanelBase;
|
|
}, function (_unresolved_3) {
|
|
FPSCameraController = _unresolved_3.FPSCameraController;
|
|
}, function (_unresolved_4) {
|
|
UIManager = _unresolved_4.UIManager;
|
|
}, function (_unresolved_5) {
|
|
AudioMgr = _unresolved_5.AudioMgr;
|
|
}, function (_unresolved_6) {
|
|
AssetController = _unresolved_6.AssetController;
|
|
}],
|
|
execute: function () {
|
|
_crd = true;
|
|
|
|
_cclegacy._RF.push({}, "1ce9c9ribdEDbwu2Q8ukU0f", "QingBaoPanel", undefined);
|
|
|
|
__checkObsolete__(['_decorator', 'Button', 'Component', 'EventTouch', 'Input', 'input', 'instantiate', 'Node', 'Prefab']);
|
|
|
|
({
|
|
ccclass,
|
|
property
|
|
} = _decorator);
|
|
|
|
_export("QingBaoPanel", QingBaoPanel = (_dec = ccclass('QingBaoPanel'), _dec2 = property(Button), _dec(_class = (_class2 = (_class3 = class QingBaoPanel extends (_crd && PanelBase === void 0 ? (_reportPossibleCrUseOfPanelBase({
|
|
error: Error()
|
|
}), PanelBase) : PanelBase) {
|
|
constructor() {
|
|
super(...arguments);
|
|
|
|
_initializerDefineProperty(this, "closeBtn", _descriptor, this);
|
|
}
|
|
|
|
onLoad() {
|
|
QingBaoPanel.instance = this;
|
|
this.closeBtn.node.on(Button.EventType.CLICK, this.onClickClose, this);
|
|
}
|
|
|
|
onClickClose() {
|
|
(_crd && AudioMgr === void 0 ? (_reportPossibleCrUseOfAudioMgr({
|
|
error: Error()
|
|
}), AudioMgr) : AudioMgr).inst.playOneShot((_crd && AssetController === void 0 ? (_reportPossibleCrUseOfAssetController({
|
|
error: Error()
|
|
}), AssetController) : AssetController).instance.click);
|
|
(_crd && UIManager === void 0 ? (_reportPossibleCrUseOfUIManager({
|
|
error: Error()
|
|
}), UIManager) : UIManager).instance.closePanel(QingBaoPanel);
|
|
}
|
|
|
|
onOpen() {
|
|
(_crd && FPSCameraController === void 0 ? (_reportPossibleCrUseOfFPSCameraController({
|
|
error: Error()
|
|
}), FPSCameraController) : FPSCameraController).getInstance().showQingBao();
|
|
}
|
|
|
|
onClose() {
|
|
(_crd && FPSCameraController === void 0 ? (_reportPossibleCrUseOfFPSCameraController({
|
|
error: Error()
|
|
}), FPSCameraController) : FPSCameraController).getInstance().closeQingBao();
|
|
}
|
|
|
|
}, _class3.instance = null, _class3), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "closeBtn", [_dec2], {
|
|
configurable: true,
|
|
enumerable: true,
|
|
writable: true,
|
|
initializer: function initializer() {
|
|
return null;
|
|
}
|
|
})), _class2)) || _class));
|
|
|
|
_cclegacy._RF.pop();
|
|
|
|
_crd = false;
|
|
}
|
|
};
|
|
});
|
|
//# sourceMappingURL=abd6b3d279fb075f8e562e5b6b6f34a9435a296e.js.map
|