Commit 1dd9e780 authored by zh99998's avatar zh99998

版本0.4.3,iDuel继续修复

parent 32725c5d
...@@ -22,9 +22,15 @@ class Window_Chat < Window_Scrollable ...@@ -22,9 +22,15 @@ class Window_Chat < Window_Scrollable
@background.put(@chat_background,0,31-4) @background.put(@chat_background,0,31-4)
@tab = Surface.load "graphics/system/tab.png" @tab = Surface.load "graphics/system/tab.png"
@chat_input = Widget_InputBox.new(@x+8, @y+@height-24-10, @width-14, 24) do |key| @chat_input = Widget_InputBox.new(@x+8, @y+@height-24-10, @width-14, 24) do |key|
chatmessage = ChatMessage.new($game.user, @chat_input.value, @channel) case key
$game.chat chatmessage when :ENTER
Game_Event.push Game_Event::Chat.new(chatmessage) chatmessage = ChatMessage.new($game.user, @chat_input.value, @channel)
$game.chat chatmessage
Game_Event.push Game_Event::Chat.new(chatmessage)
true
when :esc
true
end
end end
@chat_input.refresh @chat_input.refresh
@font = TTF.open("fonts/WenQuanYi Micro Hei.ttf", 14) @font = TTF.open("fonts/WenQuanYi Micro Hei.ttf", 14)
......
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