mirror of
https://github.com/Relintai/pandemonium_cms.git
synced 2025-02-20 16:54:21 +01:00
Better setup for the blog plugin.
This commit is contained in:
parent
9c7e06215b
commit
9c33ad827e
@ -1,14 +1,16 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Main.gd" type="Script" id=1]
|
||||
[ext_resource path="res://addons/web_blog/classes/WebBlog.gd" type="Script" id=2]
|
||||
|
||||
[node name="WebServer" type="WebServerSimple"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="WebRoot" type="WebRoot" parent="."]
|
||||
|
||||
[node name="Gallery" type="WebNode" parent="WebRoot"]
|
||||
|
||||
[node name="index" type="StaticWebPage" parent="WebRoot"]
|
||||
uri_segment = "/"
|
||||
data = "<a href=\"gallery\">Gallery</a>"
|
||||
|
||||
[node name="WebBlog" type="WebNode" parent="WebRoot"]
|
||||
script = ExtResource( 2 )
|
||||
|
@ -1,16 +1,3 @@
|
||||
extends Node
|
||||
extends WebNode
|
||||
class_name WebBlog, "res://addons/web_blog/icons/icon_web_blog.svg"
|
||||
|
||||
|
||||
# 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
|
||||
|
@ -14,13 +14,13 @@ dest_files=[ "res://.import/icon_web_blog.svg-717b51dbe8e2412ad01ab3d85a2cfea9.s
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/mode=3
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=true
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
@ -31,5 +31,5 @@ process/invert_color=false
|
||||
process/normal_map_invert_y=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
|
@ -1,27 +1,11 @@
|
||||
tool
|
||||
extends EditorPlugin
|
||||
|
||||
var blog_icon : Texture = null
|
||||
|
||||
#func _ready():
|
||||
# gallery_icon = ResourceLoader.load("res://addons/web_gallery/icons/icon_gallery.svg", )
|
||||
|
||||
func enable_plugin() ->void:
|
||||
func _enter_tree():
|
||||
pass
|
||||
|
||||
func disable_plugin() ->void:
|
||||
func _exit_tree():
|
||||
pass
|
||||
|
||||
|
||||
func get_plugin_name() -> String:
|
||||
return "WebBlogEditorPlugin"
|
||||
|
||||
#func handles(object: Object) -> bool:
|
||||
# return false
|
||||
|
||||
#func has_main_screen() -> bool:
|
||||
# return false
|
||||
|
||||
#func make_visible(visible: bool) -> void:
|
||||
# pass
|
||||
|
||||
|
||||
|
@ -8,6 +8,16 @@
|
||||
|
||||
config_version=4
|
||||
|
||||
_global_script_classes=[ {
|
||||
"base": "WebNode",
|
||||
"class": @"WebBlog",
|
||||
"language": @"GDScript",
|
||||
"path": "res://addons/web_blog/classes/WebBlog.gd"
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
@"WebBlog": "res://addons/web_blog/icons/icon_web_blog.svg"
|
||||
}
|
||||
|
||||
[application]
|
||||
|
||||
config/name="Pandemonium CMS"
|
||||
@ -16,7 +26,7 @@ config/icon="res://icon.png"
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PoolStringArray( "res://addons/web_gallery/plugin.cfg" )
|
||||
enabled=PoolStringArray( "res://addons/web_blog/plugin.cfg", "res://addons/web_gallery/plugin.cfg" )
|
||||
|
||||
[physics]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user