设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3103|回复: 1
打印 上一主题 下一主题

[已经解决] 关于状态菜单的修改

[复制链接]

Lv3.寻梦者

爪子

梦石
0
星屑
1565
在线时间
866 小时
注册时间
2014-8-28
帖子
1111
跳转到指定楼层
1
发表于 2014-9-15 18:03:03 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
3星屑
本帖最后由 莫言别离 于 2014-9-15 18:24 编辑

想修改一下状态菜单。

1、怎么才能把红框的头像位置删除,用行走图代替?
2、怎么才能把绿框的东西删除?
3、怎么才能删除蓝框的东西然后把黄框的移上去?
问题比较多...

最佳答案

查看完整内容

这样?[fold=图][/fold]

点评

.........卧槽我逗比了忘记上传图片了  发表于 2014-9-15 18:24
发一下图  发表于 2014-9-15 18:19
……红框是啥?绿框在哪儿?篮框和黄框都圈在什么地方?你敢说句地球人能听懂的话吗?你来地球的目的是什么?  发表于 2014-9-15 18:10
个人坑《凝聚的祈愿》更新日记
网瘾少女的领域-Lofter
一时骂人一时爽,一直骂人一直爽^o^

Lv4.逐梦者 (版主)

无限の剣制

梦石
0
星屑
9971
在线时间
5019 小时
注册时间
2013-2-28
帖子
5030

开拓者贵宾

2
发表于 2014-9-15 18:03:04 | 只看该作者
本帖最后由 VIPArcher 于 2014-9-15 18:40 编辑

这样?
  1. #encoding:utf-8
  2. #==============================================================================
  3. # ■ Window_Status
  4. #------------------------------------------------------------------------------
  5. #  状态画面中,显示角色基本信息的窗口。
  6. #==============================================================================

  7. class Window_Status < Window_Selectable
  8.   #--------------------------------------------------------------------------
  9.   # ● 初始化对象
  10.   #--------------------------------------------------------------------------
  11.   def initialize(actor)
  12.     super(0, 0, Graphics.width, Graphics.height)
  13.     @actor = actor
  14.     refresh
  15.     activate
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # ● 设置角色
  19.   #--------------------------------------------------------------------------
  20.   def actor=(actor)
  21.     return if @actor == actor
  22.     @actor = actor
  23.     refresh
  24.   end
  25.   #--------------------------------------------------------------------------
  26.   # ● 刷新
  27.   #--------------------------------------------------------------------------
  28.   def refresh
  29.     contents.clear
  30.     draw_block1   (line_height * 0)
  31.     draw_horz_line(line_height * 1)
  32.     draw_block2   (line_height * 2)
  33.     draw_horz_line(line_height * 6)
  34.     draw_block3   (line_height * 7)
  35.   end
  36.   #--------------------------------------------------------------------------
  37.   # ● 绘制区域 1
  38.   #--------------------------------------------------------------------------
  39.   def draw_block1(y)
  40.     draw_actor_name(@actor, 4, y)
  41.     draw_actor_class(@actor, 128, y)
  42.     draw_actor_nickname(@actor, 288, y)
  43.   end
  44.   #--------------------------------------------------------------------------
  45.   # ● 绘制区域 2
  46.   #--------------------------------------------------------------------------
  47.   def draw_block2(y)
  48.     draw_actor_graphic(@actor, 64, 96)
  49.     draw_basic_info(136, y)
  50.   end
  51.   #--------------------------------------------------------------------------
  52.   # ● 绘制区域 3
  53.   #--------------------------------------------------------------------------
  54.   def draw_block3(y)
  55.     draw_description(4, y)
  56.   end
  57.   #--------------------------------------------------------------------------
  58.   # ● 绘制水平线
  59.   #--------------------------------------------------------------------------
  60.   def draw_horz_line(y)
  61.     line_y = y + line_height / 2 - 1
  62.     contents.fill_rect(0, line_y, contents_width, 2, line_color)
  63.   end
  64.   #--------------------------------------------------------------------------
  65.   # ● 获取水平线的颜色
  66.   #--------------------------------------------------------------------------
  67.   def line_color
  68.     color = normal_color
  69.     color.alpha = 48
  70.     color
  71.   end
  72.   #--------------------------------------------------------------------------
  73.   # ● 绘制基本信息
  74.   #--------------------------------------------------------------------------
  75.   def draw_basic_info(x, y)
  76.     draw_actor_level(@actor, x, y + line_height * 0)
  77.     draw_actor_icons(@actor, x, y + line_height * 1)
  78.     draw_actor_hp(@actor, x, y + line_height * 2)
  79.     draw_actor_mp(@actor, x, y + line_height * 3)
  80.   end
  81.   #--------------------------------------------------------------------------
  82.   # ● 绘制说明
  83.   #--------------------------------------------------------------------------
  84.   def draw_description(x, y)
  85.     draw_text_ex(x, y, @actor.description)
  86.   end
  87. end
复制代码

点评

喵呜=0酷爱来让我舔舔  发表于 2014-9-15 18:58
大触快来让我舔舔  发表于 2014-9-15 18:56
太厉害了!→_→大触快来让我舔舔~  发表于 2014-9-15 18:48
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-13 06:32

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表