示例#1
0
文件: BaseGUI.cs 项目: ShoxTech/kRPG
        public InterfaceButton AddButton(Func <Rectangle> position, Action <Player> pressAction, Action <Player, SpriteBatch> hoverAction)
        {
            InterfaceButton button = new InterfaceButton(position, pressAction, hoverAction);

            buttons.Add(button);
            return(button);
        }
示例#2
0
文件: BaseGUI.cs 项目: ShoxTech/kRPG
 public void RemoveButton(InterfaceButton button)
 {
     buttons.Remove(button);
 }