(x: number, y: number)
| 255 | } |
| 256 | |
| 257 | private loadFarm(x: number, y: number): void{ |
| 258 | // Buttons |
| 259 | this.renderArea.addMultipleAsciiButtons("mapFarmButton", |
| 260 | x+5, x+15, y, |
| 261 | x+5, x+15, y+1, |
| 262 | x+6, x+16, y+2, |
| 263 | x+6, x+16, y+3, |
| 264 | x, x+16, y+3, |
| 265 | x, x+16, y+4, |
| 266 | x, x+16, y+5, |
| 267 | x, x+16, y+6, |
| 268 | x, x+16, y+7, |
| 269 | x, x+16, y+8, |
| 270 | x, x+16, y+9, |
| 271 | x+6, x+16, y+10 |
| 272 | ); |
| 273 | // Comments |
| 274 | this.renderArea.addFullComment(x + 16, y + 5, Database.getText("mapFarmComment"), Database.getTranslatedText("mapFarmComment"), "mapFarmComment"); |
| 275 | // Interactions |
| 276 | this.renderArea.addLinkOver(".mapFarmButton, .mapFarmComment", ".mapFarmComment"); |
| 277 | this.renderArea.addLinkCall(".mapFarmButton, .mapFarmComment", new CallbackCollection(this.goToFarm.bind(this))); |
| 278 | } |
| 279 | |
| 280 | private loadForest(x: number, y: number): void{ |
| 281 | // Buttons |
no test coverage detected