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

Project1

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

[已经解决] 战斗视窗的头像是正方形的!如何可以改成圆形的0.0(附图)

 关闭 [复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
2188 小时
注册时间
2011-6-23
帖子
1044
跳转到指定楼层
1
发表于 2011-7-19 19:05:48 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 lsu666666 于 2011-7-19 19:55 编辑

我做的头像是圆形的

但是在战斗的视窗出现的框框是正方形的....把头像挡住了


我想让头像是完整圆形的该如何修改T.T

我用的头像脚本代码如下
  1. #----------------------------------------------------------------------------
  2. # Easy Battle HUD v1.3 (for RPG Maker VX *only*)
  3. # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  4. # Scripted by Dark Gaia (http://[email protected])
  5. # Based in part upon EvenAngel's Battle HUD
  6. # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  7. # Insert this script under Materials and above Main. This script is compatible
  8. # with any other script that doesn't modify the Battle Status window.
  9. # **Not to be used with Tankentai ABS battle system**
  10. # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  11. # Credit if used. Free for use in commercial projects.
  12. #----------------------------------------------------------------------------

  13.   #--------------------------------------------------------------------------
  14.   # ● Set Up Battle HUD
  15.   #--------------------------------------------------------------------------
  16. # You can customise aspects of your battle HUD here.

  17. FONT_SIZE = 18 # 在战斗中窗口的字体大小。
  18. STATUS_FONT = ["Verdana"] #在战斗窗口中使用的字体名称。

  19. # End of customisation section.

  20. class Window_BattleStatus
  21.   #--------------------------------------------------------------------------
  22.   # ● Initialize
  23.   #--------------------------------------------------------------------------
  24.   def initialize
  25.     super(0, 0, 416, 128)
  26.     @column_max = 4
  27.     refresh
  28.     self.active = false
  29.     self.opacity = 0
  30.    
  31.    def update_cursor              
  32.     self.cursor_rect.empty
  33.   end

  34.   end
  35.   #--------------------------------------------------------------------------
  36.   # ● Window_BattleStatus
  37.   #--------------------------------------------------------------------------
  38.   def draw_item(index)
  39.     x = index * 96
  40.     rect = Rect.new(x, 0, 96, 96)
  41.     self.contents.clear_rect(rect)
  42.     self.contents.font.color = normal_color
  43.     actor = $game_party.members[index]
  44.    
  45.     draw_actor_face(actor, x + 1, -9, 74)
  46.     draw_actor_state(actor, x + 72, WLH * 3)
  47.     self.contents.font.color = hp_color(actor)
  48.     self.contents.font.name = STATUS_FONT
  49.     self.contents.font.size = FONT_SIZE
  50.     draw_actor_hp(actor, x + 2, WLH * 2, 80)
  51.     draw_actor_mp(actor, x + 2, WLH * 3, 70)
  52.    
  53.   end
  54. end
复制代码

Lv1.梦旅人

梦石
0
星屑
50
在线时间
1281 小时
注册时间
2006-8-27
帖子
590
2
发表于 2011-7-19 19:26:49 | 只看该作者
本帖最后由 wbsy8241 于 2011-7-19 19:27 编辑

用PS抠个圆的头像保存为PNG格式

按你头像的大小 太大了
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
85
在线时间
424 小时
注册时间
2009-8-3
帖子
984
3
发表于 2011-7-19 19:33:07 | 只看该作者
脚本里要求的是96*96,你那个超过了,所以变成那样了

点评

我发现我好傻....没注意到大小问题....谢谢 你早一点回帖子 好人卡就给你了..CC...T.T  发表于 2011-7-19 19:47
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
2188 小时
注册时间
2011-6-23
帖子
1044
4
 楼主| 发表于 2011-7-19 19:44:24 | 只看该作者
wbsy8241 发表于 2011-7-19 19:26
用PS抠个圆的头像保存为PNG格式

按你头像的大小 太大了

我好呆....没想到改头像大小就解决了.....T.T


谢谢你喔
回复

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-7-23 00:29

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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