Should be simple (message window edit)

Started by Zexion, December 24, 2012, 01:33:15 pm

Previous topic - Next topic

Zexion

How would I move this arrow seen hee-ya:

to the right edge of the window?

KK20

You'll need a script that rewrites the Window class. I used the one by Selwyn in my Advance Wars.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Zexion

KK20 your awesome btw :P

Anyways, I got the script, but which parts do I change? I'm assuming it's the pause buttons...

KK20

In def x=(x) under class Window. You'll see
@pause_s.x = x + (@width / 2) - 8

Basically just modify that. Like,
@pause_s.x = x + @width - 16

or something similar

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Zexion

Yeah that's what I thought it would be, but for some reason it has no effect when I change it. Is there a particular order which I have to have the script in?

KK20

I don't see how that could be, unless one of your scripts defines its own x=() method without calling a super.

If placing the custom Window script at the bottom doesn't work, then I have no idea what's the problem. My new test project took the change just fine.

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Zexion

Never mind, I managed to find a workaround. By making some small edits to dubealex's messaging system I set custom widths ,x ,y coords at specific justifications, and extended the window to give the appearance of the arrow being at the end. Then I just use events to hid the skin and display a picture instead, and tada magic text boxes :).

Spoiler: ShowHide

ThallionDarkshine

I think what wasn't working before was that you need to modify the Window_Base script. Change this line:
Window_Base < Window

to this:
Window_Base < SG::Window