21 lines
392 B
QML
21 lines
392 B
QML
|
// 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);
|
||
|
}
|
||
|
|
||
|
}
|