#-------------------------------------------------------------------------- # ● リフレッシュ #-------------------------------------------------------------------------- def refresh self.contents.clear load_preview(@file_no) return unless @data[@file_no] bitmap = @bmps[@file_no] start_x = (contents.width - bitmap.width) / 2 contents.fill_rect(start_x - 1, 7, bitmap.width + 2, bitmap.height + 2, Color.new(0, 0, 0)) contents.blt(start_x, 8, bitmap, bitmap.rect) header = @data[@file_no] header[:characters].each_with_index do |data, i| break if i >= 4 character_y = bitmap.height + 22 + i * 40 draw_character(data[0], data[1], start_x + 16, character_y + 28) draw_level_for_preview(data[2], start_x + 40, character_y) draw_name_for_preview(data[3], start_x + 100, character_y, bitmap.width - start_x - 100) end end
QQ截图20171231155638.png (117.84 KB, 下载次数: 22)
芯☆淡茹水 发表于 2017-12-31 17:04
你人物就大得快要放不下了,还怎么排版?
4个人,你算算一个人高度 x 4,需要多高的版面?往哪儿排?
要么 ...
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |