I'm trying to move the arrow to the bottom-right corner of the box instead of just below it, and I thought I'd just find the bit where the script draws the little arrow and fiddle with the numbers until it looked right. But I can't find it anywhere in the Window scripts. Where is it and what's it referred to in the script?
[XP] Offsetting the little arrow that appears below text boxes
RGSS Script RequestsI do think the pause arrow is not open for modifications except for hiding it via a script call. You see, it seems to be one of RGSS hidden features, not really available for customizations via Ruby or RGSS. Perhaps you would need a rewritten version of the Window class to be able to push it to the left or the right at will. I don't recall any specific script right now.
There is this script that works on ace. will it help for XP?
Ruby:
=begin
designed by Yato(Racheal)
Terms of Use
* Contact Yato for commercial use
* No real support. The script is provided as-is
* No bug fixes, no compatibility patches
* Preserve this header
have the pause sign at the bottom of the message window moved to the right,
rather then in the center.
=end
class Window_Message < Window_Base
#--------------------------------------------------------------------------
# * Initialize
#--------------------------------------------------------------------------
alias move_pause_graphic_initialize initialize
def initialize
move_pause_graphic_initialize
make_pause_sprite
end
#--------------------------------------------------------------------------
# * Free
#--------------------------------------------------------------------------
alias move_pause_graphic_dispose dispose
def dispose
move_pause_graphic_dispose
@pause_sprite.dispose
end
#--------------------------------------------------------------------------
# * Make Pause Sprite
#--------------------------------------------------------------------------
def make_pause_sprite
pause_sprite = Sprite.new
@pause_sprite.bitmap = self.windowskin
@pause_sprite.src_rect = Rect.new(96, 64, 16, 16)
@pause_sprite.z = self.z + 10
@pause_sprite.visible = false
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
alias move_pause_graphic_update update
def update
move_pause_graphic_update
update_pause_sprite if @pause_sprite.visible
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update_pause_sprite
frame = Graphics.frame_count % 60 / 15
@pause_sprite.src_rect.x = 96 + 16 * (frame % 2)
@pause_sprite.src_rect.y = 64 + 16 * (frame / 2)
end
#--------------------------------------------------------------------------
# * Set Pause
#--------------------------------------------------------------------------
def pause=(pause)
@pause_sprite.x = self.x + self.width - padding - 12
@pause_sprite.y = self.y + self.height - padding - 4
@pause_sprite.visible = pause
end
end
Nah, doesn't seem like it's compatible. Thanks though.
Yeah, you need a Window rewrite. I recommend starting with this one
The line you want to change is this
Code:
@_sprite_pause.x = @_rect.x + (@_rect.width -
XPA_Window::Config::PAUSE_RECTS[0].width) / 2
Is this made for a different version of XP? It made my game crash on startup when I used it.
Did you download the DLL and put it in your project folder?
I got it working now, but it broke the 'Show choices' UI...
Edit: Also, I keep tinkering with the numbers in the bit of code you sent me, but whatever I do with them, the little pause arrow isn't moving at all. Still stuck at the bottom of the text box. What did you suggest changing about them, exactly?
Edit: Also, I keep tinkering with the numbers in the bit of code you sent me, but whatever I do with them, the little pause arrow isn't moving at all. Still stuck at the bottom of the text box. What did you suggest changing about them, exactly?
Read the instructions
According to your screenshot, it's clearly not at the top of your scripts.
Ah right, I didn't notice that! That seems to have fixed the pause arrow, I got that working exactly how I want it, thank you. The choices UI is still a little broken, though.
Edit: Never mind, apparently I accidentally did this changing a number somewhere when initially trying to move the cursor. It's fixed now. Thanks for your help, it's all working great!
Edit: Never mind, apparently I accidentally did this changing a number somewhere when initially trying to move the cursor. It's fixed now. Thanks for your help, it's all working great!
Original thread: https://forums.rpgmakerweb.com/threads/xp-offsetting-the-little-arrow-that-appears-below-text-boxes.151336/