okcancelfix (#400)

- 修复了确认键亮起时取消键不可用的bug
- 将版本号改成0.4.21
This commit is contained in:
YoumuKon 2024-10-24 21:37:27 +08:00 committed by GitHub
parent 2be5fe61f5
commit ed6ce84584
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 5 deletions

View File

@ -1,5 +1,21 @@
# ChangeLog # ChangeLog
## v0.4.21
- 修复了确认键亮起时取消键不可用的bug
- lua端的ob属性根本没同步同步一下
- [需要C++] 让requestTimer的超时影响到Lua
- 修复windows没图标
- 移除了modmaker
- 修理了选卡器
- 修理了确定取消消失
- 删除了已经不用的autoPending和respond_play
- 修复异常烧条(或许吧)
- 修复负数烧条时间,若为负数则无事发生
___
## v0.4.20 ## v0.4.20
- 重构了UI逻辑 - 重构了UI逻辑

View File

@ -6,7 +6,7 @@
cmake_minimum_required(VERSION 3.22) cmake_minimum_required(VERSION 3.22)
project(FreeKill VERSION 0.4.20) project(FreeKill VERSION 0.4.21)
add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\") add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\")
find_package(Qt6 REQUIRED COMPONENTS find_package(Qt6 REQUIRED COMPONENTS

View File

@ -318,6 +318,8 @@ Item {
skillInteraction.sourceComponent = undefined; skillInteraction.sourceComponent = undefined;
promptText = ""; promptText = "";
okCancel.visible = false; okCancel.visible = false;
okButton.enabled = false;
cancelButton.enabled = false;
endPhaseButton.visible = false; endPhaseButton.visible = false;
progress.visible = false; progress.visible = false;
extra_data = {}; extra_data = {};
@ -1364,8 +1366,6 @@ Item {
const buttons = uiUpdate["Button"]; const buttons = uiUpdate["Button"];
if (buttons) { if (buttons) {
okCancel.visible = true; okCancel.visible = true;
okButton.enabled = false;
cancelButton.enabled = false;
} }
buttons?.forEach(bdata => { buttons?.forEach(bdata => {
switch (bdata.id) { switch (bdata.id) {

View File

@ -3,8 +3,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.notify.FreeKill" package="org.notify.FreeKill"
android:installLocation="preferExternal" android:installLocation="preferExternal"
android:versionCode="420" android:versionCode="421"
android:versionName="0.4.20"> android:versionName="0.4.21">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />