- Joined
- Dec 22, 2014
- Messages
- 359
- Reaction score
- 111
- First Language
- English
- Primarily Uses
- RMVXA
Original code is in one of the replies: https://forums.rpgmakerweb.com/index.php?threads/fps-counter.42661/
I want to try and fix Tsukihime's script snippet, which would allow the game's title to be changed.
As-is, the original game title and the new one ("test change") flickers back and forth between each other.
Fixed code (original reply's formatting is broken):
It's the def update section which breaks everything, is there some way to turn this into an in-game script call? Same user has managed to disable window borders using a win32api call (that can be performed in a script or in-game) link: so I think it can be done.
I want to try and fix Tsukihime's script snippet, which would allow the game's title to be changed.
As-is, the original game title and the new one ("test change") flickers back and forth between each other.
Fixed code (original reply's formatting is broken):
Code:
module Window_Text
SetWindowText = Win32API.new('user32', 'SetWindowText', 'pp', 'i')
CreateWindowEx = Win32API.new('user32', 'CreateWindowEx', 'ippiiiiiiiii', 'i')
FindWindow = Win32API.new('user32', 'FindWindow' , 'pp', 'i')
HWND = FindWindow.call('RGSS Player', 0)
def self.run
SetWindowText.call(HWND, "test change")
end
end
module Graphics
class << self
alias :th_old_update :update
def update
th_old_update
Window_Text.run
end
end
end
Last edited:
