"use strict"; cc._RF.push(module, '2ccb4i7SjxNi5AcJc3fVuDW', 'CheckIsShowIcon'); // common-plugin/Scripts/CheckIsShowIcon.ts "use strict"; // Learn TypeScript: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html // Learn Attribute: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/reference/attributes.html // Learn life-cycle callbacks: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/life-cycle-callbacks.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/life-cycle-callbacks.html var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); 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 }); var Utils_1 = require("./Utils"); var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property; var CheckIsShowIcon = /** @class */ (function (_super) { __extends(CheckIsShowIcon, _super); function CheckIsShowIcon() { return _super !== null && _super.apply(this, arguments) || this; } CheckIsShowIcon.prototype.onEnable = function () { if (Utils_1.utils.ServerConfig && Utils_1.utils.ServerConfig.show_video_icon && Utils_1.utils.ServerConfig.show_video_icon == "false") { this.node.active = false; } else { this.node.active = true; } }; CheckIsShowIcon = __decorate([ ccclass ], CheckIsShowIcon); return CheckIsShowIcon; }(cc.Component)); exports.default = CheckIsShowIcon; cc._RF.pop();