Commit 0c323845 authored by fallenstardust's avatar fallenstardust

更新日志dialog显示教程按钮

parent 0465a63f
......@@ -17,19 +17,13 @@
特别感谢: 菜菜,尸体,废话多,大毛,龙道香姐,晓L,幻兽L 的支持与努力.
</pre>
<ul>
<li style="color:#ffff00">3.4.5</li>
<li style="color:#ffff00">3.4.6</li>
</ul>
<pre>
更新:
1.更新ygo内核;
2.新卡DP22;
3.OCG2019.7禁卡表;
优化:
1.咕且恢复长按删除确认;
2.延长0.2秒长按判断时间;
3.完善支持分辨率大于177*254的卡图;
4.放大一些反映太小的按钮;
5.微调UI;
1.为更多机型适配可QQ、微信打开ydk文件;
</pre>
</body>
</html>
\ No newline at end of file
......@@ -8,8 +8,8 @@ android {
applicationId "cn.garymb.ygomobile"
minSdkVersion 16
targetSdkVersion 28
versionCode 340500617
versionName "3.4.5"
versionCode 340600627
versionName "3.4.6"
flavorDimensions "versionCode"
vectorDrawables.useSupportLibrary = true
ndk {
......
......@@ -11,6 +11,8 @@ import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import java.io.IOException;
......@@ -21,6 +23,7 @@ import cn.garymb.ygomobile.YGOMobileActivity;
import cn.garymb.ygomobile.YGOStarter;
import cn.garymb.ygomobile.core.IrrlichtBridge;
import cn.garymb.ygomobile.lite.R;
import cn.garymb.ygomobile.ui.activities.WebActivity;
import cn.garymb.ygomobile.ui.plus.DialogPlus;
import cn.garymb.ygomobile.ui.plus.VUiKit;
import cn.garymb.ygomobile.utils.ComponentUtils;
......@@ -79,7 +82,40 @@ public class MainActivity extends HomeActivity {
}
if (isNew) {
if (!getGameUriManager().doIntent(getIntent())) {
DialogPlus dialog = new DialogPlus(this)
final DialogPlus dialog = new DialogPlus(this);
dialog.showTitleBar();
dialog.setTitle(getString(R.string.settings_about_change_log));
dialog.loadUrl("file:///android_asset/changelog.html", Color.TRANSPARENT);
dialog.setLeftButtonText(R.string.help);
dialog.setLeftButtonListener((dlg, i) -> {
dialog.setContentView(R.layout.dialog_help);
dialog.setTitle(R.string.question);
dialog.hideButton();
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();
});
});
dialog.setRightButtonText(R.string.OK);
dialog.setRightButtonListener((dlg, i) -> {
dlg.dismiss();
//mImageUpdater
if (NETWORK_IMAGE && NetUtils.isConnected(getContext())) {
if (!mImageUpdater.isRunning()) {
mImageUpdater.start();
}
}
});
/*DialogPlus dialog = new DialogPlus(this)
.setTitleText(getString(R.string.settings_about_change_log))
.loadUrl("file:///android_asset/changelog.html", Color.TRANSPARENT)
.hideButton()
......@@ -91,7 +127,7 @@ public class MainActivity extends HomeActivity {
mImageUpdater.start();
}
}
});
});*/
dialog.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onDismiss(DialogInterface dialogInterface) {
......
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