HUD Menu, need button to preform action/command

I solved it!


function CheckBounds(float MousePositionX, float MousePositionY)
{
    local float FinalRangeX;
    local float FinalRangeY;

    local DFPlayerController PC;
	local DFHUD DHUD;

    PC = DFPlayerController(InputOwner.Outer);
	DHUD = DFHUD(PC.MyHUD);

     `log("CheckBounds Loaded!!");

    if(bIsActive == true)
    {
       FinalRangeX = XT + Width;  //From the X position add to that the width to create a value starting from the X position to the legnth of the object.
       FinalRangeY = YL + Height; //From the Y position add to that the height to create a value starting from the Y position to the height of the object.

       //CheckMousePositionWithinBounds

       if(MousePositionX >= XT && MousePositionX <= FinalRangeX && MousePositionY >= YL && MousePositionY <= FinalRangeY  )
       {
         //`log("Within Bounds");
          bIsHighlighted = true; //Highlight Object (Switch UV Texture IDx)
          if (DHUD.PendingLeftPressed != false)
          {
            `log("Clicked Button");
            ButtonClicked(Tag);
          }
       }
       else
       {
         bIsHighlighted = false;
       }
    }
}


function ButtonClicked(string ETag)
{
    local DFPlayerController PC;
    local DFHUD DHUD;

    PC = DFPlayerController(InputOwner.Outer);
    DHUD = DFHUD(PC.MyHUD);

    if( PC != none )
    {
        DHUD.DoButtonAction(ETag);
    }
}