I'm trying to figure out how to draw a simple rectangle. I started by trying to make a UIBGBox: GrimyBox1 = Spawn(class'UIBGBox', self);
GrimyBox1.InitBG('BGBoxSimple').SetBGColor("red");
GrimyBox1.SetHighlighed(true);
GrimyBox1.AnchorCenter();
GrimyBox1.SetPosition(-250,400);
GrimyBox1.SetSize(5 * (GrimyHitChance - GrimyCritChance),20);
GrimyBox2 = Spawn(class'UIBGBox', self);
GrimyBox2.InitBG('BGBoxSimple').SetBGColor("yellow");
GrimyBox2.SetHighlighed(true);
GrimyBox2.AnchorCenter();
GrimyBox2.SetPosition(-250 + 5 * (GrimyHitChance - GrimyCritChance - GrimyDodgeChance),400);
GrimyBox2.SetSize(5 * GrimyCritChance,20);The above code will draw box1, but will not draw box2.If I comment out the code for box1, box2 will appear. I don't understand why these two are mutually exclusive. I tried using UIPanel instead of UIBGBox, but nothing appears. has anyone else experimented with UI elements yet?