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
109f1158
Commit
109f1158
authored
Jun 19, 2023
by
赤子奈落
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new main menu
parent
b136c258
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4655 additions
and
2569 deletions
+4655
-2569
Assets/MD/Scripts/MenuButtonHover.cs
Assets/MD/Scripts/MenuButtonHover.cs
+36
-0
Assets/MD/Scripts/MenuButtonHover.cs.meta
Assets/MD/Scripts/MenuButtonHover.cs.meta
+11
-0
Assets/MD/main.unity
Assets/MD/main.unity
+1964
-1155
Assets/SibylSystem/WindowServantSP.cs
Assets/SibylSystem/WindowServantSP.cs
+2
-1
Assets/transUI/prefab/trans_menu.prefab
Assets/transUI/prefab/trans_menu.prefab
+2641
-1412
Assets/transUI/prefab/trans_menu.prefab.meta
Assets/transUI/prefab/trans_menu.prefab.meta
+1
-1
No files found.
Assets/MD/Scripts/MenuButtonHover.cs
0 → 100644
View file @
109f1158
using
DG.Tweening
;
using
UnityEngine
;
public
class
MenuButtonHover
:
MonoBehaviour
{
Transform
label
;
Transform
label2
;
Transform
description
;
Collider
collider_
;
bool
hover
;
void
Start
()
{
label
=
transform
.
Find
(
"!label"
);
label2
=
transform
.
Find
(
"!label2"
);
description
=
transform
.
Find
(
"!description"
);
collider_
=
GetComponent
<
Collider
>();
}
void
Update
()
{
if
(
Program
.
pointedCollider
==
collider_
&&
!
hover
)
{
description
.
DOLocalMoveX
(
220
,
0.15f
);
label
.
gameObject
.
SetActive
(
false
);
label2
.
gameObject
.
SetActive
(
true
);
hover
=
true
;
}
else
if
(
Program
.
pointedCollider
!=
collider_
&&
hover
)
{
description
.
DOLocalMoveX
(
0
,
0.15f
);
label
.
gameObject
.
SetActive
(
true
);
label2
.
gameObject
.
SetActive
(
false
);
hover
=
false
;
}
}
}
Assets/MD/Scripts/MenuButtonHover.cs.meta
0 → 100644
View file @
109f1158
fileFormatVersion: 2
guid: f01df3cdce5c7554ca87595f15d8d0be
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/MD/main.unity
View file @
109f1158
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Assets/SibylSystem/WindowServantSP.cs
View file @
109f1158
...
...
@@ -85,7 +85,8 @@ public class WindowServantSP : Servant
var
v
=
new
Vector3
();
v
.
x
=
Mathf
.
Clamp
(
Config
.
getFloat
(
"x_"
+
gameObject
.
name
),
-
0.5f
,
0.5f
)
*
Screen
.
width
;
v
.
y
=
Mathf
.
Clamp
(
Config
.
getFloat
(
"y_"
+
gameObject
.
name
),
-
0.5f
,
0.5f
)
*
Screen
.
height
;
gameObject
.
transform
.
localPosition
=
v
;
if
(
gameObject
.
name
!=
"trans_menu"
)
gameObject
.
transform
.
localPosition
=
v
;
var
panelKIller
=
gameObject
.
GetComponent
<
panelKIller
>();
if
(
panelKIller
==
null
)
panelKIller
=
gameObject
.
AddComponent
<
panelKIller
>();
panelKIller
.
ini
();
...
...
Assets/transUI/prefab/trans_menu.prefab
View file @
109f1158
This diff is collapsed.
Click to expand it.
Assets/transUI/prefab/trans_menu.prefab.meta
View file @
109f1158
fileFormatVersion: 2
guid:
4e3c1289cf09fad40bde488731159a6a
guid:
7512a11de2c2af1449714e45670f0482
PrefabImporter:
externalObjects: {}
userData:
...
...
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