设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 133|回复: 0

[转载发布] ReinoRpg HUD (Ace)

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    58883
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    68848

    灌水之王

    发表于 2026-7-29 16:05:00 | 显示全部楼层 |阅读模式
    ReinoRpg Hud







    Author: LB

    Translation: Dartdaman

    Ported: Dartdaman

    Toggle Key: Kal

    This script was wrote by LB in RGSS2 in Portuguese. Some time ago i translated this script into English, now i have ported this script from RGSS2 to RGSS3. I have also made various edits to the script other than porting it from RGSS2 to RGSS3. Thanks to Kal for adding the toggle key to the script.

    Screenshot

    Spoiler





    Script

    Spoiler                Code:       
    1. [SIZE=14px]#================================================#[/SIZE]
    2. [SIZE=14px]# ¦ ReinoRPG HUD v0.6[/SIZE]
    3. [SIZE=14px]# Script: LB[/SIZE]
    4. [SIZE=14px]# Translated: Dartdaman[/SIZE]
    5. [SIZE=14px]# Toggle key: Kal[/SIZE]
    6. [SIZE=14px]#================================================#[/SIZE]
    7. [SIZE=14px]puts "HUD Loaded"[/SIZE]
    8. [SIZE=14px]module PR_RRPG_HUD[/SIZE]
    9. [SIZE=14px]#================================================#[/SIZE]
    10. [SIZE=14px]#============= General Settings ===============#[/SIZE]
    11. [SIZE=14px]#================================================#[/SIZE]
    12. [SIZE=14px]  # Post nil if you want to center on screen[/SIZE]
    13. [SIZE=14px]  # Place a minus sign in front of value to refer to the opposite side.[/SIZE]
    14. [SIZE=14px]  Position_X = nil[/SIZE]
    15. [SIZE=14px]  Position_Y = -8[/SIZE]
    16. [SIZE=14px]  Bottom_of_the_HUD = "Back.png"[/SIZE]
    17. [SIZE=14px]  Bar_HP = "HP.png"[/SIZE]
    18. [SIZE=14px]  Bar_MP = "MP.png"[/SIZE]
    19. [SIZE=14px]  Using_transparency_in_the_entrance = true # Makes the HUD fade when go under it[/SIZE]
    20. [SIZE=14px]  Using_transparency_in_the_exit = true # FadeOut to disappear in just[/SIZE]
    21. [SIZE=14px]  Speed = 3 # Speed to FadeIn/FadeOut[/SIZE]
    22. [SIZE=14px]  Final_Opacity = 255 # Final 0pacity of the HUD[/SIZE]
    23. [SIZE=14px]  Opacity_Final_Element = 255 # Opacity of the final elements of the HUD[/SIZE]
    24. [SIZE=14px]  Character_Opacity = 150 # Opacity if the character is under[/SIZE]
    25. [SIZE=14px]  Opacity_Character_Element = 160 # Opacity of the elements[/SIZE]
    26. [SIZE=14px]  Switch_Control = 1 # Switch that controls whether the HUD is active or not[/SIZE]
    27. [SIZE=14px]                                         # HUD to be active ON and OFF to turn it off.[/SIZE]
    28. [SIZE=14px]  Number_Character = 1 # The number of character in order according to menu[/SIZE]
    29. [SIZE=14px]  HUD_Toggle_Show_Key = Input::L # Press this key to show/hide the HUD[/SIZE]
    30. [SIZE=14px]                                                                 # L is the Q key on a keyboard.[/SIZE]
    31. [SIZE=14px]                                                                 # Press F1 in a game to see what the default[/SIZE]
    32. [SIZE=14px]                                                                 # key mappings are.[/SIZE]
    33. [SIZE=14px]#==============================================#[/SIZE]
    34. [SIZE=14px]#=============== HUD Elements ================#[/SIZE]
    35. [SIZE=14px]#==============================================#[/SIZE]
    36. [SIZE=14px]  # Set to true to display graphic charset (false to not display)[/SIZE]
    37. [SIZE=14px]  Char_Show = true[/SIZE]
    38. [SIZE=14px]  Char_X = 46[/SIZE]
    39. [SIZE=14px]  Char_Y = 66[/SIZE]
    40. [SIZE=14px]  # Set true to show the character's name (false to not display)[/SIZE]
    41. [SIZE=14px]  Name_Show = true[/SIZE]
    42. [SIZE=14px]  Name_Alignment = 1 # 0 = Left | 1 = Center | 2 = Right[/SIZE]
    43. [SIZE=14px]  Name_X = 92[/SIZE]
    44. [SIZE=14px]  Name_Y = 25[/SIZE]
    45. [SIZE=14px]  Name_Width = 134[/SIZE]
    46. [SIZE=14px]  Name_Color = Color.new(255,255,255)[/SIZE]
    47. [SIZE=14px]  Name_Font = nil # Font to use, write nil to use the default[/SIZE]
    48. [SIZE=14px]  Name_Size_of_Font = 17 # Size_of Font[/SIZE]
    49. [SIZE=14px]  # Set true to show the character's class (false to not display)[/SIZE]
    50. [SIZE=14px]  Class_Show = true[/SIZE]
    51. [SIZE=14px]  Class_Alignment = 0 # 0 = Left | 1 = Center | 2 = Right[/SIZE]
    52. [SIZE=14px]  Class_X = 229[/SIZE]
    53. [SIZE=14px]  Class_Y = 25[/SIZE]
    54. [SIZE=14px]  Class_Width = 60[/SIZE]
    55. [SIZE=14px]  Class_Color = Color.new(255,255,255)[/SIZE]
    56. [SIZE=14px]  Class_Font = nil # Font to use, write nil to use the default[/SIZE]
    57. [SIZE=14px]  Class_Size_of_Font = 16 # Size_of Font[/SIZE]
    58. [SIZE=14px]  # Set true to show the bar that represents the character's HP (false to not display)[/SIZE]
    59. [SIZE=14px]  HP_Show = true[/SIZE]
    60. [SIZE=14px]  HP_X = 92[/SIZE]
    61. [SIZE=14px]  HP_Y = 42[/SIZE]
    62. [SIZE=14px]  # Set true to show the bar that represents the character's MP (false to not display)[/SIZE]
    63. [SIZE=14px]  MP_Show = true[/SIZE]
    64. [SIZE=14px]  MP_X = 92[/SIZE]
    65. [SIZE=14px]  MP_Y = 59[/SIZE]
    66. [SIZE=14px]  # Set true to show the value of Current HP bar (false to not display)[/SIZE]
    67. [SIZE=14px]  Values_HP_Show_Current = false[/SIZE]
    68. [SIZE=14px]  # Set true to show the maximum value of the HP bar (false to not display)[/SIZE]
    69. [SIZE=14px]  Values_HP_Show_Total = false[/SIZE]
    70. [SIZE=14px]  Values_HP_Color = Color.new(255,255,255)[/SIZE]
    71. [SIZE=14px]  Values_HP_Font = nil # Font to use, write nil to use the default[/SIZE]
    72. [SIZE=14px]  Values_HP_Size_of_Font = 14 # Size_of Font[/SIZE]
    73. [SIZE=14px]  Values_HP_X = 92[/SIZE]
    74. [SIZE=14px]  Values_HP_Y = 38[/SIZE]
    75. [SIZE=14px]  # Set true to show the value of Current MP bar (false to not display)[/SIZE]
    76. [SIZE=14px]  Values_MP_Show_Current = false[/SIZE]
    77. [SIZE=14px]  # Set true to show the maximum value of the MP bar (false to not display)[/SIZE]
    78. [SIZE=14px]  Values_MP_Show_Total = false[/SIZE]
    79. [SIZE=14px]  Values_MP_Color = Color.new(255,255,255)[/SIZE]
    80. [SIZE=14px]  Values_MP_Font = nil # Font to use, write nil to use the default[/SIZE]
    81. [SIZE=14px]  Values_MP_Size_of_Font = 14 # Size_of Font[/SIZE]
    82. [SIZE=14px]  Values_MP_X = 92[/SIZE]
    83. [SIZE=14px]  Values_MP_Y = 55[/SIZE]
    84. [SIZE=14px]  # Set true to show the character's level (false to not display)[/SIZE]
    85. [SIZE=14px]  LV_Show = true[/SIZE]
    86. [SIZE=14px]  LV_Color = Color.new(255,255,255)[/SIZE]
    87. [SIZE=14px]  LV_Font = nil # Font to use, write nil to use the default[/SIZE]
    88. [SIZE=14px]  LV_Size_of_Font = 19 # Size_of Font[/SIZE]
    89. [SIZE=14px]  LV_Width = 30[/SIZE]
    90. [SIZE=14px]  LV_X = 241[/SIZE]
    91. [SIZE=14px]  LV_Y = 49[/SIZE]
    92. [SIZE=14px]  # Set true to show the character of money (false to not display)[/SIZE]
    93. [SIZE=14px]  Gold_Show = true[/SIZE]
    94. [SIZE=14px]  Gold_Color = Color.new(255,255,255)[/SIZE]
    95. [SIZE=14px]  Gold_Font = nil # Font to use, write nil to use the default[/SIZE]
    96. [SIZE=14px]  Gold_Size_of_Font = 18 # Size_of Font[/SIZE]
    97. [SIZE=14px]  Gold_X = 281[/SIZE]
    98. [SIZE=14px]  Gold_Y = 35[/SIZE]
    99. [SIZE=14px]  Gold_Width = 50[/SIZE]
    100. [SIZE=14px]  # Set true to show the suffix of play money (false to not display)[/SIZE]
    101. [SIZE=14px]  Text_Show = true[/SIZE]
    102. [SIZE=14px]  Text_Color = Color.new(255,255,255)[/SIZE]
    103. [SIZE=14px]  Text_Font = nil # Font to use, write nil to use the default[/SIZE]
    104. [SIZE=14px]  Text_Size_of_Font = 15 # Size_of Font[/SIZE]
    105. [SIZE=14px]  Text_X = 281[/SIZE]
    106. [SIZE=14px]  Text_Y = 50[/SIZE]
    107. [SIZE=14px]  Text_Width = 50[/SIZE]
    108. [SIZE=14px]  Text = "Gold" # Name of game currency[/SIZE]
    109. [SIZE=14px]end[/SIZE]
    110. [SIZE=14px]#===============================================#[/SIZE]
    111. [SIZE=14px]#============ End of Settings ================#[/SIZE]
    112. [SIZE=14px]#===============================================#[/SIZE]
    113. [SIZE=14px]#============ Top of Script ==================#[/SIZE]
    114. [SIZE=14px]#===============================================#[/SIZE]
    115. [SIZE=14px]module Cache[/SIZE]
    116. [SIZE=14px]  #--------------------------------------------------------------------------[/SIZE]
    117. [SIZE=14px]  # * Get HUD Graphic[/SIZE]
    118. [SIZE=14px]  # filename : Filename[/SIZE]
    119. [SIZE=14px]  #--------------------------------------------------------------------------[/SIZE]
    120. [SIZE=14px]  def self.hud(filename)[/SIZE]
    121. [SIZE=14px]        load_bitmap("Graphics/Hud/", filename)[/SIZE]
    122. [SIZE=14px]  end[/SIZE]
    123. [SIZE=14px]end[/SIZE]
    124. [SIZE=14px]class Scene_Map < Scene_Base[/SIZE]
    125. [SIZE=14px]  include PR_RRPG_HUD[/SIZE]
    126. [SIZE=14px]  alias hud_start start[/SIZE]
    127. [SIZE=14px]  alias hud_update update[/SIZE]
    128. [SIZE=14px]  alias hud_terminate terminate[/SIZE]
    129. [SIZE=14px]  def start[/SIZE]
    130. [SIZE=14px]        active_hud[/SIZE]
    131. [SIZE=14px]        hud_start[/SIZE]
    132. [SIZE=14px]  end[/SIZE]
    133. [SIZE=14px]  def active_hud[/SIZE]
    134. [SIZE=14px]        unless @hud_has_run_before[/SIZE]
    135. [SIZE=14px]          $game_switches[Switch_Control] = true[/SIZE]
    136. [SIZE=14px]          @hud_has_run_before = true[/SIZE]
    137. [SIZE=14px]        end[/SIZE]
    138. [SIZE=14px]        @animation_hud1 = Using_transparency_in_the_entrance[/SIZE]
    139. [SIZE=14px]        @animation_hud2 = Using_transparency_in_the_entrance[/SIZE]
    140. [SIZE=14px]        @animation_hud_1 = Using_transparency_in_the_exit[/SIZE]
    141. [SIZE=14px]        @animation_hud_2 = Using_transparency_in_the_exit[/SIZE]
    142. [SIZE=14px]        @back = Sprite.new[/SIZE]
    143. [SIZE=14px]        @back.bitmap = Cache.hud(Bottom_of_the_HUD)[/SIZE]
    144. [SIZE=14px]        @back.opacity = 0 if @animation_hud1 == true[/SIZE]
    145. [SIZE=14px]        x = Position_X[/SIZE]
    146. [SIZE=14px]        y = Position_Y[/SIZE]
    147. [SIZE=14px]        w = @back.width[/SIZE]
    148. [SIZE=14px]        h = @back.height[/SIZE]
    149. [SIZE=14px]        x = ( x == nil ? ( 544 - w ) / 2 : ( x < 0 ? ( 544 + x - w ) : x ) )[/SIZE]
    150. [SIZE=14px]        y = ( y == nil ? ( 416 - h ) / 2 : ( y < 0 ? ( 416 + y - h ) : y ) )[/SIZE]
    151. [SIZE=14px]        @back.x = x[/SIZE]
    152. [SIZE=14px]        @back.y = y[/SIZE]
    153. [SIZE=14px]        @back.z = 190[/SIZE]
    154. [SIZE=14px]        @wind = Window_Base.new(x-16,y-16,w+32,h+32)[/SIZE]
    155. [SIZE=14px]        @wind.opacity = 0[/SIZE]
    156. [SIZE=14px]        @wind.contents_opacity = 0 if @animation_hud2 == true[/SIZE]
    157. [SIZE=14px]        @wind.z = 195[/SIZE]
    158. [SIZE=14px]        @wind.contents.font.shadow = false[/SIZE]
    159. [SIZE=14px]        @id = Number_Character-1[/SIZE]
    160. [SIZE=14px]        @info = [][/SIZE]
    161. [SIZE=14px]        @hp = Sprite.new[/SIZE]
    162. [SIZE=14px]        @hp.bitmap = Bitmap.new(32,32)[/SIZE]
    163. [SIZE=14px]        @mp = Sprite.new[/SIZE]
    164. [SIZE=14px]        @mp.bitmap = Bitmap.new(32,32)[/SIZE]
    165. [SIZE=14px]        @hp.x = HP_X + x[/SIZE]
    166. [SIZE=14px]        @mp.x = MP_X + x[/SIZE]
    167. [SIZE=14px]        @hp.y = HP_Y + y[/SIZE]
    168. [SIZE=14px]        @mp.y = MP_Y + y[/SIZE]
    169. [SIZE=14px]        @hp.z = 192[/SIZE]
    170. [SIZE=14px]        @mp.z = 193[/SIZE]
    171. [SIZE=14px]        @hp.opacity = 0 if @animation_hud2 == true[/SIZE]
    172. [SIZE=14px]        @mp.opacity = 0 if @animation_hud2 == true[/SIZE]
    173. [SIZE=14px]        hud_real_update if status_update[/SIZE]
    174. [SIZE=14px]  end[/SIZE]
    175. [SIZE=14px]  def terminate[/SIZE]
    176. [SIZE=14px]        if @animation_hud_1 == true[/SIZE]
    177. [SIZE=14px]          @back.bitmap.dispose[/SIZE]
    178. [SIZE=14px]          @back.dispose[/SIZE]
    179. [SIZE=14px]        end[/SIZE]
    180. [SIZE=14px]        if @animation_hud_2 == true[/SIZE]
    181. [SIZE=14px]          @hp.bitmap.dispose[/SIZE]
    182. [SIZE=14px]          @hp.dispose[/SIZE]
    183. [SIZE=14px]          @mp.bitmap.dispose[/SIZE]
    184. [SIZE=14px]          @mp.dispose[/SIZE]
    185. [SIZE=14px]          @wind.contents.dispose[/SIZE]
    186. [SIZE=14px]          @wind.dispose[/SIZE]
    187. [SIZE=14px]        end[/SIZE]
    188. [SIZE=14px]        hud_terminate[/SIZE]
    189. [SIZE=14px]  end[/SIZE]
    190. [SIZE=14px]  def update[/SIZE]
    191. [SIZE=14px]        if $game_switches[Switch_Control] == true and @hud_keyboard_switch[/SIZE]
    192. [SIZE=14px]          if @back != nil[/SIZE]
    193. [SIZE=14px]                if @back.opacity < Final_Opacity and @animation_hud1 == true[/SIZE]
    194. [SIZE=14px]                  @back.opacity += Speed[/SIZE]
    195. [SIZE=14px]                else[/SIZE]
    196. [SIZE=14px]                  @back.opacity = Final_Opacity[/SIZE]
    197. [SIZE=14px]                  @animation_hud1 = false[/SIZE]
    198. [SIZE=14px]                end[/SIZE]
    199. [SIZE=14px]                if @wind.contents_opacity < Opacity_Final_Element and @animation_hud2 == true[/SIZE]
    200. [SIZE=14px]                  @wind.contents_opacity += Speed[/SIZE]
    201. [SIZE=14px]                  @hp.opacity += Speed[/SIZE]
    202. [SIZE=14px]                  @mp.opacity += Speed[/SIZE]
    203. [SIZE=14px]                else[/SIZE]
    204. [SIZE=14px]                  @wind.contents_opacity = Opacity_Final_Element[/SIZE]
    205. [SIZE=14px]                  @hp.opacity = Opacity_Final_Element[/SIZE]
    206. [SIZE=14px]                  @mp.opacity = Opacity_Final_Element[/SIZE]
    207. [SIZE=14px]                  @animation_hud2 = false[/SIZE]
    208. [SIZE=14px]                end[/SIZE]
    209. [SIZE=14px]          else[/SIZE]
    210. [SIZE=14px]                active_hud[/SIZE]
    211. [SIZE=14px]          end[/SIZE]
    212. [SIZE=14px]        else[/SIZE]
    213. [SIZE=14px]          if @back != nil[/SIZE]
    214. [SIZE=14px]                if @back.opacity > Speed-1 and @animation_hud_1 == true[/SIZE]
    215. [SIZE=14px]                  @back.opacity -= Speed[/SIZE]
    216. [SIZE=14px]                else[/SIZE]
    217. [SIZE=14px]                  @back.bitmap.dispose[/SIZE]
    218. [SIZE=14px]                  @back.dispose[/SIZE]
    219. [SIZE=14px]                  @back = nil[/SIZE]
    220. [SIZE=14px]                  @animation_hud_1 = false[/SIZE]
    221. [SIZE=14px]                end[/SIZE]
    222. [SIZE=14px]                if @wind.contents_opacity > Speed-1 and @animation_hud_2 == true[/SIZE]
    223. [SIZE=14px]                  @wind.contents_opacity -= Speed[/SIZE]
    224. [SIZE=14px]                  @hp.opacity -= Speed[/SIZE]
    225. [SIZE=14px]                  @mp.opacity -= Speed[/SIZE]
    226. [SIZE=14px]                else[/SIZE]
    227. [SIZE=14px]                  if @animation_hud_2 == true[/SIZE]
    228. [SIZE=14px]                        @hp.bitmap.dispose[/SIZE]
    229. [SIZE=14px]                        @hp.dispose[/SIZE]
    230. [SIZE=14px]                        @hp = nil[/SIZE]
    231. [SIZE=14px]                        @mp.bitmap.dispose[/SIZE]
    232. [SIZE=14px]                        @mp.dispose[/SIZE]
    233. [SIZE=14px]                        @mp = nil[/SIZE]
    234. [SIZE=14px]                        @wind.contents.dispose[/SIZE]
    235. [SIZE=14px]                        @wind.dispose[/SIZE]
    236. [SIZE=14px]                        @wind = nil[/SIZE]
    237. [SIZE=14px]                        @animation_hud_2 = false[/SIZE]
    238. [SIZE=14px]                  end[/SIZE]
    239. [SIZE=14px]                end[/SIZE]
    240. [SIZE=14px]          end[/SIZE]
    241. [SIZE=14px]        end[/SIZE]
    242. [SIZE=14px]        if @back != nil[/SIZE]
    243. [SIZE=14px]          if $game_player.screen_x >= @back.x and $game_player.screen_x <= @back.x + @back.width and[/SIZE]
    244. [SIZE=14px]                 $game_player.screen_y >= @back.y and $game_player.screen_y <= @back.y + @back.height[/SIZE]
    245. [SIZE=14px]                @back.opacity = Character_Opacity[/SIZE]
    246. [SIZE=14px]                @hp.opacity = Opacity_Character_Element[/SIZE]
    247. [SIZE=14px]                @mp.opacity = Opacity_Character_Element[/SIZE]
    248. [SIZE=14px]                @wind.contents_opacity = Opacity_Character_Element[/SIZE]
    249. [SIZE=14px]          end[/SIZE]
    250. [SIZE=14px]        end[/SIZE]
    251. [SIZE=14px]        real_update if status_update[/SIZE]
    252. [SIZE=14px]        hud_check_key_toggle[/SIZE]
    253. [SIZE=14px]        hud_update[/SIZE]
    254. [SIZE=14px]  end[/SIZE]
    255. [SIZE=14px]  def hud_real_update[/SIZE]
    256. [SIZE=14px]        a = $game_party.members[@id][/SIZE]
    257. [SIZE=14px]        @wind.contents.clear[/SIZE]
    258. [SIZE=14px]        @wind.draw_character(a.character_name, a.character_index, Char_X, Char_Y) if Char_Show[/SIZE]
    259. [SIZE=14px]        if Name_Show[/SIZE]
    260. [SIZE=14px]          @wind.contents.font.name = Name_Font if Name_Font != nil[/SIZE]
    261. [SIZE=14px]          @wind.contents.font.color = Name_Color[/SIZE]
    262. [SIZE=14px]          @wind.contents.font.size = Name_Size_of_Font[/SIZE]
    263. [SIZE=14px]          @wind.contents.draw_text(Name_X, Name_Y, Name_Width, Name_Size_of_Font, a.name, Name_Alignment)[/SIZE]
    264. [SIZE=14px]        end[/SIZE]
    265. [SIZE=14px]        if Class_Show[/SIZE]
    266. [SIZE=14px]          @wind.contents.font.name = Class_Font if Class_Font != nil[/SIZE]
    267. [SIZE=14px]          @wind.contents.font.color = Class_Color[/SIZE]
    268. [SIZE=14px]          @wind.contents.font.size = Class_Size_of_Font[/SIZE]
    269. [SIZE=14px]          @wind.contents.draw_text(Class_X, Class_Y, Class_Width, Class_Size_of_Font, a.class.name, Class_Alignment)[/SIZE]
    270. [SIZE=14px]        end[/SIZE]
    271. [SIZE=14px]        if HP_Show[/SIZE]
    272. [SIZE=14px]          @hp.bitmap.dispose[/SIZE]
    273. [SIZE=14px]          @hp.bitmap = Cache.hud(Bar_HP)[/SIZE]
    274. [SIZE=14px]          @hp.bitmap.clear_rect(Rect.new((@hp.width*a.hp/a.mhp),0,@hp.width,@hp.height))[/SIZE]
    275. [SIZE=14px]        end[/SIZE]
    276. [SIZE=14px]        if MP_Show[/SIZE]
    277. [SIZE=14px]          @mp.bitmap.dispose[/SIZE]
    278. [SIZE=14px]          @mp.bitmap = Cache.hud(Bar_MP)[/SIZE]
    279. [SIZE=14px]          @mp.bitmap.clear_rect(Rect.new((@mp.width*a.mp/a.mmp),0,@mp.width,@mp.height))[/SIZE]
    280. [SIZE=14px]        end[/SIZE]
    281. [SIZE=14px]        if Values_HP_Show_Current[/SIZE]
    282. [SIZE=14px]          text = a.hp.to_s[/SIZE]
    283. [SIZE=14px]        end[/SIZE]
    284. [SIZE=14px]        if Values_HP_Show_Total[/SIZE]
    285. [SIZE=14px]          text = a.mhp.to_s[/SIZE]
    286. [SIZE=14px]        end[/SIZE]
    287. [SIZE=14px]        if Values_HP_Show_Current and Values_HP_Show_Total[/SIZE]
    288. [SIZE=14px]          text = a.hp.to_s + "/" + a.mhp.to_s[/SIZE]
    289. [SIZE=14px]        end[/SIZE]
    290. [SIZE=14px]        if text != nil[/SIZE]
    291. [SIZE=14px]          @wind.contents.font.name = Values_HP_Font if Values_HP_Font != nil[/SIZE]
    292. [SIZE=14px]          @wind.contents.font.color = Values_HP_Color[/SIZE]
    293. [SIZE=14px]          @wind.contents.font.size = Values_HP_Size_of_Font[/SIZE]
    294. [SIZE=14px]          @wind.contents.draw_text(Values_HP_X, Values_HP_Y, @hp.width, Values_HP_Size_of_Font, text, 2)[/SIZE]
    295. [SIZE=14px]        end[/SIZE]
    296. [SIZE=14px]        text = nil[/SIZE]
    297. [SIZE=14px]        if Values_MP_Show_Current[/SIZE]
    298. [SIZE=14px]          text = a.mp.to_s[/SIZE]
    299. [SIZE=14px]        end[/SIZE]
    300. [SIZE=14px]        if Values_MP_Show_Total[/SIZE]
    301. [SIZE=14px]          text = a.mmp.to_s[/SIZE]
    302. [SIZE=14px]        end[/SIZE]
    303. [SIZE=14px]        if Values_MP_Show_Current and Values_MP_Show_Total[/SIZE]
    304. [SIZE=14px]          text = a.mp.to_s + "/" + a.mmp.to_s[/SIZE]
    305. [SIZE=14px]        end[/SIZE]
    306. [SIZE=14px]        if text != nil[/SIZE]
    307. [SIZE=14px]          @wind.contents.font.name = Values_MP_Font if Values_MP_Font != nil[/SIZE]
    308. [SIZE=14px]          @wind.contents.font.color = Values_MP_Color[/SIZE]
    309. [SIZE=14px]          @wind.contents.font.size = Values_MP_Size_of_Font[/SIZE]
    310. [SIZE=14px]          @wind.contents.draw_text(Values_MP_X, Values_MP_Y, @hp.width, Values_MP_Size_of_Font, text, 2)[/SIZE]
    311. [SIZE=14px]        end[/SIZE]
    312. [SIZE=14px]        if LV_Show[/SIZE]
    313. [SIZE=14px]          @wind.contents.font.name = LV_Font if LV_Font != nil[/SIZE]
    314. [SIZE=14px]          @wind.contents.font.color = LV_Color[/SIZE]
    315. [SIZE=14px]          @wind.contents.font.size = LV_Size_of_Font[/SIZE]
    316. [SIZE=14px]          @wind.contents.draw_text(LV_X, LV_Y, LV_Width, LV_Size_of_Font, a.level, 1)[/SIZE]
    317. [SIZE=14px]        end[/SIZE]
    318. [SIZE=14px]        if Gold_Show[/SIZE]
    319. [SIZE=14px]          @wind.contents.font.name = Gold_Font if Gold_Font != nil[/SIZE]
    320. [SIZE=14px]          @wind.contents.font.color = Gold_Color[/SIZE]
    321. [SIZE=14px]          @wind.contents.font.size = Gold_Size_of_Font[/SIZE]
    322. [SIZE=14px]          @wind.contents.draw_text(Gold_X, Gold_Y, Gold_Width, Gold_Size_of_Font, $game_party.gold, 1)[/SIZE]
    323. [SIZE=14px]        end[/SIZE]
    324. [SIZE=14px]        if Text_Show[/SIZE]
    325. [SIZE=14px]          @wind.contents.font.name = Text_Font if Text_Font != nil[/SIZE]
    326. [SIZE=14px]          @wind.contents.font.color = Text_Color[/SIZE]
    327. [SIZE=14px]          @wind.contents.font.size = Text_Size_of_Font[/SIZE]
    328. [SIZE=14px]          @wind.contents.draw_text(Text_X, Text_Y, Text_Width, Text_Size_of_Font, Text, 1)[/SIZE]
    329. [SIZE=14px]        end[/SIZE]
    330. [SIZE=14px]  end[/SIZE]
    331. [SIZE=14px]  def status_update[/SIZE]
    332. [SIZE=14px]        return false if @wind == nil[/SIZE]
    333. [SIZE=14px]        a = $game_party.members[@id][/SIZE]
    334. [SIZE=14px]        return update_infos if a.id != @info[0][/SIZE]
    335. [SIZE=14px]        return update_infos if a.character_name != @info[1][/SIZE]
    336. [SIZE=14px]        return update_infos if a.character_index != @info[2][/SIZE]
    337. [SIZE=14px]        return update_infos if a.name != @info[3][/SIZE]
    338. [SIZE=14px]        return update_infos if a.class_id != @info[4][/SIZE]
    339. [SIZE=14px]        return update_infos if a.class.name != @info[5][/SIZE]
    340. [SIZE=14px]        return update_infos if a.hp != @info[6][/SIZE]
    341. [SIZE=14px]        return update_infos if a.mhp != @info[7][/SIZE]
    342. [SIZE=14px]        return update_infos if a.mp != @info[8][/SIZE]
    343. [SIZE=14px]        return update_infos if a.mmp != @info[9][/SIZE]
    344. [SIZE=14px]        return update_infos if a.level != @info[10][/SIZE]
    345. [SIZE=14px]        return update_infos if $game_party.gold != @info[11][/SIZE]
    346. [SIZE=14px]        return false[/SIZE]
    347. [SIZE=14px]  end[/SIZE]
    348. [SIZE=14px]  def update_infos[/SIZE]
    349. [SIZE=14px]        a = $game_party.members[@id][/SIZE]
    350. [SIZE=14px]        @info[0] = a.id[/SIZE]
    351. [SIZE=14px]        @info[1] = a.character_name[/SIZE]
    352. [SIZE=14px]        @info[2] = a.character_index[/SIZE]
    353. [SIZE=14px]        @info[3] = a.name[/SIZE]
    354. [SIZE=14px]        @info[4] = a.class_id[/SIZE]
    355. [SIZE=14px]        @info[5] = a.class.name[/SIZE]
    356. [SIZE=14px]        @info[6] = a.hp[/SIZE]
    357. [SIZE=14px]        @info[7] = a.mhp[/SIZE]
    358. [SIZE=14px]        @info[8] = a.mp[/SIZE]
    359. [SIZE=14px]        @info[9] = a.mmp[/SIZE]
    360. [SIZE=14px]        @info[10] = a.level[/SIZE]
    361. [SIZE=14px]        @info[11] = $game_party.gold[/SIZE]
    362. [SIZE=14px]        return true[/SIZE]
    363. [SIZE=14px]  end[/SIZE]
    364. [SIZE=14px]  def hud_check_key_toggle[/SIZE]
    365. [SIZE=14px]        @hud_keyboard_switch = true if @hud_keyboard_switch.nil?[/SIZE]
    366. [SIZE=14px]        if Input.trigger?(HUD_Toggle_Show_Key)[/SIZE]
    367. [SIZE=14px]          @hud_keyboard_switch = !@hud_keyboard_switch[/SIZE]
    368. [SIZE=14px]        end[/SIZE]
    369. [SIZE=14px]  end[/SIZE]
    370. [SIZE=14px]end[/SIZE]
    复制代码





    If you want the hud, hp, and mp graphic

    Spoiler









    Terms of Use:

    Give credit

    no use in commercial game


    本贴来自国际rpgmaker官方论坛作者:Bravo2Kilo处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/reinorpg-hud-ace.1142/

    本帖子中包含更多资源

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

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-17 15:07 , Processed in 0.146622 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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