じ☆ve冰风 发表于 2024-4-19 17:49:16

XP 版 调试输出框 + 变量开关输出窗口 不使用 RM 原版窗口

https://rpg.blue/forum.php?mod=attachment&aid=MTI3Nzl8NWRiYTgyNjF8MTcxMzUyMjE0MHwyNzU1ODM3fDEzODczMg%3D%3D&noupdate=yes
代码如下#==============================================================================# ■ Out_Put#------------------------------------------------------------------------------#  处理调试文本输出的类#==============================================================================class Out_Put#--------------------------------------------------------------------------# ● 初始化对像#--------------------------------------------------------------------------def initialize    @text = Win32API.new("lib/OutPut/OutPut.dll","OutDebugText","p",nil)    @window = Win32API.new("lib/OutPut/OutPut.dll","OpenOutPutWindow",nil,nil)    @window.Callend#--------------------------------------------------------------------------# ● 输出调试文本#--------------------------------------------------------------------------def debug_text(text)    @text.Call(text)endend#==============================================================================# ■ Scene_Title#------------------------------------------------------------------------------#  处理标题画面的类。#==============================================================================class Scene_Title#--------------------------------------------------------------------------# ● 命令 : 新游戏#--------------------------------------------------------------------------alias command_new_game2 command_new_gamedef command_new_game    command_new_game2   lib = Lib.new    lib.vinitialize    lib.sinitializeendend#==============================================================================# ■ Scene_Load#------------------------------------------------------------------------------#  处理读档画面的类。#==============================================================================class Scene_Load < Scene_File#--------------------------------------------------------------------------# ● 读取存档数据#   file : 读取用文件对像 (已经打开)#--------------------------------------------------------------------------alias read_save read_save_datadef read_save_data(file)    read_save(file)    lib = Lib.new    lib.sinitialize    lib.vinitializeendend#==============================================================================# ■ Game_Variables#------------------------------------------------------------------------------#  处理变量的类。编入的是类 Array 的外壳。本类的实例请参考# $game_variables。#==============================================================================class Game_Variables#--------------------------------------------------------------------------# ● 设置变量#   variable_id : 变量 ID#   value       : 变量的值#   为何要重新定义因为 变量发生改变 要回调给 DLL#--------------------------------------------------------------------------def []=(variable_id, value)    if variable_id
页: [1]
查看完整版本: XP 版 调试输出框 + 变量开关输出窗口 不使用 RM 原版窗口