Advertisement
Jaizu85

Untitled

Oct 9th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. class Spriteset_Map
  2. def create_panel(zone)
  3. return unless zone && GameData::Zone.get(zone).panel_id > 0
  4. @sp_bg ||= Sprite.new
  5. @sp_bg.x = 10
  6. @sp_bg.y = -25
  7. @sp_bg.z = 5001
  8. @sp_bg.bitmap = bmp = RPG::Cache.windowskin("Pannel_#{GameData::Zone.get(zone).panel_id}")
  9. map_name = PFM::Text.parse_string_for_messages(GameData::Zone.get(zone).map_name)
  10. color = 24
  11. map_name.gsub!(/\\c\[([0-9]+)\]/) do
  12. color = $1.to_i
  13. nil
  14. end
  15. @sp_fg = Text.new(0, nil, 15, -20, bmp.width, bmp.height, map_name, 0,
  16. Text::Util::DEFAULT_OUTLINE_SIZE, color)
  17. @sp_fg.z = 5002
  18. @counter = 0
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement