فهرست منبع

Merge pull request #81409 from timothyqiu/social-distance

[3.x] Fix PopupMenu icon and text not having separation
Rémi Verschelde 2 سال پیش
والد
کامیت
4461f38c0b
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      scene/gui/popup_menu.cpp

+ 3 - 0
scene/gui/popup_menu.cpp

@@ -495,6 +495,9 @@ void PopupMenu::_draw_items() {
 			has_check = true;
 		}
 	}
+	if (icon_ofs > 0.0) {
+		icon_ofs += hseparation;
+	}
 
 	float check_ofs = 0.0;
 	if (has_check) {