1
0
KF2-Dev-Scripts/KFGame/Classes/KFGFxPopup_FriendsConfirm.uc

59 lines
1.3 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFGFxPopup_FriendsConfirm
//=============================================================================
// Class Description
//=============================================================================
// Killing Floor 2
// Copyright (C) 2019 SPL
// - Pavel Rodionov 10/09/2019
//=============================================================================
class KFGFxPopup_FriendsConfirm extends KFGFxObject_Popup;
function AssignLeftButtonDelegate( delegate<LeftButtonPress> LeftDelegate)
{
LeftButtonPress = LeftDelegate;
}
function AssignRightButtonDelegate( delegate<RightButtonPress> RightDelegate)
{
RightButtonPress = RightDelegate;
}
function ClearDelegates()
{
LeftButtonPress = none;
MiddleButtonPress = none;
RightButtonPress = none;
}
function Callback_onBtnAcceptClick()
{
`log(getFuncName());
if( LeftButtonPress != none )
{
`log("LeftButtonPress");
LeftButtonPress();
}
ClosePopUp();
}
function Callback_onBtnDeclineClick()
{
`log(getFuncName());
if( RightButtonPress != none )
{
`log("RightButtonPress");
RightButtonPress();
}
ClosePopUp();
}
defaultproperties
{
}