Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
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
perfectdicky
YGOProUnity_V2
Commits
e58ccf48
Commit
e58ccf48
authored
Apr 10, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add setting to turn long field off
parent
bb38297d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
479 additions
and
32 deletions
+479
-32
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+1
-1
Assets/SibylSystem/Program.cs
Assets/SibylSystem/Program.cs
+1
-0
Assets/SibylSystem/Setting/Setting.cs
Assets/SibylSystem/Setting/Setting.cs
+13
-4
Assets/transUI/prefab/trans_setting.prefab
Assets/transUI/prefab/trans_setting.prefab
+464
-27
No files found.
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
e58ccf48
...
...
@@ -6648,7 +6648,7 @@ public class Ocgcore : ServantWithCardDescription
//op_m[m].isMinBlockMode = true;
if
(
Program
.
getVerticalTransparency
()
>=
0.5f
)
{
gameField
.
isLong
=
true
;
//这个设定暂时取消
了
gameField
.
isLong
=
Program
.
longField
;
//这个设定恢复(?)
了
}
}
}
...
...
Assets/SibylSystem/Program.cs
View file @
e58ccf48
...
...
@@ -953,6 +953,7 @@ public class Program : MonoBehaviour
public
static
bool
MonsterCloud
=
false
;
public
static
float
fieldSize
=
1
;
public
static
bool
longField
=
false
;
void
OnApplicationQuit
()
{
...
...
Assets/SibylSystem/Setting/Setting.cs
View file @
e58ccf48
...
...
@@ -23,6 +23,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"
));
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"longField_"
).
value
=
UIHelper
.
fromStringToBool
(
Config
.
Get
(
"longField_"
,
"0"
));
if
(
QualitySettings
.
GetQualityLevel
()<
3
)
{
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"high_"
).
value
=
false
;
...
...
@@ -39,11 +40,12 @@ public class Setting : WindowServant2D
UIHelper
.
registEvent
(
gameObject
,
"handmPosition_"
,
save
);
UIHelper
.
registEvent
(
gameObject
,
"spyer_"
,
save
);
UIHelper
.
registEvent
(
gameObject
,
"high_"
,
save
);
UIHelper
.
registEvent
(
gameObject
,
"longField_"
,
onChangeLongField
);
UIHelper
.
registEvent
(
gameObject
,
"size_"
,
onChangeSize
);
UIHelper
.
registEvent
(
gameObject
,
"alpha_"
,
onChangeAlpha
);
//
UIHelper.registEvent(gameObject, "alpha_", onChangeAlpha);
UIHelper
.
registEvent
(
gameObject
,
"vSize_"
,
onChangeVsize
);
sliderSize
=
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"size_"
);
sliderAlpha
=
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"alpha_"
);
//
sliderAlpha = UIHelper.getByName<UISlider>(gameObject, "alpha_");
sliderVsize
=
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"vSize_"
);
Program
.
go
(
2000
,
readVales
);
var
collection
=
gameObject
.
GetComponentsInChildren
<
UIToggle
>();
...
...
@@ -83,7 +85,7 @@ public class Setting : WindowServant2D
setting
.
sliderVolum
.
forceValue
(((
float
)(
int
.
Parse
(
Config
.
Get
(
"vol_"
,
"750"
))))
/
1000f
);
setting
.
sliderSize
.
forceValue
(((
float
)(
int
.
Parse
(
Config
.
Get
(
"size_"
,
"500"
))))
/
1000f
);
setting
.
sliderSizeDrawing
.
forceValue
(((
float
)(
int
.
Parse
(
Config
.
Get
(
"vSize_"
,
"500"
))))
/
1000f
);
setting
.
sliderAlpha
.
forceValue
(((
float
)(
int
.
Parse
(
Config
.
Get
(
"alpha_"
,
"666"
))))
/
1000f
);
//
setting.sliderAlpha.forceValue(((float)(int.Parse(Config.Get("alpha_", "666")))) / 1000f);
onChangeAlpha
();
onChangeSize
();
}
...
...
@@ -172,8 +174,14 @@ public class Setting : WindowServant2D
{
Program
.
transparency
=
1.5f
*
sliderAlpha
.
value
;
}
Program
.
transparency
=
1f
;
}
void
onChangeLongField
()
{
Program
.
longField
=
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"longField_"
).
value
;
onCP
();
}
UISlider
sliderVsize
;
void
onChangeVsize
()
...
...
@@ -231,7 +239,8 @@ public class Setting : WindowServant2D
Config
.
Set
(
"vol_"
,
((
int
)(
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"vol_"
).
value
*
1000
)).
ToString
());
Config
.
Set
(
"size_"
,
((
int
)(
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"size_"
).
value
*
1000
)).
ToString
());
Config
.
Set
(
"vSize_"
,
((
int
)(
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"vSize_"
).
value
*
1000
)).
ToString
());
Config
.
Set
(
"alpha_"
,
((
int
)(
UIHelper
.
getByName
<
UISlider
>(
gameObject
,
"alpha_"
).
value
*
1000
)).
ToString
());
//Config.Set("alpha_", ((int)(UIHelper.getByName<UISlider>(gameObject, "alpha_").value * 1000)).ToString());
Config
.
Set
(
"longField_"
,
UIHelper
.
fromBoolToString
(
UIHelper
.
getByName
<
UIToggle
>(
gameObject
,
"longField_"
).
value
));
var
collection
=
gameObject
.
GetComponentsInChildren
<
UIToggle
>();
for
(
int
i
=
0
;
i
<
collection
.
Length
;
i
++)
{
...
...
Assets/transUI/prefab/trans_setting.prefab
View file @
e58ccf48
This diff is collapsed.
Click to expand it.
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