UltimaForum

Wsparcie [VX] - Prośba (Ważne)

CreeperCrisis - Sro 11 Sie, 2010 14:08
Temat postu: Prośba (Ważne)
Rozszerzenie ekranu:

544x416 (VX) :arrow: 640x480 (XP)

radek02 - Sro 11 Sie, 2010 14:27

hmm ? o co ci ci chodzi ?
CreeperCrisis - Sro 11 Sie, 2010 16:42

radek02, chodzi o rozszerzenie ekranu aby zamiast rozmiarów VX był rozmiar XP. :-)
Ayene - Czw 12 Sie, 2010 05:57

Umieść skrypt nad Main:
Spoiler:

Kod:
class Resolution
  def self.resize(width,height)
  getSystemMetrics = Win32API.new('user32', 'GetSystemMetrics', 'I', 'I')
  moveWindow = Win32API.new('user32','MoveWindow',['l','i','i','i','i','l'],'l')
  findWindowEx = Win32API.new('user32','FindWindowEx',['l','l','p','p'],'i')
  window = findWindowEx.call(0,0,"RGSS Player",0)
  screenwidth = getSystemMetrics.call(0)
  screenheight = getSystemMetrics.call(1)
  moveWindow.call(window,(screenwidth - width) / 2,(screenheight - height) / 2,width,height,1)
  end
end


A w skrypcie 'Main' pod poleceniem 'begin' wklej:
Kod:
Resolution.resize(640,480)

CreeperCrisis - Czw 12 Sie, 2010 11:15

Ayene, wszystko dobrze, ale...
Spoiler:

...chciałbym, aby mapy się nie rozszerzały tylko były w rozmiarze 16x20 kratek (Rozmiar mapy XP), aby mógłbym wstawiać title o rozmiarach XP. :-) Może już takie coś jest, ale nie mam pewności.



Powered by phpBB modified by Przemo © 2003 phpBB Group