Jump to content

AzureSamurai

Veterans
  • Posts

    4
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Events

Reborn Development Blog

Rejuvenation Development Blog

Starlight Divide Devblog

Desolation Dev Blog

Posts posted by AzureSamurai

  1. On 3/21/2020 at 9:24 AM, Waynolt said:

    You spent more time saying it's a stupid question than you spent actually asking it 😄

    Anyway, here's the stupid answer to your stupid question: it is possible to do it by editing the stupid file Scripts.rxdata, stupid script Win32API_, stupid function Win32API.restoreScreen stupid lines about the two stupid variables x and y:
     

      Reveal hidden contents

     

    
    
      def Win32API.restoreScreen   
        setWindowLong = Win32API.new('user32', 'SetWindowLong', 'LLL', 'L')
        setWindowPos = Win32API.new('user32', 'SetWindowPos', 'LLIIIII', 'I')
        metrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I')
        hWnd =  pbFindRgssWindow
        width = DEFAULTSCREENWIDTH*$ResizeFactor
        height = DEFAULTSCREENHEIGHT*$ResizeFactor
        if $PokemonSystem && $PokemonSystem.border==1
          width += BORDERWIDTH*2*$ResizeFactor
          height += BORDERHEIGHT*2*$ResizeFactor
        end
        #####MODDED
        aRect = self.GetWindowRect
        x = aRect.x
        y = aRect.y
        #####/MODDED
        #####MODDED, was x = [(metrics.call(0)-width)/2,0].max
        #####MODDED, was y = [(metrics.call(1)-height)/2,0].max
        setWindowLong.call(hWnd, -16, 0x14CA0000)
        setWindowPos.call(hWnd, 0, x, y, width+6, height+29, 0)
        Win32API.focusWindow
        return [width,height]
      end

     

     

     

     


    Stupid answer put in the stupid file for the stupid Reborn Episode 18.2.stupid:
    Scripts.rxdata

    Make a stupid backup of your stupid Scripts.rxdata and of your stupid savegames before stupidly trying it!

    Hi Waynolt, How can I edit rxdata file like scripts? What software i need to do it?

×
×
  • Create New...