mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
cc271bcdf8
* support fkp * get default setting in qml * correct zixing * mark * TODO: parse fkp in c++ * scale the drawer * free assign * fix free assign bug * add submodule for official generals * generate fkp in cpp code * use UTF-8 in windows conhost * use onUse for regular skill * active skill for fkp * add fkp function; change data for DMG and Heal * add cancelable to askForDiscard * don't let generals naked * config bg and bgm * fix exists for win * bugfix: rewardandpunish * fkp: vs skill * room config * observe * god_salavation * fkp: judge * add read storage permission for android build * remove submodule fk_official * remove include/ * use a submodule as include directory * libgit2 * remove debugging 'downloadNewPack' * libgit2.dll for Windows * rewrite system_enum, disable dangerous function * fix bug in trigger() * filter skill * filter judgement card * add about page for git2 * very basic general detail * FKP: status skill * libgit: android test * libgit: build for android * 1 * libgit2.dll * android: load qm file after copy asset * filter skill: if no filter skill then remove filtered card * allow warning and critical to show a popup, and fix warnings from QML * resource: move general audio/image to packages/ * move assets of cards * FKP: modify * use sqlite db to manage packages * packman cli * packman gui * use Popup for error dialog * android full screen note * fix android ssl problem
49 lines
1.3 KiB
QML
49 lines
1.3 KiB
QML
import QtQuick
|
|
|
|
QtObject {
|
|
// Client configuration
|
|
property real winWidth
|
|
property real winHeight
|
|
property var conf: ({})
|
|
property string lastLoginServer
|
|
property var savedPassword: ({})
|
|
property string lobbyBg
|
|
property string roomBg
|
|
property string bgmFile
|
|
|
|
// Player property of client
|
|
property string serverAddr
|
|
property string screenName: ""
|
|
property string password: ""
|
|
property string cipherText
|
|
|
|
// Client data
|
|
property int roomCapacity: 0
|
|
property int roomTimeout: 0
|
|
property bool enableFreeAssign: false
|
|
property bool observing: false
|
|
|
|
function loadConf() {
|
|
conf = JSON.parse(Backend.loadConf());
|
|
winWidth = conf.winWidth || 960;
|
|
winHeight = conf.winHeight || 540;
|
|
lastLoginServer = conf.lastLoginServer || "127.0.0.1";
|
|
savedPassword = conf.savedPassword || {};
|
|
lobbyBg = conf.lobbyBg || AppPath + "/image/background";
|
|
roomBg = conf.roomBg || AppPath + "/image/gamebg";
|
|
bgmFile = conf.bgmFile || AppPath + "/audio/system/bgm.mp3";
|
|
}
|
|
|
|
function saveConf() {
|
|
conf.winWidth = realMainWin.width;
|
|
conf.winHeight = realMainWin.height;
|
|
conf.lastLoginServer = lastLoginServer;
|
|
conf.savedPassword = savedPassword;
|
|
conf.lobbyBg = lobbyBg;
|
|
conf.roomBg = roomBg;
|
|
conf.bgmFile = bgmFile;
|
|
|
|
Backend.saveConf(JSON.stringify(conf, undefined, 2));
|
|
}
|
|
}
|