Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CollectBoundKeys()

void Terraria.GameContent.ChromaHotkeyPainter.CollectBoundKeys ( )
inline

Definition at line 207 of file ChromaHotkeyPainter.cs.

208 {
210 {
211 key.Value.Unbind();
212 }
213 _keys.Clear();
214 foreach (KeyValuePair<string, List<string>> item in PlayerInput.CurrentProfile.InputModes[InputMode.Keyboard].KeyStatus)
215 {
216 _keys.Add(item.Key, new PaintKey(item.Key, item.Value));
217 }
219 {
220 key2.Value.Bind();
221 }
223 {
224 _keys["Up"],
225 _keys["Down"],
226 _keys["Left"],
227 _keys["Right"]
228 };
229 _healKey = _keys["QuickHeal"];
230 _mountKey = _keys["QuickMount"];
231 _jumpKey = _keys["Jump"];
232 _grappleKey = _keys["Grapple"];
233 _throwKey = _keys["Throw"];
234 _manaKey = _keys["QuickMana"];
235 _buffKey = _keys["QuickBuff"];
236 _smartCursorKey = _keys["SmartCursor"];
237 _smartSelectKey = _keys["SmartSelect"];
241 {
242 _xnaKeysInUse.AddRange(key3.Value.GetXNAKeysInUse());
243 }
244 _xnaKeysInUse = _xnaKeysInUse.Distinct().ToList();
245 }
void Add(TKey key, TValue value)
void AddRange(IEnumerable< T > collection)
Definition List.cs:275
readonly List< ReactiveRGBKey > _reactiveKeys
readonly Dictionary< string, PaintKey > _keys
static PlayerInputProfile CurrentProfile

References Terraria.GameContent.ChromaHotkeyPainter._buffKey, Terraria.GameContent.ChromaHotkeyPainter._grappleKey, Terraria.GameContent.ChromaHotkeyPainter._healKey, Terraria.GameContent.ChromaHotkeyPainter._jumpKey, Terraria.GameContent.ChromaHotkeyPainter._keys, Terraria.GameContent.ChromaHotkeyPainter._manaKey, Terraria.GameContent.ChromaHotkeyPainter._mountKey, Terraria.GameContent.ChromaHotkeyPainter._reactiveKeys, Terraria.GameContent.ChromaHotkeyPainter._smartCursorKey, Terraria.GameContent.ChromaHotkeyPainter._smartSelectKey, Terraria.GameContent.ChromaHotkeyPainter._throwKey, Terraria.GameContent.ChromaHotkeyPainter._wasdKeys, Terraria.GameContent.ChromaHotkeyPainter._xnaKeysInUse, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.List< T >.AddRange(), System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Collections.Generic.List< T >.Clear(), Terraria.GameInput.PlayerInput.CurrentProfile, System.item, and System.key.