Skip to content

Commit

Permalink
~ add warnings in case of unknown/rare vars
Browse files Browse the repository at this point in the history
  • Loading branch information
nikich340 committed Aug 29, 2022
1 parent c233a4f commit 92cb8cf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/W3MayaAnimUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,9 @@ void MAU::onChanged_eventContentRow(int newRow) {

eventsUpdateContentData(map, ui->checkEventsVarEnumType, "enumType", "CName");
eventsUpdateContentData(map, ui->checkEventsVarEnumValue, "enumValue", "Int32");
if ( !map.isEmpty() ) {
addLog(QString("[WARNING] SEnumVariant %1, the following vars are unknown for this type: %2").arg(entryName).arg(map.keys().join("; ")), logWarning);
}
} else if (entryType == "CPreAttackEventData") {
ui->stackEventsValue->setCurrentIndex(6);
QHash<QString, QVariant> map = value.value< QHash<QString, QVariant> >();
Expand All @@ -1314,6 +1317,9 @@ void MAU::onChanged_eventContentRow(int newRow) {
eventsUpdateContentData(map, ui->checkEventsVarAttackSwingDir, "swingDir", "EAttackSwingDirection");
eventsUpdateContentData(map, ui->checkEventsVarAttackSound, "soundAttackType", "CName");
eventsUpdateContentData(map, ui->checkEventsVarAttackCanBeDodged, "canBeDodged", "Bool");
if ( !map.isEmpty() ) {
addLog(QString("[WARNING] CPreAttackEventData %1, the following vars are unknown for this type: %2").arg(entryName).arg(map.keys().join("; ")), logWarning);
}
}

m_eventsAcceptSignals = true;
Expand Down

0 comments on commit 92cb8cf

Please sign in to comment.