Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Spriteset_Map
- def create_panel(zone)
- return unless zone && GameData::Zone.get(zone).panel_id > 0
- @sp_bg ||= Sprite.new
- @sp_bg.x = 10
- @sp_bg.y = -25
- @sp_bg.z = 5001
- @sp_bg.bitmap = bmp = RPG::Cache.windowskin("Pannel_#{GameData::Zone.get(zone).panel_id}")
- map_name = PFM::Text.parse_string_for_messages(GameData::Zone.get(zone).map_name)
- color = 24
- map_name.gsub!(/\\c\[([0-9]+)\]/) do
- color = $1.to_i
- nil
- end
- @sp_fg = Text.new(0, nil, 15, -20, bmp.width, bmp.height, map_name, 0,
- Text::Util::DEFAULT_OUTLINE_SIZE, color)
- @sp_fg.z = 5002
- @counter = 0
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement