Actually, Onclick sends a parameter of type widget_message, which should be an interfacce made by Player and Widget.
You can access the player to give the new 2 buttons by writing this:
Functions(Wdata : widget_message):void=
if(Player := Wdata.Player)=
#Your code here