10 lines
321 B
GDScript
10 lines
321 B
GDScript
extends "res://material_maker/preview/preview_2d.gd"
|
|
|
|
func _ready() -> void:
|
|
update_export_menu()
|
|
|
|
func _on_gui_input(event) -> void:
|
|
if event is InputEventMouseButton:
|
|
if event.pressed and event.button_index == BUTTON_RIGHT:
|
|
$ContextMenu.popup(Rect2(get_global_mouse_position(), $ContextMenu.get_minimum_size()))
|