Commit 57c31a32 authored by 神楽坂玲奈's avatar 神楽坂玲奈

聊天窗口

parent a8a15182
...@@ -66,19 +66,6 @@ class Window_Chat < Window_List ...@@ -66,19 +66,6 @@ class Window_Chat < Window_List
def item_rect(index) def item_rect(index)
[index*100+3, 0, 100, 31] [index*100+3, 0, 100, 31]
end end
lore.inject([0, 0, 0]) do |array, char|
text_size = src_bitmap.text_size char
args = array[0], array[1], text_size.width, text_size.height, char
src_bitmap.draw_text *args
if array[0] < 124
[array[0] + text_size.width, array[1], array[2]]
else
[0, array[1] + WLH, array[2] + 1]
end
end
def refresh def refresh
super super
return unless @@list[@channel] return unless @@list[@channel]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment