Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro2
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
mercury233
ygopro2
Commits
b5da0029
Commit
b5da0029
authored
Feb 25, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
096110bd
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
495 additions
and
58 deletions
+495
-58
Assets/ArtSystem/Setting/LAZYsetting.cs
Assets/ArtSystem/Setting/LAZYsetting.cs
+2
-1
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+2
-2
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
+5
-13
Assets/SibylSystem/Setting/Setting.cs
Assets/SibylSystem/Setting/Setting.cs
+16
-10
Assets/transUI/prefab/trans_setting.prefab
Assets/transUI/prefab/trans_setting.prefab
+469
-31
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-1
No files found.
Assets/ArtSystem/Setting/LAZYsetting.cs
View file @
b5da0029
...
...
@@ -12,7 +12,8 @@ public class LAZYsetting : MonoBehaviour {
public
UIToggle
closeUp
;
public
UIToggle
showoff
;
public
UIToggle
showoffWhenActived
;
public
UIToggle
cloud
;
public
UIToggle
cloud
;
public
UIToggle
DownloadImage
;
public
UIToggle
Vbattle
;
public
UIToggle
Vmove
;
public
UIToggle
Vchain
;
...
...
Assets/SibylSystem/Program.cs
View file @
b5da0029
...
...
@@ -459,7 +459,7 @@ public class Program : MonoBehaviour
WWW
w
=
new
WWW
(
"https://api.github.com/repos/szefo09/updateYGOPro2/contents/"
);
while
(!
w
.
isDone
)
{
if
(
Application
.
internetReachability
==
NetworkReachability
.
NotReachable
)
if
(
Application
.
internetReachability
==
NetworkReachability
.
NotReachable
||
!
string
.
IsNullOrEmpty
(
w
.
error
)
)
{
throw
new
Exception
(
"No Internet connection!"
);
}
...
...
@@ -514,7 +514,6 @@ public class Program : MonoBehaviour
}
catch
(
Exception
e
)
{
Debug
.
Log
(
e
.
ToString
());
File
.
Delete
(
"updates/SHAs.txt"
);
}
}
...
...
@@ -1125,6 +1124,7 @@ public class Program : MonoBehaviour
public
static
bool
Running
=
true
;
public
static
bool
MonsterCloud
=
false
;
public
static
bool
DownloadImage
=
false
;
public
static
float
fieldSize
=
1
;
void
OnApplicationQuit
()
...
...
Assets/SibylSystem/ResourceManagers/GameTextureManager.cs
View file @
b5da0029
...
...
@@ -808,25 +808,17 @@ public class GameTextureManager
{
path
=
"picture/cardIn8thEdition/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
#
if
UNITY_ANDROID
||
UNITY_IPHONE
//Android、iPhone
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
&&
Program
.
DownloadImage
)
{
//YGOMobile (177x254)
df
.
Download
(
"http://download.ygopro.win/ygopro/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
#
endif
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
&&
Program
.
DownloadImage
)
{
//YGOPro2 (421x614)
df
.
Download
(
"http://download.ygopro.win/ygopro2/picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
)
&&
pic
.
code
!=
0
)
{
//YGOPro2 pre(336x490)
df
.
Download
(
"http://download.ygopro.win/ygopro2/expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"picture/card/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
//先行卡 (177x254)
df
.
Download
(
"http://download.ygopro.win/ygopro2-data/expansions/pics/"
+
pic
.
code
.
ToString
()
+
".jpg"
,
"picture/cardIn8thEdition/"
+
pic
.
code
.
ToString
()
+
".jpg"
);
path
=
"picture/cardIn8thEdition/"
+
pic
.
code
.
ToString
()
+
".jpg"
;
}
if
(!
File
.
Exists
(
path
))
{
...
...
Assets/SibylSystem/Setting/Setting.cs
View file @
b5da0029
...
...
@@ -24,7 +24,7 @@ public class Setting : WindowServant2D
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"handmPosition_"
).
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
"handmPosition_"
,
"0"
));
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"spyer_"
).
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
"spyer_"
,
"1"
));
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"resize_"
).
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
"resize_"
,
"0"
));
if
(
QualitySettings
.
GetQualityLevel
()
<
3
)
if
(
QualitySettings
.
GetQualityLevel
()
<
3
)
{
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"high_"
).
value
=
false
;
}
...
...
@@ -46,13 +46,13 @@ public class Setting : WindowServant2D
sliderSize
=
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"size_"
);
sliderAlpha
=
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"alpha_"
);
sliderVsize
=
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"vSize_"
);
Program
.
go
(
2000
,
readVales
);
Program
.
go
(
2000
,
readVales
);
var
collection
=
gameObject
.
GetComponentsInChildren
<
UIToggle
>();
for
(
int
i
=
0
;
i
<
collection
.
Length
;
i
++)
{
if
(
collection
[
i
].
name
.
Length
>
0
&&
collection
[
i
].
name
[
0
]
==
'*'
)
{
if
(
collection
[
i
].
name
==
"*mouseParticle"
||
collection
[
i
].
name
==
"*showOff"
||
collection
[
i
].
name
==
"*Efield"
)
if
(
collection
[
i
].
name
==
"*mouseParticle"
||
collection
[
i
].
name
==
"*showOff"
||
collection
[
i
].
name
==
"*Efield"
)
{
collection
[
i
].
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
collection
[
i
].
name
,
"1"
));
}
...
...
@@ -62,13 +62,14 @@ public class Setting : WindowServant2D
}
}
}
setting
.
showoffATK
.
value
=
Config
.
Get
(
"showoffATK"
,
"1800"
);
setting
.
showoffATK
.
value
=
Config
.
Get
(
"showoffATK"
,
"1800"
);
setting
.
showoffStar
.
value
=
Config
.
Get
(
"showoffStar"
,
"5"
);
UIHelper
.
registEvent
(
setting
.
showoffATK
.
gameObject
,
onchangeClose
);
UIHelper
.
registEvent
(
setting
.
showoffStar
.
gameObject
,
onchangeClose
);
UIHelper
.
registEvent
(
setting
.
mouseEffect
.
gameObject
,
onchangeMouse
);
UIHelper
.
registEvent
(
setting
.
closeUp
.
gameObject
,
onchangeCloseUp
);
UIHelper
.
registEvent
(
setting
.
cloud
.
gameObject
,
onchangeCloud
);
UIHelper
.
registEvent
(
setting
.
cloud
.
gameObject
,
onchangeCloud
);
UIHelper
.
registEvent
(
setting
.
DownloadImage
.
gameObject
,
onchangeDownload
);
UIHelper
.
registEvent
(
setting
.
Vpedium
.
gameObject
,
onCP
);
UIHelper
.
registEvent
(
setting
.
Vfield
.
gameObject
,
onCP
);
UIHelper
.
registEvent
(
setting
.
Vlink
.
gameObject
,
onCP
);
...
...
@@ -98,6 +99,11 @@ public class Setting : WindowServant2D
Program
.
MonsterCloud
=
setting
.
cloud
.
value
;
}
public
void
onchangeDownload
()
{
Program
.
DownloadImage
=
setting
.
DownloadImage
.
value
;
}
public
void
onchangeMouse
()
{
Program
.
I
().
mouseParticle
.
SetActive
(
setting
.
mouseEffect
.
value
);
...
...
@@ -115,7 +121,7 @@ public class Setting : WindowServant2D
}
public
void
onchangeCloseUp
()
public
void
onchangeCloseUp
()
{
if
(
setting
.
closeUp
.
value
==
false
)
{
...
...
@@ -177,7 +183,7 @@ public class Setting : WindowServant2D
}
UISlider
sliderSize
;
void
onChangeSize
()
void
onChangeSize
()
{
if
(
sliderSize
!=
null
)
{
...
...
@@ -185,7 +191,7 @@ public class Setting : WindowServant2D
}
}
public
float
vol
()
public
float
vol
()
{
return
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"vol_"
).
value
;
}
...
...
@@ -217,7 +223,7 @@ public class Setting : WindowServant2D
Config
.
Set
(
"vSize_"
,
((
int
)(
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"vSize_"
).
value
*
1000
)).
ToString
());
Config
.
Set
(
"alpha_"
,
((
int
)(
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"alpha_"
).
value
*
1000
)).
ToString
());
var
collection
=
gameObject
.
GetComponentsInChildren
<
UIToggle
>();
for
(
int
i
=
0
;
i
<
collection
.
Length
;
i
++)
for
(
int
i
=
0
;
i
<
collection
.
Length
;
i
++)
{
if
(
collection
[
i
].
name
.
Length
>
0
&&
collection
[
i
].
name
[
0
]
==
'*'
)
{
...
...
@@ -231,7 +237,7 @@ public class Setting : WindowServant2D
public
void
save
()
{
Config
.
Set
(
"ignoreWatcher_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"ignoreWatcher_"
).
value
));
Config
.
Set
(
"ignoreWatcher_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"ignoreWatcher_"
).
value
));
Config
.
Set
(
"ignoreOP_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"ignoreOP_"
).
value
));
Config
.
Set
(
"smartSelect_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"smartSelect_"
).
value
));
Config
.
Set
(
"autoChain_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"autoChain_"
).
value
));
...
...
Assets/transUI/prefab/trans_setting.prefab
View file @
b5da0029
This diff is collapsed.
Click to expand it.
ProjectSettings/ProjectSettings.asset
View file @
b5da0029
...
...
@@ -229,7 +229,7 @@ PlayerSettings:
AndroidSplashScreenScale
:
0
androidSplashScreen
:
{
fileID
:
0
}
AndroidKeystoreName
:
ygopro.jks
AndroidKeyaliasName
:
ygopro
AndroidKeyaliasName
:
AndroidTVCompatibility
:
0
AndroidIsGame
:
0
androidEnableBanner
:
1
...
...
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