Commit cb7a7769 authored by fallenstardust's avatar fallenstardust

大师规则在线文档

parent 02d597d7
......@@ -129,6 +129,7 @@ public interface Constants {
int DECK_SIDE_COUNT = DECK_EXTRA_COUNT;
String ALIPAY_URL = "HTTPS://QR.ALIPAY.COM/FKX06491UAXJMGIDTYVC0C";
String URL_HELP = "http://www.jianshu.com/p/a43f5d951a25";
String URL_MASTERRULE_CN = "https://ocg-rule.readthedocs.io/zh_CN/master/";
String WIKI_SEARCH_URL = "http://www.ourocg.cn/S.aspx?key=";
String SERVER_FILE = "server_list.xml";
......@@ -143,7 +144,7 @@ public interface Constants {
/***
* 长按删除
*/
long LONG_PRESS_DRAG = 800;
long LONG_PRESS_DRAG = 700;
/***
* adb shell am start -n cn.garymb.ygomobile/cn.garymb.ygomobile.ui.home.MainActivity -a ygomobile.intent.action.DECK --es android.intent.extra.TEXT 青眼白龙.ydk
* <p>
......
......@@ -249,7 +249,22 @@ public abstract class HomeActivity extends BaseActivity implements NavigationVie
joinQQGroup(key);
break;
case R.id.action_help: {
WebActivity.open(this, getString(R.string.help), Constants.URL_HELP);
final DialogPlus dialog = new DialogPlus(getContext());
dialog.setContentView(R.layout.dialog_help);
dialog.show();
View viewDialog = dialog.getContentView();
Button btnMasterRule = viewDialog.findViewById(R.id.masterrule);
Button btnTutorial = viewDialog.findViewById(R.id.tutorial);
btnMasterRule.setOnClickListener((v) -> {
WebActivity.open(this, getString(R.string.masterrule), Constants.URL_MASTERRULE_CN);
dialog.dismiss();
});
btnTutorial.setOnClickListener((v) -> {
WebActivity.open(this, getString(R.string.help), Constants.URL_HELP);
dialog.dismiss();
});
}
break;
case R.id.action_reset_game_res:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment