private void GiveEverything(IReadOnlyList <string> items, bool value = true) { if (!value) { for (ushort i = 0; i < CLB_Items.Items.Count; i++) { CLB_Items.SetItemChecked(i, false); } return; } var skip = GameLists.NoCheckReceived; for (ushort i = 1; i < CLB_Items.Items.Count; i++) { if (string.IsNullOrEmpty(items[i])) { continue; } if (skip.Contains(i)) { continue; } CLB_Items.SetItemChecked(i, true); } System.Media.SystemSounds.Asterisk.Play(); }
public void GiveAll(IReadOnlyList <ushort> indexes, bool value = true) { foreach (var item in indexes) { CLB_Items.SetItemChecked(item, value); } System.Media.SystemSounds.Asterisk.Play(); }
private void B_GiveAll_Click(object sender, EventArgs e) { var items = GameInfo.Strings.itemlist; bool value = ModifierKeys != Keys.Alt; for (int i = 0x50; i < CLB_Items.Items.Count; i++) { if (string.IsNullOrEmpty(items[i])) { continue; } CLB_Items.SetItemChecked(i, value); } System.Media.SystemSounds.Asterisk.Play(); }
private void GiveItem(ushort item, bool value = true) { CLB_Items.SetItemChecked(item, value); var remakeIndex = ItemRemakeUtil.GetRemakeIndex(item); if (!ItemRemakeInfoData.List.TryGetValue(remakeIndex, out var info)) return; for (int i = 0; i < ItemRemakeInfo.BodyColorCountMax; i++) { if (!info.HasBodyColor(i)) continue; int rIndex = (remakeIndex * ItemRemakeInfo.BodyColorCountMax) + i; CLB_Remake.SetItemChecked(rIndex, value); } }
private void GiveEverything(IReadOnlyList <string> items, bool value = true) { for (int i = 1; i < CLB_Items.Items.Count; i++) { if (string.IsNullOrEmpty(items[i])) { continue; } if (i == Item.DIYRecipe) { continue; } CLB_Items.SetItemChecked(i, value); } System.Media.SystemSounds.Asterisk.Play(); }