Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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
赤子奈落
MDPro2
Commits
a3468b51
Commit
a3468b51
authored
Jul 18, 2023
by
赤子奈落
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add fps in setting
parent
243b8d25
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
548 additions
and
43 deletions
+548
-43
Assets/MD/main.unity
Assets/MD/main.unity
+534
-42
Assets/SibylSystem/Menu/Menu.cs
Assets/SibylSystem/Menu/Menu.cs
+1
-1
Assets/SibylSystem/Setting/Setting.cs
Assets/SibylSystem/Setting/Setting.cs
+13
-0
No files found.
Assets/MD/main.unity
View file @
a3468b51
This diff is collapsed.
Click to expand it.
Assets/SibylSystem/Menu/Menu.cs
View file @
a3468b51
...
@@ -30,7 +30,7 @@ public class Menu : WindowServantSP
...
@@ -30,7 +30,7 @@ public class Menu : WindowServantSP
UIHelper
.
registEvent
(
gameObject
,
"exit_"
,
onClickExit
);
UIHelper
.
registEvent
(
gameObject
,
"exit_"
,
onClickExit
);
UIHelper
.
registEvent
(
gameObject
,
"animation_"
,
onClickAnimation
);
UIHelper
.
registEvent
(
gameObject
,
"animation_"
,
onClickAnimation
);
//MDPRO2 update
//MDPRO2 update
UIHelper
.
getByName
<
UILabel
>(
gameObject
,
"version_"
).
text
=
"2.0.
1
"
;
UIHelper
.
getByName
<
UILabel
>(
gameObject
,
"version_"
).
text
=
"2.0.
2
"
;
Program
.
I
().
StartCoroutine
(
checkUpdate
());
Program
.
I
().
StartCoroutine
(
checkUpdate
());
}
}
...
...
Assets/SibylSystem/Setting/Setting.cs
View file @
a3468b51
...
@@ -12,6 +12,7 @@ public class Setting : WindowServant2D
...
@@ -12,6 +12,7 @@ public class Setting : WindowServant2D
public
LAZYsetting
setting
;
public
LAZYsetting
setting
;
private
UIPopupList
_screen
;
private
UIPopupList
_screen
;
private
UIPopupList
_aa
;
private
UIPopupList
_aa
;
private
UIPopupList
_fps
;
public
float
bgmVol
;
public
float
bgmVol
;
public
float
seVol
;
public
float
seVol
;
...
@@ -24,10 +25,14 @@ public class Setting : WindowServant2D
...
@@ -24,10 +25,14 @@ public class Setting : WindowServant2D
_screen
=
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"screen_"
);
_screen
=
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"screen_"
);
_aa
=
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"aa_"
);
_aa
=
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"aa_"
);
_aa
.
value
=
Config
.
Get
(
"aa_"
,
"无"
);
_aa
.
value
=
Config
.
Get
(
"aa_"
,
"无"
);
_fps
=
UIHelper
.
getByName
<
UIPopupList
>(
gameObject
,
"fps_"
);
_fps
.
value
=
Config
.
Get
(
"fps_"
,
"60"
);
changeAA
();
changeAA
();
changeFPS
();
UIHelper
.
registEvent
(
gameObject
,
"exit_"
,
onClickExit
);
UIHelper
.
registEvent
(
gameObject
,
"exit_"
,
onClickExit
);
UIHelper
.
registEvent
(
gameObject
,
"screen_"
,
resizeScreen
);
UIHelper
.
registEvent
(
gameObject
,
"screen_"
,
resizeScreen
);
UIHelper
.
registEvent
(
gameObject
,
"aa_"
,
changeAA
);
UIHelper
.
registEvent
(
gameObject
,
"aa_"
,
changeAA
);
UIHelper
.
registEvent
(
gameObject
,
"fps_"
,
changeFPS
);
UIHelper
.
registEvent
(
gameObject
,
"full_"
,
resizeScreen
);
UIHelper
.
registEvent
(
gameObject
,
"full_"
,
resizeScreen
);
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"full_"
).
value
=
Screen
.
fullScreen
;
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"full_"
).
value
=
Screen
.
fullScreen
;
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"ignoreWatcher_"
).
value
=
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"ignoreWatcher_"
).
value
=
...
@@ -101,6 +106,13 @@ public class Setting : WindowServant2D
...
@@ -101,6 +106,13 @@ public class Setting : WindowServant2D
setting
.
field1
.
text
=
Config
.
Get
(
"Field1"
,
"随机"
);
setting
.
field1
.
text
=
Config
.
Get
(
"Field1"
,
"随机"
);
}
}
void
changeFPS
()
{
if
(
_fps
.
value
==
"无限制"
)
Application
.
targetFrameRate
=
-
1
;
else
Application
.
targetFrameRate
=
int
.
Parse
(
_fps
.
value
);
}
void
changeAA
()
void
changeAA
()
{
{
var
cameraData
=
Program
.
I
().
main_camera
.
GetUniversalAdditionalCameraData
();
var
cameraData
=
Program
.
I
().
main_camera
.
GetUniversalAdditionalCameraData
();
...
@@ -300,6 +312,7 @@ public class Setting : WindowServant2D
...
@@ -300,6 +312,7 @@ public class Setting : WindowServant2D
Config
.
Set
(
"showoffStar"
,
setting
.
showoffStar
.
value
);
Config
.
Set
(
"showoffStar"
,
setting
.
showoffStar
.
value
);
Config
.
Set
(
"maximize_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
isMaximized
()));
Config
.
Set
(
"maximize_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
isMaximized
()));
Config
.
Set
(
"aa_"
,
_aa
.
value
);
Config
.
Set
(
"aa_"
,
_aa
.
value
);
Config
.
Set
(
"fps_"
,
_fps
.
value
);
}
}
public
void
save
()
public
void
save
()
...
...
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