mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 11:42:45 +08:00
c6d883eccf
* huatuo * biyue * gender of player * let tablepile smaller * card emotions * remove getOtherPlayers * guicai * skill audio * card audio * death audio * bgm * damage sound * local bgm * add more skill audio * android: dont link to quickcontrol2 * android: fix ifndef * yield only when need * modify cpp according to clazy * reduce malloc times * revert yield * qingguo * fix back to lobby * use compact json in cpp * notifySkillInvoke animation * util: string2json * losehp; tablepile fix * judge result animation * add scrollbar for logedit * add lock on waitForReply * fix: virtual jink has no effect * tiandu * fix: duplicated cards when related to equiparea * ui: disable okcancel when replying * ui: disable invaild card when responding * game: skill & card use history * game: more judge on vsskill's canUse * luoyi * login page i18n * i18n for server error message * tuxi * expand equip area when needed * add footnote to cards from pile * ui: only filter CanUseCard when playing * expand equip when responding * prompt * prompt for askforchoice * guanxing * fix guanxing * tieqi * liuli * doc for trigger skill * xiaoji * lianying * fanjian * rende * add skill's subclass * TODO: add tmd skill functions for other cards * paoxiao * qicai * guose * yiji (WIP)
42 lines
907 B
QML
42 lines
907 B
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
Flickable {
|
|
id: root
|
|
property alias font: textEdit.font
|
|
property alias text: textEdit.text
|
|
property alias color: textEdit.color
|
|
property alias textFormat: textEdit.textFormat
|
|
|
|
flickableDirection: Flickable.VerticalFlick
|
|
contentWidth: textEdit.width
|
|
contentHeight: textEdit.height
|
|
clip: true
|
|
ScrollBar.vertical: ScrollBar {
|
|
parent: root.parent
|
|
anchors.top: root.top
|
|
anchors.right: root.right
|
|
anchors.bottom: root.bottom
|
|
}
|
|
|
|
TextEdit {
|
|
id: textEdit
|
|
|
|
width: root.width
|
|
clip: true
|
|
readOnly: true
|
|
selectByKeyboard: true
|
|
selectByMouse: true
|
|
wrapMode: TextEdit.WrapAnywhere
|
|
textFormat: TextEdit.RichText
|
|
}
|
|
|
|
function append(text) {
|
|
let autoScroll = atYEnd;
|
|
textEdit.append(text);
|
|
if (autoScroll && contentHeight > contentY + height) {
|
|
contentY = contentHeight - height;
|
|
}
|
|
}
|
|
}
|