Hey guys, I've got another Luna Engine HUD related question. I'm working on my menus at the moment, and I cannot get the Items page's actor status stuff (name, bars, etc.) to match everything else. The biggest issue I have is with the HP and MP bars. The code from lines 648 to 1244 (from the start of HP Bar settings to # End max_tp_num or whatever) is at the bottom of the post. As stated, I'm running the Luna engine and I was unfortunate enough to have accidentally saved over my Luna Engine base, so providing a way to get that back would also serve to help me as I have lost the original code that was in this section.
As you can see, for example, the hp bar gradient goes from [0,0,0,255] to [194,0,0,255] which SHOULD be a gradient from black to red, but it's still on the default blue gradient. Why is that?
Thanks!
As you can see, for example, the hp bar gradient goes from [0,0,0,255] to [194,0,0,255] which SHOULD be a gradient from black to red, but it's still on the default blue gradient. Why is that?
Thanks!
Code:
# -----------------------------------------------------------------
# This section allows you to customize HP Bar settings for actors.
# -----------------------------------------------------------------
:hp_bar => {
:enable => true, # Enable HP Bars? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 228,
:offset_y => 48,
:offset_z => 0,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# 0 - Default bar; 1 - Custom bar; 2 - Custom animated bar.
# -----------------------------------------------------------------
:type => 0,
:vertical => false,# Display vertically? True/False
# Works for type 0 and 1.
:ani_rate => 0.02, # Max is 1.00. Refers to animate speed/rate.
#---
:type_0 => {
# -----------------------------------------------------------------
# Set the color for the bar background. [R,G,B,A]
# You can also use normal_color to use the default windowskin colors.
# -----------------------------------------------------------------
:back_color => [0, 0, 0, 255],
# -----------------------------------------------------------------
# color1 = refers to the first color of the gradient. ([R,G,B,A])
# color2 = refers to the second color of the gradient. ([R,G,B,A])
# normal_color refers to the color of your default windowskin.
# -----------------------------------------------------------------
:color1 => [0, 0, 0, 255],
:color2 => [194, 0, 0, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:length => 220, # Width/Length of the bar.
:height => 12, # Height of the bar.
# -----------------------------------------------------------------
# This section allows you to customize the "HP" Vocab display.
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 232,
:offset_y => 32,
:offset_z => 1,
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:tcolor => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:toutline => [0, 0, 0, 128],
:bold => false, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 0,
:font => "POPit", # Set Font type.
:size => 24, # Set Font Size
:text => "HP", # Change "HP" Vocab.
},
#---
:type_1 => {
:filename => "HP_Bar", # Custom HP Bar Filename.
},
#---
:type_2 => {
:filename => "Btskin_hp", # Custom Frame-based HP Bar Filename.
:frames => 10, # Amount of animation frames.
},
}, # End hp_bar.
# -----------------------------------------------------------------
# This section allows you to customize MP Bar settings for actors.
# -----------------------------------------------------------------
:mp_bar => {
:enable => true, # Enable MP Bars? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 228,
:offset_y => 72,
:offset_z => 0,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# 0 - Default bar; 1 - Custom bar; 2 - Custom animated bar.
# -----------------------------------------------------------------
:type => 0,
:vertical => false,# Display vertically? True/False
# Works for type 0 and 1.
:ani_rate => 0.02, # Max is 1.00. Refers to animate speed/rate.
#---
:type_0 => {
# -----------------------------------------------------------------
# Set the color for the bar background. [R,G,B,A]
# You can also use normal_color to use the default windowskin colors.
# -----------------------------------------------------------------
:back_color => [0, 0, 0, 255],
# -----------------------------------------------------------------
# color1 = refers to the first color of the gradient. ([R,G,B,A])
# color2 = refers to the second color of the gradient. ([R,G,B,A])
# normal_color refers to the color of your default windowskin.
# -----------------------------------------------------------------
:color1 => [0, 0, 0, 255],
:color2 => [0, 194, 0, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:length => 220, # Width/Length of the bar.
:height => 12, # Height of the bar.
# -----------------------------------------------------------------
# This section allows you to customize the "HP" Vocab display.
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 232,
:offset_y => 56,
:offset_z => 1,
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:tcolor => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:toutline => [0, 0, 0, 128],
:bold => false, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 0,
:font => "VL Gothic", # Set Font type.
:size => 24, # Set Font Size
:text => "MP", # Change "MP" Vocab.
},
#---
:type_1 => {
:filename => "MP_Bar", # Custom MP Bar Filename.
},
#---
:type_2 => {
:filename => "Btskin_mp", # Custom Frame-based MP Bar Filename.
:frames => 10, # Amount of animation frames.
},
}, # End mp_bar.
# -----------------------------------------------------------------
# This section allows you to customize TP Bar settings for actors.
# -----------------------------------------------------------------
:tp_bar => {
:enable => false, # Enable TP Bars? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 0,
:offset_y => 76,
:offset_z => 0,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# 0 - Default bar; 1 - Custom bar; 2 - Custom animated bar.
# -----------------------------------------------------------------
:type => 2,
:vertical => false,# Display vertically? True/False
# Works for type 0 and 1.
:ani_rate => 0.02, # Max is 1.00. Refers to animate speed/rate.
#---
:type_0 => {
# -----------------------------------------------------------------
# Set the color for the bar background. [R,G,B,A]
# You can also use normal_color to use the default windowskin colors.
# -----------------------------------------------------------------
:back_color => [0, 0, 0, 255],
# -----------------------------------------------------------------
# color1 = refers to the first color of the gradient. ([R,G,B,A])
# color2 = refers to the second color of the gradient. ([R,G,B,A])
# normal_color refers to the color of your default windowskin.
# -----------------------------------------------------------------
:color1 => [16, 255, 16, 255],
:color2 => [64, 255, 64, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:length => 76, # Width/Length of the bar.
:height => 12, # Height of the bar.
# -----------------------------------------------------------------
# This section allows you to customize the "TP" Vocab display.
# -----------------------------------------------------------------
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 380,
:offset_y => -14,
:offset_z => 5,
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:tcolor => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:toutline => [0, 0, 0, 255],
:bold => true, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 0,
:font => "POPit", # Set Font type.
:size => 18, # Set Font Size
:text => "TP", # Change "TP" Vocab.
},
#---
:type_1 => {
:filename => "Btskin_tp", # Custom TP Bar Filename.
},
#---
:type_2 => {
:filename => "Skin_TP", # Custom Frame-based TP Bar Filename.
:frames => 17, # Amount of animation frames.
},
}, # End tp_bar.
# -----------------------------------------------------------------
# This section allows you to customize HP Number settings for actors.
# -----------------------------------------------------------------
:hp_num => {
:enable => true, # Enable HP Numbers? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 232,
:offset_y => 34,
:offset_z => 20,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# # 0 - Default font; 1 - Custom number picture sheet;
# -----------------------------------------------------------------
:type => 0,
:ani_rate => 0.05, # Max is 1.00. Refers to animate speed/rate.
#--- START 2013.09.02
:with_max => true, # Set to true to show Max HP Numbers in this sprite.
# Only works with type 0.
:text => "%d/%d", # Only available for :with_max == true
#--- END 2013.09.02
:type_0 => {
:width => 212, # Change the width of the number rect.
:height => 24, # Change the height of the number rect.
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:color => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 128],
:bold => false, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
:font => "POPit", # Set Font type.
:size => 24, # Set Font Size
},
#---
:type_1 => {
:width => 80, # Change the width of the number rect.
# Use for adjusting alignment.
:filename => "Skin_NumSmall", # Picture Filename.
:spacing => -2, # Add spacing
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
},
}, # End hp_num.
# -----------------------------------------------------------------
# This section allows you to customize MP Number settings for actors.
# -----------------------------------------------------------------
:mp_num => {
:enable => true, # Enable MP Numbers? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 232,
:offset_y => 58,
:offset_z => 1,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# # 0 - Default font; 1 - Custom number picture sheet;
# -----------------------------------------------------------------
:type => 0,
:ani_rate => 0.05, # Max is 1.00. Refers to animate speed/rate.
#--- START 2013.09.02
:with_max => true, # Set to true to show Max MP Numbers in this sprite.
# Only works with type 0.
:text => "%d/%d", # Only available for :with_max == true
#--- END 2013.09.02
:type_0 => {
:width => 212, # Change the width of the number rect.
:height => 24, # Change the height of the number rect.
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:color => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 128],
:bold => false, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
:font => "POPit", # Set Font type.
:size => 24, # Set Font Size
},
#---
:type_1 => {
:width => 80, # Change the width of the number rect.
# Use for adjusting alignment.
:filename => "Skin_NumSmall", # Picture Filename.
:spacing => -2, # Add spacing
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
},
}, # End mp_num.
# -----------------------------------------------------------------
# This section allows you to customize TP Number settings for actors.
# -----------------------------------------------------------------
:tp_num => {
:enable => false, # Enable TP Numbers? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => -8,
:offset_y => 90,
:offset_z => 5,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# # 0 - Default font; 1 - Custom number picture sheet;
# -----------------------------------------------------------------
:type => 0,
:ani_rate => 0.05, # Max is 1.00. Refers to animate speed/rate.
#--- START 2013.09.02
:with_max => false, # Set to true to show Max MP Numbers in this sprite.
# Only works with type 0.
:text => "%d/%d", # Only available for :with_max == true
#--- END 2013.09.02
:type_0 => {
:width => 76, # Change the width of the number rect.
:height => 24, # Change the height of the number rect.
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:color => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:bold => true, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
:font => "POPit", # Set Font type.
:size => 32, # Set Font Size
},
#---
:type_1 => {
:width => 30, # Change the width of the number rect.
# Use for adjusting alignment.
:filename => "Skin_NumSmall", # Picture Filename.
:spacing => -2, # Add spacing
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 1,
},
}, # End tp_num.
# -----------------------------------------------------------------
# This section allows you to customize Max HP Number settings for actors.
# -----------------------------------------------------------------
:hp_max_num => {
:enable => false, # Enable Max HP Numbers? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 76,
:offset_y => 56,
:offset_z => 5,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# # 0 - Default font; 1 - Custom number picture sheet;
# -----------------------------------------------------------------
:type => 0,
:ani_rate => 0.05, # Max is 1.00. Refers to animate speed/rate.
#---
:type_0 => {
:width => 76, # Change the width of the number rect.
:height => 24, # Change the height of the number rect.
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:color => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:bold => true, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
:font => "POPit", # Set Font type.
:size => 16, # Set Font Size
},
#---
:type_1 => {
:width => 76, # Change the width of the number rect.
# Use for adjusting alignment.
:filename => "Btskin_numbers", # Picture Filename.
:spacing => -2, # Add spacing
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
},
}, # End hp_max_num.
# -----------------------------------------------------------------
# This section allows you to customize Max MP Number settings for actors.
# -----------------------------------------------------------------
:mp_max_num => {
:enable => false, # Enable Max MP Numbers? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 76,
:offset_y => 70,
:offset_z => 5,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# # 0 - Default font; 1 - Custom number picture sheet;
# -----------------------------------------------------------------
:type => 0,
:ani_rate => 0.05, # Max is 1.00. Refers to animate speed/rate.
#---
:type_0 => {
:width => 76, # Change the width of the number rect.
:height => 24, # Change the height of the number rect.
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:color => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:bold => true, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
:font => "POPit", # Set Font type.
:size => 16, # Set Font Size
},
#---
:type_1 => {
:width => 76, # Change the width of the number rect.
# Use for adjusting alignment.
:filename => "Btskin_numbers", # Picture Filename.
:spacing => -2, # Add spacing
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
},
}, # End mp_max_num.
# -----------------------------------------------------------------
# This section allows you to customize Max TP Number settings for actors.
# -----------------------------------------------------------------
:tp_max_num => {
:enable => false, # Enable Max TP Numbers? True/False
# -----------------------------------------------------------------
# Offset Values refer to how much you want to nudge the window display
# without affecting its base x, y and z.
# -----------------------------------------------------------------
:offset_x => 76,
:offset_y => 84,
:offset_z => 5,
# -----------------------------------------------------------------
# Type allows you to set the type of graphic you want to use.
# # 0 - Default font; 1 - Custom number picture sheet;
# -----------------------------------------------------------------
:type => 0,
:ani_rate => 0.05, # Max is 1.00. Refers to animate speed/rate.
#---
:type_0 => {
:width => 76, # Change the width of the number rect.
:height => 24, # Change the height of the number rect.
# -----------------------------------------------------------------
# Set the color for the name display. [R,G,B,A]
# You can also use normal_color to use the default font color.
# -----------------------------------------------------------------
:color => [255, 255, 255, 255],
# -----------------------------------------------------------------
# Set the outline color for the name display. [R,G,B,A]
# You can also use normal_color to use the default outline color.
# -----------------------------------------------------------------
:outline => [0, 0, 0, 255],
:bold => true, # Enable Bold? True/False
:italic => false, # Enable Italic? True/False
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
:font => "POPit", # Set Font type.
:size => 16, # Set Font Size
},
#---
:type_1 => {
:width => 76, # Change the width of the number rect.
# Use for adjusting alignment.
:filename => "Btskin_numbers", # Picture Filename.
:spacing => -2, # Add spacing
# -----------------------------------------------------------------
# Set alignment settings.
# 0 = Left/Default, 1 = Center, 2 = Right
# -----------------------------------------------------------------
:align => 2,
},
}, # End tp_max_num.