查看: 1227|回复: 1

[已经解决] 如何在制作时间条的同时插入怒气槽?

  [复制链接]
梦石
0
星屑
1385
在线时间
1310 小时
注册时间
2009-8-27
回帖
1479

开拓者

发表于 2009-8-29 22:25:49 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 -_-川 于 2009-9-12 22:23 编辑

因为发现时间条的位置和怒气槽的都在一起啊……………………

℃ake

梦石
0
星屑
50
在线时间
8 小时
注册时间
2009-6-6
回帖
670
发表于 2009-8-30 09:24:45 | 显示全部楼层
修改下坐标吧。

  1. class Window_Base < Window
  2. def draw_hp_store_bar2(actor,x,y+20)#这个数字可以调整
  3.   width = 100
  4.   w = actor.hp_store
  5.   #描绘白色框条
  6.   self.contents.fill_rect(x+39,y,width+1,1,Color.new(225,225,225,200))
  7.   self.contents.fill_rect(x+39,y+5,width+2,1,Color.new(225,225,225,200))
  8.   self.contents.fill_rect(x+39,y,1,5,Color.new(225,225,225,200))
  9.   self.contents.fill_rect(x+140,y,1,5,Color.new(225,225,225,200))
  10.   #描绘黑色条
  11.     self.contents.fill_rect(x+40,y+1,width,4,Color.new(0,0,0,200))
  12.   #描绘怒气槽
  13.   self.contents.fill_rect(x+40, y+1, w,1, Color.new(255, 96, 96, 255))
  14.   self.contents.fill_rect(x+40, y+2, w,1, Color.new(255, 0, 0, 255))
  15.   self.contents.fill_rect(x+40, y+3, w,1, Color.new(128, 0, 0, 255))
  16.   self.contents.fill_rect(x+40, y+4, w,1, Color.new(0, 0, 0, 255))
  17.   
  18. end  
  19. end

复制代码
会一点脚本在原有基础上改,不会的话就把上面的插入在MAIN前
我爱66RPG,但我讨厌66.
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部