赞 | 4 |
VIP | 0 |
好人卡 | 0 |
积分 | 52 |
经验 | 0 |
最后登录 | 2024-11-23 |
在线时间 | 1344 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 5176
- 在线时间
- 1344 小时
- 注册时间
- 2018-1-16
- 帖子
- 387
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 l734273398 于 2020-11-13 15:17 编辑
如题,看题目可能会有点糊涂,
打个比方:当1号开关打开时,使用【1号系列的等级名称】,当2号开关打开时,使用【2系列的等级名称】以此类推
【当打开1号开关】【1级名称=菜鸡】【2级名称=小菜鸡】
【当打开2号开关】【1级名称=勇士】【2级名称=小勇士】
LEVEL_LIST = { 1=>"菜鸡", 2=>"小菜鸡", } class Window_Base < Window def draw_actor_level(actor, x, y) if LEVEL_LIST.has_key?(actor.level) self.contents.draw_text(x, y, 128, 32, LEVEL_LIST[actor.level]) else self.contents.font.color = system_color self.contents.draw_text(x, y, 32, 32, "Lv") self.contents.font.color = normal_color self.contents.draw_text(x + 32, y, 24, 32, actor.level.to_s, 2) end end end
LEVEL_LIST = {
1=>"菜鸡",
2=>"小菜鸡",
}
class Window_Base < Window
def draw_actor_level(actor, x, y)
if LEVEL_LIST.has_key?(actor.level)
self.contents.draw_text(x, y, 128, 32, LEVEL_LIST[actor.level])
else
self.contents.font.color = system_color
self.contents.draw_text(x, y, 32, 32, "Lv")
self.contents.font.color = normal_color
self.contents.draw_text(x + 32, y, 24, 32, actor.level.to_s, 2)
end
end
end
LEVEL_LIST = { 1=>"勇士", 2=>"小勇士", } class Window_Base < Window def draw_actor_level(actor, x, y) if LEVEL_LIST.has_key?(actor.level) self.contents.draw_text(x, y, 128, 32, LEVEL_LIST[actor.level]) else self.contents.font.color = system_color self.contents.draw_text(x, y, 32, 32, "Lv") self.contents.font.color = normal_color self.contents.draw_text(x + 32, y, 24, 32, actor.level.to_s, 2) end end end
LEVEL_LIST = {
1=>"勇士",
2=>"小勇士",
}
class Window_Base < Window
def draw_actor_level(actor, x, y)
if LEVEL_LIST.has_key?(actor.level)
self.contents.draw_text(x, y, 128, 32, LEVEL_LIST[actor.level])
else
self.contents.font.color = system_color
self.contents.draw_text(x, y, 32, 32, "Lv")
self.contents.font.color = normal_color
self.contents.draw_text(x + 32, y, 24, 32, actor.level.to_s, 2)
end
end
end
|
|