Project1
标题:
怎么更改选框形状- -
[打印本页]
作者:
saturnfjh
时间:
2009-12-14 19:51
标题:
怎么更改选框形状- -
本帖最后由 saturnfjh 于 2009-12-15 10:46 编辑
我想把战斗中的4横行选框改成4竖行的选框……
但是改了脚本没什么效果……或者是没改到地方?
def refresh
self.contents.clear
@item_max = $game_party.members.size
@column_max = 1
for i in 0...@item_max
draw_item(i)
end
end
def draw_item(index)
actor = $game_party.members[index]
rect = item_rect_bs(index)
rect.x = index * 96
cx = actor.index * 96 + 8
self.contents.clear_rect(rect)
self.contents.font.color = normal_color
draw_actor_name_bt(actor, cx, 0)
self.contents.font.size = 20
self.contents.font.name = "Calibri"
self.contents.font.bold = true
draw_actor_state(actor, cx, 24, 80)
self.contents.font.color = system_color
self.contents.draw_text(cx, 24, 80, WLH, "CP")
draw_actor_hp_bs(actor, cx, 48, 80)
draw_actor_mp_bs(actor, cx, 72, 80)
end
def item_rect_bs(index)
rect = Rect.new(0, 0, 0, 0)
rect.width = @item_max * 96
rect.height = @column_max
rect.x = index * 96
rect.y = 0
return rect
end
复制代码
麻烦帮忙解决下- -
感激不尽……
作者:
njx937
时间:
2009-12-14 22:49
见过横行排版(默认的),改竖行的话,有两个方面,
一是描绘(写字)个人估计要一个个写,会很麻烦
二是选框,这个还算好改点,就在windowselectable里面
其实。。建议,直接用图片做选项,想怎样就怎样。。甭说竖排。。你斜排。。选项奇形怪状都可以。。
作者:
saturnfjh
时间:
2009-12-15 10:46
搞定了……
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1