Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-images-generator
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
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
MyCard
ygopro-images-generator
Commits
6e6e77f0
Commit
6e6e77f0
authored
Apr 05, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix, not tested
parent
21e3c976
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
14 deletions
+11
-14
MSEConstants.rb
MSEConstants.rb
+2
-1
MSETranslator.rb
MSETranslator.rb
+1
-7
YgoCoreJudgers.rb
YgoCoreJudgers.rb
+4
-2
locales/ja-JP.yml
locales/ja-JP.yml
+2
-2
locales/zh-CN.yml
locales/zh-CN.yml
+2
-2
No files found.
MSEConstants.rb
View file @
6e6e77f0
...
...
@@ -30,7 +30,7 @@ module MSEConstants
FileConfigName
=
"Chinese-Simplified"
PathImage
=
"Images"
Head
=
"mse version: 0.3.8
\
r\n
game: yugioh
\r\n
stylesheet: standard
\r\n
set info:
\r\n\t
language: %s
\r\n\t
edition:
\r\n\t
ST mark is text: yes
\r\n\t
pendulum image is small: yes
\r\n\t
hide gamecode: yes
\r
\n
"
Head
=
"mse version: 0.3.8
\
n
game: yugioh
\n
stylesheet: standard
\n
set info:
\n\t
language: %s
\n\t
edition:
\n\t
no corner: yes
\t
ST mark is text: yes
\n\t
pendulum image is small: yes
\n\t
hide gamecode: yes
\n
"
End
=
"version control:
\n\t
type: none
\n
apprentice code: "
Width
=
319
...
...
@@ -105,6 +105,7 @@ module MSEConstants
Synchro
=
"synchro monster"
Spell
=
"spell card"
Trap
=
"trap card"
Special
=
{
10000001
=>
"obelisk"
,
10000011
=>
"ra"
,
10000021
=>
"slifer"
}
end
SetFileName
=
"set"
...
...
MSETranslator.rb
View file @
6e6e77f0
...
...
@@ -68,13 +68,7 @@ module MSETranslator
end
def
reline
(
word
)
word
=
word
.
gsub
"
\n\r
"
,
"
\n
"
word
=
word
.
gsub
"
\r\n
"
,
"
\n
"
word
=
word
.
gsub
"
\r
"
,
""
word
=
word
.
gsub
"
\n\n
"
,
"
\n
"
# 这是特别处理。
word
=
word
.
gsub
"。
\n
"
,
"。"
if
Global
.
language
==
"jp"
word
word
.
delete
"
\r\n
"
end
def
generate_text
(
key
,
word
)
...
...
YgoCoreJudgers.rb
View file @
6e6e77f0
...
...
@@ -285,8 +285,10 @@ module YGOCoreJudgers
end
def
get_cardtype_str
(
card
)
if
self
.
is_spell
card
return
MSEConstants
::
MSECardType
::
Spell
if
MSEConstants
::
MSECardType
::
Special
[
self
.
get_id
(
card
)]
return
MSEConstants
::
MSECardType
::
Special
[
self
.
get_id
(
card
)]
elsif
self
.
is_spell
card
return
MSEConstants
::
MSECardType
::
Spell
elsif
self
.
is_trap
card
return
MSEConstants
::
MSECardType
::
Trap
elsif
self
.
is_monster
card
...
...
locales/ja-JP.yml
View file @
6e6e77f0
...
...
@@ -49,6 +49,6 @@ ja-JP:
-
"
幻神獣族"
-
"
創造神族"
-
"
幻竜族"
pendulum_effect_head
:
!ruby/regexp
/【Pスケール:青(.*)/赤(.*)】
(\n)?
/
monster_effect_head
:
!ruby/regexp
/
(\n)?【モンスター効果】\n
/
pendulum_effect_head
:
!ruby/regexp
/【Pスケール:青(.*)/赤(.*)】/
monster_effect_head
:
!ruby/regexp
/
【モンスター効果】
/
mse_language
:
jp
locales/zh-CN.yml
View file @
6e6e77f0
...
...
@@ -49,6 +49,6 @@ zh-CN:
-
"
幻兽神族"
-
"
创世神族"
-
"
幻龙族"
pendulum_effect_head
:
!ruby/regexp
/←\\d 【灵摆】 \\d→
(\\n)?
/
monster_effect_head
:
"
\n
【怪兽效果】
\n
"
pendulum_effect_head
:
!ruby/regexp
/←\\d 【灵摆】 \\d→/
monster_effect_head
:
!ruby/regexp
/【怪兽效果】|【怪兽简介】|【怪兽描述】/
mse_language
:
cn
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