MV Center Picture?

Any idea how to center the picture?
Capture.PNG

Heres the code that controls it from Yanfly Common Event Menu:

picS: true,
picX: 0,
picY: 'Graphics.boxHeight - height',
picW: 'Graphics.boxWidth / 2',
picH: 'Graphics.boxHeight - this.fittingHeight(6) - this.fittingHeight(2)',
picO: 255,

There seems to be no X or Y positioning for the picture itself. The existing X and Y just move the entire window.
Bump
Bump
I take it you want the picture of the sword and its container box to be centered to the box it is in, and not the centre of the screen.

As I read it:

picS: true, is showpicture on/off
picX: 0, is the images X position in pixels
picY: 'Graphics.boxHeight - height', is the images Y-position (the Graphics.boxHeight, is the height of the box the image is in, the -height, moves the picute so that its is visable and not put just bellow the box it is in)
picW: 'Graphics.boxWidth / 2', is Pictures Width
picH: 'Graphics.boxHeight - this.fittingHeight(6) - this.fittingHeight(2)', is Pictures height
picO: 255, is the opassity of the image

Try changing picX:0; to picx:50; as it should be the X position of the picture to the right with 50 pixels.
If it moves you should just need to put in a formula to center it. Probably something like: Grahpics.boxWidth /2 should work, but it might but the left most pixel in the centre, if that is the case you would need to make it (Grahpics.boxWidth /2 -(picW/2)) or something like that.

Or if that doesn't work:
Are you using the picture anywhere else? If not, you can always change the size of the picture. Giving it blank spaces to the left or right. (provided ofc that you don't allow the player to change resolution as that would change the size of the gui and also the size needed to keep the image in the centre.)

Original thread: https://forums.rpgmakerweb.com/threads/center-picture.125637/