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
赤子奈落
YGOProUnity_V2
Commits
ccb53ca7
Commit
ccb53ca7
authored
Apr 08, 2019
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix displaying infinite time limit
parent
606d0d99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
Assets/ArtSystem/gameInfo/gameInfo.cs
Assets/ArtSystem/gameInfo/gameInfo.cs
+16
-4
No files found.
Assets/ArtSystem/gameInfo/gameInfo.cs
View file @
ccb53ca7
...
@@ -152,7 +152,7 @@ public class gameInfo : MonoBehaviour
...
@@ -152,7 +152,7 @@ public class gameInfo : MonoBehaviour
HashedButtons
.
RemoveAt
(
i
);
HashedButtons
.
RemoveAt
(
i
);
}
}
float
height
=
132
+
50
*
j
;
float
height
=
132
+
50
*
j
;
if
(
j
==
0
)
if
(
j
==
0
)
{
{
height
=
116
;
height
=
116
;
}
}
...
@@ -270,7 +270,7 @@ public class gameInfo : MonoBehaviour
...
@@ -270,7 +270,7 @@ public class gameInfo : MonoBehaviour
void
refreshLine
()
void
refreshLine
()
{
{
int
j
=
0
;
int
j
=
0
;
for
(
int
i
=
0
;
i
<
HashedButtons
.
Count
;
i
++)
for
(
int
i
=
0
;
i
<
HashedButtons
.
Count
;
i
++)
{
{
if
(!
HashedButtons
[
i
].
dying
)
if
(!
HashedButtons
[
i
].
dying
)
...
@@ -330,8 +330,16 @@ public class gameInfo : MonoBehaviour
...
@@ -330,8 +330,16 @@ public class gameInfo : MonoBehaviour
opponent
.
under
.
mainTexture
=
GameTextureManager
.
exBar
;
opponent
.
under
.
mainTexture
=
GameTextureManager
.
exBar
;
me
.
under
.
mainTexture
=
GameTextureManager
.
bar
;
me
.
under
.
mainTexture
=
GameTextureManager
.
bar
;
}
}
me
.
api_timeHint
.
text
=
"paused"
;
if
(
Program
.
I
().
ocgcore
.
timeLimit
==
0
)
opponent
.
api_timeHint
.
text
=
"paused"
;
{
me
.
api_timeHint
.
text
=
"infinite"
;
opponent
.
api_timeHint
.
text
=
"infinite"
;
}
else
{
me
.
api_timeHint
.
text
=
"paused"
;
opponent
.
api_timeHint
.
text
=
"paused"
;
}
}
}
public
bool
amIdanger
()
public
bool
amIdanger
()
...
@@ -341,6 +349,10 @@ public class gameInfo : MonoBehaviour
...
@@ -341,6 +349,10 @@ public class gameInfo : MonoBehaviour
void
setTimeAbsolutely
(
int
player
,
int
t
)
void
setTimeAbsolutely
(
int
player
,
int
t
)
{
{
if
(
Program
.
I
().
ocgcore
.
timeLimit
==
0
)
{
return
;
}
if
(
player
==
0
)
if
(
player
==
0
)
{
{
me
.
api_timeHint
.
text
=
t
.
ToString
()
+
"/"
+
Program
.
I
().
ocgcore
.
timeLimit
.
ToString
();
me
.
api_timeHint
.
text
=
t
.
ToString
()
+
"/"
+
Program
.
I
().
ocgcore
.
timeLimit
.
ToString
();
...
...
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