Match keyboard GUI manager

This commit is contained in:
coah
2026-09-22 06:47:43 +00:00
parent 71b4ac3296
commit 8923728dc4
2 changed files with 5 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ namespace textinput {
public:
PaneComponent(u32 id) : GUIComponent(id) { mpPane = NULL; }
virtual ~PaneComponent() {} // 0x08
virtual ~PaneComponent(); // 0x08
virtual void draw(); // 0x1C

View File

@@ -315,8 +315,11 @@ namespace textinput {
return NULL;
}
PaneComponent::~PaneComponent() {}
void PaneManager::setAllBoundingBoxComponentTriggerTarget(bool bEnable) {
for (u32 i = 0; i < nw4r::ut::List_GetSize(&mPaneComponents); i++) {
const volatile u16& numObjects = mPaneComponents.numObjects;
for (u32 i = 0; i < numObjects; i++) {
PaneToComponent* p = static_cast<PaneToComponent*>(nw4r::ut::List_GetNth(&mPaneComponents, (u16)i));
if (nw4r::ut::DynamicCast<nw4r::lyt::Bounding*>(p->getPane())) {
p->mpComponent->setTriggerTarget(bEnable);