Advertisement
mrbubble

Comp. Patch: KRX Alchemic Synthesis + KMS Generic Gauge

Aug 3rd, 2012
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.92 KB | None | 0 0
  1. $imported ||= {}
  2. $kms_imported ||= {}
  3.  
  4. module Bubs
  5.   module GGPatch
  6.     # * Gauge File Names
  7.     #  Images must be placed in the "Graphics/System" folder of your project
  8.     ALCHSYNTH_EXP_IMAGE = "GaugeHP"
  9.  
  10.     # * Gauge Position Offset [x, y]
  11.     ALCHSYNTH_EXP_OFFSET = [-23, -2]
  12.  
  13.     # * Gauge Length Adjustment
  14.     ALCHSYNTH_EXP_LENGTH = -40
  15.  
  16.     # * Gauge Slope
  17.     #   Must be between -89 ~ 89 degrees
  18.     ALCHSYNTH_EXP_SLOPE = 30
  19.   end
  20. end
  21.  
  22. if $imported['KRX-AlchemicSynthesis'] && $kms_imported["GenericGauge"]
  23. class Window_FinalItem < Window_SynthesisProp
  24.  
  25.   def draw_gauge(x, y, width, rate, color1, color2)
  26.     file = Bubs::GGPatch::ALCHSYNTH_EXP_IMAGE
  27.     offset = Bubs::GGPatch::ALCHSYNTH_EXP_OFFSET
  28.     len_offset = Bubs::GGPatch::ALCHSYNTH_EXP_LENGTH
  29.     slope = Bubs::GGPatch::ALCHSYNTH_EXP_SLOPE
  30.     super(file, x, y, width, rate, offset, len_offset, slope)
  31.   end
  32.  
  33. end
  34. end # if $imported
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement