赞 | 0 |
VIP | 0 |
好人卡 | 2 |
积分 | 1 |
经验 | 5425 |
最后登录 | 2012-10-12 |
在线时间 | 227 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 227 小时
- 注册时间
- 2009-12-25
- 帖子
- 24
|
用於遊戲在地圖中顯示遊戲點數- #=============================================================================
- # ** Window_GamePoints
- #------------------------------------------------------------------------------
- # 本視窗用來顯示隊伍所攜遊戲點數數量。
- #==============================================================================
- class Window_GamePoints < Window_Base
-
- module NOEXS
-
- MENU_VARIABLE_ID = 1
-
- MENU_GAME_POINTS = "Game Points︰%s"
-
- MENU_TEXT_COLOR = Color.new(255, 255, 255)
- end
- #--------------------------------------------------------------------------
- #
- #
- #--------------------------------------------------------------------------
- def initialize
- super(100, Graphics.height - 60, 120, 56)
- self.contents.font.size = 11
- self.contents.font.shadow = false
- self.contents.font.color = NOEXS::MENU_TEXT_COLOR
- refresh
- end
- #--------------------------------------------------------------------------
- # * 更新內容顯示
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- text = sprintf(NOEXS::MENU_GAME_POINTS, $game_variables[MENU_VARIABLE_ID])
- self.contents.draw_text(4, 0, contents.width, WLH, text, 0)
- end
- end
- #--------------------------------------------------------------------------
- #
- #--------------------------------------------------------------------------
- class Scene_Map < Scene_Base
- def start
- super
- @gamepoints_window = Window_GamePoints.new
- end
-
- #--------------------------------------------------------------------------
- # * 程式中止
- #--------------------------------------------------------------------------
- def terminate
- super
- @gamepoints_window.dispose
- end
- #--------------------------------------------------------------------------
- # * 更新幀
- #--------------------------------------------------------------------------
- def update
- super
- @gamepoints_window.update
- end
- end
-
-
复制代码 |
评分
-
查看全部评分
|