Exemple #1
0
 internal StatusSiegeItemUINode(
     string helpLabel,
     Func <Game_Unit, ItemState> itemFormula)
     : base(helpLabel, itemFormula)
 {
     Item             = new Attack_Item();
     Item.draw_offset = new Vector2(0, 0);
 }
        protected override CommandUINode item(string str, int i)
        {
            var item_data = items(i);

            if (!is_valid_item(get_equipment(), i))
            {
                return(null);
            }

            var text = new Attack_Item();

            text.set_image(actor(), item_data);
            var text_node = new ItemUINode("", text, this.column_width);

            text_node.loc = item_loc(i);
            return(text_node);
        }