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
ac587dec
Commit
ac587dec
authored
May 30, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理
parent
85c661c3
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
7 deletions
+36
-7
Classes/ocgcore/card.cpp
Classes/ocgcore/card.cpp
+12
-0
mobile/assets/changelog.html
mobile/assets/changelog.html
+1
-1
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/libs/armeabi-v7a/libarmeabi.so
mobile/libs/armeabi-v7a/libarmeabi.so
+0
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
...c/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
+11
-5
mobile/src/main/res/layout/dialog_alipay_or_wechat.xml
mobile/src/main/res/layout/dialog_alipay_or_wechat.xml
+11
-0
No files found.
Classes/ocgcore/card.cpp
View file @
ac587dec
...
...
@@ -3312,12 +3312,24 @@ int32 card::is_removeable(uint8 playerid) {
return
TRUE
;
}
int32
card
::
is_removeable_as_cost
(
uint8
playerid
)
{
uint32
redirect
=
0
;
uint32
dest
=
LOCATION_REMOVED
;
if
(
current
.
location
==
LOCATION_REMOVED
)
return
FALSE
;
if
(
is_affected_by_effect
(
EFFECT_CANNOT_USE_AS_COST
))
return
FALSE
;
if
(
!
is_removeable
(
playerid
))
return
FALSE
;
auto
op_param
=
sendto_param
;
sendto_param
.
location
=
dest
;
if
(
current
.
location
&
LOCATION_ONFIELD
)
redirect
=
leave_field_redirect
(
REASON_COST
)
&
0xffff
;
if
(
redirect
)
dest
=
redirect
;
redirect
=
destination_redirect
(
dest
,
REASON_COST
)
&
0xffff
;
if
(
redirect
)
dest
=
redirect
;
sendto_param
=
op_param
;
if
(
dest
!=
LOCATION_REMOVED
)
return
FALSE
;
return
TRUE
;
}
int32
card
::
is_releasable_by_summon
(
uint8
playerid
,
card
*
pcard
)
{
...
...
mobile/assets/changelog.html
View file @
ac587dec
...
...
@@ -28,7 +28,7 @@
2.开放单人模式——离线人机★
3.复制约战口令即可快捷加房★
修复:
1.删除房间无法取消的问题;
1.删除房间
确认时
无法取消的问题;
2.已知若干卡图错误;
3.游戏房间准备界面无法发送聊天消息的问题;
优化:
...
...
mobile/build.gradle
View file @
ac587dec
...
...
@@ -8,7 +8,7 @@ android {
applicationId
"cn.garymb.ygomobile"
minSdkVersion
16
targetSdkVersion
22
versionCode
330005
29
versionCode
330005
30
versionName
"3.3.0"
flavorDimensions
"versionCode"
vectorDrawables
.
useSupportLibrary
=
true
...
...
mobile/libs/armeabi-v7a/libarmeabi.so
0 → 100644
View file @
ac587dec
File added
mobile/src/main/java/cn/garymb/ygomobile/ui/home/HomeActivity.java
View file @
ac587dec
...
...
@@ -159,9 +159,10 @@ abstract class HomeActivity extends BaseActivity implements NavigationView.OnNav
dialog
.
setContentView
(
R
.
layout
.
dialog_alipay_or_wechat
);
dialog
.
setTitle
(
R
.
string
.
logo_text
);
dialog
.
show
();
View
viewDialog
=
dialog
.
getContentView
();
Button
btnalipay
=
viewDialog
.
findViewById
(
R
.
id
.
button_alipay
);
Button
btnwechat
=
viewDialog
.
findViewById
(
R
.
id
.
button_wechat
);
View
viewDialog
=
dialog
.
getContentView
();
Button
btnalipay
=
viewDialog
.
findViewById
(
R
.
id
.
button_alipay
);
Button
btnwechat
=
viewDialog
.
findViewById
(
R
.
id
.
button_wechat
);
Button
btnpaypal
=
viewDialog
.
findViewById
(
R
.
id
.
button_paypal
);
btnalipay
.
setOnClickListener
((
v
)
->
{
AlipayPayUtils
.
openAlipayPayPage
(
getContext
(),
Constants
.
ALIPAY_URL
);
...
...
@@ -173,7 +174,12 @@ abstract class HomeActivity extends BaseActivity implements NavigationView.OnNav
AlipayPayUtils
.
inputMoney
(
HomeActivity
.
this
);
dialog
.
dismiss
();
});
btnpaypal
.
setOnClickListener
((
v
)
->
{
Uri
uri
=
Uri
.
parse
(
"https://www.paypal.me/YGOmobile3"
);
Intent
intent
=
new
Intent
(
Intent
.
ACTION_VIEW
,
uri
);
startActivity
(
intent
);
dialog
.
dismiss
();
});
}
break
;
case
R
.
id
.
action_game
:
...
...
mobile/src/main/res/layout/dialog_alipay_or_wechat.xml
View file @
ac587dec
...
...
@@ -26,5 +26,16 @@
android:layout_height=
"50dp"
android:background=
"@drawable/wechat"
/>
<TextView
android:layout_width=
"@dimen/label_width_middle"
android:layout_height=
"wrap_content"
android:textAppearance=
"@style/TextAppearance.AppCompat.Body1"
android:textColor=
"@color/gold"
/>
<Button
android:id=
"@+id/button_paypal"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:background=
"@drawable/paypal"
/>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
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