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
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
wangbiao
MDPro2
Commits
bceb72c4
Commit
bceb72c4
authored
Jul 20, 2023
by
赤子奈落
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ui (card detail) and fix shortcuts bug
parent
f97d77de
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
204 additions
and
96 deletions
+204
-96
Assets/MD/Scripts/CardDetail.cs
Assets/MD/Scripts/CardDetail.cs
+6
-1
Assets/MD/main.unity
Assets/MD/main.unity
+181
-93
Assets/SibylSystem/Ocgcore/Ocgcore.cs
Assets/SibylSystem/Ocgcore/Ocgcore.cs
+17
-2
No files found.
Assets/MD/Scripts/CardDetail.cs
View file @
bceb72c4
...
...
@@ -8,6 +8,7 @@ public class CardDetail : MonoBehaviour
{
public
UIPanel
Panel
;
public
UITexture
pic
;
public
UI2DSprite
limit
;
public
UILabel
label_name
;
public
UILabel
label_property
;
public
UI2DSprite
icon_property
;
...
...
@@ -57,9 +58,13 @@ public class CardDetail : MonoBehaviour
Panel
.
alpha
=
1f
;
SEHandler
.
PlayInternalAudio
(
"se_sys/SE_DECK_WINDOW_OPEN"
);
pic
.
mainTexture
=
GameTextureManager
.
GetCardPictureNow
(
origin
.
Id
);
limit
.
sprite2D
=
Program
.
I
().
cardDescription
.
li
.
GetComponent
<
UI2DSprite
>().
sprite2D
;
label_name
.
text
=
origin
.
Name
;
label_property
.
text
=
GameStringHelper
.
GetType
(
origin
);
label_type
.
text
=
GameStringHelper
.
GetType
(
origin
);
if
(
GameStringHelper
.
getSetName
(
origin
.
Setcode
)
!=
""
)
label_type
.
text
=
GameStringHelper
.
GetType
(
origin
)
+
""
+
GameStringHelper
.
getSetName
(
origin
.
Setcode
)
+
""
+
""
+
(
origin
.
Alias
==
0
?
origin
.
Id
.
ToString
()
:
origin
.
Alias
.
ToString
())
+
""
;
else
label_type
.
text
=
GameStringHelper
.
GetType
(
origin
)
+
""
+
(
origin
.
Alias
==
0
?
origin
.
Id
.
ToString
()
:
origin
.
Alias
.
ToString
())
+
""
;
if
((
origin
.
Type
&
(
uint
)
CardType
.
Monster
)
>
0
)
{
...
...
Assets/MD/main.unity
View file @
bceb72c4
This diff is collapsed.
Click to expand it.
Assets/SibylSystem/Ocgcore/Ocgcore.cs
View file @
bceb72c4
...
...
@@ -8748,16 +8748,31 @@ public class Ocgcore : ServantWithCardDescription
{
base
.
ES_mouseUpRight
();
if
(
Program
.
I
().
setting
.
isShowed
)
if
(
Program
.
I
().
character
.
isShowed
)
{
Program
.
I
().
character
.
Hide
();
return
;
}
else
if
(
Program
.
I
().
appearance
.
isShowed
)
{
Program
.
I
().
appearance
.
Hide
();
return
;
}
else
if
(
Program
.
I
().
setting
.
isShowed
)
{
Program
.
I
().
setting
.
hide
();
return
;
}
if
(
Program
.
I
().
cardDetail
.
isShowed
)
else
if
(
Program
.
I
().
cardDetail
.
isShowed
)
{
Program
.
I
().
cardDetail
.
Hide
();
return
;
}
else
if
(
Program
.
I
().
cardSelection
.
isShowed
&&
Program
.
I
().
cardSelection
.
exitable
)
{
Program
.
I
().
cardSelection
.
hide
();
return
;
}
if
(
rightExcited
)
if
(
Input
.
GetKey
(
KeyCode
.
S
)
==
false
)
...
...
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