c-o
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
using StgSharp.Geometries;
|
||||
using StgSharp.Graphics;
|
||||
using StgSharp.Math;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Controls
|
||||
{
|
||||
public class KeyboardButtonGroup : ControllingItem
|
||||
{
|
||||
private List<TriggerButton> buttonList;
|
||||
|
||||
private TriggerButton current;
|
||||
|
||||
public KeyboardButtonGroup()
|
||||
{
|
||||
buttonList = new List<TriggerButton>();
|
||||
}
|
||||
|
||||
public void AddButton(TriggerButton button)
|
||||
{
|
||||
buttonList.Add(button);
|
||||
}
|
||||
|
||||
public TriggerButton CurrentButton
|
||||
{
|
||||
get => current;
|
||||
}
|
||||
public override vec4d[] TextureBox
|
||||
{
|
||||
get => throw new NotSupportedException();
|
||||
}
|
||||
|
||||
public void MoveLeft()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void MoveRight()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void MoveUp()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void MoveDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void Confirm()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override IEnumerator<PlainGeometryMesh> GetEnumerator()
|
||||
{
|
||||
foreach (var item in buttonList)
|
||||
{
|
||||
yield return item.Single();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user