赞 | 2 |
VIP | 109 |
好人卡 | 208 |
积分 | 4 |
经验 | 22037 |
最后登录 | 2024-11-11 |
在线时间 | 1198 小时 |
Lv2.观梦者 虚構歪曲
- 梦石
- 0
- 星屑
- 364
- 在线时间
- 1198 小时
- 注册时间
- 2010-12-18
- 帖子
- 3928
|
- #==============================================================================
- # □ カスタマイズポイント
- #==============================================================================
- module PLAN_COPYRIGHT
- COPYRIGHT_STR = "Version 1.0.0.0"
- FONT_NAME = ["黑体"] # フォント
- FONT_SIZE = 16 # フォントサイズ
- FONT_BOLD = true # 太字
- FONT_ITALIC = false # 斜体
- STR_COLOR = Color.new(0, 0, 0) # 文字の色
- DRAW_FRAME = false # 縁取りする
- FRAME_COLOR = Color.new(0, 0, 0) # 縁の色
- DRAW_X = -3 # X 座標修正値
- DRAW_Y = -3 # Y 座標修正値
- 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 = 110 - rect.width + PLAN_COPYRIGHT::DRAW_X
- @copyrcight_sprite.y = 30 - 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
- #==============================================================================
- # 本脚本来自www.66RPG.com,使用和转载请保留此信息
- #==============================================================================
复制代码 |
|