Tested the database queries for the SQL needed for the Dialog and Tag system. The next part that will need to be worked on is the actual dialog editor.

This commit is contained in:
PersonGuyGit 2023-05-07 12:26:43 -06:00
parent 7f3baba86d
commit a055f6359d
9 changed files with 19 additions and 12 deletions

View File

@ -20,7 +20,7 @@ open_scenes=["res://screens/MainMenu.tscn", "res://GenresSubstitution/TestDB.tsc
[ScriptEditor] [ScriptEditor]
open_scripts=["res://GenresSubstitution/genre_sub.gd", "res://Dialog/dialog_system.gd"] open_scripts=["res://Dialog/dialog_system.gd", "res://GenresSubstitution/genre_sub.gd"]
open_help=[] open_help=[]
script_split_offset=150 script_split_offset=150
list_split_offset=0 list_split_offset=0

View File

@ -1,5 +1,5 @@
2a60927148abd1d33b818b535e306557 2a60927148abd1d33b818b535e306557
::res://::1682875387 ::res://::1683479383
default_env.tres::Environment::-1::1680461469::0::1::::<><>:: default_env.tres::Environment::-1::1680461469::0::1::::<><>::
icon.png::CompressedTexture2D::1663579034843721578::1659896126::1681665020::1::::<><>:: icon.png::CompressedTexture2D::1663579034843721578::1659896126::1681665020::1::::<><>::
README.txt::TextFile::-1::1679251181::0::1::::<><>:: README.txt::TextFile::-1::1679251181::0::1::::<><>::
@ -37,12 +37,14 @@ LiberationSerif-BoldItalic.ttf::FontFile::6973589459942031632::1679252065::16816
LiberationSerif-Italic.ttf::FontFile::3429051925918376143::1679252065::1681665020::1::::<><>:: LiberationSerif-Italic.ttf::FontFile::3429051925918376143::1679252065::1681665020::1::::<><>::
LiberationSerif-Regular.ttf::FontFile::3437532725077625275::1679252065::1681665020::1::::<><>:: LiberationSerif-Regular.ttf::FontFile::3437532725077625275::1679252065::1681665020::1::::<><>::
::res://CharacterCreator/::1659895857 ::res://CharacterCreator/::1659895857
::res://databases/::1682874550 ::res://databases/::1682876154
::res://Dialog/::1659895847 ::res://Dialog/::1682880937
::res://GenresSubstitution/::1682274676 dialog_system.gd::GDScript::-1::1682880527::0::1::::<>Node<>::
genre_sub.gd::GDScript::-1::1682274676::0::1::::<>Node<>:: TestDialog.tscn::PackedScene::4730621496714883874::1682880937::0::1::::<><>::res://Dialog/dialog_system.gd
::res://GenresSubstitution/::1682880384
genre_sub.gd::GDScript::-1::1682880384::0::1::::<>Node<>::
TestDB.tscn::PackedScene::3353206590719512815::1682274676::0::1::::<><>::res://GenresSubstitution/genre_sub.gd TestDB.tscn::PackedScene::3353206590719512815::1682274676::0::1::::<><>::res://GenresSubstitution/genre_sub.gd
::res://globalScripts/::1679252065 ::res://GenresSubstitution/globalScripts/::1679252065
DiceRoller.gd::GDScript::-1::1679252065::0::1::::<>Control<>:: DiceRoller.gd::GDScript::-1::1679252065::0::1::::<>Control<>::
::res://Grammar/::1659895937 ::res://Grammar/::1659895937
::res://RiskFactors/::1659895947 ::res://RiskFactors/::1659895947

View File

@ -1,3 +1,4 @@
res://Dialog/TestDialog.tscn res://Dialog/TestDialog.tscn
res://Dialog/dialog_system.gd res://Dialog/dialog_system.gd
res://GenresSubstitution/genre_sub.gd res://screens/MainMenu.tscn
res://GenresSubstitution/TestDB.tscn

View File

@ -9,7 +9,7 @@ run_reload_scripts=true
[recent_files] [recent_files]
scenes=["res://GenresSubstitution/TestDB.tscn", "res://screens/MainMenu.tscn"] scenes=["res://Dialog/TestDialog.tscn", "res://GenresSubstitution/TestDB.tscn", "res://screens/MainMenu.tscn"]
scripts=["res://Dialog/dialog_system.gd", "res://GenresSubstitution/genre_sub.gd"] scripts=["res://Dialog/dialog_system.gd", "res://GenresSubstitution/genre_sub.gd"]
[script_setup] [script_setup]

View File

@ -17,11 +17,11 @@ state={
state={ state={
"bookmarks": PackedInt32Array(), "bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(), "breakpoints": PackedInt32Array(),
"column": 13, "column": 45,
"folded_lines": Array[int]([]), "folded_lines": Array[int]([]),
"h_scroll_position": 0, "h_scroll_position": 0,
"row": 95, "row": 101,
"scroll_position": 72.0, "scroll_position": 79.0,
"selection": false, "selection": false,
"syntax_highlighter": "GDScript" "syntax_highlighter": "GDScript"
} }

View File

@ -103,4 +103,6 @@ func deleteDialogByID(id):
func _ready(): func _ready():
db = SQLite.new() db = SQLite.new()
db.path = db_name db.path = db_name
deleteTagByID(2)
deleteDialogByID(2)
pass # Replace with function body. pass # Replace with function body.

View File

@ -5,3 +5,5 @@ layout_mode = 3
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2