/// <summary> /// Show the gameButton with the key, if possible /// </summary> /// <param name="button"></param> /// <returns></returns> public string GameButtonName(GameButton button) { //has the action an input? if (!ContainsKey(button.id)) { return(button.Name()); } return(this[button.id].Name()); }
public void Call(Player player) { GameButton b = L.b.gameButtons[id]; if (!b.req.Check(player)) { NAudio.PlayBuzzer(); UIHelper.ShowOk(b.Name(), b.req.Desc(player)); return; } Run(player); }