FreeKill/Fk/SkillInteraction/SkillSpin.qml

21 lines
392 B
QML
Raw Normal View History

// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Controls
SpinBox {
background: Rectangle { color: "#88EEEEEE" }
property int answer: value
property string skill
// from, to
onValueChanged: {
Backend.callLuaFunction(
"SetInteractionDataOfSkill",
[skill, JSON.stringify(answer)]
);
roomScene.dashboard.startPending(skill);
}
}