Update version 8

This commit is contained in:
StageGuard
2020-07-29 23:41:35 +08:00
parent 70f561eed2
commit d90f1ba525
2 changed files with 3 additions and 2 deletions

View File

@@ -1133,6 +1133,7 @@ gui = {
gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.LinearInterpolator(), function(anim) { gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.LinearInterpolator(), function(anim) {
gui.main._global_base.setAlpha(anim.getAnimatedValue()); gui.main._global_base.setAlpha(anim.getAnimatedValue());
if(gui.main.views[s.index].update != null && anim.getAnimatedValue() == 1.0) gui.main.views[s.index].update(s);
}); });
gui.utils.value_animation("Float", 0, 1.0, 400 , new android.view.animation.LinearInterpolator(), function(anim) { gui.utils.value_animation("Float", 0, 1.0, 400 , new android.view.animation.LinearInterpolator(), function(anim) {
gui.main._global_content_container.setAlpha(anim.getAnimatedValue()); gui.main._global_content_container.setAlpha(anim.getAnimatedValue());
@@ -1140,7 +1141,6 @@ gui = {
}); });
if(s._anim != null) s._anim(); if(s._anim != null) s._anim();
if(gui.main.views[s.index].update != null) gui.main.views[s.index].update(s);
if(!config.values.skipOpenWindowTip) { if(!config.values.skipOpenWindowTip) {
toast("拖动标题栏的标题文字来移动悬浮窗位置。"); toast("拖动标题栏的标题文字来移动悬浮窗位置。");
config.values.skipOpenWindowTip = config.save("skip_open_window_tip", true); config.values.skipOpenWindowTip = config.save("skip_open_window_tip", true);
@@ -1177,6 +1177,7 @@ gui = {
gui.main._global_content_container.findViewById(tid).setEnabled(true); gui.main._global_content_container.findViewById(tid).setEnabled(true);
gui.main._global_content_container.findViewById(tid).setClickable(true); gui.main._global_content_container.findViewById(tid).setClickable(true);
gui.main._global_content_container.findViewById(tid).setZ(1); //回来 gui.main._global_content_container.findViewById(tid).setZ(1); //回来
if(gui.main.views[tid].update != null && anim.getAnimatedValue() == 1.0) gui.main.views[tid].update(s);
} }
}); });
gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.LinearInterpolator(), function(anim) { gui.utils.value_animation("Float", 0, 1.0, 200, new android.view.animation.LinearInterpolator(), function(anim) {
@@ -1185,7 +1186,6 @@ gui = {
gui.main.__internal_changeNavigationStatus(s.index); gui.main.__internal_changeNavigationStatus(s.index);
if(gui.main.views[tid].update != null) gui.main.views[tid].update(s);
} }
if(gui.main.views[s.index].func == null) { if(gui.main.views[s.index].func == null) {
if(gui.main.func_showing) { if(gui.main.func_showing) {

View File

@@ -4,6 +4,7 @@
* 更改悬浮窗按钮从"小黑块"变为类Sky的"凹面钻石"形状 * 更改悬浮窗按钮从"小黑块"变为类Sky的"凹面钻石"形状
* 从悬浮窗打开主窗口时会继承上次关闭主窗口时页面位置 * 从悬浮窗打开主窗口时会继承上次关闭主窗口时页面位置
* 更改了乐谱下载逻辑 * 更改了乐谱下载逻辑
* 修复打开主窗口时动画卡顿
! 已知问题: 乐谱保存为UTF-8格式而非UTF-16LE且files.open(file, mode, encoding)无法更改 ! 已知问题: 乐谱保存为UTF-8格式而非UTF-16LE且files.open(file, mode, encoding)无法更改
版本: 7 版本: 7