扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 135|回复: 0

[转载发布] XP 版 调试输出框 + 变量开关输出窗口 不使用 RM 原版窗口

[复制链接]
累计送礼:
0 个
累计收礼:
0 个
  • TA的每日心情
    开心
    昨天 18:01
  • 签到天数: 114 天

    连续签到: 4 天

    [LV.6]常住居民II

    2339

    主题

    404

    回帖

    1万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    6
    卡币
    10635
    OK点
    16
    推广点
    0
    同能卷
    0
    积分
    13406

    灌水之王

    发表于 2024-4-19 17:49:16 | 显示全部楼层 |阅读模式

    代码如下[code]#==============================================================================# ■ 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.Call  end  #--------------------------------------------------------------------------  # ● 输出调试文本  #--------------------------------------------------------------------------  def debug_text(text)    @text.Call(text)  endend#==============================================================================# ■ Scene_Title#------------------------------------------------------------------------------#  处理标题画面的类。#==============================================================================class Scene_Title  #--------------------------------------------------------------------------  # ● 命令 : 新游戏  #--------------------------------------------------------------------------  alias command_new_game2 command_new_game  def command_new_game    command_new_game2     lib = Lib.new    lib.vinitialize    lib.sinitialize  endend#==============================================================================# ■ Scene_Load#------------------------------------------------------------------------------#  处理读档画面的类。#==============================================================================class Scene_Load < Scene_File  #--------------------------------------------------------------------------  # ● 读取存档数据  #     file : 读取用文件对像 (已经打开)  #--------------------------------------------------------------------------  alias read_save read_save_data  def read_save_data(file)    read_save(file)    lib = Lib.new    lib.sinitialize    lib.vinitialize  endend#==============================================================================# ■ Game_Variables#------------------------------------------------------------------------------#  处理变量的类。编入的是类 Array 的外壳。本类的实例请参考# $game_variables。#==============================================================================class Game_Variables  #--------------------------------------------------------------------------  # ● 设置变量  #     variable_id : 变量 ID  #     value       : 变量的值  #     为何要重新定义因为 变量发生改变 要回调给 DLL  #--------------------------------------------------------------------------  def []=(variable_id, value)    if variable_id

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2025-3-15 15:30 , Processed in 0.154694 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表