Commit 8d3ad8f7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

ALT+ENTER全屏

parent dd0de1de
...@@ -123,6 +123,15 @@ class Scene ...@@ -123,6 +123,15 @@ class Scene
end end
when Event::KeyDown when Event::KeyDown
case event.sym case event.sym
when Key::RETURN
if event.mod & Key::MOD_ALT != 0
$config['screen']['fullscreen'] = !$config['screen']['fullscreen']
$screen.destroy
style = HWSURFACE
style |= FULLSCREEN if $config['screen']["fullscreen"]
$screen = Screen.open($config['screen']["width"], $config['screen']["height"], 0, style)
save_config
end
when Key::F12 when Key::F12
$scene = Scene_Title.new $scene = Scene_Title.new
else else
......
...@@ -40,23 +40,15 @@ class Scene_Lobby < Scene ...@@ -40,23 +40,15 @@ class Scene_Lobby < Scene
@active_window.cursor_up @active_window.cursor_up
when Key::DOWN when Key::DOWN
@active_window.cursor_down @active_window.cursor_down
when Key::RETURN
@active_window.clicked
when Key::F2 when Key::F2
#@joinroom_msgbox = Widget_Msgbox.new("创建房间", "正在等待对手") #@joinroom_msgbox = Widget_Msgbox.new("创建房间", "正在等待对手")
$game.host Room.new(0, $game.user.name) #$game.host Room.new(0, $game.user.name)
when Key::F3 when Key::F3
#@joinroom_msgbox = Widget_Msgbox.new("加入房间", "正在加入房间") #@joinroom_msgbox = Widget_Msgbox.new("加入房间", "正在加入房间")
#$game.join 'localhost' #$game.join 'localhost'
when Key::F5 when Key::F5
# if @roomlist.items and room = @roomlist.items.find{|room|room.player1 == $game.user or room.player2 == $game.user}
# $game.qroom room
# end
$game.refresh $game.refresh
when Key::F12 when Key::F12
# if @roomlist.items and room = @roomlist.items.find{|room|room.player1 == $game.user or room.player2 == $game.user}
# $game.qroom room
# end
$game.exit $game.exit
$scene = Scene_Login.new $scene = Scene_Login.new
end end
......
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