private void CreateCollection(List <AllStatus> status, ListBox list) { Item item = Item.Instance(); List <ItemInfo>[] itemInfoList = { item.Tools, item.Equipments, item.Importants, item.Recipes }; foreach (var itemInfos in itemInfoList) { foreach (var info in itemInfos) { StackPanel panel = new StackPanel(); panel.Orientation = Orientation.Horizontal; Label label = new Label(); label.Content = info; label.Width = 150; panel.Children.Add(label); for (uint j = 0; j < info.Count; j++) { CheckBox check = new CheckBox(); panel.Children.Add(check); mCollectionButtonCheck.Append(check); status.Add(new AllCheckBoxBitStatus(check, 0x8930 + (info.ID + j) / 8, (info.ID + j) % 8)); } list.Items.Add(panel); } } }
private void CreateSmith(List <AllStatus> status, ListBox list) { uint number = 4; foreach (var info in Item.Instance().Equipments) { StackPanel panel = new StackPanel(); panel.Orientation = Orientation.Horizontal; Label label = new Label(); label.Content = info; label.Width = 150; panel.Children.Add(label); for (int i = 0; i < info.Count; i++) { CheckBox check = new CheckBox(); panel.Children.Add(check); mSmithButtonCheck.Append(check); status.Add(new AllCheckBoxBitStatus(check, 0x9644 + number / 8, number % 8)); number++; } list.Items.Add(panel); } }
private void CreateHat(List <AllStatus> status, StackPanel panel) { Item item = Item.Instance(); foreach (ItemInfo info in item.Hats) { Grid grid = new Grid(); grid.ColumnDefinitions.Add(new ColumnDefinition()); grid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(45) }); CheckBox obtain = new CheckBox(); status.Add(new HatObtain(obtain, info.ID)); mHatButtonCheck.Append(obtain); obtain.Content = info.Name; obtain.VerticalAlignment = VerticalAlignment.Center; grid.Children.Add(obtain); TextBox ticket = new TextBox(); status.Add(new AllNumberStatus(ticket, Util.HatStartAddress + info.ID, 1, 0, 99)); ticket.SetValue(Grid.ColumnProperty, 1); grid.Children.Add(ticket); panel.Children.Add(grid); } }
public override void Init() { foreach (var info in Item.Instance().WatchWords) { CheckBox check = new CheckBox(); check.Content = info; mList.Items.Add(check); mButtonCheck.Append(check); } }
public override void Init() { mList.Items.Clear(); foreach (ItemInfo info in Item.Instance().Techniques) { CheckBox check = new CheckBox(); check.Content = info; mList.Items.Add(check); mButtonCheck.Append(check); } }
public override void Init() { mZoom.Items.Clear(); foreach (ItemInfo info in Item.Instance().Zooms) { CheckBox check = new CheckBox(); check.Content = info; mDict.Add(info.ID, check); mZoom.Items.Add(check); mButtonCheck.Append(check); } }
public override void Init() { mList.Items.Clear(); foreach (ItemInfo info in mInfos) { CheckBox check = new CheckBox(); check.Content = info; mDict.Add(info.ID, check); mList.Items.Add(check); mButtonCheck.Append(check); } }
private void CreateTitle(List <AllStatus> status, ListBox list) { Item item = Item.Instance(); foreach (ItemInfo info in item.Titles) { CheckBox obtain = new CheckBox(); status.Add(new TitleObtain(obtain, info.ID)); mTitleButtonCheck.Append(obtain); obtain.Content = info.Name; list.Items.Add(obtain); } }