split Widget static bits into Ui static class
This commit is contained in:
@@ -49,7 +49,7 @@ namespace OpenRA.Widgets
|
||||
var check = new Rectangle(rect.Location, new Size(Bounds.Height, Bounds.Height));
|
||||
var state = disabled ? "checkbox-disabled" :
|
||||
Depressed && HasPressedState ? "checkbox-pressed" :
|
||||
Widget.MouseOverWidget == this ? "checkbox-hover" :
|
||||
Ui.MouseOverWidget == this ? "checkbox-hover" :
|
||||
"checkbox";
|
||||
|
||||
WidgetUtils.DrawPanel(state, check);
|
||||
|
||||
Reference in New Issue
Block a user