【NPC】
我就是来打酱油的。\bm[1]
179.87 KB, 下载次数: 85
def adjust_pop_message(text = " ") return unless SceneManager.scene_is?(Scene_Map) unless @event_pop_id if $imported["YEA-MessageSystem"] adjust_message_window_size end return end n_line = cal_number_line(text) text = text.split("\n").each{|s| s.gsub!(/\\\w*\[\w\]|\n/i,'')}.sort_by!{|s| s.length}.pop n_line = YSE::POP_MESSAGE::LIMIT[:limit_line] if YSE::POP_MESSAGE::LIMIT[:limit_line] > 0 && cal_number_line(text) > YSE::POP_MESSAGE::LIMIT[:limit_line] @real_lines = n_line self.height = fitting_height(n_line) self.width = cal_width_line(text) + 24 #<- 增加这个数字来调整后面的距离(如果不顺眼) self.width += new_line_x if self.width > YSE::POP_MESSAGE::LIMIT[:limit_width] && YSE::POP_MESSAGE::LIMIT[:limit_width] > 0 self.width = YSE::POP_MESSAGE::LIMIT[:limit_width] end create_contents update_placement end
RaidenInfinity 发表于 2016-12-18 23:40
def adjust_pop_message(text = " ")
return unless SceneManager.scene_is?(Scene_Map)
unles ...
gsub!(/\\\w*\[\w\]|\n/i,'')
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |