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
xiaoye
mycard
Commits
fc7b0c7a
Commit
fc7b0c7a
authored
Mar 05, 2013
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f590f7b2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1940 additions
and
3 deletions
+1940
-3
graphics/system/icon.png
graphics/system/icon.png
+0
-0
lib/window_lobbybuttons.rb
lib/window_lobbybuttons.rb
+1
-1
lib/ygocore/game.rb
lib/ygocore/game.rb
+2
-2
mycard.sh
mycard.sh
+17
-0
vendor/javascripts/handlebars-1.0.rc.1.js
vendor/javascripts/handlebars-1.0.rc.1.js
+1920
-0
No files found.
graphics/system/icon.png
0 → 100644
View file @
fc7b0c7a
This diff was suppressed by a .gitattributes entry.
lib/window_lobbybuttons.rb
View file @
fc7b0c7a
...
...
@@ -58,7 +58,7 @@ class Window_LobbyButtons < Window_List
if
f
.
read
=~
/^mycard:\/\/([\d\.]+):(\d+)\/(.*)$/
room
=
Room
.
new
(
nil
,
$3
.
to_s
)
room
.
server
=
Server
.
new
(
nil
,
nil
,
$1
,
$2
.
to_i
,
false
)
$gam
e
.
run_ygocore
(
room
,
true
)
Ygocor
e
.
run_ygocore
(
room
,
true
)
else
$log
.
error
(
'自动匹配非法回复'
){
f
.
read
}
Widget_Msgbox
.
new
(
"自动匹配"
,
"错误:
#{
exception
}
"
,
ok:
"确定"
)
...
...
lib/ygocore/game.rb
View file @
fc7b0c7a
...
...
@@ -363,7 +363,7 @@ class Ygocore < Game
def
self
.
get_announcements
#公告
$config
[
'ygocore'
]
||=
{}
$config
[
'ygocore'
][
'announcements'
]
||=
[
Announcement
.
new
(
"
开放注册
"
,
nil
,
nil
)]
$config
[
'ygocore'
][
'announcements'
]
||=
[
Announcement
.
new
(
"
正在读取公告...
"
,
nil
,
nil
)]
Thread
.
new
do
begin
open
(
'http://my-card.in/announcements.json'
)
do
|
file
|
...
...
@@ -373,7 +373,7 @@ class Ygocore < Game
Config
.
save
end
rescue
Exception
=>
exception
$log
.
error
(
'公告读取失败'
)
{
[
exception
.
inspect
,
*
exception
.
backtrace
].
collect
{
|
str
|
str
.
encode
(
"UTF-8"
)
}.
join
(
"
\n
"
)
}
$log
.
error
(
'公告读取失败'
)
{
[
exception
.
inspect
,
*
exception
.
backtrace
].
collect
{
|
str
|
str
.
force_encoding
(
"UTF-8"
)
}.
join
(
"
\n
"
)
}
end
end
end
...
...
mycard.sh
0 → 100755
View file @
fc7b0c7a
#!/bin/sh
echo
'you only need to run from this script once, it will create desktop shortcut automatically after first run.'
echo
-n
"Username: "
read
username
echo
-n
"Password: "
read
password
cd
"
$(
dirname
"
$0
"
)
"
echo
"ygocore:
username: '
$username
'
password: '
$password
'
"
>
config.yml
ruby
-KU
lib/main.rb
\ No newline at end of file
vendor/javascripts/handlebars-1.0.rc.1.js
0 → 100644
View file @
fc7b0c7a
This diff is collapsed.
Click to expand it.
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