mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[macOS] Add option for renaming system menus.
This commit is contained in:
@@ -401,6 +401,14 @@
|
||||
[b]Note:[/b] This method is implemented only on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_system_menu_text" qualifiers="const">
|
||||
<return type="String" />
|
||||
<param index="0" name="menu_id" type="int" enum="NativeMenu.SystemMenus" />
|
||||
<description>
|
||||
Returns the text of the system menu item.
|
||||
[b]Note:[/b] This method is implemented on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="has_feature" qualifiers="const">
|
||||
<return type="bool" />
|
||||
<param index="0" name="feature" type="int" enum="NativeMenu.Feature" />
|
||||
@@ -720,6 +728,15 @@
|
||||
[b]Note:[/b] This method is implemented only on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="set_system_menu_text">
|
||||
<return type="void" />
|
||||
<param index="0" name="menu_id" type="int" enum="NativeMenu.SystemMenus" />
|
||||
<param index="1" name="name" type="String" />
|
||||
<description>
|
||||
Sets the text of the system menu item.
|
||||
[b]Note:[/b] This method is implemented on macOS.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<constants>
|
||||
<constant name="FEATURE_GLOBAL_MENU" value="0" enum="Feature">
|
||||
|
||||
Reference in New Issue
Block a user