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
29186bc0
Commit
29186bc0
authored
Jul 12, 2018
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加修改卡背2
parent
18bec1e4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
1 deletion
+56
-1
mobile/assets/data/textures/lp2.png
mobile/assets/data/textures/lp2.png
+0
-0
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
+2
-1
mobile/src/main/java/cn/garymb/ygomobile/ui/preference/fragments/SettingFragment.java
...mb/ygomobile/ui/preference/fragments/SettingFragment.java
+16
-0
mobile/src/main/res/layout/dialog_cover_select.xml
mobile/src/main/res/layout/dialog_cover_select.xml
+36
-0
mobile/src/main/res/values-zh/strings.xml
mobile/src/main/res/values-zh/strings.xml
+1
-0
mobile/src/main/res/values/strings.xml
mobile/src/main/res/values/strings.xml
+1
-0
No files found.
mobile/assets/data/textures/lp2.png
View replaced file @
18bec1e4
View file @
29186bc0
4.24 KB
|
W:
|
H:
4.39 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mobile/src/main/java/cn/garymb/ygomobile/Constants.java
View file @
29186bc0
...
@@ -44,6 +44,7 @@ public interface Constants {
...
@@ -44,6 +44,7 @@ public interface Constants {
boolean
PREF_DEF_DECK_DELETE_DILAOG
=
true
;
boolean
PREF_DEF_DECK_DELETE_DILAOG
=
true
;
String
SETTINGS_COVER
=
"settings_game_diy_card_cover"
;
String
SETTINGS_COVER
=
"settings_game_diy_card_cover"
;
String
SETTINGS_COVER2
=
"settings_game_diy_card_cover2"
;
String
SETTINGS_CARD_BG
=
"settings_game_diy_card_bg"
;
String
SETTINGS_CARD_BG
=
"settings_game_diy_card_bg"
;
String
ASSETS_PATH
=
"data/"
;
String
ASSETS_PATH
=
"data/"
;
String
ASSET_SERVER_LIST
=
"serverlist.xml"
;
String
ASSET_SERVER_LIST
=
"serverlist.xml"
;
...
@@ -73,7 +74,7 @@ public interface Constants {
...
@@ -73,7 +74,7 @@ public interface Constants {
String
CORE_SKIN_COVER2
=
"cover2.jpg"
;
String
CORE_SKIN_COVER2
=
"cover2.jpg"
;
String
CORE_SKIN_BG
=
"bg.jpg"
;
String
CORE_SKIN_BG
=
"bg.jpg"
;
String
CORE_SKIN_AVATAR_ME
=
"me.jpg"
;
String
CORE_SKIN_AVATAR_ME
=
"me.jpg"
;
String
CORE_SKIN_AVATAR_OPPONENT
=
"
me
.jpg"
;
String
CORE_SKIN_AVATAR_OPPONENT
=
"
opponent
.jpg"
;
String
UNKNOWN_IMAGE
=
"unknown.jpg"
;
String
UNKNOWN_IMAGE
=
"unknown.jpg"
;
String
YDK_FILE_EX
=
".ydk"
;
String
YDK_FILE_EX
=
".ydk"
;
int
[]
CORE_SKIN_BG_SIZE
=
new
int
[]{
1280
,
720
};
int
[]
CORE_SKIN_BG_SIZE
=
new
int
[]{
1280
,
720
};
...
...
mobile/src/main/java/cn/garymb/ygomobile/ui/preference/fragments/SettingFragment.java
View file @
29186bc0
...
@@ -12,7 +12,9 @@ import android.preference.Preference;
...
@@ -12,7 +12,9 @@ import android.preference.Preference;
import
android.text.TextUtils
;
import
android.text.TextUtils
;
import
android.util.Log
;
import
android.util.Log
;
import
android.view.Gravity
;
import
android.view.Gravity
;
import
android.view.View
;
import
android.view.ViewGroup
;
import
android.view.ViewGroup
;
import
android.widget.Button
;
import
android.widget.FrameLayout
;
import
android.widget.FrameLayout
;
import
android.widget.ImageView
;
import
android.widget.ImageView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
...
@@ -182,6 +184,20 @@ public class SettingFragment extends PreferenceFragmentPlus {
...
@@ -182,6 +184,20 @@ public class SettingFragment extends PreferenceFragmentPlus {
//选择ttf字体文件,保存
//选择ttf字体文件,保存
showFileChooser
(
preference
,
"*.ttf"
,
mSettings
.
getFontDirPath
(),
getString
(
R
.
string
.
dialog_select_font
));
showFileChooser
(
preference
,
"*.ttf"
,
mSettings
.
getFontDirPath
(),
getString
(
R
.
string
.
dialog_select_font
));
}
else
if
(
SETTINGS_COVER
.
equals
(
key
))
{
}
else
if
(
SETTINGS_COVER
.
equals
(
key
))
{
final
DialogPlus
dialog
=
new
DialogPlus
(
getContext
());
dialog
.
setContentView
(
R
.
layout
.
dialog_cover_select
);
dialog
.
setTitle
(
R
.
string
.
card_cover
);
dialog
.
show
();
View
viewDialog
=
dialog
.
getContentView
();
Button
cover1
=
viewDialog
.
findViewById
(
R
.
id
.
button_cover1
);
String
cover1_img
=
new
File
(
mSettings
.
getCoreSkinPath
(),
Constants
.
CORE_SKIN_COVER
).
getAbsolutePath
();
Button
cover2
=
viewDialog
.
findViewById
(
R
.
id
.
button_cover2
);
cover1
.
setOnClickListener
((
v
)
->
{
});
cover2
.
setOnClickListener
((
v
)
->
{
});
//显示图片对话框?
//显示图片对话框?
String
outFile
=
new
File
(
mSettings
.
getCoreSkinPath
(),
Constants
.
CORE_SKIN_COVER
).
getAbsolutePath
();
String
outFile
=
new
File
(
mSettings
.
getCoreSkinPath
(),
Constants
.
CORE_SKIN_COVER
).
getAbsolutePath
();
showImageDialog
(
preference
,
getString
(
R
.
string
.
card_cover
),
showImageDialog
(
preference
,
getString
(
R
.
string
.
card_cover
),
...
...
mobile/src/main/res/layout/dialog_cover_select.xml
0 → 100644
View file @
29186bc0
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_horizontal"
>
<Button
android:id=
"@+id/button_cover1"
android:layout_width=
"44dp"
android:layout_height=
"64dp"
/>
<TextView
android:layout_width=
"@dimen/label_width_middle"
android:layout_height=
"wrap_content"
/>
<Button
android:id=
"@+id/button_cover2"
android:layout_width=
"44dp"
android:layout_height=
"64dp"
/>
</LinearLayout>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"center"
android:paddingTop=
"20dp"
android:text=
"@string/coverSelect"
android:textSize=
"25px"
/>
</LinearLayout>
\ No newline at end of file
mobile/src/main/res/values-zh/strings.xml
View file @
29186bc0
...
@@ -211,4 +211,5 @@
...
@@ -211,4 +211,5 @@
<string
name=
"Function_Menu"
>
功能菜单
</string>
<string
name=
"Function_Menu"
>
功能菜单
</string>
<string
name=
"Join_QQ"
>
水友群
</string>
<string
name=
"Join_QQ"
>
水友群
</string>
<string
name=
"donatefor"
>
您的捐赠将用于维持自动更新费用,收集更新资料、修图后期以及购买适配机型等
</string>
<string
name=
"donatefor"
>
您的捐赠将用于维持自动更新费用,收集更新资料、修图后期以及购买适配机型等
</string>
<string
name=
"coverSelect"
>
点击相应卡背选择文件
</string>
</resources>
</resources>
mobile/src/main/res/values/strings.xml
View file @
29186bc0
...
@@ -214,4 +214,5 @@
...
@@ -214,4 +214,5 @@
<string
name=
"Function_Menu"
>
MENU
</string>
<string
name=
"Function_Menu"
>
MENU
</string>
<string
name=
"Join_QQ"
>
QQ Group
</string>
<string
name=
"Join_QQ"
>
QQ Group
</string>
<string
name=
"donatefor"
>
your donation will be used for keeping severs updating, buying card to get artworks and purchasing new phone to adapt
</string>
<string
name=
"donatefor"
>
your donation will be used for keeping severs updating, buying card to get artworks and purchasing new phone to adapt
</string>
<string
name=
"coverSelect"
>
click covers and select files
</string>
</resources>
</resources>
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