Interface IBindGroup
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
A collection of unique keybinds in the BindManager
public interface IBindGroup : IReadOnlyList<IBind>, IReadOnlyCollection<IBind>, IEnumerable<IBind>, IEnumerable
- Inherited Members
Properties
ID
Unique identifer
object ID { get; }
Property Value
Index
Index of the bind group in its associated client
int Index { get; }
Property Value
this[string]
Returns the bind with the name given, if it exists.
IBind this[string name] { get; }
Parameters
namestring
Property Value
Name
Bind group name
string Name { get; }
Property Value
Methods
AddBind(string, IReadOnlyList<ControlHandle>, IReadOnlyList<IReadOnlyList<ControlHandle>>)
Adds a bind with the given name and the given key combo. Throws an exception if the bind is invalid.
IBind AddBind(string bindName, IReadOnlyList<ControlHandle> combo, IReadOnlyList<IReadOnlyList<ControlHandle>> aliases = null)
Parameters
bindNamestringcomboIReadOnlyList<ControlHandle>aliasesIReadOnlyList<IReadOnlyList<ControlHandle>>
Returns
AddBind(string, IReadOnlyList<int>, IReadOnlyList<IReadOnlyList<int>>)
Adds a bind with the given name and the given key combo. Throws an exception if the bind is invalid.
IBind AddBind(string bindName, IReadOnlyList<int> newConIDs, IReadOnlyList<IReadOnlyList<int>> aliases = null)
Parameters
bindNamestringnewConIDsIReadOnlyList<int>aliasesIReadOnlyList<IReadOnlyList<int>>
Returns
ClearSubscribers()
Clears bind subscribers for the entire group
void ClearSubscribers()
DoesBindExist(string)
Returns true if the group contains a bind with the given name.
bool DoesBindExist(string name)
Parameters
namestring
Returns
DoesComboConflict(IReadOnlyList<ControlHandle>, IBind, int)
Returns true if the given list of controls conflicts with any existing combos
bool DoesComboConflict(IReadOnlyList<ControlHandle> newCombo, IBind currentBind = null, int alias = 0)
Parameters
newComboIReadOnlyList<ControlHandle>currentBindIBindaliasint
Returns
DoesComboConflict(IReadOnlyList<int>, IBind, int)
Determines if given combo is equivalent to any existing combos
bool DoesComboConflict(IReadOnlyList<int> newConIDs, IBind currentBind = null, int alias = 0)
Parameters
newConIDsIReadOnlyList<int>currentBindIBindaliasint
Returns
GetBind(string)
Returns the bind with the name given, if it exists.
IBind GetBind(string name)
Parameters
namestring
Returns
GetBindData()
Retrieves the set of key binds as an array of BindDefinition
MyTuple<string, string[], string[][]>[] GetBindData()
Returns
GetBindDefinitions()
Retrieves the set of key binds as an array of BindDefinition
BindDefinition[] GetBindDefinitions()
Returns
RegisterBinds(BindGroupInitializer)
Registers a list of binds using the names given paired with associated control indices.
void RegisterBinds(BindGroupInitializer bindData)
Parameters
bindDataBindGroupInitializer
RegisterBinds(IReadOnlyList<string>)
Registers a list of binds using the names given.
void RegisterBinds(IReadOnlyList<string> bindNames)
Parameters
bindNamesIReadOnlyList<string>
TryLoadBindData(IReadOnlyList<BindDefinition>)
Attempts to load bind combinations from bind data. Will not register new binds.
bool TryLoadBindData(IReadOnlyList<BindDefinition> bindData)
Parameters
bindDataIReadOnlyList<BindDefinition>
Returns
TryRegisterBind(string, out IBind)
Tries to register an empty bind using the given name.
bool TryRegisterBind(string bindName, out IBind newBind)
Parameters
Returns
TryRegisterBind(string, out IBind, IReadOnlyList<ControlHandle>, IReadOnlyList<IReadOnlyList<ControlHandle>>)
Tries to register a bind using the given name and the given key combo.
bool TryRegisterBind(string bindName, out IBind newBind, IReadOnlyList<ControlHandle> combo, IReadOnlyList<IReadOnlyList<ControlHandle>> aliases = null)
Parameters
bindNamestringnewBindIBindcomboIReadOnlyList<ControlHandle>aliasesIReadOnlyList<IReadOnlyList<ControlHandle>>
Returns
TryRegisterBind(string, out IBind, IReadOnlyList<int>, IReadOnlyList<IReadOnlyList<int>>)
Tries to register a bind using the given name and the given key combo.
bool TryRegisterBind(string bindName, out IBind newBind, IReadOnlyList<int> combo, IReadOnlyList<IReadOnlyList<int>> aliases = null)
Parameters
bindNamestringnewBindIBindcomboIReadOnlyList<int>aliasesIReadOnlyList<IReadOnlyList<int>>