初次启动时的简单引导
This commit is contained in:
notify 2023-09-29 21:16:53 +08:00 committed by GitHub
parent 7e15ccb63e
commit b6d0f17127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 164 additions and 5 deletions

View File

@ -2,6 +2,25 @@
___
## v0.3.9
1. 简易AI框架
2. askForPoxi
3. 修复trigger函数的bug
4. 增加使用和打出的禁止技提示
5. 修复卡牌标记attach主动技显示为蓝色按钮
6. 增加判断额外回合之法以及fix
7. 修复了询问卡牌时会返回不符合要求的牌的bug
8. 修复了摸牌阶段的skillname游戏规则
9. 实装武将牌堆
10. 剥离身份模式特有常备主逻辑
11. 为changeProperty添加时机
12. 分离了改判时的移动
13. 将canUseGeneral改为Engine所属函数
14. 新人教程
___
## v0.3.8
为国战添加专属ui修复一些bug。

View File

@ -2,7 +2,7 @@
cmake_minimum_required(VERSION 3.16)
project(FreeKill VERSION 0.3.8)
project(FreeKill VERSION 0.3.9)
add_definitions(-DFK_VERSION=\"${CMAKE_PROJECT_VERSION}\")
find_package(Qt6 REQUIRED COMPONENTS

View File

@ -30,6 +30,8 @@ QtObject {
property int preferredTimeout
property int preferredLuckTime
property bool firstRun: true
// Player property of client
property string serverAddr
property string screenName: ""
@ -82,6 +84,7 @@ QtObject {
hideUseless = conf.hideUseless ?? false;
preferredTimeout = conf.preferredTimeout ?? 15;
preferredLuckTime = conf.preferredLuckTime ?? 0;
firstRun = conf.firstRun ?? true;
disabledGenerals = conf.disabledGenerals ?? [];
disableGeneralSchemes = conf.disableGeneralSchemes ?? [ disabledGenerals ];
disableSchemeIdx = conf.disableSchemeIdx ?? 0;
@ -109,6 +112,7 @@ QtObject {
conf.hideUseless = hideUseless;
conf.preferredTimeout = preferredTimeout;
conf.preferredLuckTime = preferredLuckTime;
conf.firstRun = firstRun;
conf.disabledGenerals = disabledGenerals;
conf.disableGeneralSchemes = disableGeneralSchemes;
conf.disableSchemeIdx = disableSchemeIdx;

View File

@ -118,8 +118,7 @@ Item {
TapHandler {
onTapped: {
errDialog.txt = qsTr("$LoginFAQ");
errDialog.open();
mainStack.push(Qt.createComponent("../Tutorial.qml").createObject());
}
}
}

71
Fk/Tutorial.qml Normal file
View File

@ -0,0 +1,71 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
Rectangle {
id: root
color: "#CCEEEEEE"
property int total: 7
SwipeView {
id: view
anchors.fill: parent
Repeater {
model: total
Item {
Text {
text: qsTr("tutor_msg_" + (modelData + 1))
font.pixelSize: 32
wrapMode: Text.WordWrap
anchors.centerIn: parent
width: parent.width * 0.7
horizontalAlignment: Text.AlignHCenter
textFormat: Text.RichText
}
}
}
}
/*
PageIndicator {
id: indicator
count: total
currentIndex: view.currentIndex
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
}
*/
Row {
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: 20
spacing: 8
Text {
text: (view.currentIndex + 1) + "/" + total
font.pixelSize: 36
}
Button {
text: qsTr("Skip")
onClicked: mainStack.pop();
}
Button {
text: qsTr("Prev")
enabled: view.currentIndex > 0
onClicked: view.currentIndex--
}
Button {
text: qsTr("Next")
enabled: view.currentIndex + 1 < total
onClicked: view.currentIndex++
}
}
}

View File

@ -204,6 +204,10 @@ Window {
Component.onCompleted: {
mainStack.push(init);
if (config.firstRun) {
config.firstRun = false;
mainStack.push(Qt.createComponent("Tutorial.qml").createObject());
}
if (!Debugging) {
splashLoader.source = "Splash.qml";
splashLoader.item.disappeared.connect(() => {

View File

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

View File

@ -454,4 +454,66 @@
</message>
</context>
<context>
<name>Tutorial</name>
<message>
<source>tutor_msg_1</source>
<translation>&lt;br>
&lt;br>
&lt;font color="blue">&lt;u>&lt;/u>&lt;/font></translation>
</message>
<message>
<source>tutor_msg_2</source>
<translation>&lt;br>
使GPLv3协议进行开源&lt;br>
&lt;br>
</translation>
</message>
<message>
<source>tutor_msg_3</source>
<translation>&lt;br>
&lt;br>
-> &lt;br>
IP是175.178.66.93</translation>
</message>
<message>
<source>tutor_msg_4</source>
<translation>&lt;br>
&lt;br>
IP等等&lt;br>
</translation>
</message>
<message>
<source>tutor_msg_5</source>
<translation>pdf
pdf都是由开发者们编写的
</translation>
</message>
<message>
<source>tutor_msg_6</source>
<translation>&lt;br>
&lt;br>
Discord群组https://discord.gg/tp35GrQR6v&lt;br>
QQ频道freekill01&lt;br>
QQ群太容易满啦</translation>
</message>
<message>
<source>tutor_msg_7</source>
<translation>&lt;br>
&lt;br>
</translation>
</message>
<message>
<source>Skip</source>
<translation></translation>
</message>
<message>
<source>Prev</source>
<translation></translation>
</message>
<message>
<source>Next</source>
<translation></translation>
</message>
</context>
</TS>