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
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
nanahira
ygopro2
Commits
8189014a
Commit
8189014a
authored
Mar 19, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7d11bfde
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
10 deletions
+16
-10
Assets/ArtSystem/Setting/LAZYsetting.cs
Assets/ArtSystem/Setting/LAZYsetting.cs
+1
-1
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+8
-2
Assets/SibylSystem/Setting/Setting.cs
Assets/SibylSystem/Setting/Setting.cs
+5
-5
Assets/transUI/prefab/trans_setting.prefab
Assets/transUI/prefab/trans_setting.prefab
+2
-2
No files found.
Assets/ArtSystem/Setting/LAZYsetting.cs
View file @
8189014a
...
...
@@ -8,7 +8,7 @@ public class LAZYsetting : MonoBehaviour {
public
UISlider
sliderAlpha
;
public
UIPopupList
showoffATK
;
public
UIPopupList
showoffStar
;
public
UIPopupList
showoff
FPS
;
public
UIPopupList
Lim
FPS
;
public
UIToggle
mouseEffect
;
public
UIToggle
closeUp
;
public
UIToggle
showoff
;
...
...
Assets/SibylSystem/Program.cs
View file @
8189014a
...
...
@@ -285,7 +285,9 @@ public class Program : MonoBehaviour
void
initialize
()
{
#if !UNITY_EDITOR && UNITY_ANDROID
AndroidJavaObject
jo
=
new
AndroidJavaObject
(
"cn.unicorn369.library.API"
);
#endif
#if UNITY_EDITOR || UNITY_STANDALONE_WIN //编译器、Windows
//Environment.CurrentDirectory = System.Windows.Forms.Application.StartupPath;
//System.IO.Directory.SetCurrentDirectory(System.Windows.Forms.Application.StartupPath);
...
...
@@ -338,7 +340,11 @@ public class Program : MonoBehaviour
InterString
.
initialize
(
"config"
+
AppLanguage
.
LanguageDir
()
+
"/translation.conf"
);
//System Language
GameTextureManager
.
initialize
();
Config
.
initialize
(
"config/config.conf"
);
GameStringManager
.
initialize
(
"config/strings.conf"
);
//GameStringManager.initialize("config/strings.conf");
if
(
File
.
Exists
(
"config"
+
AppLanguage
.
LanguageDir
()
+
"/strings.conf"
))
{
GameStringManager
.
initialize
(
"config"
+
AppLanguage
.
LanguageDir
()
+
"/strings.conf"
);
}
if
(
File
.
Exists
(
"cdb/strings.conf"
))
{
GameStringManager
.
initialize
(
"cdb/strings.conf"
);
...
...
@@ -393,7 +399,7 @@ public class Program : MonoBehaviour
initializeALLservants
();
loadResources
();
#if UNITY_ANDROID //Android Java Test
#if
!UNITY_EDITOR &&
UNITY_ANDROID //Android Java Test
if
(!
File
.
Exists
(
"updates/image_version1.1.txt"
))
//用于检查更新
{
if
(
File
.
Exists
(
"pics.zip"
))
{
...
...
Assets/SibylSystem/Setting/Setting.cs
View file @
8189014a
...
...
@@ -64,10 +64,10 @@ public class Setting : WindowServant2D
}
setting
.
showoffATK
.
value
=
Config
.
Get
(
"showoffATK"
,
"1800"
);
setting
.
showoffStar
.
value
=
Config
.
Get
(
"showoffStar"
,
"5"
);
setting
.
showoffFPS
.
value
=
Config
.
Get
(
"showoff
FPS"
,
"60"
);
setting
.
LimFPS
.
value
=
Config
.
Get
(
"Lim
FPS"
,
"60"
);
UIHelper
.
registEvent
(
setting
.
showoffATK
.
gameObject
,
onchangeClose
);
UIHelper
.
registEvent
(
setting
.
showoffStar
.
gameObject
,
onchangeClose
);
UIHelper
.
registEvent
(
setting
.
showoff
FPS
.
gameObject
,
onchangeFPS
);
UIHelper
.
registEvent
(
setting
.
Lim
FPS
.
gameObject
,
onchangeFPS
);
UIHelper
.
registEvent
(
setting
.
mouseEffect
.
gameObject
,
onchangeMouse
);
UIHelper
.
registEvent
(
setting
.
closeUp
.
gameObject
,
onchangeCloseUp
);
UIHelper
.
registEvent
(
setting
.
cloud
.
gameObject
,
onchangeCloud
);
...
...
@@ -81,10 +81,10 @@ public class Setting : WindowServant2D
private
void
onchangeFPS
()
{
if
(
setting
.
showoffFPS
.
value
==
"无限制
"
)
{
if
(
setting
.
LimFPS
.
value
==
"Auto
"
)
{
Application
.
targetFrameRate
=
-
1
;
}
else
{
int
FPS
=
int
.
Parse
(
setting
.
showoff
FPS
.
value
);
int
FPS
=
int
.
Parse
(
setting
.
Lim
FPS
.
value
);
Application
.
targetFrameRate
=
FPS
;
}
}
...
...
@@ -244,7 +244,7 @@ public class Setting : WindowServant2D
}
Config
.
Set
(
"showoffATK"
,
setting
.
showoffATK
.
value
.
ToString
());
Config
.
Set
(
"showoffStar"
,
setting
.
showoffStar
.
value
.
ToString
());
Config
.
Set
(
"
showoffFPS"
,
setting
.
showoff
FPS
.
value
.
ToString
());
Config
.
Set
(
"
LimFPS"
,
setting
.
Lim
FPS
.
value
.
ToString
());
Config
.
Set
(
"resize_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"resize_"
).
value
));
}
...
...
Assets/transUI/prefab/trans_setting.prefab
View file @
8189014a
...
...
@@ -9980,7 +9980,7 @@ MonoBehaviour:
sliderAlpha: {fileID: 11468830}
showoffATK: {fileID: 11465400}
showoffStar: {fileID: 114122206682793576}
showoff
FPS: {fileID: 11461176}
Lim
FPS: {fileID: 11461176}
mouseEffect: {fileID: 11460026}
closeUp: {fileID: 11451290}
showoff: {fileID: 11470560}
...
...
@@ -13744,7 +13744,7 @@ MonoBehaviour:
- 40
- 50
- 60
-
"\u65E0\u9650\u5236"
-
Auto
padding: {x: 4, y: 4}
textColor: {r: 1, g: 1, b: 1, a: 1}
backgroundColor: {r: 0, g: 0, b: 0, a: 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