本帖最后由 时不知归 于 2024-3-17 20:40 编辑
不显示最大回合数(修改部分)
/* @param Turn showMaxRound * @type boolean * @desc 是否显示最大回合数 * @default true */ Ryo.showMaxRound = JSON.parse(Ryo.parameters['Turn showMaxRound'] || true); // Load Bitmaps TurnCount.prototype.loadBitmaps = function() { this._numberImg = ImageManager.loadTurn("Number"); if(Ryo.showMaxRound === true){ this._numberImg2 = ImageManager.loadTurn("Number2"); }else{ //... } } // Create Number if(Ryo.showMaxRound === true){ if (this._number2) { //... }; //... } // Update TurnCount.prototype.update = function() { //... if(Ryo.showMaxRound === true){ if (!this._number && this._numberImg.isReady() && this._numberImg2.isReady()) { this.createNumber() this.createNumber2() }; }else{ //... }
/* @param Turn showMaxRound
* @type boolean
* @desc 是否显示最大回合数
* @default true
*/
Ryo.showMaxRound = JSON.parse(Ryo.parameters['Turn showMaxRound'] || true);
// Load Bitmaps
TurnCount.prototype.loadBitmaps = function() {
this._numberImg = ImageManager.loadTurn("Number");
if(Ryo.showMaxRound === true){
this._numberImg2 = ImageManager.loadTurn("Number2");
}else{
//...
}
}
// Create Number
if(Ryo.showMaxRound === true){
if (this._number2) {
//...
};
//...
}
// Update
TurnCount.prototype.update = function() {
//...
if(Ryo.showMaxRound === true){
if (!this._number && this._numberImg.isReady() && this._numberImg2.isReady()) {
this.createNumber()
this.createNumber2()
};
}else{
//...
}
在img/turn 再创建一个Layout1.png
|