Project1

标题: 战斗视窗的头像是正方形的!如何可以改成圆形的0.0(附图) [打印本页]

作者: lsu666666    时间: 2011-7-19 19:05
标题: 战斗视窗的头像是正方形的!如何可以改成圆形的0.0(附图)
本帖最后由 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
复制代码
dsu_plus_rewardpost_czw
作者: wbsy8241    时间: 2011-7-19 19:26
本帖最后由 wbsy8241 于 2011-7-19 19:27 编辑

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

按你头像的大小 太大了
作者: wsmyzc    时间: 2011-7-19 19:33
脚本里要求的是96*96,你那个超过了,所以变成那样了
作者: lsu666666    时间: 2011-7-19 19:44
wbsy8241 发表于 2011-7-19 19:26
用PS抠个圆的头像保存为PNG格式

按你头像的大小 太大了

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


谢谢你喔





欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1