From 20938ec55d0bb361bb233d00f0dbe00cb65d465b Mon Sep 17 00:00:00 2001 From: dazedanon Date: Sun, 25 Jan 2026 15:40:29 -0600 Subject: [PATCH] Add thicker outline and beige to 102 choices --- www/js/plugins/JsScript35Set.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/www/js/plugins/JsScript35Set.js b/www/js/plugins/JsScript35Set.js index 509a4c1..377b69a 100644 --- a/www/js/plugins/JsScript35Set.js +++ b/www/js/plugins/JsScript35Set.js @@ -14,6 +14,25 @@ const PN_rsSelect = 460; const PN_rsSelTxt = PN_rsSelect + 5; const PN_SelTimer_Waku = PN_rsSelTxt + 5; const PN_rsTimer = PN_SelTimer_Waku + 1; + +// Fix: Store custom outline width when processing \ow[] and apply it at draw time +var _OriSel_processCharacter = Sprite_Picture.prototype._processCharacter; +Sprite_Picture.prototype._processCharacter = function(textState, bitmap) { + _OriSel_processCharacter.call(this, textState, bitmap); + // After processing, if outlineWidth was set, store it for draw time + if (bitmap.outlineWidth && bitmap.outlineWidth != 4) { + bitmap._customOutlineWidth = bitmap.outlineWidth; + } +}; + +var _OriSel_drawTextOutline = Bitmap.prototype._drawTextOutline; +Bitmap.prototype._drawTextOutline = function(text, tx, ty, maxWidth) { + if (this._customOutlineWidth > 0) { + this.outlineWidth = this._customOutlineWidth; + } + _OriSel_drawTextOutline.call(this, text, tx, ty, maxWidth); +}; + var Ronsen_Flg = false; var Ronsen_Btl = 0; var Ronsen_flame = 0; @@ -160,7 +179,7 @@ Game_Interpreter.prototype.command102 = function() { this.SetPict( PN_rsSelect + i , RsPicPath + "PN_rsSelect" , _OriSelPos._x , _OriSelPos._y - (70 * ( _rsSelArr.length - 1 - i) ) , 0); this.MovePict( PN_rsSelect + i , true , true , _rsFinTime); - this.SetPicStr( PN_rsSelTxt + i , _rsSelArr[i] , 23 , + this.SetPicStr( PN_rsSelTxt + i , "\\ow[5]\\oc[rgb(231,225,212)]" + _rsSelArr[i] , 23 , _OriSelPos._x + 25 , _OriSelPos._y + 15 - (70 * ( _rsSelArr.length - 1 - i) ) , 0); this.MovePict( PN_rsSelTxt + i , true , true , _rsFinTime); }