diff --git a/data/Items.json b/data/Items.json index 7115615..6b04cef 100644 --- a/data/Items.json +++ b/data/Items.json @@ -2369,7 +2369,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Phil", - "note": " \n\n\n\n \n\n", + "note": " \n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2447,7 +2447,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Bogudo", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2473,7 +2473,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Bogudo", - "note": " \n\n\n\n \n\n", + "note": " \n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2551,7 +2551,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Vivia", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2577,7 +2577,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Evan", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2603,7 +2603,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Evan", - "note": " \n\n\n\n \n\n", + "note": " \n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2629,7 +2629,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Alec", - "note": "\n\n\n\n \n", + "note": "\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2655,7 +2655,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Alec", - "note": "\n \n\n\n\n \n\n", + "note": "\n \n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2681,7 +2681,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Bogudo", - "note": "\n\n\n\n \n", + "note": "\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2707,7 +2707,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Bogudo", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2733,7 +2733,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Bogudo", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2759,7 +2759,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Military Police", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2785,7 +2785,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Man from Porel Village", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2811,7 +2811,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Landon", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2837,7 +2837,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Landon", - "note": "\n\n\n\n\n \n\n\n\n", + "note": "\n\n\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2863,7 +2863,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Demons that attacked the village", - "note": "\n\n\n\n\n \n\n\n", + "note": "\n\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2889,7 +2889,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Oz", - "note": "\n\n\n\n\n \n\n\n", + "note": "\n\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2915,7 +2915,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Man in the Tent", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2941,7 +2941,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Man in the Tent", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2967,7 +2967,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Man in the Tent", - "note": "\n\n\n\n\n \n\n\n", + "note": "\n\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -2993,7 +2993,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Darius", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3019,7 +3019,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Leroy", - "note": "\n\n\n\n \n", + "note": "\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3045,7 +3045,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Leroy", - "note": "\n\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3071,7 +3071,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Leroy", - "note": "\n\n\n\n\n \n\n\n", + "note": "\n\n\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3123,7 +3123,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Evan", - "note": "\n\n\n\n \n", + "note": "\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3149,7 +3149,7 @@ "iconIndex": 191, "itypeId": 3, "name": "Alec", - "note": "\n\n\n\n \n", + "note": "\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3435,7 +3435,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Human-Head Tree", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3461,7 +3461,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Human-Head Tree", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3487,7 +3487,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Gnome", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3513,7 +3513,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Gnome", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3539,7 +3539,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Swampman", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3565,7 +3565,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Swampman", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3591,7 +3591,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Hypno Worm", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3617,7 +3617,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Hypno Worm", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3643,7 +3643,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Heretic Sorcerer", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3669,7 +3669,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Heretic Sorcerer", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3695,7 +3695,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Evil Gemini", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3721,7 +3721,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Evil Gemini", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3747,7 +3747,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Ruffian", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3773,7 +3773,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Ruffian", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3799,7 +3799,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Polypus", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3825,7 +3825,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Polypus", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3851,7 +3851,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Great Dark Spider", - "note": "\n\n\n \n", + "note": "\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, @@ -3877,7 +3877,7 @@ "iconIndex": 293, "itypeId": 3, "name": "Great Dark Spider", - "note": "\n\n\n\n \n\n", + "note": "\n\n\n\n\n\n\n\n", "occasion": 0, "price": 0, "repeats": 1, diff --git a/js/plugins/SceneGlossary.js b/js/plugins/SceneGlossary.js index db3c59e..cc5cbcc 100644 --- a/js/plugins/SceneGlossary.js +++ b/js/plugins/SceneGlossary.js @@ -2539,6 +2539,10 @@ y = this.contentsHeight() - this.calcItemPictureHeight(bitmap, text); pictureHandler = this.drawPicture.bind(this, bitmap, text, y); break; + case 'fixed': + textHandler = this.drawItemText.bind(this, text, textPos); + pictureHandler = this.drawPicture.bind(this, bitmap, text, 0); + break; case 'text': default : textHandler = this.drawItemText.bind(this, text, textPos); @@ -2697,19 +2701,24 @@ var dw = bitmap.width * scale; var dy = bitmap.height * scale; var x = 0; - switch (this.getPictureAlign(item)) { - case 'left': - x = 0; - break; - case 'center': - x = this.contentsWidth() / 2 - dw / 2; - break; - case 'right': - x = this.contentsWidth() - dw; - break; + if (this.getPicturePosition() === 'fixed') { + x = this.contentsWidth() - dw; + y = 0; + } else { + switch (this.getPictureAlign(item)) { + case 'left': + x = 0; + break; + case 'center': + x = this.contentsWidth() / 2 - dw / 2; + break; + case 'right': + x = this.contentsWidth() - dw; + break; + } + x += this.getPictureAdjustX(item); + y += this.getPictureAdjustY(item); } - x += this.getPictureAdjustX(item); - y += this.getPictureAdjustY(item); this.contents.blt(bitmap, 0, 0, bitmap.width, bitmap.height, x, y, dw, dy); this.drawPlusPicture(); };