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
SK
MDPro3
Commits
6367fe13
Commit
6367fe13
authored
Mar 17, 2026
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert SelectionToggle_AppearanceItem.cs
parent
d42612b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
25 deletions
+15
-25
Assets/Scripts/MDPro3/UI/SelectionButton/SelectionToggle_AppearanceItem.cs
...Pro3/UI/SelectionButton/SelectionToggle_AppearanceItem.cs
+15
-25
No files found.
Assets/Scripts/MDPro3/UI/SelectionButton/SelectionToggle_AppearanceItem.cs
View file @
6367fe13
...
@@ -49,7 +49,6 @@ namespace MDPro3.UI
...
@@ -49,7 +49,6 @@ namespace MDPro3.UI
public
string
description
;
public
string
description
;
public
string
path
;
public
string
path
;
private
bool
loaded
;
private
bool
loaded
;
private
Material
protectorMaterial
;
private
Coroutine
refreshCoroutine
;
private
Coroutine
refreshCoroutine
;
private
Coroutine
hideCoroutine
;
private
Coroutine
hideCoroutine
;
...
@@ -85,16 +84,7 @@ namespace MDPro3.UI
...
@@ -85,16 +84,7 @@ namespace MDPro3.UI
if
(
path
.
StartsWith
(
"Protector"
))
if
(
path
.
StartsWith
(
"Protector"
))
{
{
protectorMaterial
=
await
ABLoader
.
LoadProtectorMaterial
(
itemID
.
ToString
(),
cancellationToken
);
Protector
.
material
=
await
ABLoader
.
LoadProtector
.
material
(
itemID
.
ToString
(),
destroyCancellationToken
);
if
(
protectorMaterial
!=
null
)
protectorMaterial
.
renderQueue
=
3000
;
if
(
cancellationToken
.
IsCancellationRequested
||
this
==
null
)
return
;
// Use default UI material for list rendering so viewport/mask clipping works while scrolling.
Protector
.
texture
=
protectorMaterial
==
null
?
null
:
protectorMaterial
.
mainTexture
;
Protector
.
material
=
null
;
Protector
.
color
=
Color
.
white
;
Protector
.
color
=
Color
.
white
;
Icon
.
gameObject
.
SetActive
(
false
);
Icon
.
gameObject
.
SetActive
(
false
);
}
}
...
@@ -186,7 +176,7 @@ namespace MDPro3.UI
...
@@ -186,7 +176,7 @@ namespace MDPro3.UI
{
{
DeckEditor
.
Deck
.
Protector
=
itemID
;
DeckEditor
.
Deck
.
Protector
=
itemID
;
Program
.
instance
.
deckEditor
.
GetUI
<
DeckEditorUI
>().
DeckView
.
SetDirty
(
true
);
Program
.
instance
.
deckEditor
.
GetUI
<
DeckEditorUI
>().
DeckView
.
SetDirty
(
true
);
Program
.
instance
.
deckEditor
.
GetUI
<
DeckEditorUI
>().
IconProtector
.
material
=
protectorM
aterial
;
Program
.
instance
.
deckEditor
.
GetUI
<
DeckEditorUI
>().
IconProtector
.
material
=
Protector
.
m
aterial
;
}
}
}
}
else
if
(
path
.
StartsWith
(
"FieldIcon"
))
else
if
(
path
.
StartsWith
(
"FieldIcon"
))
...
@@ -259,38 +249,38 @@ namespace MDPro3.UI
...
@@ -259,38 +249,38 @@ namespace MDPro3.UI
if
(
Appearance
.
player
==
"0"
)
if
(
Appearance
.
player
==
"0"
)
{
{
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
Appearance
.
duelProtector0
=
protectorM
aterial
;
Appearance
.
duelProtector0
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
Appearance
.
watchProtector0
=
protectorM
aterial
;
Appearance
.
watchProtector0
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
Appearance
.
replayProtector0
=
protectorM
aterial
;
Appearance
.
replayProtector0
=
Protector
.
m
aterial
;
}
}
else
if
(
Appearance
.
player
==
"1"
)
else
if
(
Appearance
.
player
==
"1"
)
{
{
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
Appearance
.
duelProtector1
=
protectorM
aterial
;
Appearance
.
duelProtector1
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
Appearance
.
watchProtector1
=
protectorM
aterial
;
Appearance
.
watchProtector1
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
Appearance
.
replayProtector1
=
protectorM
aterial
;
Appearance
.
replayProtector1
=
Protector
.
m
aterial
;
}
}
else
if
(
Appearance
.
player
==
"0Tag"
)
else
if
(
Appearance
.
player
==
"0Tag"
)
{
{
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
Appearance
.
duelProtector0Tag
=
protectorM
aterial
;
Appearance
.
duelProtector0Tag
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
Appearance
.
watchProtector0Tag
=
protectorM
aterial
;
Appearance
.
watchProtector0Tag
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
Appearance
.
replayProtector0Tag
=
protectorM
aterial
;
Appearance
.
replayProtector0Tag
=
Protector
.
m
aterial
;
}
}
else
if
(
Appearance
.
player
==
"1Tag"
)
else
if
(
Appearance
.
player
==
"1Tag"
)
{
{
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Duel
)
Appearance
.
duelProtector1Tag
=
protectorM
aterial
;
Appearance
.
duelProtector1Tag
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Watch
)
Appearance
.
watchProtector1Tag
=
protectorM
aterial
;
Appearance
.
watchProtector1Tag
=
Protector
.
m
aterial
;
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
else
if
(
Appearance
.
condition
==
Appearance
.
Condition
.
Replay
)
Appearance
.
replayProtector1Tag
=
protectorM
aterial
;
Appearance
.
replayProtector1Tag
=
Protector
.
m
aterial
;
}
}
}
}
else
else
...
@@ -459,7 +449,7 @@ namespace MDPro3.UI
...
@@ -459,7 +449,7 @@ namespace MDPro3.UI
if
(!
loaded
||
!
path
.
StartsWith
(
"Protector"
))
if
(!
loaded
||
!
path
.
StartsWith
(
"Protector"
))
return
null
;
return
null
;
return
protectorM
aterial
;
return
Protector
.
m
aterial
;
}
}
private
void
PushLoadedPreviewToDetail
()
private
void
PushLoadedPreviewToDetail
()
...
...
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