mirror of
https://github.com/Relintai/pandemonium_cms.git
synced 2025-02-20 16:54:21 +01:00
Added a blog plugin's skeleton.
This commit is contained in:
parent
3427ceef3c
commit
9c7e06215b
16
game/addons/web_blog/classes/WebBlog.gd
Normal file
16
game/addons/web_blog/classes/WebBlog.gd
Normal file
@ -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
|
5
game/addons/web_blog/editor/WebBlogEditor.tscn
Normal file
5
game/addons/web_blog/editor/WebBlogEditor.tscn
Normal file
@ -0,0 +1,5 @@
|
||||
[gd_scene format=2]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
68
game/addons/web_blog/icons/icon_web_blog.svg
Normal file
68
game/addons/web_blog/icons/icon_web_blog.svg
Normal file
@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
width="16"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="icon_web_blog.svg"
|
||||
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="27.15625"
|
||||
inkscape:cx="1.8227848"
|
||||
inkscape:cy="8.1380898"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1023"
|
||||
inkscape:window-x="3840"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<text
|
||||
xml:space="preserve"
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;fill:#792929;fill-opacity:1;stroke:none"
|
||||
x="11.779497"
|
||||
y="9.644598"
|
||||
id="text504"><tspan
|
||||
sodipodi:role="line"
|
||||
id="tspan502"
|
||||
x="11.779497"
|
||||
y="9.644598" /></text>
|
||||
<g
|
||||
aria-label="V"
|
||||
id="text516"
|
||||
style="font-size:16px;line-height:1.25;fill:#792929">
|
||||
<path
|
||||
d="M 11.301557,2.4087246 7.4135571,13.832725 h -2.64 L 0.90155715,2.4087246 H 3.3495571 l 2.144,6.8 q 0.064,0.176 0.176,0.656 0.128,0.4640004 0.256,0.9920004 0.128,0.512 0.176,0.864 0.048,-0.352 0.16,-0.864 0.128,-0.528 0.256,-0.9920004 0.128,-0.48 0.176,-0.656 l 2.16,-6.8 z"
|
||||
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
|
||||
id="path292" />
|
||||
</g>
|
||||
<g
|
||||
aria-label="V"
|
||||
id="text520"
|
||||
style="font-size:16px;line-height:1.25;fill:#793d3d">
|
||||
<path
|
||||
d="m 15.108807,2.45382 -3.888,11.424 h -2.64 l -3.872,-11.424 h 2.448 l 2.144,6.8 q 0.064,0.176 0.176,0.656 0.128,0.464 0.256,0.992 0.128,0.512 0.176,0.864 0.048,-0.352 0.16,-0.864 0.128,-0.528 0.256,-0.992 0.128,-0.48 0.176,-0.656 l 2.16,-6.8 z"
|
||||
style="font-weight:bold;-inkscape-font-specification:'sans-serif Bold'"
|
||||
id="path295" />
|
||||
</g>
|
||||
<path
|
||||
d="M 6.3835227,6.7946208 V 7.9972525 H 7.5861546 V 6.7946208 Z m 1.8039478,0 V 7.9972525 H 9.3901023 V 6.7946208 Z m 2.4052635,0 V 7.9972525 H 14.20063 V 6.7946208 Z M 6.3835227,8.5985685 v 1.202632 h 1.2026319 v -1.202632 z m 1.8039478,0 v 1.202632 h 1.2026318 v -1.202632 z m 2.4052635,0 v 1.8039485 h 3.006579 v 3.607895 h -3.006579 v 1.202632 h 3.006579 a 1.2026319,1.2026319 0 0 0 1.202632,-1.202632 V 8.5985685 Z m 0.601316,0.6013159 h 0.601316 V 9.8012005 H 11.19405 Z m 1.803948,0 h 0.601315 V 9.8012005 H 12.997998 Z M 6.3835227,10.402517 v 1.202632 h 1.2026319 v -1.202632 z m 1.8039478,0 v 1.202632 h 1.2026318 v -1.202632 z m 2.4052635,0.601315 v 0.601317 h 1.202632 v -0.601317 z m -4.2092113,1.202632 v 1.202632 h 1.2026319 v -1.202632 z m 1.8039478,0 v 1.202632 h 1.2026318 v -1.202632 z m -1.8039478,1.803948 v 1.202632 h 1.2026319 v -1.202632 z m 1.8039478,0 v 1.202632 h 1.2026318 v -1.202632 z"
|
||||
fill="#e0e0e0"
|
||||
id="path134"
|
||||
style="fill:#46e01e;fill-opacity:1;stroke-width:0.601316" />
|
||||
</svg>
|
After Width: | Height: | Size: 3.3 KiB |
35
game/addons/web_blog/icons/icon_web_blog.svg.import
Normal file
35
game/addons/web_blog/icons/icon_web_blog.svg.import
Normal file
@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon_web_blog.svg-717b51dbe8e2412ad01ab3d85a2cfea9.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/web_blog/icons/icon_web_blog.svg"
|
||||
dest_files=[ "res://.import/icon_web_blog.svg-717b51dbe8e2412ad01ab3d85a2cfea9.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
|
10
game/addons/web_blog/plugin.cfg
Normal file
10
game/addons/web_blog/plugin.cfg
Normal file
@ -0,0 +1,10 @@
|
||||
[plugin]
|
||||
|
||||
name="WebBlog"
|
||||
description=""
|
||||
author="Relintai"
|
||||
version="1.0"
|
||||
script="plugin.gd"
|
||||
|
||||
|
||||
|
27
game/addons/web_blog/plugin.gd
Normal file
27
game/addons/web_blog/plugin.gd
Normal file
@ -0,0 +1,27 @@
|
||||
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:
|
||||
pass
|
||||
|
||||
func disable_plugin() ->void:
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user