20 lines
509 B
C++
20 lines
509 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "EleriButtonGroupBase.h"
|
|
|
|
void UEleriButtonGroupBase::SelectButton(UCommonButtonBase* Button, bool bAllowSound) {
|
|
int32 Index = FindButtonIndex(Button);
|
|
if (Index == GetSelectedButtonIndex()) return;
|
|
|
|
SelectButtonAtIndex(Index, bAllowSound);
|
|
}
|
|
|
|
void UEleriButtonGroupBase::AddButtonToGroup(UCommonButtonBase* Button) {
|
|
AddWidget(Button);
|
|
}
|
|
|
|
void UEleriButtonGroupBase::RemoveAllButtonsFromGroup() {
|
|
RemoveAll();
|
|
}
|