a20974c8-7c92-402f-af9c-b882e50935e2.js 2.35 KB
"use strict";
cc._RF.push(module, 'a2097TIfJJAL6+cuILlCTXi', 'ExchangeCodeViewImpl');
// script/game/ui/view/impl/ExchangeCodeViewImpl.ts

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExchangeCodeViewImpl = void 0;
const ExChangeCodeView_1 = require("../type/ExChangeCodeView");
const CCViewBase_1 = require("../../../../common/classbase/CCViewBase");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
const CCDummyObjects_1 = require("../../../../common/CCDummyObjects");
const { ccclass, property } = cc._decorator;
let ExchangeCodeViewImpl = /** @class */ (() => {
    let ExchangeCodeViewImpl = class ExchangeCodeViewImpl extends CCViewBase_1.CCPureView {
        constructor() {
            super(...arguments);
            this.titlelbl = CCDummyObjects_1.DummyLabel;
            this.editbox = CCDummyObjects_1.DymmyEditBox;
        }
        onLoad() {
            this.bindProp("titletxt", this.titlelbl, "string");
            this.bindProp("contenttxt", this.editbox, "string");
        }
        onCancleClickCallback() {
            this._props.onActionClick(false);
            this.close();
        }
        onOkClickCallback() {
            this._props.onActionClick(true, this.editbox.string);
            this.close();
        }
    };
    __decorate([
        property(cc.Label)
    ], ExchangeCodeViewImpl.prototype, "titlelbl", void 0);
    __decorate([
        property(cc.EditBox)
    ], ExchangeCodeViewImpl.prototype, "editbox", void 0);
    ExchangeCodeViewImpl = __decorate([
        ccclass,
        PresenterCCViewFactory_1.RegView(ExChangeCodeView_1.ExchangeCodeViewType, "prefab/ui/ExchangeCodeView")
    ], ExchangeCodeViewImpl);
    return ExchangeCodeViewImpl;
})();
exports.ExchangeCodeViewImpl = ExchangeCodeViewImpl;

cc._RF.pop();