UltimaForum
Wsparcie [VX] - Prośba (Ważne)
CreeperCrisis - Sro 11 Sie, 2010 14:08Temat postu : Prośba (Ważne)Rozszerzenie ekranu:
544x416 (VX) 640x480 (XP)
radek02 - Sro 11 Sie, 2010 14:27hmm ? o co ci ci chodzi ?
CreeperCrisis - Sro 11 Sie, 2010 16:42radek02 , chodzi o rozszerzenie ekranu aby zamiast rozmiarów VX był rozmiar XP.
Ayene - Czw 12 Sie, 2010 05:57Umieść 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:15Ayene , 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.