Add thicker outline and beige to 102 choices

This commit is contained in:
dazedanon 2026-01-25 15:40:29 -06:00
parent f756231b53
commit 20938ec55d

View file

@ -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);
}