Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
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
MyCard
MDPro3
Commits
54035a8e
Commit
54035a8e
authored
Aug 18, 2025
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix duplicate buttons bug
parent
ffb717d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
23 deletions
+24
-23
Assets/Scripts/MDPro3/UI/UIComponents/PlaceSelector.cs
Assets/Scripts/MDPro3/UI/UIComponents/PlaceSelector.cs
+24
-23
No files found.
Assets/Scripts/MDPro3/UI/UIComponents/PlaceSelector.cs
View file @
54035a8e
...
...
@@ -14,24 +14,28 @@ namespace MDPro3.UI
public
List
<
DuelButtonInfo
>
buttons
=
new
List
<
DuelButtonInfo
>();
public
List
<
DuelButton
>
buttonObjs
=
new
List
<
DuelButton
>();
DuelButton
selectButton
;
GameObject
highlight
;
GameObject
select
;
GameObject
selectPush
;
GameObject
selectCard
;
GameObject
selectCardPush
;
GameObject
disable
;
private
DuelButton
selectButton
;
private
GameObject
highlight
;
private
GameObject
select
;
private
GameObject
selectPush
;
private
GameObject
selectCard
;
private
GameObject
selectCardPush
;
private
GameObject
disable
;
public
GameCard
cookieCard
;
bool
hover
;
bool
selecting
;
bool
selected
;
private
bool
hover
;
private
bool
selecting
;
private
bool
selected
;
public
bool
cardSelecting
;
public
bool
cardSelected
;
bool
cardPreselected
;
bool
cardUnselectable
;
private
bool
cardPreselected
;
private
bool
cardUnselectable
;
private
bool
countShowing
;
private
bool
buttonsCreated
=
false
;
private
GameObject
hintObj
;
private
void
Start
()
{
...
...
@@ -119,8 +123,6 @@ namespace MDPro3.UI
}
}
bool
countShowing
;
private
void
Update
()
{
hover
=
false
;
...
...
@@ -157,7 +159,7 @@ namespace MDPro3.UI
highlight
.
SetActive
(
false
);
}
void
OnClick
()
private
void
OnClick
()
{
if
(
selecting
)
{
...
...
@@ -228,7 +230,7 @@ namespace MDPro3.UI
else
{
AudioManager
.
PlaySE
(
"SE_DUEL_SELECT"
);
List
<
GameCard
>
cards
=
new
List
<
GameCard
>
();
List
<
GameCard
>
cards
=
new
();
foreach
(
var
card
in
Program
.
instance
.
ocgcore
.
cards
)
if
((
card
.
p
.
location
&
p
.
location
)
>
0
)
if
(
card
.
p
.
controller
==
p
.
controller
)
...
...
@@ -270,11 +272,13 @@ namespace MDPro3.UI
}
}
bool
buttonsCreated
=
false
;
void
CreateButtons
()
private
void
CreateButtons
()
{
if
(
buttonsCreated
||
Program
.
instance
.
ocgcore
.
returnAction
!=
null
||
buttons
.
Count
==
0
)
{
buttons
.
Clear
();
return
;
}
for
(
int
i
=
0
;
i
<
buttons
.
Count
;
i
++)
{
...
...
@@ -294,7 +298,7 @@ namespace MDPro3.UI
buttonsCreated
=
true
;
}
void
CreateSelectButton
()
private
void
CreateSelectButton
()
{
var
obj
=
Instantiate
(
Program
.
instance
.
ocgcore
.
container
.
duelButton
);
selectButton
=
obj
.
GetComponent
<
DuelButton
>();
...
...
@@ -310,7 +314,6 @@ namespace MDPro3.UI
selectButton
.
Hide
();
}
public
void
ShowButtons
()
{
foreach
(
var
button
in
buttonObjs
)
...
...
@@ -334,7 +337,6 @@ namespace MDPro3.UI
buttonsCreated
=
false
;
}
public
void
StopResponse
()
{
if
(
selecting
)
...
...
@@ -540,7 +542,6 @@ namespace MDPro3.UI
return
null
;
}
GameObject
hintObj
;
public
void
ShowHint
(
uint
location
,
uint
controller
)
{
if
((
location
&
p
.
location
)
>
0
&&
controller
==
p
.
controller
)
...
...
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