alexguirre / RAGENativeUI

MIT License
117 stars 37 forks source link

UIMenuCheckboxItem instance draws a black text rather than white #127

Closed nora-soderlund closed 3 years ago

nora-soderlund commented 3 years ago

An UIMenuCheckboxItem instance in a TabInteractiveListItem item list draws a black text rather than white, even if the foreground color is changed to HudColor.White.GetColor().

Minimal, Reproducible Example:

            TabView tabView = new TabView("Title") {
                Tabs = new List<TabItem>() {
                    new TabSubmenuItem("Name", new List<TabItem>() {
                        (TabItem)new TabInteractiveListItem("Name", new List<UIMenuItem>() {
                            new UIMenuCheckboxItem("Text", false) {
                                ForeColor = HudColor.White.GetColor()
                            }
                        }) 
                    })
                },

                Visible = true
            };

            GameFiber.StartNew(() => {
                while (true) {
                    GameFiber.Yield();

                    tabView.Update();
                }
            });

bug