Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # // 02/03/2012
- # // 02/03/2012
- class Hash
- # // IceDragon
- def get_values(*args)
- args.collect {|a|self[a]}
- end
- end
- class Game_Interpreter
- include NEL
- def nel_textpop(*args)
- if(args[0].is_a?(Hash))
- text, ev_id, time, size, color = args[0].get_values(:text,:event_id,:time,:size,:color)
- else
- text, ev_id, time, size, color = *args
- end
- char = get_character(ev_id || 0)
- return unless(char)
- char.namepop_size = size || DEF_TEXT_SIZE
- char.namepop_color= color || DEF_TEXT_COLOR
- char.namepop_time = time || 60
- char.namepop = text || ""
- end
- def nel_change_font(*args)
- if(args[0].is_a?(Hash))
- ev_id, font, bold, ital = args[0].get_values(:event_id,:font,:bold,:italic)
- else
- ev_id, font, bold, ital = *args
- end
- char = get_character(ev_id || 0)
- return unless(char)
- char.namepop_font = font || DEF_TEXT_FONT
- char.namepop_bold = !!bold # // Convert to Bool
- char.namepop_ital = !!ital
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment