mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
162b3af505
* distance & snatch * distance & snatch - clean * fix: client.alive_players * room:askForCardChosen(todo: snatch) * add skill to players(uncomplete) * ui of skill btn * expand pile(not completed) * Use card2 (#23) * snatch (todo: owner_map) * owner_map * remove too many snatch * update * call active skill's functions * use zhiheng * Qt6 (#24) * use qt6 * android compiling * remove version number of qml import * correct anti-sql injection; update deprecated code * add fkparse as submodule * link fkparse, and write simple functions * adjust ui * adjust layout for photos; fix qml warning * android problem fix (partially) * move ico * update copy_assets * update logic for ok/cancel btn
35 lines
632 B
QML
35 lines
632 B
QML
import QtQuick
|
|
import ".."
|
|
|
|
GraphicsBox {
|
|
property var options: []
|
|
property string skill_name: ""
|
|
property int result
|
|
|
|
id: root
|
|
title.text: Backend.translate("$Choice").arg(Backend.translate(skill_name))
|
|
width: Math.max(140, body.width + 20)
|
|
height: body.height + title.height + 20
|
|
|
|
Column {
|
|
id: body
|
|
x: 10
|
|
y: title.height + 5
|
|
spacing: 10
|
|
|
|
Repeater {
|
|
model: options
|
|
|
|
MetroButton {
|
|
text: Backend.translate(modelData)
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
onClicked: {
|
|
result = index;
|
|
root.close();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|