[Help] SetBannerType() function issue
-
I was reading up on NativeUI menu functions and I am currently working on a mod that I really don't want the default banner present on. I read about creating an empty UIResRectangle() and setting a color to it. The problem is I get two errors. The first error tells me that there is no color definition for UIResRectangle. The second error I get states that the type UIRectangle(I'm using UIResRectangle though???)is defined in an assembly that isn't referenced, but I know that I have ScriptHookVDotNet2 referenced and I don't get any errors anywhere else. Am I trying to use outdated code?
Code:
_menuPool = new MenuPool();
var mainMenu = new UIMenu("", "", new Point(0, -107));
UIResRectangle menuType = new UIResRectangle(); //No problems here
menuType.Color = Color.FromArgb(0, 0, 0, 0); //Error says there is no definition for color
mainMenu.SetBannerType(menuType); //Error says I'm missing a reference to ScriptHookVDotNet
_menuPool.Add(mainMenu);