赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 8666 |
最后登录 | 2020-2-22 |
在线时间 | 186 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 90
- 在线时间
- 186 小时
- 注册时间
- 2010-6-24
- 帖子
- 111
|
6楼
楼主 |
发表于 2014-7-22 13:17:48
|
只看该作者
菜鸟飞呀飞 发表于 2014-7-21 16:30
VIP就行,多少随意
谢谢您,不好意思啊。现在不知道怎么冲不起VIP。 显示的[88222001]Subject长度不能大于32![20140722131316-183]
我可以直接给您现金么?或者在等一下~~(⊙o⊙)…。
还有,那个还有一个小问题呢。就是显示的第二货币,在使用道具时 还会显示在人物HP和SP的上面,可以让它在这个时候不显示吗?
脚本是下面这个和 最开始发的那个脚本、谢谢您? 不知道听懂了木有,(⊙o⊙)…!囧- #==============================================================================
- # ■ Window_Target
- #------------------------------------------------------------------------------
- # 物品画面与特技画面的、使用对像角色选择窗口。
- #==============================================================================
- class Window_Target1 < Window_Selectable
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, 334, 480)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.z += 10
- @item_max = $game_party.actors.size
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- for i in 0...$game_party.actors.size
- x = 20
- y = i*44
- actor = $game_party.actors[i]
- draw_actor_facewp(actor,x,y)
- draw_actor_hp(actor, x+20, y + 10)
- draw_actor_sp(actor, x+20, y + 20)
- draw_actor_name(actor, x + 70, y - 5)
- end
- end
- def draw_actor_name(actor, x, y, size = 10)
- self.contents.font.size = size
- draw_text_normal(x, y, 120, 32, actor.name)
- end
- def draw_actor_hp(actor, x, y, size = 12)
- x += 32
- self.contents.font.size = size
- self.contents.font.italic = true
- color = actor.hp == 0 ? knockout_color :
- actor.hp <= actor.maxhp / 4 ? crisis_color : normal_color
- draw_text_custom(x, y, 42, 32, actor.hp.to_s, color, 2)
- self.contents.font.italic = false
- draw_text_normal(x + 42, y, 16, 32, "/", 1)
- self.contents.font.italic = true
- draw_text_normal(x + 54, y, 42, 32, actor.maxhp.to_s, 2)
- self.contents.font.italic = false
- end
- def draw_actor_sp(actor, x, y, size = 12)
- x += 32
- self.contents.font.size = size
- self.contents.font.italic = true
- color = actor.sp == 0 ? knockout_color :
- actor.sp <= actor.maxsp / 4 ? crisis_color : normal_color
- draw_text_custom(x, y, 42, 32, actor.sp.to_s, color, 2)
- self.contents.font.italic = false
- draw_text_normal(x + 42, y, 16, 32, "/", 1)
- self.contents.font.italic = true
- draw_text_normal(x + 54, y, 42, 32, actor.maxsp.to_s, 2)
- self.contents.font.italic = false
- end
- def draw_text_custom(x, y, width, height, str, color, align = 0)
- self.contents.font.color = Color.new(36, 24, 16, 224)
- self.contents.draw_text(x + 1, y + 1, width, height, str, align)
- self.contents.font.color = color
- self.contents.draw_text(x, y, width, height, str, align)
- end
- def draw_text_normal(x, y, width, height, str, align = 0)
- self.contents.font.color = Color.new(36, 24, 16, 224)
- self.contents.draw_text(x + 1, y + 1, width, height, str, align)
- self.contents.font.color = normal_color
- self.contents.draw_text(x, y, width, height, str, align)
- end
- def page_row_max
- return (self.height - 32) / 44
- end
- def update_cursor_rect
- if @index < 0
- self.cursor_rect.empty
- return
- end
- row = @index / @column_max
- if row < self.top_row
- self.top_row = row
- end
- if row > self.top_row + (self.page_row_max - 1)
- self.top_row = row - (self.page_row_max - 1)
- end
- cursor_width = self.width / @column_max + 20
- x = @index % @column_max * (cursor_width + 20)
- y = @index / @column_max * 44 - self.oy + 2
- self.cursor_rect.set(x+10, y, cursor_width, 44)
- end
- def top_row=(row)
- if row < 0
- row = 0
- end
- if row > row_max - 1
- row = row_max - 1
- end
- self.oy = row * 44
- end
- end
复制代码 |
|