I'm new to C# and Unity but I believe this can be done by overriding DaggerfallExteriorAutomapWindow's UpdateAutomapView method.
Here's what I have so far:
Code: Select all
public override void UpdateAutomapView()
{
base.UpdateAutomapView();
for (int i = 0; i < exteriorAutomap.buildingNameplates.Length; i++)
{
if (NameplatePassesFilter(exteriorAutomap.buildingNameplates[i].textLabel.Text))
{
exteriorAutomap.buildingNameplates[i].textLabel.Enabled(false);
}
}
}
- 'FlynsarmyExteriorAutomapWindow.UpdateAutomapView()': cannot override inherited member 'DaggerfallExteriorAutomapWindow.UpdateAutomapView()' because it is not marked virtual, abstract, or override
- 'DaggerfallExteriorAutomapWindow.exteriorAutomap' is inaccessible due to its protection level
Code: Select all
public new void UpdateAutomapView()
{
base.UpdateAutomapView();
...
}
EDIT: Looks like I might be able to do something like this?
Code: Select all
public new void UpdateAutomapView()
{
base.UpdateAutomapView();
for (int i = 0; i < PanelRenderAutomap.Components.Count(); i++)
{
foreach (TextLabel label in PanelRenderAutomap.Components)
{
if (!NameplatePassesFilter(label.Text))
{
PanelRenderAutomap.Components.Remove(label);
}
}
}
}