Commit 0874201f authored by zh99998's avatar zh99998

观战基本稳定

parent 482b469c
...@@ -72,7 +72,7 @@ class Action ...@@ -72,7 +72,7 @@ class Action
def run def run
$game.phase = phase $game.phase = phase
if @from_player and phase == :EP if @from_player and phase == :EP
Game_Event.push Game_Event::Action.new(TurnEnd.new(true, $game.player_field, $game.turn_player ? turn : turn.next)) Game_Event.push Game_Event::Action.new(TurnEnd.new(true, $game.player_field, $game.turn_player ? @turn : @turn.next))
end end
super super
end end
......
#encoding: UTF-8 #encoding: UTF-8
=begin
alias gbk_puts puts alias gbk_puts puts
def puts(*args) def puts(*args)
gbk_puts(*(args.collect{|item|item.encode "GBK", :invalid => :replace, :undef => :replace})) gbk_puts(*(args.collect{|item|item.encode "GBK", :invalid => :replace, :undef => :replace}))
...@@ -8,7 +8,7 @@ end ...@@ -8,7 +8,7 @@ end
def p(*args) def p(*args)
print(args.collect{|item|item.inspect.encode "GBK", :invalid => :replace, :undef => :replace}.join("\n")+"\n") rescue print(args.join("\n")+"\n") print(args.collect{|item|item.inspect.encode "GBK", :invalid => :replace, :undef => :replace}.join("\n")+"\n") rescue print(args.join("\n")+"\n")
end end
=end
def filesize_inspect(size) def filesize_inspect(size)
case size case size
when 0...1024 when 0...1024
......
#encoding: UTF-8
#============================================================================== #==============================================================================
# ■ Scene_Title # ■ Scene_Watch
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
#  title #  观战
#============================================================================== #==============================================================================
require_relative 'scene_duel' require_relative 'scene_duel'
class Scene_Watch < Scene_Duel class Scene_Watch < Scene_Duel
def create_action_window def create_action_window
end end
def action(action) def action(action)
action.run end
def handle_game(event)
case event
when Game_Event::Leave
Widget_Msgbox.new("离开房间", "观战结束") { $scene = Scene_Hall.new }
else
super
end
end end
end end
...@@ -44,5 +44,7 @@ class Window_CardInfo < Window ...@@ -44,5 +44,7 @@ class Window_CardInfo < Window
end end
@lore_start = 0 @lore_start = 0
@lore_pos = [0, 234] @lore_pos = [0, 234]
@font.draw_blended_utf8(@contents, @card.inspect, 0, 300, 0xFF, 0xFF, 0x66)
end end
end end
...@@ -5,7 +5,7 @@ class Window_RoomChat < Window ...@@ -5,7 +5,7 @@ class Window_RoomChat < Window
WLH=16 WLH=16
require_relative 'widget_scrollbar' require_relative 'widget_scrollbar'
Player_Color = [0,0,0xFF] Player_Color = [0,0,0xFF]
Opponent_Color = [0x66,0x66,0] Opponent_Color = [0,0x66,0]
def initialize(x, y, width, height) def initialize(x, y, width, height)
super(x,y,width,height-WLH) super(x,y,width,height-WLH)
@chat_input = Widget_InputBox.new(@x,@y+@height,@width,WLH){|text|Action::Chat.new(true, text).run} @chat_input = Widget_InputBox.new(@x,@y+@height,@width,WLH){|text|Action::Chat.new(true, text).run}
......
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