Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MenuBar Titles not showing in 4.2.1 - regression #87873

Closed
drekay opened this issue Feb 2, 2024 · 0 comments · Fixed by #87912
Closed

MenuBar Titles not showing in 4.2.1 - regression #87873

drekay opened this issue Feb 2, 2024 · 0 comments · Fixed by #87912

Comments

@drekay
Copy link

drekay commented Feb 2, 2024

Tested versions

  • Reproducible in: 4.2.stable

System information

Mac OS - Godot v4.2.1.stable - Vulkan(Forward+) - dedicate

Issue description

System Information:
macOS Mojave 10.14.6
Macbook Pro

Description:
MenuBar titles are not showing for 4.2.1.
I am getting @Popmenu@8 label instead of the titles set using set_menu_title ()
This was working fine in 4.1.1
The menu shows ok inside the App Window when menu.prefer_global_menu = false

image

Steps to reproduce

  • Create a new scene
  • Add the following script to the node
  • Run
  • Repeat after uncommenting the marked line of code for global menu preference
extends Node3D

func _ready():
	# Create the main menu bar
	var menu_bar = MenuBar.new()
	add_child(menu_bar)
	
	# Create File menu
	var file_menu = PopupMenu.new()
	file_menu.add_item("New", 0)
	file_menu.add_item("Open", 1)
	file_menu.add_separator()
	file_menu.add_item("Save", 2)
	file_menu.add_item("Save As...", 3)
	file_menu.add_separator()
	file_menu.add_item("Quit", 4)

	# Add File menu as a child of MenuBar
	menu_bar.add_child(file_menu)
	# Set the title for the File menu
	menu_bar.set_menu_title(0, "File")

	#uncomment to add menu inside App Window
	#menu_bar.prefer_global_menu = false 

Minimal reproduction project (MRP)

Same as above.

@drekay drekay changed the title MenuBar Titles not showing in 4.2.1 MenuBar Titles not showing in 4.2.1 - regression Feb 2, 2024
@bruvzg bruvzg self-assigned this Feb 3, 2024
@bruvzg bruvzg added this to the 4.3 milestone Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants