- 注册时间
- 2007-10-27
- 最后登录
- 2007-11-10
③业余
- 积分
- 277
|
发表于 2007-10-27 21:16:57
|
显示全部楼层
数据库中有设置,不过也可以手动设置(这是你要的效果),
脚本编辑器中Window_Gold就是你要改的脚本,
def refresh
self.contents.clear
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)
self.contents.font.color = system_color
self.contents.draw_text(124-cx, 0, cx, 32, $data_system.words.gold, 2)
end
end
看到上面那个吗其实很好改
在cx = contents.text_size($data_system.words.gold).width前输入
if $game_variables[某]=某
cx = contents.text_size("某").width
else
之后输入
end
同样的在
self.contents.draw_text(124-cx, 0, cx, 32, $data_system.words.gold, 2)
之前也弄一个
if $game_variables[某]=某
self.contents.draw_text(124-cx, 0, cx, 32, "某", 2)
else
之后也弄个
end
就可以了 |
|