赞 | 3 |
VIP | 1324 |
好人卡 | 17 |
积分 | 10 |
经验 | 61438 |
最后登录 | 2024-6-19 |
在线时间 | 937 小时 |
Lv3.寻梦者 昨日的黄昏
- 梦石
- 0
- 星屑
- 1005
- 在线时间
- 937 小时
- 注册时间
- 2006-11-5
- 帖子
- 4128
 
|
………………
比如你要修改金钱的字体大小
那么如下:
#==============================================================================
# ■ Window_Gold
#------------------------------------------------------------------------------
# 显示金钱的窗口。
#==============================================================================
class Window_Gold < Window_Base
#--------------------------------------------------------------------------
# ● 初始化窗口
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 64)
self.back_opacity = 180
self.contents = Bitmap.new(width - 32, height - 32)
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.size = 16
cx = contents.text_size($data_system.words.gold).width
self.contents.font.color = normal_color
self.contents.draw_text(4, 0, 120-cx-2, 32, $game_party.gold.to_s, 2)
end
end |
|