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
81027cfb
Commit
81027cfb
authored
Jul 15, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善头像修改,微调UI,更新聊天室接入
parent
88811777
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
8 deletions
+11
-8
Classes/gframe/drawing.cpp
Classes/gframe/drawing.cpp
+2
-2
mobile/libs/tbs_sdk_thirdapp_v3.1.0.1034_43100_sharewithdownload_obfs_20170301_182143.jar
...1.0.1034_43100_sharewithdownload_obfs_20170301_182143.jar
+0
-0
mobile/libs/tbs_sdk_thirdapp_v3.6.0.1249_43610_sharewithdownload_withoutGame_obfs_20180608_114954.jar
...10_sharewithdownload_withoutGame_obfs_20180608_114954.jar
+0
-0
mobile/src/main/java/cn/garymb/ygomobile/ui/preference/fragments/SettingFragment.java
...mb/ygomobile/ui/preference/fragments/SettingFragment.java
+1
-1
mobile/src/main/res/xml/preference_game.xml
mobile/src/main/res/xml/preference_game.xml
+6
-4
mobile/src/mycard/java/cn/garymb/ygomobile/ui/online/mcchat/management/ServiceManagement.java
...mobile/ui/online/mcchat/management/ServiceManagement.java
+1
-0
mobile/src/mycard/java/cn/garymb/ygomobile/ui/online/mcchat/util/ImageUtil.java
.../cn/garymb/ygomobile/ui/online/mcchat/util/ImageUtil.java
+1
-1
No files found.
Classes/gframe/drawing.cpp
View file @
81027cfb
...
@@ -542,8 +542,8 @@ void Game::DrawMisc() {
...
@@ -542,8 +542,8 @@ void Game::DrawMisc() {
}
}
}
}
//avatar image
//avatar image
driver
->
draw2DImage
(
imageManager
.
tAvatar
[
0
],
recti
(
335
*
mainGame
->
xScale
,
15
*
mainGame
->
yScale
,
390
*
mainGame
->
xScale
,
70
*
mainGame
->
yScale
),
recti
(
0
,
0
,
55
,
55
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tAvatar
[
0
],
recti
(
335
*
mainGame
->
xScale
,
15
*
mainGame
->
yScale
,
390
*
mainGame
->
xScale
,
70
*
mainGame
->
yScale
),
recti
(
0
,
0
,
128
,
128
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tAvatar
[
1
],
recti
(
930
*
mainGame
->
xScale
,
15
*
mainGame
->
yScale
,
985
*
mainGame
->
xScale
,
70
*
mainGame
->
yScale
),
recti
(
0
,
0
,
55
,
55
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tAvatar
[
1
],
recti
(
930
*
mainGame
->
xScale
,
15
*
mainGame
->
yScale
,
985
*
mainGame
->
xScale
,
70
*
mainGame
->
yScale
),
recti
(
0
,
0
,
128
,
128
),
0
,
0
,
true
);
if
((
dInfo
.
turn
%
2
&&
dInfo
.
isFirst
)
||
(
!
(
dInfo
.
turn
%
2
)
&&
!
dInfo
.
isFirst
))
{
if
((
dInfo
.
turn
%
2
&&
dInfo
.
isFirst
)
||
(
!
(
dInfo
.
turn
%
2
)
&&
!
dInfo
.
isFirst
))
{
driver
->
draw2DImage
(
imageManager
.
tLPBarFrame
,
recti
(
327
*
mainGame
->
xScale
,
8
*
mainGame
->
yScale
,
630
*
mainGame
->
xScale
,
78
*
mainGame
->
yScale
),
recti
(
0
,
0
,
305
,
70
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tLPBarFrame
,
recti
(
327
*
mainGame
->
xScale
,
8
*
mainGame
->
yScale
,
630
*
mainGame
->
xScale
,
78
*
mainGame
->
yScale
),
recti
(
0
,
0
,
305
,
70
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tLPBarFrame
,
recti
(
689
*
mainGame
->
xScale
,
8
*
mainGame
->
yScale
,
991
*
mainGame
->
xScale
,
78
*
mainGame
->
yScale
),
recti
(
0
,
210
,
305
,
280
),
0
,
0
,
true
);
driver
->
draw2DImage
(
imageManager
.
tLPBarFrame
,
recti
(
689
*
mainGame
->
xScale
,
8
*
mainGame
->
yScale
,
991
*
mainGame
->
xScale
,
78
*
mainGame
->
yScale
),
recti
(
0
,
210
,
305
,
280
),
0
,
0
,
true
);
...
...
mobile/libs/tbs_sdk_thirdapp_v3.1.0.1034_43100_sharewithdownload_obfs_20170301_182143.jar
deleted
100644 → 0
View file @
88811777
File deleted
mobile/libs/tbs_sdk_thirdapp_v3.6.0.1249_43610_sharewithdownload_withoutGame_obfs_20180608_114954.jar
0 → 100644
View file @
81027cfb
File added
mobile/src/main/java/cn/garymb/ygomobile/ui/preference/fragments/SettingFragment.java
View file @
81027cfb
...
@@ -313,7 +313,7 @@ public class SettingFragment extends PreferenceFragmentPlus {
...
@@ -313,7 +313,7 @@ public class SettingFragment extends PreferenceFragmentPlus {
String
key
=
preference
.
getKey
();
String
key
=
preference
.
getKey
();
if
(
Constants
.
DEBUG
)
if
(
Constants
.
DEBUG
)
Log
.
i
(
"kk"
,
"onChooseFileOk:"
+
key
+
",file="
+
file
);
Log
.
i
(
"kk"
,
"onChooseFileOk:"
+
key
+
",file="
+
file
);
if
(
SETTINGS_COVER
.
equals
(
key
)
||
SETTINGS_CARD_BG
.
equals
(
key
))
{
if
(
SETTINGS_
AVATAR
.
equals
(
key
)
||
SETTINGS_
COVER
.
equals
(
key
)
||
SETTINGS_CARD_BG
.
equals
(
key
))
{
super
.
onChooseFileOk
(
preference
,
file
);
super
.
onChooseFileOk
(
preference
,
file
);
onPreferenceClick
(
preference
);
onPreferenceClick
(
preference
);
}
else
if
(
PREF_GAME_PATH
.
equalsIgnoreCase
(
preference
.
getKey
()))
{
}
else
if
(
PREF_GAME_PATH
.
equalsIgnoreCase
(
preference
.
getKey
()))
{
...
...
mobile/src/main/res/xml/preference_game.xml
View file @
81027cfb
...
@@ -77,10 +77,6 @@
...
@@ -77,10 +77,6 @@
</PreferenceCategory>
</PreferenceCategory>
<PreferenceCategory
android:title=
"@string/settings_category_diy"
>
<PreferenceCategory
android:title=
"@string/settings_category_diy"
>
<Preference
android:key=
"pref_key_game_font_name"
android:persistent=
"true"
android:title=
"@string/settings_game_font_name"
/>
<Preference
<Preference
android:key=
"settings_game_avatar"
android:key=
"settings_game_avatar"
...
@@ -96,6 +92,12 @@
...
@@ -96,6 +92,12 @@
android:key=
"settings_game_diy_card_bg"
android:key=
"settings_game_diy_card_bg"
android:persistent=
"true"
android:persistent=
"true"
android:title=
"@string/settings_game_diy_cover"
/>
android:title=
"@string/settings_game_diy_cover"
/>
<Preference
android:key=
"pref_key_game_font_name"
android:persistent=
"true"
android:title=
"@string/settings_game_font_name"
/>
<!--<CheckBoxPreference
<!--<CheckBoxPreference
android:key="settings_game_diy_card_db"
android:key="settings_game_diy_card_db"
android:persistent="true"
android:persistent="true"
...
...
mobile/src/mycard/java/cn/garymb/ygomobile/ui/online/mcchat/management/ServiceManagement.java
View file @
81027cfb
...
@@ -74,6 +74,7 @@ public class ServiceManagement
...
@@ -74,6 +74,7 @@ public class ServiceManagement
.
setXmppDomain
(
"mycard.moe"
)
.
setXmppDomain
(
"mycard.moe"
)
.
setKeystoreType
(
null
)
.
setKeystoreType
(
null
)
.
setSecurityMode
(
ConnectionConfiguration
.
SecurityMode
.
disabled
)
.
setSecurityMode
(
ConnectionConfiguration
.
SecurityMode
.
disabled
)
.
setHost
(
"chat.mycard.moe"
)
.
build
();
.
build
();
con
=
new
XMPPTCPConnection
(
config
);
con
=
new
XMPPTCPConnection
(
config
);
return
con
;
return
con
;
...
...
mobile/src/mycard/java/cn/garymb/ygomobile/ui/online/mcchat/util/ImageUtil.java
View file @
81027cfb
package
cn.garymb.ygomobile.ui.online.mcchat.util
;
package
cn.garymb.ygomobile.ui.online.mcchat.util
;
import
android.net.Uri
;
import
android.widget.*
;
import
android.widget.*
;
import
com.bumptech.glide.*
;
import
com.bumptech.glide.*
;
import
android.net.*
;
import
android.content.*
;
import
android.content.*
;
import
com.bumptech.glide.load.engine.*
;
import
com.bumptech.glide.load.engine.*
;
...
...
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