Files
TheracUE/Source/MyProject/Private/ModeInputTextBox.cpp
wonkyhonky2024 3b36a1f6a7 okey-dokey
2025-05-10 21:31:54 +01:00

38 lines
758 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "ModeInputTextBox.h"
void UModeInputTextBox::HandleOnTextChanged(FText const & inText) {
auto & s = inText.ToString();
auto lastChar = s.LeftChop(1);
lastChar.ToUpperInline();
if (!lastChar.IsEmpty()) {
switch (myTarget) {
case THSModeTarget::Energy:
switch (lastChar[0]) {
case 'E':
break;
case 'X':
break;
default:
break;
}
break;
case THSModeTarget::OpMode:
switch (lastChar[0]) {
case 'T':
break;
case 'R':
break;
case 'P':
break;
}
break;
default:
break;
}
}
SetText(FText::FromString(lastChar));
}