查看: 984|回复: 8

一个简单的脚本问题

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-10-1
回帖
89
发表于 2008-10-4 20:39:07 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-5-30
回帖
93
发表于 2008-10-4 20:44:32 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-10-1
回帖
89
 楼主| 发表于 2008-10-4 20:51:46 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

梦石
0
星屑
124
在线时间
148 小时
注册时间
2008-2-11
回帖
385
发表于 2008-10-4 20:57:18 | 显示全部楼层
LZ你真任性

module PLAN_COPYRIGHT
  COPYRIGHT_STR = "版本: v1.2"
  FONT_NAME     = ["黑体"]         
  FONT_SIZE     = 36                              
  FONT_BOLD     = true                              
  FONT_ITALIC   = true                             
  STR_COLOR     = Color.new(100, 100, 100)         
  DRAW_FRAME    = true                              
  FRAME_COLOR   = Color.new(0, 0, 0)               
  DRAW_X        = -120                             
  DRAW_Y        = -8                              
end



#==============================================================================
# ■ Scene_Title
#==============================================================================

class Scene_Title
  alias plan_copyrcight_main main
  def main
    if $BTEST
      battle_test
      return
    end
    @copyrcight_sprite = Sprite.new
    @copyrcight_sprite.z = 100
    bitmap = Bitmap.new(32, 32)
    bitmap.font.name = PLAN_COPYRIGHT::FONT_NAME
    bitmap.font.size = PLAN_COPYRIGHT::FONT_SIZE
    bitmap.font.bold = PLAN_COPYRIGHT::FONT_BOLD
    rect = bitmap.text_size(PLAN_COPYRIGHT::COPYRIGHT_STR)
    bitmap.dispose
    bitmap = nil
    @copyrcight_sprite.bitmap = Bitmap.new(rect.width, rect.height)
    @copyrcight_sprite.bitmap.font.name = PLAN_COPYRIGHT::FONT_NAME
    @copyrcight_sprite.bitmap.font.size = PLAN_COPYRIGHT::FONT_SIZE
    @copyrcight_sprite.bitmap.font.bold = PLAN_COPYRIGHT::FONT_BOLD
    @copyrcight_sprite.bitmap.font.italic = PLAN_COPYRIGHT::FONT_ITALIC

    str = PLAN_COPYRIGHT::COPYRIGHT_STR
    if PLAN_COPYRIGHT::DRAW_FRAME
      @copyrcight_sprite.bitmap.font.color = PLAN_COPYRIGHT::FRAME_COLOR
      if defined?(@copyrcight_sprite.bitmap.draw_text_plan_frame)
        @copyrcight_sprite.bitmap.draw_text_plan_frame(0, 0, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.draw_text_plan_frame(2, 0, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.draw_text_plan_frame(0, 2, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.draw_text_plan_frame(2, 2, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.font.color = PLAN_COPYRIGHT::STR_COLOR
        @copyrcight_sprite.bitmap.draw_text_plan_frame(1, 1, rect.width, rect.height, str)
      else
        @copyrcight_sprite.bitmap.draw_text(0, 0, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.draw_text(2, 0, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.draw_text(0, 2, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.draw_text(2, 2, rect.width, rect.height, str)
        @copyrcight_sprite.bitmap.font.color = PLAN_COPYRIGHT::STR_COLOR
        @copyrcight_sprite.bitmap.draw_text(1, 1, rect.width, rect.height, str)
      end
    else
      @copyrcight_sprite.bitmap.font.color = PLAN_COPYRIGHT::STR_COLOR
      @copyrcight_sprite.bitmap.draw_text(rect, str)
    end
    @copyrcight_sprite.x = 640 - rect.width + PLAN_COPYRIGHT::DRAW_X
    @copyrcight_sprite.y = 480 - rect.height + PLAN_COPYRIGHT::DRAW_Y
    plan_copyrcight_main
    @copyrcight_sprite.bitmap.dispose
    @copyrcight_sprite.dispose
  end
  alias plan_copyrcight_update update
  def update
    @copyrcight_sprite.update
    plan_copyrcight_update
  end
end

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
要守护就守护到底,要放弃就别再回头。
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-5-30
回帖
93
发表于 2008-10-4 20:58:43 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-10-1
回帖
89
 楼主| 发表于 2008-10-4 21:11:29 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

梦石
0
星屑
124
在线时间
148 小时
注册时间
2008-2-11
回帖
385
发表于 2008-10-4 21:12:18 | 显示全部楼层
不好意思发帖太快了

自我屏蔽之
要守护就守护到底,要放弃就别再回头。
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-10-1
回帖
89
 楼主| 发表于 2008-10-4 21:41:26 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

梦石
0
星屑
124
在线时间
148 小时
注册时间
2008-2-11
回帖
385
发表于 2008-10-5 02:16:02 | 显示全部楼层
我已经编辑了回复内容

请再尝试
要守护就守护到底,要放弃就别再回头。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部