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
SophiaCup
MDPro2
Commits
3b57ab75
Commit
3b57ab75
authored
Jun 19, 2023
by
赤子奈落
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ui attribute bug
parent
ef3f9b4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Assets/SibylSystem/CardDescription/CardDescription.cs
Assets/SibylSystem/CardDescription/CardDescription.cs
+5
-5
No files found.
Assets/SibylSystem/CardDescription/CardDescription.cs
View file @
3b57ab75
...
@@ -222,7 +222,7 @@ public class CardDescription : Servant
...
@@ -222,7 +222,7 @@ public class CardDescription : Servant
type_name
.
text
=
GameStringHelper
.
GetType
(
card
);
type_name
.
text
=
GameStringHelper
.
GetType
(
card
);
FrameColor
();
FrameColor
();
SetProperty
(
card
,
smallstr
);
SetProperty
(
card
,
smallstr
);
SetAttribute
(
card
,
smallstr
);
SetAttribute
(
card
);
picLoader
.
code
=
card
.
Id
;
picLoader
.
code
=
card
.
Id
;
picLoader
.
defaults
=
def
;
picLoader
.
defaults
=
def
;
...
@@ -230,11 +230,11 @@ public class CardDescription : Servant
...
@@ -230,11 +230,11 @@ public class CardDescription : Servant
shiftCardShower
(
true
);
shiftCardShower
(
true
);
Program
.
go
(
50
,
()
=>
{
shiftCardShower
(
true
);
});
Program
.
go
(
50
,
()
=>
{
shiftCardShower
(
true
);
});
}
}
private
void
SetAttribute
(
Card
data
,
string
secondType
)
private
void
SetAttribute
(
Card
data
)
{
{
if
(
type_name
.
text
.
Contains
(
"魔法"
)
)
if
((
data
.
Type
&
(
uint
)
CardType
.
Spell
)
>
0
)
ai
.
ChangeAttribute
(
"魔法"
);
ai
.
ChangeAttribute
(
"魔法"
);
else
if
(
type_name
.
text
.
Contains
(
"陷阱"
)
)
else
if
(
(
data
.
Type
&
(
uint
)
CardType
.
Trap
)
>
0
)
ai
.
ChangeAttribute
(
"陷阱"
);
ai
.
ChangeAttribute
(
"陷阱"
);
else
if
(
GameStringHelper
.
attribute
(
data
.
Attribute
)
!=
""
)
else
if
(
GameStringHelper
.
attribute
(
data
.
Attribute
)
!=
""
)
ai
.
ChangeAttribute
(
GameStringHelper
.
attribute
(
data
.
Attribute
));
ai
.
ChangeAttribute
(
GameStringHelper
.
attribute
(
data
.
Attribute
));
...
...
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