예제 #1
0
 public void SelectTargetWindows(Item_In_Menu c)
 {
     Kernel_bin.Target t = c.Battle.Target;
     SelectTargetWindows(t);
     Command = Kernel_bin.BattleCommands[4];
     Item    = c;
 }
예제 #2
0
                public override void ReInit()
                {
                    base.ReInit();
                    Source = Memory.State;
                    if (Source != null && Source.Items != null)
                    {
                        byte pos = 0;
                        for (byte i = 0; pos < rows && i < Source.Items.Length; i++)
                        {
                            Saves.Item item = Source.Items[i];
                            //byte itembo = Source.Itemsbattleorder[i];
                            if (item.ID == 0)
                            {
                                continue;
                            }
                            Kernel_bin.Battle_Items_Data     bitemdata  = Kernel_bin.BattleItemsData.Count > item.ID ? Kernel_bin.BattleItemsData[item.ID] : null;
                            Kernel_bin.Non_battle_Items_Data nbitemdata = bitemdata == null ? Kernel_bin.NonbattleItemsData[item.ID - Kernel_bin.BattleItemsData.Count] : null;
                            Item_In_Menu itemdata = Memory.MItems.Items[item.ID];

                            _helpStr[pos] = bitemdata == null ? nbitemdata.Description : bitemdata.Description;
                            ((IGMDataItem_String)(ITEM[pos, 0])).Data = bitemdata == null ? nbitemdata.Name : bitemdata.Name;
                            ((IGMDataItem_Int)(ITEM[pos, 1])).Data    = item.QTY;
                            pos++;
                        }
                    }
                }