Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
17
Sprout/addons/dialogic/Editor/Events/EventNode/PopupMenu.gd
Normal file
17
Sprout/addons/dialogic/Editor/Events/EventNode/PopupMenu.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
@tool
|
||||
extends PopupMenu
|
||||
|
||||
func _ready():
|
||||
clear()
|
||||
add_icon_item(get_theme_icon("Help", "EditorIcons"), "Documentation")
|
||||
add_separator()
|
||||
add_icon_item(get_theme_icon("ArrowUp", "EditorIcons"), "Move up")
|
||||
add_icon_item(get_theme_icon("ArrowDown", "EditorIcons"), "Move down")
|
||||
add_separator()
|
||||
add_icon_item(get_theme_icon("Remove", "EditorIcons"), "Delete")
|
||||
|
||||
var menu_background = load("res://addons/dialogic/Editor/Events/styles/ResourceMenuPanelBackground.tres")
|
||||
menu_background.bg_color = get_parent().get_theme_color("base_color", "Editor")
|
||||
theme.set_stylebox('panel', 'PopupMenu', menu_background)
|
||||
theme.set_stylebox('hover', 'PopupMenu', StyleBoxEmpty.new())
|
||||
theme.set_color('font_color_hover', 'PopupMenu', get_parent().get_theme_color("accent_color", "Editor"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue