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
11e478d9
Commit
11e478d9
authored
Jun 08, 2023
by
wangfugui
Committed by
GitHub
Jun 08, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fallenstardust:master' into master
parents
d271c03a
ea1b7f39
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
78 additions
and
47 deletions
+78
-47
Classes/gframe/game.cpp
Classes/gframe/game.cpp
+11
-9
mobile/assets/changelog.html
mobile/assets/changelog.html
+11
-9
mobile/assets/data/conf/strings.conf
mobile/assets/data/conf/strings.conf
+9
-3
mobile/assets/en/data/conf/strings.conf
mobile/assets/en/data/conf/strings.conf
+12
-5
mobile/assets/kor/data/conf/strings.conf
mobile/assets/kor/data/conf/strings.conf
+4
-0
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
+2
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardSearchFragment.java
...java/cn/garymb/ygomobile/ui/cards/CardSearchFragment.java
+6
-4
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
...ava/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
+11
-9
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
+11
-3
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
+0
-0
No files found.
Classes/gframe/game.cpp
View file @
11e478d9
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include <COGLESDriver.h>
#include <COGLESDriver.h>
#endif
#endif
const
unsigned
short
PRO_VERSION
=
0x13
54
;
const
unsigned
short
PRO_VERSION
=
0x13
60
;
namespace
ygo
{
namespace
ygo
{
...
@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
...
@@ -207,6 +207,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
driver
->
setTextureCreationFlag
(
irr
::
video
::
ETCF_OPTIMIZED_FOR_QUALITY
,
true
);
driver
->
setTextureCreationFlag
(
irr
::
video
::
ETCF_OPTIMIZED_FOR_QUALITY
,
true
);
imageManager
.
SetDevice
(
device
);
imageManager
.
SetDevice
(
device
);
imageManager
.
ClearTexture
();
if
(
!
imageManager
.
Initial
(
workingDir
))
if
(
!
imageManager
.
Initial
(
workingDir
))
return
false
;
return
false
;
// LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles
// LoadExpansions only load zips, the other cdb databases are still loaded by getDBFiles
...
@@ -809,7 +810,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
...
@@ -809,7 +810,7 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
chkAttribute
[
i
]
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
((
50
+
(
i
%
4
)
*
80
)
*
xScale
,
(
60
+
(
i
/
4
)
*
55
)
*
yScale
,
(
130
+
(
i
%
4
)
*
80
)
*
xScale
,
(
90
+
(
i
/
4
)
*
55
)
*
yScale
),
chkAttribute
[
i
]
=
env
->
addCheckBox
(
false
,
rect
<
s32
>
((
50
+
(
i
%
4
)
*
80
)
*
xScale
,
(
60
+
(
i
/
4
)
*
55
)
*
yScale
,
(
130
+
(
i
%
4
)
*
80
)
*
xScale
,
(
90
+
(
i
/
4
)
*
55
)
*
yScale
),
wANAttribute
,
CHECK_ATTRIBUTE
,
dataManager
.
FormatAttribute
(
filter
));
wANAttribute
,
CHECK_ATTRIBUTE
,
dataManager
.
FormatAttribute
(
filter
));
//announce race
//announce race
wANRace
=
env
->
addWindow
(
rect
<
s32
>
(
500
*
xScale
,
50
*
yScale
,
800
*
xScale
,
55
0
*
yScale
),
false
,
dataManager
.
GetSysString
(
563
));
wANRace
=
env
->
addWindow
(
rect
<
s32
>
(
500
*
xScale
,
40
*
yScale
,
800
*
xScale
,
56
0
*
yScale
),
false
,
dataManager
.
GetSysString
(
563
));
wANRace
->
getCloseButton
()
->
setVisible
(
false
);
wANRace
->
getCloseButton
()
->
setVisible
(
false
);
wANRace
->
setVisible
(
false
);
wANRace
->
setVisible
(
false
);
ChangeToIGUIImageWindow
(
wANRace
,
&
bgANRace
,
imageManager
.
tDialog_S
);
ChangeToIGUIImageWindow
(
wANRace
,
&
bgANRace
,
imageManager
.
tDialog_S
);
...
@@ -1016,15 +1017,16 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
...
@@ -1016,15 +1017,16 @@ bool Game::Initialize(ANDROID_APP app, android::InitOptions *options) {
btnClearFilter
=
env
->
addButton
(
rect
<
s32
>
(
205
*
xScale
,
(
80
+
125
/
6
)
*
yScale
,
255
*
xScale
,
(
100
+
125
/
6
)
*
yScale
),
wFilter
,
BUTTON_CLEAR_FILTER
,
dataManager
.
GetSysString
(
1304
));
btnClearFilter
=
env
->
addButton
(
rect
<
s32
>
(
205
*
xScale
,
(
80
+
125
/
6
)
*
yScale
,
255
*
xScale
,
(
100
+
125
/
6
)
*
yScale
),
wFilter
,
BUTTON_CLEAR_FILTER
,
dataManager
.
GetSysString
(
1304
));
ChangeToIGUIImageButton
(
btnClearFilter
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
ChangeToIGUIImageButton
(
btnClearFilter
,
imageManager
.
tButton_S
,
imageManager
.
tButton_S_pressed
);
}
}
wCategories
=
env
->
addWindow
(
rect
<
s32
>
(
6
30
*
xScale
,
60
*
yScale
,
1000
*
xScale
,
27
0
*
yScale
),
false
,
L""
);
wCategories
=
env
->
addWindow
(
rect
<
s32
>
(
6
00
*
xScale
,
60
*
yScale
,
1000
*
xScale
,
44
0
*
yScale
),
false
,
L""
);
wCategories
->
getCloseButton
()
->
setVisible
(
false
);
wCategories
->
getCloseButton
()
->
setVisible
(
false
);
wCategories
->
setDrawTitlebar
(
false
);
wCategories
->
setDrawTitlebar
(
false
);
wCategories
->
setDraggable
(
false
);
wCategories
->
setDraggable
(
false
);
wCategories
->
setVisible
(
false
);
wCategories
->
setVisible
(
false
);
ChangeToIGUIImageWindow
(
wCategories
,
&
bgCategories
,
imageManager
.
tDialog_L
);
ChangeToIGUIImageWindow
(
wCategories
,
&
bgCategories
,
imageManager
.
tWindow_V
);
btnCategoryOK
=
env
->
addButton
(
rect
<
s32
>
(
135
*
xScale
,
175
*
yScale
,
235
*
xScale
,
200
*
yScale
),
wCategories
,
BUTTON_CATEGORY_OK
,
dataManager
.
GetSysString
(
1211
));
btnCategoryOK
=
env
->
addButton
(
rect
<
s32
>
(
135
*
xScale
,
340
*
yScale
,
235
*
xScale
,
370
*
yScale
),
wCategories
,
BUTTON_CATEGORY_OK
,
dataManager
.
GetSysString
(
1211
));
for
(
int
i
=
0
;
i
<
32
;
++
i
)
ChangeToIGUIImageButton
(
btnCategoryOK
,
imageManager
.
tButton_L
,
imageManager
.
tButton_L_pressed
);
chkCategory
[
i
]
=
env
->
addCheckBox
(
false
,
recti
((
10
+
(
i
%
4
)
*
90
)
*
xScale
,
(
10
+
(
i
/
4
)
*
20
)
*
yScale
,
(
100
+
(
i
%
4
)
*
90
)
*
xScale
,
(
40
+
(
i
/
4
)
*
20
)
*
yScale
),
wCategories
,
-
1
,
dataManager
.
GetSysString
(
1100
+
i
));
for
(
int
i
=
0
;
i
<
32
;
++
i
)
chkCategory
[
i
]
=
env
->
addCheckBox
(
false
,
recti
((
20
+
(
i
%
4
)
*
90
)
*
xScale
,
(
10
+
(
i
/
4
)
*
40
)
*
yScale
,
(
120
+
(
i
%
4
)
*
90
)
*
xScale
,
(
40
+
(
i
/
4
)
*
40
)
*
yScale
),
wCategories
,
-
1
,
dataManager
.
GetSysString
(
1100
+
i
));
scrFilter
=
env
->
addScrollBar
(
false
,
recti
(
980
*
xScale
,
159
*
yScale
,
1020
*
xScale
,
629
*
yScale
),
0
,
SCROLL_FILTER
);
scrFilter
=
env
->
addScrollBar
(
false
,
recti
(
980
*
xScale
,
159
*
yScale
,
1020
*
xScale
,
629
*
yScale
),
0
,
SCROLL_FILTER
);
scrFilter
->
setLargeStep
(
10
);
scrFilter
->
setLargeStep
(
10
);
scrFilter
->
setSmallStep
(
1
);
scrFilter
->
setSmallStep
(
1
);
...
@@ -1812,7 +1814,7 @@ void Game::SaveConfig() {
...
@@ -1812,7 +1814,7 @@ void Game::SaveConfig() {
gameConf
.
chkDefaultShowChain
=
chkDefaultShowChain
->
isChecked
()
?
1
:
0
;
gameConf
.
chkDefaultShowChain
=
chkDefaultShowChain
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"chkDefaultShowChain"
,
gameConf
.
chkDefaultShowChain
);
android
::
saveIntSetting
(
appMain
,
"chkDefaultShowChain"
,
gameConf
.
chkDefaultShowChain
);
gameConf
.
hide_player_name
=
chkHidePlayerName
->
isChecked
()
?
1
:
0
;
gameConf
.
hide_player_name
=
chkHidePlayerName
->
isChecked
()
?
1
:
0
;
android
::
saveIntSetting
(
appMain
,
"chkHidePlayerName"
,
gameConf
.
chkDefaultShowChain
);
android
::
saveIntSetting
(
appMain
,
"chkHidePlayerName"
,
gameConf
.
hide_player_name
);
//gameConf.control_mode = control_mode->isChecked()?1:0;
//gameConf.control_mode = control_mode->isChecked()?1:0;
// android::saveIntSetting(appMain, "control_mode", gameConf.control_mode);
// android::saveIntSetting(appMain, "control_mode", gameConf.control_mode);
}
}
...
@@ -2091,4 +2093,4 @@ void Game::OnGameClose() {
...
@@ -2091,4 +2093,4 @@ void Game::OnGameClose() {
android
::
onGameExit
(
appMain
);
android
::
onGameExit
(
appMain
);
this
->
device
->
closeDevice
();
this
->
device
->
closeDevice
();
}
}
}
}
\ No newline at end of file
mobile/assets/changelog.html
View file @
11e478d9
...
@@ -16,20 +16,22 @@
...
@@ -16,20 +16,22 @@
特别感谢: 尸体233,废话多,大毛, zhuhongbo, JSY1728, 幻兽L 等的支持与努力.
特别感谢: 尸体233,废话多,大毛, zhuhongbo, JSY1728, 幻兽L 等的支持与努力.
</pre>
</pre>
<ul>
<ul>
<li
style=
"color:#ffff00"
>
3.1
0.9
</li>
<li
style=
"color:#ffff00"
>
3.1
1.0
</li>
</ul>
</ul>
<pre>
<pre>
更新:
更新:
1.更新ygopro内核;
1.更新ygopro内核;
2.新卡
T1112+MAZE+VX03+DBWS
+VJ等;
2.新卡
1201+T1112
+VJ等;
3.
2023.4OCG禁卡表
;
3.
内置卡图分辨率提高到200x290
;
4.
放大文字和
微调部分UI;
4.微调部分UI;
5.
新增人机卡组:救祓少女
;
5.
增加幻想魔族
;
6.
新增残局;
6.
ygopro版本号1036.0
变更:
变更:
1.修正没有卡组或者一些场景无法读取卡组时时打开卡组编辑错误退出的问题;
1.修正启动ygopro后竖屏界面卡片详情图片不加载的问题;
2.从ygopro退出后切换到卡组编辑将重新加载最后使用的卡组;
2.加速动画单独增加按钮;
3.修正卡包展示中先行卡展示卡堆统计数量错误的问题;
3.修正收藏夹被清空时异常问题;
4.为新安装用户添加2333约战服;
5.为新安装用户默认开启拓展卡包;
</pre>
</pre>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<h3
style=
"color:#ff0000"
>
注意
</h3>
<pre>
<pre>
...
...
mobile/assets/data/conf/strings.conf
View file @
11e478d9
...
@@ -690,7 +690,7 @@
...
@@ -690,7 +690,7 @@
!
setname
0
x16
机人 ロイド
!
setname
0
x16
机人 ロイド
!
setname
0
x1016
交通机人 ビークロイド
!
setname
0
x1016
交通机人 ビークロイド
!
setname
0
x2016
疾行机人 スピードロイド
!
setname
0
x2016
疾行机人 スピードロイド
#
!setname 0x17 同调 シンクロ
!
setname
0
x17
同调 シンクロ
!
setname
0
x1017
同调士 シンクロン
!
setname
0
x1017
同调士 シンクロン
!
setname
0
x2017
同调龙 シンクロ・ドラゴン
!
setname
0
x2017
同调龙 シンクロ・ドラゴン
!
setname
0
x18
云魔物 雲魔物
!
setname
0
x18
云魔物 雲魔物
...
@@ -703,7 +703,8 @@
...
@@ -703,7 +703,8 @@
!
setname
0
x1e
茧状体
C
(コクーン)
!
setname
0
x1e
茧状体
C
(コクーン)
!
setname
0
x1f
新空间侠
N
(ネオスペーシアン)
!
setname
0
x1f
新空间侠
N
(ネオスペーシアン)
!
setname
0
x20
紫炎 紫炎
!
setname
0
x20
紫炎 紫炎
!
setname
0
x21
地缚神 地縛神
!
setname
0
x21
地缚 地縛
!
setname
0
x1021
地缚神 地縛神
!
setname
0
x22
朱罗纪 ジュラック
!
setname
0
x22
朱罗纪 ジュラック
!
setname
0
x23
罪
Sin
!
setname
0
x23
罪
Sin
!
setname
0
x24
废铁 スクラップ
!
setname
0
x24
废铁 スクラップ
...
@@ -823,6 +824,7 @@
...
@@ -823,6 +824,7 @@
!
setname
0
x107a
圣骑士 聖騎士(せいきし)
!
setname
0
x107a
圣骑士 聖騎士(せいきし)
!
setname
0
x207a
圣剑 聖剣(せいけん)
!
setname
0
x207a
圣剑 聖剣(せいけん)
!
setname
0
x507a
焰圣骑士 焔聖騎士
!
setname
0
x507a
焰圣骑士 焔聖騎士
!
setname
0
x607a
焰圣剑 焔聖剣
!
setname
0
x7b
银河 ギャラクシー
!
setname
0
x7b
银河 ギャラクシー
!
setname
0
x107b
银河眼 ギャラクシーアイズ
!
setname
0
x107b
银河眼 ギャラクシーアイズ
!
setname
0
x307b
银河眼时空龙 ギャラクシーアイズ・タキオン・ドラゴン
!
setname
0
x307b
银河眼时空龙 ギャラクシーアイズ・タキオン・ドラゴン
...
@@ -841,7 +843,9 @@
...
@@ -841,7 +843,9 @@
!
setname
0
x82
怒怒怒 ドドド
!
setname
0
x82
怒怒怒 ドドド
!
setname
0
x83
人偶 パペット
!
setname
0
x83
人偶 パペット
!
setname
0
x1083
机关傀儡 ギミック・パペット
!
setname
0
x1083
机关傀儡 ギミック・パペット
!
setname
0
x84
燃烧拳击手
BK
(バーニングナックラー)
#setname 0x84 燃烧拳 バーニングナック
!
setname
0
x1084
燃烧拳击手
BK
(バーニングナックラー)
!
setname
0
x2084
燃烧拳 バーニングナックル
!
setname
0
x85
超级防卫机器人
SD
ロボ
!
setname
0
x85
超级防卫机器人
SD
ロボ
!
setname
0
x86
光天使
!
setname
0
x86
光天使
!
setname
0
x87
阴影 アンブラル
!
setname
0
x87
阴影 アンブラル
...
@@ -1176,3 +1180,5 @@
...
@@ -1176,3 +1180,5 @@
!
setname
0
x195
征服斗魂
VS
(ヴァンキッシュ・ソウル)
!
setname
0
x195
征服斗魂
VS
(ヴァンキッシュ・ソウル)
!
setname
0
x196
新式魔厨 ヌーベルズ
!
setname
0
x196
新式魔厨 ヌーベルズ
!
setname
0
x197
食谱 レシピ
!
setname
0
x197
食谱 レシピ
!
setname
0
x198
维萨斯 ヴィサス
!
setname
0
x199
反击 カウンター
mobile/assets/en/data/conf/strings.conf
View file @
11e478d9
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
!
system
1042
Creator
God
!
system
1042
Creator
God
!
system
1043
Wyrm
!
system
1043
Wyrm
!
system
1044
Cyberse
!
system
1044
Cyberse
!
system
1045
Illusion
ist
!
system
1045
Illusion
!
system
1050
Monster
!
system
1050
Monster
!
system
1051
Spell
!
system
1051
Spell
!
system
1052
Trap
!
system
1052
Trap
...
@@ -336,6 +336,7 @@
...
@@ -336,6 +336,7 @@
!
system
1283
Drawing
field
spell
!
system
1283
Drawing
field
spell
!
system
1287
Show
Chain
1
!
system
1287
Show
Chain
1
!
system
1288
Ban
List
!
system
1288
Ban
List
!
system
1289
Hide
nickname
!
system
1290
Disable
Chatting
!
system
1290
Disable
Chatting
!
system
1291
Mute
spectators
!
system
1291
Mute
spectators
!
system
1292
Ignore
chain
!
system
1292
Ignore
chain
...
@@ -699,7 +700,8 @@
...
@@ -699,7 +700,8 @@
!
setname
0
x1e
Chrysalis
!
setname
0
x1e
Chrysalis
!
setname
0
x1f
Neo
-
Spacian
!
setname
0
x1f
Neo
-
Spacian
!
setname
0
x20
Shien
!
setname
0
x20
Shien
!
setname
0
x21
Earthbound
Immortal
!
setname
0
x21
Earthbound
!
setname
0
x1021
Earthbound
Immortal
!
setname
0
x22
Jurrac
!
setname
0
x22
Jurrac
!
setname
0
x23
Malefic
!
setname
0
x23
Malefic
!
setname
0
x24
Scrap
!
setname
0
x24
Scrap
...
@@ -814,10 +816,11 @@
...
@@ -814,10 +816,11 @@
!
setname
0
x77
Atlantean
!
setname
0
x77
Atlantean
!
setname
0
x78
Nimble
!
setname
0
x78
Nimble
!
setname
0
x79
Fire
Fist
!
setname
0
x79
Fire
Fist
!
setname
0
x7a
Ignoble
Knight
#setname 0x7a Noble
!
setname
0
x107a
Noble
Knight
!
setname
0
x107a
Noble
Knight
!
setname
0
x207a
Noble
Arms
!
setname
0
x207a
Noble
Arms
!
setname
0
x507a
Infernoble
Knight
!
setname
0
x507a
Infernoble
Knight
!
setname
0
x607a
Infernoble
Arms
!
setname
0
x7b
Galaxy
!
setname
0
x7b
Galaxy
!
setname
0
x107b
Galaxy
-
Eyes
!
setname
0
x107b
Galaxy
-
Eyes
!
setname
0
x307b
Galaxy
-
Eyes
Tachyon
!
setname
0
x307b
Galaxy
-
Eyes
Tachyon
...
@@ -836,7 +839,9 @@
...
@@ -836,7 +839,9 @@
!
setname
0
x82
Dododo
!
setname
0
x82
Dododo
!
setname
0
x83
Puppet
!
setname
0
x83
Puppet
!
setname
0
x1083
Gimmick
Puppet
!
setname
0
x1083
Gimmick
Puppet
!
setname
0
x84
Battlin
'
Boxer
#setname 0x84 Battlin' Box
!
setname
0
x1084
Battlin
'
Boxer
!
setname
0
x2084
Battlin
'
Boxing
!
setname
0
x85
Super
-
Defense
!
setname
0
x85
Super
-
Defense
!
setname
0
x86
Star
Seraph
!
setname
0
x86
Star
Seraph
!
setname
0
x87
Umbrals
!
setname
0
x87
Umbrals
...
@@ -1167,4 +1172,6 @@
...
@@ -1167,4 +1172,6 @@
!
setname
0
x194
Favorite
!
setname
0
x194
Favorite
!
setname
0
x195
Vanquish
Soul
!
setname
0
x195
Vanquish
Soul
!
setname
0
x196
Nouvellez
!
setname
0
x196
Nouvellez
!
setname
0
x197
Recipe
!
setname
0
x197
Recipe
\ No newline at end of file
!
setname
0
x198
Visas
!
setname
0
x199
Counter
\ No newline at end of file
mobile/assets/kor/data/conf/strings.conf
View file @
11e478d9
...
@@ -336,6 +336,7 @@
...
@@ -336,6 +336,7 @@
!
system
1283
필드 마법 그리기
!
system
1283
필드 마법 그리기
!
system
1287
체인
1
만 애니메이션 표시
!
system
1287
체인
1
만 애니메이션 표시
!
system
1288
금지/제한
!
system
1288
금지/제한
!
system
1289
플레이어 닉네임 숨기기
!
system
1290
상대 메시지 무시
!
system
1290
상대 메시지 무시
!
system
1291
관전자 메시지 무시
!
system
1291
관전자 메시지 무시
!
system
1292
체인:
OFF
!
system
1292
체인:
OFF
...
@@ -1120,6 +1121,7 @@
...
@@ -1120,6 +1121,7 @@
!
setname
0
x160
머티리어크톨
!
setname
0
x160
머티리어크톨
!
setname
0
x161
명세계
!
setname
0
x161
명세계
!
setname
0
x162
도레미코드
!
setname
0
x162
도레미코드
!
setname
0
x1162
그랜도레미코드
!
setname
0
x163
베어루크티
!
setname
0
x163
베어루크티
!
setname
0
x164
데스피아
!
setname
0
x164
데스피아
!
setname
0
x165
마건
!
setname
0
x165
마건
...
@@ -1177,3 +1179,5 @@
...
@@ -1177,3 +1179,5 @@
!
setname
0
x195
VS
(뱅퀴시 소울)
!
setname
0
x195
VS
(뱅퀴시 소울)
!
setname
0
x196
누밸즈
!
setname
0
x196
누밸즈
!
setname
0
x197
요리법
!
setname
0
x197
요리법
!
setname
0
x198
비서스
!
setname
0
x199
카운터
mobile/build.gradle
View file @
11e478d9
...
@@ -9,7 +9,7 @@ android {
...
@@ -9,7 +9,7 @@ android {
minSdkVersion
21
minSdkVersion
21
//noinspection ExpiredTargetSdkVersion
//noinspection ExpiredTargetSdkVersion
targetSdkVersion
29
targetSdkVersion
29
versionCode
31100094
6
versionCode
31100094
7
versionName
"3.11.0"
versionName
"3.11.0"
flavorDimensions
"versionCode"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
...
...
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
View file @
11e478d9
This diff is collapsed.
Click to expand it.
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/CardSearchFragment.java
View file @
11e478d9
...
@@ -53,6 +53,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
...
@@ -53,6 +53,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
long
exitLasttime
=
0
;
long
exitLasttime
=
0
;
private
HomeActivity
activity
;
private
HomeActivity
activity
;
protected
CardLoader
mCardLoader
;
protected
DrawerLayout
mDrawerlayout
;
protected
DrawerLayout
mDrawerlayout
;
protected
CardSearcher
mCardSelector
;
protected
CardSearcher
mCardSelector
;
protected
CardListAdapter
mCardListAdapter
;
protected
CardListAdapter
mCardListAdapter
;
...
@@ -90,15 +91,16 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
...
@@ -90,15 +91,16 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
mListView
.
setAdapter
(
mCardListAdapter
);
mListView
.
setAdapter
(
mCardListAdapter
);
Button
btn_search
=
layoutView
.
findViewById
(
R
.
id
.
btn_search
);
Button
btn_search
=
layoutView
.
findViewById
(
R
.
id
.
btn_search
);
btn_search
.
setOnClickListener
((
v
)
->
showSearch
(
true
));
btn_search
.
setOnClickListener
((
v
)
->
showSearch
(
true
));
activity
.
getCardLoader
().
setCallBack
(
this
);
mCardLoader
=
new
CardLoader
(
getContext
());
mCardSelector
=
new
CardSearcher
(
layoutView
.
findViewById
(
R
.
id
.
nav_view_list
),
activity
.
getCardLoader
());
mCardLoader
.
setCallBack
(
this
);
mCardSelector
=
new
CardSearcher
(
layoutView
.
findViewById
(
R
.
id
.
nav_view_list
),
mCardLoader
);
mCardSelector
.
setCallBack
(
this
);
mCardSelector
.
setCallBack
(
this
);
setListeners
();
setListeners
();
DialogPlus
dlg
=
DialogPlus
.
show
(
getContext
(),
null
,
getString
(
R
.
string
.
loading
));
DialogPlus
dlg
=
DialogPlus
.
show
(
getContext
(),
null
,
getString
(
R
.
string
.
loading
));
VUiKit
.
defer
().
when
(()
->
{
VUiKit
.
defer
().
when
(()
->
{
DataManager
.
get
().
load
(
true
);
DataManager
.
get
().
load
(
true
);
if
(
activity
.
getmLimitManager
().
getCount
()
>
0
)
{
if
(
activity
.
getmLimitManager
().
getCount
()
>
0
)
{
activity
.
getCardLoader
()
.
setLimitList
(
activity
.
getmLimitManager
().
getTopLimit
());
mCardLoader
.
setLimitList
(
activity
.
getmLimitManager
().
getTopLimit
());
}
}
}).
fail
((
e
)
->
{
}).
fail
((
e
)
->
{
Toast
.
makeText
(
getContext
(),
R
.
string
.
tip_load_cdb_error
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getContext
(),
R
.
string
.
tip_load_cdb_error
,
Toast
.
LENGTH_SHORT
).
show
();
...
@@ -106,7 +108,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
...
@@ -106,7 +108,7 @@ public class CardSearchFragment extends BaseFragemnt implements CardLoader.CallB
}).
done
((
rs
)
->
{
}).
done
((
rs
)
->
{
dlg
.
dismiss
();
dlg
.
dismiss
();
isLoad
=
true
;
isLoad
=
true
;
activity
.
getCardLoader
()
.
loadData
();
mCardLoader
.
loadData
();
mCardSelector
.
initItems
();
mCardSelector
.
initItems
();
//数据库初始化完毕后搜索被传入的关键字
//数据库初始化完毕后搜索被传入的关键字
intentSearch
(
intentSearchMessage
);
intentSearch
(
intentSearchMessage
);
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/cards/DeckManagerFragment.java
View file @
11e478d9
...
@@ -111,6 +111,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -111,6 +111,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
private
static
final
String
TAG
=
"DeckManagerFragment"
;
private
static
final
String
TAG
=
"DeckManagerFragment"
;
protected
DrawerLayout
mDrawerLayout
;
protected
DrawerLayout
mDrawerLayout
;
protected
RecyclerView
mListView
;
protected
RecyclerView
mListView
;
protected
CardLoader
mCardLoader
;
protected
CardSearcher
mCardSelector
;
protected
CardSearcher
mCardSelector
;
protected
CardListAdapter
mCardListAdapter
;
protected
CardListAdapter
mCardListAdapter
;
protected
boolean
isLoad
=
false
;
protected
boolean
isLoad
=
false
;
...
@@ -163,8 +164,9 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -163,8 +164,9 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
mListView
.
setAdapter
(
mCardListAdapter
);
mListView
.
setAdapter
(
mCardListAdapter
);
setListeners
();
setListeners
();
activity
.
getCardLoader
().
setCallBack
(
this
);
mCardLoader
=
new
CardLoader
(
getContext
());
mCardSelector
=
new
CardSearcher
(
layoutView
.
findViewById
(
R
.
id
.
nav_view_list
),
activity
.
getCardLoader
());
mCardLoader
.
setCallBack
(
this
);
mCardSelector
=
new
CardSearcher
(
layoutView
.
findViewById
(
R
.
id
.
nav_view_list
),
mCardLoader
);
mCardSelector
.
setCallBack
(
this
);
mCardSelector
.
setCallBack
(
this
);
tv_deck
=
layoutView
.
findViewById
(
R
.
id
.
tv_deck
);
tv_deck
=
layoutView
.
findViewById
(
R
.
id
.
tv_deck
);
...
@@ -360,14 +362,14 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -360,14 +362,14 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
//region load deck
//region load deck
private
void
loadDeckFromFile
(
File
file
)
{
private
void
loadDeckFromFile
(
File
file
)
{
if
(!
activity
.
getCardLoader
()
.
isOpen
()
||
file
==
null
||
!
file
.
exists
())
{
if
(!
mCardLoader
.
isOpen
()
||
file
==
null
||
!
file
.
exists
())
{
setCurDeck
(
new
DeckInfo
(),
false
);
setCurDeck
(
new
DeckInfo
(),
false
);
return
;
return
;
}
}
DialogPlus
dlg
=
DialogPlus
.
show
(
getContext
(),
null
,
getString
(
R
.
string
.
loading
));
DialogPlus
dlg
=
DialogPlus
.
show
(
getContext
(),
null
,
getString
(
R
.
string
.
loading
));
VUiKit
.
defer
().
when
(()
->
{
VUiKit
.
defer
().
when
(()
->
{
if
(
activity
.
getCardLoader
()
.
isOpen
()
&&
file
.
exists
())
{
if
(
mCardLoader
.
isOpen
()
&&
file
.
exists
())
{
return
mDeckAdapater
.
read
(
activity
.
getCardLoader
(),
file
,
activity
.
getCardLoader
()
.
getLimitList
());
return
mDeckAdapater
.
read
(
mCardLoader
,
file
,
mCardLoader
.
getLimitList
());
}
else
{
}
else
{
return
new
DeckInfo
();
return
new
DeckInfo
();
}
}
...
@@ -384,7 +386,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -384,7 +386,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
DataManager
.
get
().
load
(
true
);
DataManager
.
get
().
load
(
true
);
//默认第一个卡表
//默认第一个卡表
if
(
activity
.
getmLimitManager
().
getCount
()
>
0
)
{
if
(
activity
.
getmLimitManager
().
getCount
()
>
0
)
{
activity
.
getCardLoader
()
.
setLimitList
(
activity
.
getmLimitManager
().
getTopLimit
());
mCardLoader
.
setLimitList
(
activity
.
getmLimitManager
().
getTopLimit
());
}
}
File
file
=
ydk
;
File
file
=
ydk
;
if
(
file
==
null
||
!
file
.
exists
())
{
if
(
file
==
null
||
!
file
.
exists
())
{
...
@@ -399,8 +401,8 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -399,8 +401,8 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
return
new
DeckInfo
();
return
new
DeckInfo
();
}
}
Log
.
i
(
TAG
,
"load ydk "
+
file
);
Log
.
i
(
TAG
,
"load ydk "
+
file
);
if
(
activity
.
getCardLoader
()
.
isOpen
()
&&
file
.
exists
())
{
if
(
mCardLoader
.
isOpen
()
&&
file
.
exists
())
{
return
mDeckAdapater
.
read
(
activity
.
getCardLoader
(),
file
,
activity
.
getCardLoader
()
.
getLimitList
());
return
mDeckAdapater
.
read
(
mCardLoader
,
file
,
mCardLoader
.
getLimitList
());
}
else
{
}
else
{
return
new
DeckInfo
();
return
new
DeckInfo
();
}
}
...
@@ -408,7 +410,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
...
@@ -408,7 +410,7 @@ public class DeckManagerFragment extends BaseFragemnt implements RecyclerViewIte
isLoad
=
true
;
isLoad
=
true
;
dlg
.
dismiss
();
dlg
.
dismiss
();
mCardSelector
.
initItems
();
mCardSelector
.
initItems
();
initLimitListSpinners
(
mLimitSpinner
,
activity
.
getCardLoader
()
.
getLimitList
());
initLimitListSpinners
(
mLimitSpinner
,
mCardLoader
.
getLimitList
());
//设置当前卡组
//设置当前卡组
if
(
rs
.
source
!=
null
)
{
if
(
rs
.
source
!=
null
)
{
setCurDeck
(
rs
,
rs
.
source
.
getParent
().
equals
(
mSettings
.
getPackDeckDir
()));
setCurDeck
(
rs
,
rs
.
source
.
getParent
().
equals
(
mSettings
.
getPackDeckDir
()));
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeFragment.java
View file @
11e478d9
...
@@ -218,9 +218,17 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
...
@@ -218,9 +218,17 @@ public class HomeFragment extends BaseFragemnt implements OnDuelAssistantListene
});
});
tv_banner_loading
=
view
.
findViewById
(
R
.
id
.
tv_banner_loading
);
tv_banner_loading
=
view
.
findViewById
(
R
.
id
.
tv_banner_loading
);
tv_banner_loading
.
setOnClickListener
(
this
);
tv_banner_loading
.
setOnClickListener
(
this
);
xb_banner
.
setOnItemClickListener
((
banner
,
model
,
v
,
position
)
->
xb_banner
.
setOnItemClickListener
((
banner
,
model
,
v
,
position
)
->
{
WebActivity
.
open
(
getContext
(),
getString
(
R
.
string
.
McNews
),
mcNewsList
.
get
(
position
).
getNews_url
())
String
newsUrl
=
mcNewsList
.
get
(
position
).
getNews_url
();
);
if
(
newsUrl
.
startsWith
(
MyCard
.
MYCARD_POST_URL
))
{
WebActivity
.
open
(
getContext
(),
getString
(
R
.
string
.
McNews
),
newsUrl
);
}
else
{
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
);
intent
.
setData
(
Uri
.
parse
(
newsUrl
));
startActivity
(
intent
);
}
});
xb_banner
.
loadImage
((
banner
,
model
,
v
,
position
)
->
{
xb_banner
.
loadImage
((
banner
,
model
,
v
,
position
)
->
{
TextView
tv_time
,
tv_title
,
tv_type
;
TextView
tv_time
,
tv_title
,
tv_type
;
ImageView
iv_image
;
ImageView
iv_image
;
...
...
mobile/src/main/res/drawable-xhdpi/ic_launcher3.png
View replaced file @
d271c03a
View file @
11e478d9
127 KB
|
W:
|
H:
732 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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