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
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
MyCard
YGOProUnity_V2
Commits
80bf187a
Commit
80bf187a
authored
Nov 29, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
part fix popup list (select banlist)
parent
5bd85214
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Assets/NGUI/Scripts/Interaction/UIPopupList.cs
Assets/NGUI/Scripts/Interaction/UIPopupList.cs
+6
-3
No files found.
Assets/NGUI/Scripts/Interaction/UIPopupList.cs
View file @
80bf187a
...
@@ -202,6 +202,7 @@ public class UIPopupList : UIWidgetContainer
...
@@ -202,6 +202,7 @@ public class UIPopupList : UIWidgetContainer
[
System
.
NonSerialized
]
protected
GameObject
mSelection
;
[
System
.
NonSerialized
]
protected
GameObject
mSelection
;
[
System
.
NonSerialized
]
protected
int
mOpenFrame
=
0
;
[
System
.
NonSerialized
]
protected
int
mOpenFrame
=
0
;
[
System
.
NonSerialized
]
protected
float
mInitialY
=
0f
;
// Deprecated functionality
// Deprecated functionality
[
HideInInspector
][
SerializeField
]
GameObject
eventReceiver
;
[
HideInInspector
][
SerializeField
]
GameObject
eventReceiver
;
...
@@ -1095,6 +1096,7 @@ public class UIPopupList : UIWidgetContainer
...
@@ -1095,6 +1096,7 @@ public class UIPopupList : UIWidgetContainer
pos
.
x
=
Mathf
.
Round
(
pos
.
x
);
pos
.
x
=
Mathf
.
Round
(
pos
.
x
);
pos
.
y
=
Mathf
.
Round
(
pos
.
y
);
pos
.
y
=
Mathf
.
Round
(
pos
.
y
);
t
.
localPosition
=
pos
;
t
.
localPosition
=
pos
;
mInitialY
=
pos
.
y
;
}
}
else
OnSelect
(
false
);
else
OnSelect
(
false
);
if
(
mChild
!=
null
)
if
(
mChild
!=
null
)
...
@@ -1138,7 +1140,8 @@ public class UIPopupList : UIWidgetContainer
...
@@ -1138,7 +1140,8 @@ public class UIPopupList : UIWidgetContainer
}
}
else
else
{
{
float
whole
=
items
.
Count
*
20
;
//float labelHeight = activeFontSize * activeFontScale;
//float whole = (labelHeight + padding.y) * items.Count + mBgBorder;
float
l
=
delta
*
100f
;
float
l
=
delta
*
100f
;
if
(
go
.
layer
==
Program
.
I
().
ui_windows_2d
.
layer
)
if
(
go
.
layer
==
Program
.
I
().
ui_windows_2d
.
layer
)
{
{
...
@@ -1172,9 +1175,9 @@ public class UIPopupList : UIWidgetContainer
...
@@ -1172,9 +1175,9 @@ public class UIPopupList : UIWidgetContainer
a
.
y
+=
l
;
a
.
y
+=
l
;
a
.
z
=
0
;
a
.
z
=
0
;
timeScroller
=
Program
.
TimePassed
();
timeScroller
=
Program
.
TimePassed
();
if
(
a
.
y
>
whole
)
if
(
a
.
y
>
mInitialY
)
{
{
a
.
y
=
whole
;
a
.
y
=
mInitialY
;
}
}
if
(
a
.
y
<
0
)
if
(
a
.
y
<
0
)
{
{
...
...
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