Project1
标题:
法术图片最大限制
[打印本页]
作者:
倚天
时间:
2008-8-16 19:33
提示:
作者被禁止或删除 内容自动屏蔽
作者:
ONEWateR
时间:
2008-8-16 20:01
理解不能
作者:
倚天
时间:
2008-8-17 03:10
提示:
作者被禁止或删除 内容自动屏蔽
作者:
柳之一
时间:
2008-8-17 03:12
默认是24x24
可以自己改大小,多大都行
作者:
倚天
时间:
2008-8-17 03:18
提示:
作者被禁止或删除 内容自动屏蔽
作者:
柳之一
时间:
2008-8-17 03:22
以下引用
倚天于2008-8-16 19:18:20
的发言:
好像不行吧,我用40X40的,出现的图片不完整,是不是只能用24x24
的
默认是24,你必须改脚本才能更大
作者:
倚天
时间:
2008-8-17 03:28
提示:
作者被禁止或删除 内容自动屏蔽
作者:
柳之一
时间:
2008-8-17 03:44
Window_Skill的
#--------------------------------------------------------------------------
# ● 描绘项目
# index : 项目编号
#--------------------------------------------------------------------------
def draw_item(index)
skill = @data[index]
if @actor.skill_can_use?(skill.id)
self.contents.font.color = normal_color
else
self.contents.font.color = disabled_color
end
x = 4 + index % 2 * (288 + 32)
y = index / 2 * 32
rect = Rect.new(x, y, self.width / @column_max - 32, 32)
self.contents.fill_rect(rect, Color.new(0, 0, 0, 0))
bitmap = RPG::Cache.icon(skill.icon_name)
opacity = self.contents.font.color == normal_color ? 255 : 128
self.contents.blt(x, y + 4, bitmap,
Rect.new(0, 0, 24, 24),
opacity)
彩色部分改。不过相应的菜单全得调整。
至于怎么调就不属于你提问的范畴,美化问题我不管。美化问题请另行开贴
[LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1