Help with UI Override

Discuss modding questions and implementation details.
Post Reply
l3lessed
Posts: 1399
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Help with UI Override

Post by l3lessed »

I'm trying to update outfit manager UI to work with classic UI. However, I can't get the UI override class I'm creating to register and load using the interface manager. I can't figure out why it isn't picking it up. Here are the two files. Despite the custom class being detected in code and the mod containing both cs files, it says it can't find it.
MissingMethodException: Constructor on type 'DaggerfallWorkshop.Game.UserInterfaceWindows.OutfitManagerInventoryWindow' not found.
Here is the custom UI class.

Code: Select all

using UnityEngine;
using System;
using DaggerfallWorkshop.Game.UserInterface;
using System.Linq;


namespace DaggerfallWorkshop.Game.UserInterfaceWindows
{
    public class OutfitManagerInventoryWindow : DaggerfallInventoryWindow
    {
        private TextLabel BundleLabel;
        private TextLabel DismantleLabel;

        public OutfitManagerInventoryWindow(IUserInterfaceManager uiManager)
    : base(uiManager)
        {
            
        }
}
here is the override being called.

Code: Select all

        void Awake()
        {
                UIWindowFactory.RegisterCustomUIWindow(UIWindowType.Inventory, typeof(OutfitManagerInventoryWindow));
        }
My Daggerfall Mod Github: l3lessed DFU Mod Github

My Beth Mods: l3lessed Nexus Page

Daggerfall Unity mods: Combat Overhaul Mod

Enjoy the free work I'm doing? Consider lending your support.

l3lessed
Posts: 1399
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Help with UI Override

Post by l3lessed »

Solved it thanks to inventory filter mod. Needed to setup a previous window for the base window.

Code: Select all

        public OutfitManagerInventoryWindow(IUserInterfaceManager uiManager, DaggerfallBaseWindow previous = null)
    : base(uiManager, previous)
        {

        }
My Daggerfall Mod Github: l3lessed DFU Mod Github

My Beth Mods: l3lessed Nexus Page

Daggerfall Unity mods: Combat Overhaul Mod

Enjoy the free work I'm doing? Consider lending your support.

Post Reply