private static void DrawConfigButton(Rect rect) { if (Widgets.ButtonImage(rect, Textures.ConfigIcon)) { Dialog_Config.Open(); } }
private static void DrawConfigButton(Rect bounds, bool top) { var y = top ? bounds.y : bounds.yMax - ConfigButtonSize; if (Mouse.IsOver(bounds) && Widgets.ButtonImage(new Rect(bounds.xMax - ConfigButtonSize, y, ConfigButtonSize, ConfigButtonSize), Textures.ConfigIcon)) { Dialog_Config.Open(); } }