TheoAllen

Theo - Simple Polygon Status

Jun 6th, 2013
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.52 KB | None | 0 0
  1. # =============================================================================
  2. # TheoAllen - Simple Polgygon Status
  3. # Version : 1.0
  4. # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com
  5. # (This script documentation is written in informal indonesian language)
  6. # -----------------------------------------------------------------------------
  7. # Requires :
  8. # >> Theo - Bitmap Extra addons v2.0 or later
  9. # =============================================================================
  10. ($imported ||= {})[:Theo_PolygonStatus] = true
  11. # =============================================================================
  12. # CHANGE LOGS:
  13. # -----------------------------------------------------------------------------
  14. # 2013.06.06 - Finised script
  15. # =============================================================================
  16. =begin
  17.  
  18.   Perkenalan :
  19.   Script ini ngebikin kamu nampilin parameter bentuknya poligon di status menu
  20.  
  21.   Cara penggunaan :
  22.   Pasang dibawah material namun diatas main
  23.   edit konfigurasinya kalo perlu
  24.  
  25.   Terms of use :
  26.   Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih
  27.   keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau
  28.   dipake buat komersil, jangan lupa, gw dibagi gratisannya.
  29.  
  30.   Note :
  31.   Script ini cuman ngubah tampilan di RTP saja.
  32.  
  33. =end
  34. # =============================================================================
  35. # Konfigurasi
  36. # =============================================================================
  37. module THEO
  38.   module STATUS
  39.     # =========================================================================
  40.       Outline_Polygon_color   = Color.new(255,255,255)
  41.       Outline_Polygon_radius  = 70
  42.     # -------------------------------------------------------------------------
  43.     # Opsi untuk poligon luar.
  44.     # Color  >> untuk warna garis poligonnya (red,green,blue)
  45.     # Radius >> untuk jarak dari titik pusatnya
  46.     # =========================================================================
  47.    
  48.     # =========================================================================
  49.       Params_Polygon_color    = Color.new(0,255,0)
  50.       Params_Polygon_radius   = 60
  51.     # -------------------------------------------------------------------------
  52.     # Opsi untuk poligon dalem
  53.     # Color  >> untuk warna garis poligonnya (red,green,blue)
  54.     # Radius >> untuk jarak maksimum dari titik pusatnya
  55.     # =========================================================================
  56.    
  57.   end
  58. end
  59. # =============================================================================
  60. # Akhir dari konfigurasi
  61. # =============================================================================
  62. class Game_Battler < Game_BattlerBase
  63.  
  64.   def params_array
  65.     return [self.atk,self.def,self.mat,self.mdf,self.agi,self.luk]
  66.   end
  67.  
  68. end
  69.  
  70. class Window_Status < Window_Selectable
  71.   if $imported[:Theo_BitmapAddons]
  72.   include THEO::STATUS
  73.  
  74.   def draw_parameters(x, y)
  75.     contents.draw_shape_params(x+50,y+70,@actor.params_array,Params_Polygon_radius,
  76.       Params_Polygon_color)
  77.     contents.draw_polygon(x+50,y+70,@actor.params_array.size,Outline_Polygon_radius,
  78.       Outline_Polygon_color)
  79.     6.times {|i| draw_actor_param(@actor, x+120, y + line_height * i, i + 2) }
  80.   end
  81.  
  82.   def draw_actor_param(actor, x, y, param_id)
  83.     change_color(system_color)
  84.     draw_text(x, y, 120, line_height, Vocab::param(param_id))
  85.     change_color(normal_color)
  86.     draw_text(x + 60, y, 36, line_height, actor.param(param_id), 2)
  87.   end
  88.   end
  89. end
Advertisement
Add Comment
Please, Sign In to add comment