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
38b115e8
Commit
38b115e8
authored
Apr 30, 2012
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标题显示版本号
parent
5a140dc0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
12 deletions
+6
-12
Rakefile
Rakefile
+1
-1
lib/main.rb
lib/main.rb
+1
-1
lib/scene_duel.rb
lib/scene_duel.rb
+1
-1
lib/scene_lobby.rb
lib/scene_lobby.rb
+1
-1
lib/scene_login.rb
lib/scene_login.rb
+1
-1
lib/scene_title.rb
lib/scene_title.rb
+1
-7
No files found.
Rakefile
View file @
38b115e8
...
@@ -24,7 +24,7 @@ end
...
@@ -24,7 +24,7 @@ end
spec
=
Gem
::
Specification
.
new
do
|
s
|
spec
=
Gem
::
Specification
.
new
do
|
s
|
s
.
name
=
'mycard'
s
.
name
=
'mycard'
s
.
version
=
'0.5.
5
'
s
.
version
=
'0.5.
7
'
s
.
extra_rdoc_files
=
[
'README.txt'
,
'LICENSE.txt'
]
s
.
extra_rdoc_files
=
[
'README.txt'
,
'LICENSE.txt'
]
s
.
summary
=
'a card game'
s
.
summary
=
'a card game'
s
.
description
=
s
.
summary
s
.
description
=
s
.
summary
...
...
lib/main.rb
View file @
38b115e8
...
@@ -82,7 +82,7 @@ begin
...
@@ -82,7 +82,7 @@ begin
#自动更新
#自动更新
require_relative
'update'
require_relative
'update'
Update
.
start
Update
.
start
WM
::
set_caption
(
"MyCard v
#{
Update
::
Version
}
"
,
"MyCard"
)
require_relative
'dialog'
require_relative
'dialog'
$log
.
info
(
"main"
){
"初始化成功"
}
$log
.
info
(
"main"
){
"初始化成功"
}
...
...
lib/scene_duel.rb
View file @
38b115e8
...
@@ -27,7 +27,7 @@ class Scene_Duel < Scene
...
@@ -27,7 +27,7 @@ class Scene_Duel < Scene
@deck
=
deck
@deck
=
deck
end
end
def
start
def
start
WM
::
set_caption
(
"MyCard -
#{
$config
[
'game'
]
}
-
#{
$game
.
user
.
name
}
(
#{
$game
.
user
.
id
}
) -
#{
@room
.
name
}
(
#{
@room
.
id
}
)"
,
"MyCard"
)
WM
::
set_caption
(
"MyCard
v
#{
Update
::
Version
}
-
#{
$config
[
'game'
]
}
-
#{
$game
.
user
.
name
}
(
#{
$game
.
user
.
id
}
) -
#{
@room
.
name
}
(
#{
@room
.
id
}
)"
,
"MyCard"
)
@background
=
Surface
.
load
(
"graphics/field/main.png"
).
display_format
@background
=
Surface
.
load
(
"graphics/field/main.png"
).
display_format
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
...
...
lib/scene_lobby.rb
View file @
38b115e8
...
@@ -16,7 +16,7 @@ class Scene_Lobby < Scene
...
@@ -16,7 +16,7 @@ class Scene_Lobby < Scene
require_relative
'scene_duel'
require_relative
'scene_duel'
attr_reader
:chat_window
attr_reader
:chat_window
def
start
def
start
WM
::
set_caption
(
"MyCard -
#{
$config
[
'game'
]
}
-
#{
$game
.
user
.
name
}
(
#{
$game
.
user
.
id
}
)"
,
"MyCard"
)
WM
::
set_caption
(
"MyCard
v
#{
Update
::
Version
}
-
#{
$config
[
'game'
]
}
-
#{
$game
.
user
.
name
}
(
#{
$game
.
user
.
id
}
)"
,
"MyCard"
)
$game
.
refresh
$game
.
refresh
@background
=
Surface
.
load
(
"graphics/lobby/background.png"
).
display_format
@background
=
Surface
.
load
(
"graphics/lobby/background.png"
).
display_format
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
...
...
lib/scene_login.rb
View file @
38b115e8
...
@@ -11,7 +11,7 @@ require_relative 'scene_replay'
...
@@ -11,7 +11,7 @@ require_relative 'scene_replay'
require_relative
'scene_lobby'
require_relative
'scene_lobby'
class
Scene_Login
<
Scene
class
Scene_Login
<
Scene
def
start
def
start
WM
::
set_caption
(
"MyCard"
,
"MyCard"
)
WM
::
set_caption
(
"MyCard
v
#{
Update
::
Version
}
"
,
"MyCard"
)
@background
=
Surface
.
load
(
"graphics/login/background.png"
).
display_format
@background
=
Surface
.
load
(
"graphics/login/background.png"
).
display_format
$config
[
'game'
]
=
'iDuel'
if
$config
[
'game'
]
==
'局域网'
#临时修补点击过一次局域网之后无限进入局域网的问题
$config
[
'game'
]
=
'iDuel'
if
$config
[
'game'
]
==
'局域网'
#临时修补点击过一次局域网之后无限进入局域网的问题
@gameselect_window
=
Window_GameSelect
.
new
(
117
,
269
)
@gameselect_window
=
Window_GameSelect
.
new
(
117
,
269
)
...
...
lib/scene_title.rb
View file @
38b115e8
...
@@ -10,20 +10,14 @@ require_relative 'window_title'
...
@@ -10,20 +10,14 @@ require_relative 'window_title'
BGM
=
'title.ogg'
BGM
=
'title.ogg'
class
Scene_Title
<
Scene
class
Scene_Title
<
Scene
def
start
def
start
WM
::
set_caption
(
"MyCard"
,
"MyCard"
)
WM
::
set_caption
(
"MyCard
v
#{
Update
::
Version
}
"
,
"MyCard"
)
title
=
Dir
.
glob
(
"graphics/titles/title_*.*"
)
title
=
Dir
.
glob
(
"graphics/titles/title_*.*"
)
title
=
title
[
rand
(
title
.
size
)]
title
=
title
[
rand
(
title
.
size
)]
@background
=
Surface
.
load
(
title
).
display_format
@background
=
Surface
.
load
(
title
).
display_format
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
Surface
.
blit
(
@background
,
0
,
0
,
0
,
0
,
$screen
,
0
,
0
)
@command_window
=
Window_Title
.
new
(
title
[
"left"
]
?
200
:
title
[
"right"
]
?
600
:
400
,
300
)
@command_window
=
Window_Title
.
new
(
title
[
"left"
]
?
200
:
title
[
"right"
]
?
600
:
400
,
300
)
#logo = Surface.load("graphics/system/logo.png")
#@logo_window = Window.new(@command_window.x-(logo.w-@command_window.width)/2,150,logo.w,logo.h)
#@logo_window.contents = logo
#$screen.update_rect(0,0,0,0)
@decision_se
=
Mixer
::
Wave
.
load
(
"audio/se/decision.ogg"
)
@decision_se
=
Mixer
::
Wave
.
load
(
"audio/se/decision.ogg"
)
super
super
end
end
def
clear
(
x
,
y
,
width
,
height
)
def
clear
(
x
,
y
,
width
,
height
)
Surface
.
blit
(
@background
,
x
,
y
,
width
,
height
,
$screen
,
x
,
y
)
Surface
.
blit
(
@background
,
x
,
y
,
width
,
height
,
$screen
,
x
,
y
)
...
...
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