Пример #1
0
 private static void DrawConfigButton(Rect rect)
 {
     if (Widgets.ButtonImage(rect, Textures.ConfigIcon))
     {
         Dialog_Config.Open();
     }
 }
Пример #2
0
        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();
            }
        }