diff --git a/game/addons/web_gallery/classes/WebGallery.gd b/game/addons/web_gallery/classes/WebGallery.gd new file mode 100644 index 0000000..1eccaec --- /dev/null +++ b/game/addons/web_gallery/classes/WebGallery.gd @@ -0,0 +1,16 @@ +extends Node + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +#func _process(delta): +# pass diff --git a/game/addons/web_gallery/editor/WebGalleryEditor.tscn b/game/addons/web_gallery/editor/WebGalleryEditor.tscn new file mode 100644 index 0000000..00a6290 --- /dev/null +++ b/game/addons/web_gallery/editor/WebGalleryEditor.tscn @@ -0,0 +1,5 @@ +[gd_scene format=2] + +[node name="Control" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 diff --git a/game/addons/web_gallery/icons/icon_gallery.svg b/game/addons/web_gallery/icons/icon_gallery.svg new file mode 100644 index 0000000..00a5015 --- /dev/null +++ b/game/addons/web_gallery/icons/icon_gallery.svg @@ -0,0 +1,69 @@ + + + + + + + + + + + + + diff --git a/game/addons/web_gallery/icons/icon_gallery.svg.import b/game/addons/web_gallery/icons/icon_gallery.svg.import new file mode 100644 index 0000000..679947e --- /dev/null +++ b/game/addons/web_gallery/icons/icon_gallery.svg.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/icon_gallery.svg-cc3f63d45c7326814ec57892123536e0.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://addons/web_gallery/icons/icon_gallery.svg" +dest_files=[ "res://.import/icon_gallery.svg-cc3f63d45c7326814ec57892123536e0.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/game/addons/web_gallery/plugin.cfg b/game/addons/web_gallery/plugin.cfg new file mode 100644 index 0000000..2431ccc --- /dev/null +++ b/game/addons/web_gallery/plugin.cfg @@ -0,0 +1,9 @@ +[plugin] + +name="WebGallery" +description="" +author="Relintai" +version="1.0" +script="plugin.gd" + + diff --git a/game/addons/web_gallery/plugin.gd b/game/addons/web_gallery/plugin.gd new file mode 100644 index 0000000..c3996d8 --- /dev/null +++ b/game/addons/web_gallery/plugin.gd @@ -0,0 +1,27 @@ +tool +extends EditorPlugin + +var gallery_icon : Texture = null + +#func _ready(): +# gallery_icon = ResourceLoader.load("res://addons/web_gallery/icons/icon_gallery.svg", ) + +func enable_plugin() ->void: + pass + +func disable_plugin() ->void: + pass + +func get_plugin_name() -> String: + return "WebGalleryEditorPlugin" + +#func handles(object: Object) -> bool: +# return false + +#func has_main_screen() -> bool: +# return false + +#func make_visible(visible: bool) -> void: +# pass + + diff --git a/game/project.pandemonium b/game/project.pandemonium index 060f5ca..d9d35a7 100644 --- a/game/project.pandemonium +++ b/game/project.pandemonium @@ -14,6 +14,10 @@ config/name="Pandemonium CMS" run/main_scene="res://Main.tscn" config/icon="res://icon.png" +[editor_plugins] + +enabled=PoolStringArray( "res://addons/web_gallery/plugin.cfg" ) + [physics] common/enable_pause_aware_picking=true