Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
8d3ad8f7
Commit
8d3ad8f7
authored
Apr 14, 2012
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALT+ENTER全屏
parent
dd0de1de
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
lib/scene.rb
lib/scene.rb
+9
-0
lib/scene_lobby.rb
lib/scene_lobby.rb
+1
-9
No files found.
lib/scene.rb
View file @
8d3ad8f7
...
@@ -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
...
...
lib/scene_lobby.rb
View file @
8d3ad8f7
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment