Exemplo n.º 1
0
Arquivo: Hud.cs Projeto: waywun/RimHUD
 private static void DrawConfigButton(Rect rect)
 {
     if (Widgets.ButtonImage(rect, Textures.ConfigIcon))
     {
         Dialog_Config.Open();
     }
 }
Exemplo n.º 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();
            }
        }