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
kiggy
MDPro2
Commits
0c195f46
Commit
0c195f46
authored
Jun 18, 2023
by
赤子奈落
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new shortcut function: F4 for switch card description
parent
d4085c3c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
Assets/MD/Scripts/upMode.cs
Assets/MD/Scripts/upMode.cs
+20
-0
Assets/MD/main.unity
Assets/MD/main.unity
+3
-3
Assets/SibylSystem/CardDescription/CardDescription.cs
Assets/SibylSystem/CardDescription/CardDescription.cs
+2
-4
No files found.
Assets/MD/Scripts/upMode.cs
View file @
0c195f46
...
...
@@ -13,6 +13,8 @@ public class upMode : MonoBehaviour
Transform
ui_main_2d
;
Transform
new_toolBar_watchRecord
;
Transform
new_toolBar_watchDuel
;
Transform
chat_
;
Transform
confirmed
;
public
float
timescale
=
1
;
YGOSharp
.
OCGWrapper
.
Enums
.
GameMessage
message
=
YGOSharp
.
OCGWrapper
.
Enums
.
GameMessage
.
Waiting
;
void
Start
()
...
...
@@ -21,11 +23,29 @@ public class upMode : MonoBehaviour
hasChanged
=
false
;
ui_back_ground_2d
=
GameObject
.
Find
(
"ui_back_ground_2d"
).
transform
;
ui_main_2d
=
GameObject
.
Find
(
"ui_main_2d"
).
transform
;
chat_
=
GameObject
.
Find
(
"ui_back_ground_2d"
).
transform
.
Find
(
"new_cardDescriptionRemaster/chat_"
);
confirmed
=
GameObject
.
Find
(
"ui_back_ground_2d"
).
transform
.
Find
(
"new_gameInfoRemaster/confirmed"
);
}
void
Update
()
{
if
(
Input
.
GetKeyUp
(
KeyCode
.
F4
))
{
if
(
Program
.
I
().
cardDescription
.
isShowed
)
{
Program
.
I
().
cardDescription
.
hide
();
chat_
.
GetComponent
<
UILabel
>().
fontSize
=
0
;
confirmed
.
GetComponent
<
UILabel
>().
fontSize
=
0
;
}
else
{
Program
.
I
().
cardDescription
.
show
();
chat_
.
GetComponent
<
UILabel
>().
fontSize
=
20
;
confirmed
.
GetComponent
<
UILabel
>().
fontSize
=
20
;
}
}
if
(
Input
.
GetKeyDown
(
KeyCode
.
F5
))
{
if
(
upmode
)
...
...
Assets/MD/main.unity
View file @
0c195f46
...
...
@@ -11415,15 +11415,15 @@ PrefabInstance:
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
455926
,
guid
:
110e0a191727d5f4f8860ae0957652dd
,
type
:
3
}
propertyPath
:
m_LocalScale.x
value
:
0.002
1459227
value
:
0.002
7359782
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
455926
,
guid
:
110e0a191727d5f4f8860ae0957652dd
,
type
:
3
}
propertyPath
:
m_LocalScale.y
value
:
0.002
1459227
value
:
0.002
7359782
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
455926
,
guid
:
110e0a191727d5f4f8860ae0957652dd
,
type
:
3
}
propertyPath
:
m_LocalScale.z
value
:
0.002
1459227
value
:
0.002
7359782
objectReference
:
{
fileID
:
0
}
-
target
:
{
fileID
:
455926
,
guid
:
110e0a191727d5f4f8860ae0957652dd
,
type
:
3
}
propertyPath
:
m_LocalPosition.x
...
...
Assets/SibylSystem/CardDescription/CardDescription.cs
View file @
0c195f46
...
...
@@ -129,9 +129,7 @@ public class CardDescription : Servant
{
underSprite
.
height
=
Utils
.
UIHeight
()
+
4
;
gameObject
.
transform
.
DOMove
(
Utils
.
UIToWorldPoint
(
new
Vector3
(-
underSprite
.
width
-
20
,
(
float
)
Utils
.
UIHeight
()
/
2
,
0
)),
1.2f
);
Utils
.
UIToWorldPoint
(
new
Vector3
(-
underSprite
.
width
-
20
,
(
float
)
Utils
.
UIHeight
()
/
2
,
0
)),
0.6f
);
setTitle
(
""
);
resizer
.
gameObject
.
GetComponent
<
BoxCollider
>().
enabled
=
false
;
}
...
...
@@ -142,7 +140,7 @@ public class CardDescription : Servant
if
(
gameObject
!=
null
)
{
underSprite
.
height
=
Utils
.
UIHeight
()
+
4
;
gameObject
.
transform
.
DOMove
(
Utils
.
UIToWorldPoint
(
new
Vector3
(-
2
,
(
float
)
Utils
.
UIHeight
()
/
2
,
0
)),
1.2
f
);
gameObject
.
transform
.
DOMove
(
Utils
.
UIToWorldPoint
(
new
Vector3
(-
2
,
(
float
)
Utils
.
UIHeight
()
/
2
,
0
)),
0.6
f
);
resizer
.
gameObject
.
GetComponent
<
BoxCollider
>().
enabled
=
true
;
}
}
...
...
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