Uploaded game files

This commit is contained in:
JamnedZ 2022-11-18 00:52:05 +07:00
parent 459da513f6
commit f71e7e39a0
1543 changed files with 50503 additions and 0 deletions

View file

@ -0,0 +1,65 @@
tool
extends Control
onready var master_tree = get_node('../MasterTreeContainer/MasterTree')
var current_page : String = ""
var previous_pages = []
var next_pages = []
signal open_link(link)
onready var nodes = {
'DocsViewer': $DocsViewer,
'Next': null,
'Previous':null,
}
func _ready():
set("custom_styles/panel", get_stylebox("Background", "EditorStyles"))
var _scale = get_constant("inspector_margin", "Editor")
_scale = _scale * 0.125
nodes['DocsViewer'].MarkdownParser.editor_scale = _scale
nodes['Next'] = find_parent("EditorView").get_node("ToolBar/DocumentationNavigation/Next")
nodes['Next'].connect('pressed',self, 'open_next_page')
nodes['Previous'] = find_parent("EditorView").get_node("ToolBar/DocumentationNavigation/Previous")
nodes['Previous'].connect('pressed',self, 'open_previous_page')
func load_page(page):
if current_page:
previous_pages.push_back(current_page)
nodes['Previous'].disabled = false
next_pages = []
current_page = page
nodes['DocsViewer'].load_page(current_page)
nodes['Next'].disabled = true
func open_previous_page():
if len(previous_pages):
next_pages.push_front(current_page)
current_page = previous_pages.pop_back()
nodes['DocsViewer'].load_page(current_page)
nodes['Previous'].disabled = len(previous_pages) == 0
nodes['Next'].disabled = false
func open_next_page():
if len(next_pages):
previous_pages.push_back(current_page)
current_page = next_pages.pop_front()
nodes['DocsViewer'].load_page(current_page)
nodes['Next'].disabled = len(next_pages) == 0
nodes['Previous'].disabled = false
func toggle_editing():
nodes['DocsViewer'].toggle_editing()
func _on_DocsViewer_open_non_html_link(link, section):
#print(link, " ", section)
master_tree.select_documentation_item(link)

View file

@ -0,0 +1,42 @@
[gd_scene load_steps=6 format=2]
[ext_resource path="res://addons/dialogic/Editor/DocumentationViewer/DocumentationViewer.gd" type="Script" id=1]
[ext_resource path="res://addons/dialogic/Documentation/Nodes/DocsPageViewer.tscn" type="PackedScene" id=2]
[sub_resource type="Image" id=6]
data = {
"data": PoolByteArray(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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ),
"format": "LumAlpha8",
"height": 16,
"mipmaps": false,
"width": 16
}
[sub_resource type="ImageTexture" id=4]
flags = 4
flags = 4
image = SubResource( 6 )
size = Vector2( 16, 16 )
[sub_resource type="StyleBoxTexture" id=5]
texture = SubResource( 4 )
region_rect = Rect2( 0, 0, 16, 16 )
margin_left = 2.0
margin_right = 2.0
margin_top = 2.0
margin_bottom = 2.0
[node name="DocumentationViewer" type="Panel"]
anchor_right = 1.0
anchor_bottom = 1.0
custom_styles/panel = SubResource( 5 )
script = ExtResource( 1 )
[node name="DocsViewer" parent="." instance=ExtResource( 2 )]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = 0.0
margin_bottom = 0.0
rect_min_size = Vector2( 50, 0 )
[connection signal="open_non_html_link" from="DocsViewer" to="." method="_on_DocsViewer_open_non_html_link"]