Move the pause indicator on Galv's Message Styles

I'm not too keen on the right aligned pause indicator that Galv's Message Styles makes all text boxes default to, but I can't quite figure out how to change it back to middle aligned.
Spoiler
upload_2019-8-16_17-0-50.png

I'm pretty sure it's in this bit here in the js:
Spoiler
upload_2019-8-16_17-1-36.png

I already tried altering
this._windowPauseSignSprite.anchor.x = 0;
however while this moves the pause icon, it does so in pixels, so when the boxes are different widths the location is varied. Using a % breaks the code.

It seems I need to change where the anchor is set, back to the default rpgmaker bottom middle of boxes, but I can't figure out how to do that? Any idea?
Programming works the same, regardless if it's rpg maker or an actual programming language.
Using % breaks the code, because % is the operator for modulus. If you want to move a to the middle of b, you want to set its x to the middle of the message window. By default that's done through
a.x = (b.width - a.width) / 2 for center alignment and
a.x = b.width / 2 for left alignment.
@Poryg sorry, I was away for a bit. Thanks!

I'm no scripting expert, so can I ask a few questions?
  • I'm not sure what I'd use for 'b.width'
    Some guesses with a bit of context:
    • 'windowwidth'
    Spoiler
    upload_2019-9-3_21-35-33.png
    • 'Graphics.boxWidth'
      Spoiler
      upload_2019-9-3_21-30-35.png
    • 'Window_Base._faceWidth'
    Spoiler
    upload_2019-9-3_21-32-30.png
  • 'a.width' - are we talking the width of the pause icon? Is width measured in pixels?
Thanks for your help 🙂
The a and b has nothing to do with programming, it's generalization. Just like in algebra you have a^2 + b^2 = c^2 - Pythagoras's theorem - a generic equation that shows the relation between the three sides of any right angled triangle. What does "a", "b" and "c" mean is, a and b are the two shorter sides, c is the longer one. But the particular names of course depend on how the triangle is named.

Here it is the same case. You want to move one object into the other. Since I don't know how Galv's message styles does it, I substituted the particular variable names for a and b. I only described what's supposed to happen (albeit I had done it wrong in my previous post, so I edited it).
So if the description is
"If you want to move a into the middle of b, you want to set its x to half of b's width"
and you want to move a pause icon to the center of the window, then yes,
a is the pause icon, b is the window.
And yes, if the window's width is set as its window width, then window width is what you're searching for. If it's set to Graphics.boxWidth, Graphics.boxWidth is what you're searching for. It's not as much programming as it is algebra.
@Poryg
Ok thanks. Yeah I understand the equation, I just wasn't sure which parts of the script to call on to do it.

I just tried all of those guesses, and none of them work properly, but I'll keep trial and erroring until I find the right one. Cheers.

*Edit*
Haven't had any luck with this. Has anyone succeeded in moving the pause icon, and can tell me how they did it?
You can just change the position in the plugin parameters, there's no need to edit the code. Under "Input Indicator" of the plugin parameters, the first number is the general position in the message box (as the help for that parameter says, it's based on the keypad, so 1 is bottom left, 2 is bottom, 3 is bottom right, etc) and then you enter the x and y coordinates. You can try 2, 0, 0 to start with, and then modify the x and y coordinates to get the indicator exactly where you want. 🙂
You can just change the position in the plugin parameters, there's no need to edit the code. Under "Input Indicator" of the plugin parameters, the first number is the general position in the message box (as the help for that parameter says, it's based on the keypad, so 1 is bottom left, 2 is bottom, 3 is bottom right, etc) and then you enter the x and y coordinates. You can try 2, 0, 0 to start with, and then modify the x and y coordinates to get the indicator exactly where you want. 🙂

WHAAAAAT????!! How did I miss that?! I can't believe I've been banging my head against a wall for so long when it was right there all along. :blush:

Thank you @Sea Phoenix! That worked!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/move-the-pause-indicator-on-galvs-message-styles.112238/