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
fba9af9e
Commit
fba9af9e
authored
Mar 12, 2019
by
Unicorn369
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change FPS
parent
065f88da
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
537 additions
and
514 deletions
+537
-514
Assets/ArtSystem/Setting/LAZYsetting.cs
Assets/ArtSystem/Setting/LAZYsetting.cs
+1
-0
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+2
-2
Assets/SibylSystem/Setting/Setting.cs
Assets/SibylSystem/Setting/Setting.cs
+8
-14
Assets/transUI/prefab/trans_setting.prefab
Assets/transUI/prefab/trans_setting.prefab
+525
-497
README.md
README.md
+1
-1
No files found.
Assets/ArtSystem/Setting/LAZYsetting.cs
View file @
fba9af9e
...
...
@@ -8,6 +8,7 @@ public class LAZYsetting : MonoBehaviour {
public
UISlider
sliderAlpha
;
public
UIPopupList
showoffATK
;
public
UIPopupList
showoffStar
;
public
UIPopupList
showoffFPS
;
public
UIToggle
mouseEffect
;
public
UIToggle
closeUp
;
public
UIToggle
showoff
;
...
...
Assets/SibylSystem/Program.cs
View file @
fba9af9e
...
...
@@ -1011,10 +1011,10 @@ public class Program : MonoBehaviour
Screen
.
SetResolution
(
1300
,
700
,
false
);
}
QualitySettings
.
vSyncCount
=
0
;
Application
.
targetFrameRate
=
144
;
//
Application.targetFrameRate = 144;
#
elif
UNITY_ANDROID
||
UNITY_IPHONE
//Android、iPhone
Screen
.
SetResolution
(
1280
,
720
,
true
);
Application
.
targetFrameRate
=
-
1
;
//
Application.targetFrameRate = -1;
#
endif
mouseParticle
=
Instantiate
(
new_mouse
);
...
...
Assets/SibylSystem/Setting/Setting.cs
View file @
fba9af9e
...
...
@@ -6,8 +6,6 @@ public class Setting : WindowServant2D
public
LAZYsetting
setting
;
public
bool
batterySaving
;
public
override
void
initialize
()
{
gameObject
=
createWindow
(
this
,
Program
.
I
().
new_ui_setting
);
...
...
@@ -16,8 +14,6 @@ public class Setting : WindowServant2D
UIHelper
.
registEvent
(
gameObject
,
"screen_"
,
resizeScreen
);
UIHelper
.
registEvent
(
gameObject
,
"full_"
,
resizeScreen
);
UIHelper
.
registEvent
(
gameObject
,
"resize_"
,
resizeScreen
);
UIHelper
.
registEvent
(
gameObject
,
"batterySaving"
,
batterySavingMode
);
batterySaving
=
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"batterySaving"
).
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
"batterySaving"
,
"0"
));
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"full_"
).
value
=
Screen
.
fullScreen
;
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"screen_"
).
value
=
Screen
.
width
.
ToString
()
+
"*"
+
Screen
.
height
.
ToString
();
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"ignoreWatcher_"
).
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
"ignoreWatcher_"
,
"0"
));
...
...
@@ -68,8 +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
(
"showoffFPS"
,
"60"
);
UIHelper
.
registEvent
(
setting
.
showoffATK
.
gameObject
,
onchangeClose
);
UIHelper
.
registEvent
(
setting
.
showoffStar
.
gameObject
,
onchangeClose
);
UIHelper
.
registEvent
(
setting
.
showoffFPS
.
gameObject
,
onchangeFPS
);
UIHelper
.
registEvent
(
setting
.
mouseEffect
.
gameObject
,
onchangeMouse
);
UIHelper
.
registEvent
(
setting
.
closeUp
.
gameObject
,
onchangeCloseUp
);
UIHelper
.
registEvent
(
setting
.
cloud
.
gameObject
,
onchangeCloud
);
...
...
@@ -81,18 +79,14 @@ public class Setting : WindowServant2D
onchangeCloud
();
}
private
void
batterySavingMode
()
private
void
onchangeFPS
()
{
if
(
batterySaving
)
{
Application
.
targetFrameRate
=
30
;
}
else
{
if
(
setting
.
showoffFPS
.
value
==
"无限制"
)
{
Application
.
targetFrameRate
=
-
1
;
}
else
{
int
FPS
=
int
.
Parse
(
setting
.
showoffFPS
.
value
);
Application
.
targetFrameRate
=
FPS
;
}
batterySaving
=
!
batterySaving
;
save
();
}
private
void
readVales
()
...
...
@@ -250,12 +244,12 @@ public class Setting : WindowServant2D
}
Config
.
Set
(
"showoffATK"
,
setting
.
showoffATK
.
value
.
ToString
());
Config
.
Set
(
"showoffStar"
,
setting
.
showoffStar
.
value
.
ToString
());
Config
.
Set
(
"showoffFPS"
,
setting
.
showoffFPS
.
value
.
ToString
());
Config
.
Set
(
"resize_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"resize_"
).
value
));
}
public
void
save
()
{
Config
.
Set
(
"batterySaving"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"batterySaving"
).
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
));
...
...
Assets/transUI/prefab/trans_setting.prefab
View file @
fba9af9e
This diff is collapsed.
Click to expand it.
README.md
View file @
fba9af9e
...
...
@@ -16,7 +16,7 @@ The feedbacks is checked every day.
# How to compile the game?
1.
Download Unity 5.6.
6f2
(https://unity3d.com/cn/get-unity/download/archive).
1.
Download Unity 5.6.
7f1
(https://unity3d.com/cn/get-unity/download/archive).
2.
Clone the repository.
...
...
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