Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOMobile
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
fallenstardust
YGOMobile
Commits
68c6d88f
Commit
68c6d88f
authored
Sep 07, 2021
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重做卡片归属显示文本
parent
e43db7f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
...rc/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
+19
-1
mobile/src/main/java/ocgcore/enums/CardOt.java
mobile/src/main/java/ocgcore/enums/CardOt.java
+2
-2
No files found.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardDetail.java
View file @
68c6d88f
...
@@ -45,6 +45,7 @@ import ocgcore.ConfigManager;
...
@@ -45,6 +45,7 @@ import ocgcore.ConfigManager;
import
ocgcore.DataManager
;
import
ocgcore.DataManager
;
import
ocgcore.StringManager
;
import
ocgcore.StringManager
;
import
ocgcore.data.Card
;
import
ocgcore.data.Card
;
import
ocgcore.enums.CardOt
;
import
ocgcore.enums.CardType
;
import
ocgcore.enums.CardType
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_SHARE_FILE
;
import
static
cn
.
garymb
.
ygomobile
.
core
.
IrrlichtBridge
.
ACTION_SHARE_FILE
;
...
@@ -285,6 +286,22 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
...
@@ -285,6 +286,22 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
return
mCardInfo
;
return
mCardInfo
;
}
}
public
String
getOTSString
(
int
ot
)
{
String
str
=
""
;
if
(
ot
==
CardOt
.
OCG
.
ordinal
())
{
str
=
mContext
.
getString
(
R
.
string
.
label_ot_OCG
);
}
else
if
(
ot
==
CardOt
.
TCG
.
ordinal
())
{
str
=
mContext
.
getString
(
R
.
string
.
label_ot_TCG
);
}
else
if
(
ot
==
8
)
{
str
=
mContext
.
getString
(
R
.
string
.
label_ot_SC_OCG
);
}
else
if
(
ot
==
CardOt
.
CUSTOM
.
ordinal
())
{
str
=
mContext
.
getString
(
R
.
string
.
label_ot_CUSTOM
);
}
else
{
str
=
"OCG/TCG"
;
}
return
str
;
}
private
void
setCardInfo
(
Card
cardInfo
,
View
view
)
{
private
void
setCardInfo
(
Card
cardInfo
,
View
view
)
{
if
(
cardInfo
==
null
)
return
;
if
(
cardInfo
==
null
)
return
;
...
@@ -312,7 +329,8 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
...
@@ -312,7 +329,8 @@ public class CardDetail extends BaseAdapterPlus.BaseViewHolder {
type
.
setText
(
CardUtils
.
getAllTypeString
(
cardInfo
,
mStringManager
).
replace
(
"/"
,
"|"
));
type
.
setText
(
CardUtils
.
getAllTypeString
(
cardInfo
,
mStringManager
).
replace
(
"/"
,
"|"
));
attrView
.
setText
(
mStringManager
.
getAttributeString
(
cardInfo
.
Attribute
));
attrView
.
setText
(
mStringManager
.
getAttributeString
(
cardInfo
.
Attribute
));
otView
.
setText
(
mStringManager
.
getOtString
(
cardInfo
.
Ot
,
""
+
cardInfo
.
Ot
));
otView
.
setText
(
getOTSString
(
cardInfo
.
Ot
));
//otView.setText(mStringManager.getOtString(cardInfo.Ot, "" + cardInfo.Ot));//暂时弃用
long
[]
sets
=
cardInfo
.
getSetCode
();
long
[]
sets
=
cardInfo
.
getSetCode
();
setname
.
setText
(
""
);
setname
.
setText
(
""
);
int
index
=
0
;
int
index
=
0
;
...
...
mobile/src/main/java/ocgcore/enums/CardOt.java
View file @
68c6d88f
package
ocgcore.enums
;
package
ocgcore.enums
;
public
enum
CardOt
{
public
enum
CardOt
{
All
,
OCG
,
OCG
,
TCG
,
TCG
,
SC_OCG
,
SC_OCG
,
CUSTOM
,
CUSTOM
,
No_Exclusive
,
OCG_TCG
All
}
}
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