-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconditionpropertiesdb.cpp
39 lines (32 loc) · 1.18 KB
/
conditionpropertiesdb.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "conditionpropertiesdb.h"
#include "ui_conditionpropertiesdb.h"
ConditionPropertiesDB::ConditionPropertiesDB(QWidget *parent) :
QWidget(parent),
ui(new Ui::ConditionPropertiesDB)
{
ui->setupUi(this);
}
ConditionPropertiesDB::~ConditionPropertiesDB()
{
delete ui;
}
void ConditionPropertiesDB::on_spinConditionHealChance_valueChanged(int arg1)
{
ui->spinConditionHealMaxTurns->setSuffix(QString(" turn(s), with a chance of %1% every turn").arg(arg1));
}
void ConditionPropertiesDB::on_spinConditionHpBattleFixed_valueChanged(int arg1)
{
ui->spinConditionHpBattlePercent->setSuffix(QString(" / 100 + %1) every turn").arg(arg1));
}
void ConditionPropertiesDB::on_spinConditionHpFieldFixed_valueChanged(int arg1)
{
ui->spinConditionHpFieldPercent->setSuffix(QString(" / 100 + %1) every turn").arg(arg1));
}
void ConditionPropertiesDB::on_spinConditionMpBattleFixed_valueChanged(int arg1)
{
ui->spinConditionMpBattlePercent->setSuffix(QString(" / 100 + %1) every turn").arg(arg1));
}
void ConditionPropertiesDB::on_spinConditionMpFieldFixed_valueChanged(int arg1)
{
ui->spinConditionMpFieldPercent->setSuffix(QString(" / 100 + %1) every turn").arg(arg1));
}