mirror of
https://github.com/drwhut/tabletop-club.git
synced 2025-05-05 15:32:56 +00:00
Reorganised the resource folder structure.
This commit is contained in:
parent
9bb5c83b8f
commit
2b56d0a58f
@ -1,6 +1,6 @@
|
||||
[gd_resource type="Resource" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/ActualTextFile.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Misc/ActualTextFile.gd" type="Script" id=1]
|
||||
|
||||
[resource]
|
||||
script = ExtResource( 1 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_resource type="Resource" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/ActualTextFile.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Misc/ActualTextFile.gd" type="Script" id=1]
|
||||
|
||||
[resource]
|
||||
script = ExtResource( 1 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Card.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Card.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Shapes/Card.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/PieceContainer.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/PieceContainer.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/PieceContainer.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/PieceContainer.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
radius = 0.5
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Dice.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Dice.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Shapes/d4.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape" id=1]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Dice.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Dice.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Dice.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Dice.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Shapes/d8.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="ConvexPolygonShape" id=1]
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Piece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Piece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Piece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Piece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
radius = 0.5
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/SpeakerPiece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/SpeakerPiece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/SpeakerPiece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/SpeakerPiece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
radius = 0.5
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Stack.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/Stack.gd" type="Script" id=1]
|
||||
|
||||
[node name="Stack" type="RigidBody"]
|
||||
mass = 0.01
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/TimerPiece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/TimerPiece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/TimerPiece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/TimerPiece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
radius = 0.5
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/StackablePiece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/StackablePiece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/StackablePiece.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/Pieces/StackablePiece.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="CylinderShape" id=1]
|
||||
radius = 0.5
|
||||
|
@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=10 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Hand.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/Cabin-Medium.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://Fonts/Cabin-Medium.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://Scripts/Game/3D/Hand.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
extents = Vector3( 0.5, 0.5, 0.5 )
|
||||
@ -25,10 +25,10 @@ albedo_texture = SubResource( 5 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=7]
|
||||
size = 150
|
||||
font_data = ExtResource( 2 )
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[node name="Hand" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_editor_description_": "The hand is an area of the environment where cards are held by a given player.
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/HiddenArea.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/3D/HiddenArea.gd" type="Script" id=1]
|
||||
|
||||
[sub_resource type="BoxShape" id=1]
|
||||
|
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=15 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/CameraController.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scenes/HiddenArea.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scripts/Room.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scenes/Game/CameraController.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scenes/Game/3D/HiddenArea.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scripts/Game/3D/Room.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="ProceduralSky" id=1]
|
||||
|
@ -1,17 +1,17 @@
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/CameraController.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/OutlineColorRect.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/ContainerContentDialog.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scripts/Game/CameraController.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Misc/OutlineColorRect.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/Game/UI/Dialogs/ContainerContentDialog.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Images/RulerIconNormal.svg" type="Texture" id=4]
|
||||
[ext_resource path="res://Images/CursorIconNormal.svg" type="Texture" id=5]
|
||||
[ext_resource path="res://Scenes/ToolButtonGroup.tres" type="ButtonGroup" id=6]
|
||||
[ext_resource path="res://Scenes/Game/ToolButtonGroup.tres" type="ButtonGroup" id=6]
|
||||
[ext_resource path="res://Images/RulerIconPressed.svg" type="Texture" id=7]
|
||||
[ext_resource path="res://Images/CursorIconPressed.svg" type="Texture" id=8]
|
||||
[ext_resource path="res://Images/RulerLine.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Images/HiddenAreaIconPressed.svg" type="Texture" id=10]
|
||||
[ext_resource path="res://Images/HiddenAreaIconNormal.svg" type="Texture" id=11]
|
||||
[ext_resource path="res://Scenes/TrackDialog.tscn" type="PackedScene" id=12]
|
||||
[ext_resource path="res://Scenes/Game/UI/Dialogs/TrackDialog.tscn" type="PackedScene" id=12]
|
||||
|
||||
[node name="CameraController" type="Spatial"]
|
||||
script = ExtResource( 1 )
|
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/Room.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scenes/GameUI.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scripts/Game.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scenes/Game/3D/Room.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scenes/Game/UI/GameUI.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scripts/Game/Game.gd" type="Script" id=3]
|
||||
|
||||
[node name="Game" type="Node"]
|
||||
script = ExtResource( 3 )
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/ChatBox.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/ChatBox.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/Cabin-Bold.tres" type="DynamicFont" id=2]
|
||||
[ext_resource path="res://Fonts/Cabin-Italic.tres" type="DynamicFont" id=3]
|
||||
|
@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/ObjectPreview.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scripts/ContainerContentDialog.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/Game/UI/Previews/ObjectPreview.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/Dialogs/ContainerContentDialog.gd" type="Script" id=2]
|
||||
|
||||
[node name="ContainerContentDialog" type="WindowDialog"]
|
||||
margin_right = 310.0
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/GamesDialog.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/Dialogs/GamesDialog.gd" type="Script" id=1]
|
||||
|
||||
[node name="GamesDialog" type="WindowDialog"]
|
||||
margin_right = 48.0
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/ObjectsDialog.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/Dialogs/ObjectsDialog.gd" type="Script" id=1]
|
||||
|
||||
[node name="ObjectsDialog" type="WindowDialog"]
|
||||
anchor_left = 0.5
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/RoomDialog.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/Dialogs/RoomDialog.gd" type="Script" id=1]
|
||||
|
||||
[node name="RoomDialog" type="WindowDialog"]
|
||||
margin_right = 450.0
|
@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/TrackDialog.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/Dialogs/TrackDialog.gd" type="Script" id=1]
|
||||
|
||||
[node name="TrackDialog" type="WindowDialog"]
|
||||
margin_right = 500.0
|
@ -1,11 +1,11 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/GameUI.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/ObjectsDialog.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scripts/Game/UI/GameUI.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scenes/Game/UI/Dialogs/ObjectsDialog.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scenes/OptionsMenu.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/ChatBox.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Scenes/GamesDialog.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://Scenes/RoomDialog.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://Scenes/Game/UI/ChatBox.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Scenes/Game/UI/Dialogs/GamesDialog.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://Scenes/Game/UI/Dialogs/RoomDialog.tscn" type="PackedScene" id=6]
|
||||
|
||||
[node name="GameUI" type="Control"]
|
||||
anchor_right = 1.0
|
@ -1,16 +1,16 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Fonts/Cabin-Italic.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://Fonts/Cabin-SemiBold.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://Scripts/GenericPreview.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Fonts/Cabin-SemiBold.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://Fonts/Cabin-Italic.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://Scripts/Game/UI/Previews/GenericPreview.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 24
|
||||
font_data = ExtResource( 2 )
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 12
|
||||
font_data = ExtResource( 1 )
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="GenericPreview" type="VBoxContainer"]
|
||||
margin_right = 109.0
|
@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/ObjectPreview.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Fonts/Cabin-Regular.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://Fonts/Cabin-Regular.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://Scripts/Game/UI/Previews/ObjectPreview.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="Environment" id=1]
|
||||
background_mode = 1
|
||||
@ -13,12 +13,12 @@ environment = SubResource( 1 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=3]
|
||||
size = 12
|
||||
font_data = ExtResource( 2 )
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[node name="ObjectPreview" type="VBoxContainer"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
script = ExtResource( 1 )
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false,
|
||||
"_editor_description_": "This scene is used to display objects in a 2D environment (even though the object is shown in a 3D viewport)."
|
@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource path="res://Fonts/Cabin-SemiBold.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://Fonts/Cabin-Italic.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://Scripts/SkyboxPreview.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scripts/Game/UI/Previews/SkyboxPreview.gd" type="Script" id=3]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 24
|
@ -16,6 +16,9 @@ Once it is done importing, the scene goes to the main menu."
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||
margin_left = 451.0
|
||||
|
@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/VersionLabel.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/CopyrightLabel.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scripts/Misc/VersionLabel.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Misc/CopyrightLabel.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scripts/MainMenu.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scenes/OptionsMenu.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://Fonts/Cabin-Italic.tres" type="DynamicFont" id=5]
|
||||
|
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/OptionsMenu.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/BindButton.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scripts/BindingBackground.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scripts/Misc/BindButton.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scripts/Misc/BindingBackground.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Scripts/OptionsTab.gd" type="Script" id=4]
|
||||
|
||||
[node name="OptionsMenu" type="Control"]
|
||||
|
@ -47,7 +47,7 @@ remotesync func add_hand(player: int, transform: Transform) -> void:
|
||||
if get_tree().get_rpc_sender_id() != 1:
|
||||
return
|
||||
|
||||
var hand = preload("res://Scenes/Hand.tscn").instance()
|
||||
var hand = preload("res://Scenes/Game/3D/Hand.tscn").instance()
|
||||
hand.name = str(player)
|
||||
hand.transform = transform
|
||||
|
||||
@ -479,7 +479,7 @@ remotesync func place_hidden_area(area_name: String, player_id: int,
|
||||
if get_tree().get_rpc_sender_id() != 1:
|
||||
return
|
||||
|
||||
var hidden_area: HiddenArea = preload("res://Scenes/HiddenArea.tscn").instance()
|
||||
var hidden_area: HiddenArea = preload("res://Scenes/Game/3D/HiddenArea.tscn").instance()
|
||||
hidden_area.name = area_name
|
||||
hidden_area.player_id = player_id
|
||||
_set_hidden_area_transform(hidden_area, point1, point2)
|
@ -35,7 +35,7 @@ func set_piece_db(assets: Dictionary) -> void:
|
||||
for pack_name in assets:
|
||||
if assets[pack_name].has("games"):
|
||||
for game_entry in assets[pack_name]["games"]:
|
||||
var preview = preload("res://Scenes/GenericPreview.tscn").instance()
|
||||
var preview = preload("res://Scenes/Game/UI/Previews/GenericPreview.tscn").instance()
|
||||
_games.add_child(preview)
|
||||
preview.set_preview(pack_name, game_entry)
|
||||
|
@ -30,7 +30,7 @@ onready var _packs = $MarginContainer/HBoxContainer/VBoxContainer/ScrollContaine
|
||||
onready var _status = $MarginContainer/HBoxContainer/VBoxContainer2/HBoxContainer/StatusLabel
|
||||
|
||||
var _available_previews = []
|
||||
var _object_preview = preload("res://Scenes/ObjectPreview.tscn")
|
||||
var _object_preview = preload("res://Scenes/Game/UI/Previews/ObjectPreview.tscn")
|
||||
var _piece_db = {}
|
||||
var _preview_width = 0
|
||||
var _toggled_pack = ""
|
@ -72,7 +72,7 @@ func set_room_details(skybox_path: String, lamp_color: Color,
|
||||
# pack_name: The name of the pack the skybox belongs to.
|
||||
# skybox_entry: The skybox's entry in the asset database.
|
||||
func _add_skybox_preview(pack_name: String, skybox_entry: Dictionary) -> void:
|
||||
var preview = preload("res://Scenes/SkyboxPreview.tscn").instance()
|
||||
var preview = preload("res://Scenes/Game/UI/Previews/SkyboxPreview.tscn").instance()
|
||||
_skyboxes.add_child(preview)
|
||||
|
||||
preview.set_skybox(pack_name, skybox_entry)
|
@ -41,7 +41,7 @@ func set_piece_db(assets: Dictionary) -> void:
|
||||
for type_name in ["music", "sounds"]:
|
||||
if assets[pack_name].has(type_name):
|
||||
for game_entry in assets[pack_name][type_name]:
|
||||
var preview = preload("res://Scenes/GenericPreview.tscn").instance()
|
||||
var preview = preload("res://Scenes/Game/UI/Previews/GenericPreview.tscn").instance()
|
||||
if type_name == "music":
|
||||
_music.add_child(preview)
|
||||
elif type_name == "sounds":
|
@ -42,7 +42,7 @@ func restart_game() -> void:
|
||||
# server: The server to connect to.
|
||||
# port: The port to connect to.
|
||||
func start_game_as_client(server: String, port: int) -> void:
|
||||
call_deferred("_goto_scene", "res://Scenes/Game.tscn", {
|
||||
call_deferred("_goto_scene", "res://Scenes/Game/Game.tscn", {
|
||||
"mode": MODE_CLIENT,
|
||||
"server": server,
|
||||
"port": port
|
||||
@ -52,7 +52,7 @@ func start_game_as_client(server: String, port: int) -> void:
|
||||
# max_players: The maximum number of allowed players.
|
||||
# port: The port to host the server on.
|
||||
func start_game_as_server(max_players: int, port: int) -> void:
|
||||
call_deferred("_goto_scene", "res://Scenes/Game.tscn", {
|
||||
call_deferred("_goto_scene", "res://Scenes/Game/Game.tscn", {
|
||||
"mode": MODE_SERVER,
|
||||
"max_players": max_players,
|
||||
"port": port
|
||||
@ -60,7 +60,7 @@ func start_game_as_server(max_players: int, port: int) -> void:
|
||||
|
||||
# Start the game in singleplayer mode.
|
||||
func start_game_singleplayer() -> void:
|
||||
call_deferred("_goto_scene", "res://Scenes/Game.tscn", {
|
||||
call_deferred("_goto_scene", "res://Scenes/Game/Game.tscn", {
|
||||
"mode": MODE_SINGLEPLAYER
|
||||
})
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
[gd_resource type="Resource" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/ActualTextFile.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Scripts/Misc/ActualTextFile.gd" type="Script" id=1]
|
||||
|
||||
[resource]
|
||||
script = ExtResource( 1 )
|
||||
|
@ -12,32 +12,32 @@ _global_script_classes=[ {
|
||||
"base": "Resource",
|
||||
"class": "ActualTextFile",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/ActualTextFile.gd"
|
||||
"path": "res://Scripts/Misc/ActualTextFile.gd"
|
||||
}, {
|
||||
"base": "Button",
|
||||
"class": "BindButton",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/BindButton.gd"
|
||||
"path": "res://Scripts/Misc/BindButton.gd"
|
||||
}, {
|
||||
"base": "StackablePiece",
|
||||
"class": "Card",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/Card.gd"
|
||||
"path": "res://Scripts/Game/Pieces/Card.gd"
|
||||
}, {
|
||||
"base": "Piece",
|
||||
"class": "Dice",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/Dice.gd"
|
||||
"path": "res://Scripts/Game/Pieces/Dice.gd"
|
||||
}, {
|
||||
"base": "Area",
|
||||
"class": "HiddenArea",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/HiddenArea.gd"
|
||||
"path": "res://Scripts/Game/3D/HiddenArea.gd"
|
||||
}, {
|
||||
"base": "Control",
|
||||
"class": "ObjectPreview",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/ObjectPreview.gd"
|
||||
"path": "res://Scripts/Game/UI/Previews/ObjectPreview.gd"
|
||||
}, {
|
||||
"base": "Control",
|
||||
"class": "OptionsTab",
|
||||
@ -47,12 +47,12 @@ _global_script_classes=[ {
|
||||
"base": "ColorRect",
|
||||
"class": "OutlineColorRect",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/OutlineColorRect.gd"
|
||||
"path": "res://Scripts/Misc/OutlineColorRect.gd"
|
||||
}, {
|
||||
"base": "RigidBody",
|
||||
"class": "Piece",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/Piece.gd"
|
||||
"path": "res://Scripts/Game/Pieces/Piece.gd"
|
||||
}, {
|
||||
"base": "Resource",
|
||||
"class": "PieceBuilder",
|
||||
@ -62,42 +62,42 @@ _global_script_classes=[ {
|
||||
"base": "Piece",
|
||||
"class": "PieceContainer",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/PieceContainer.gd"
|
||||
"path": "res://Scripts/Game/Pieces/PieceContainer.gd"
|
||||
}, {
|
||||
"base": "Piece",
|
||||
"class": "SpeakerPiece",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/SpeakerPiece.gd"
|
||||
"path": "res://Scripts/Game/Pieces/SpeakerPiece.gd"
|
||||
}, {
|
||||
"base": "HBoxContainer",
|
||||
"class": "SpinBoxButton",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/SpinBoxButton.gd"
|
||||
"path": "res://Scripts/Misc/SpinBoxButton.gd"
|
||||
}, {
|
||||
"base": "StackablePiece",
|
||||
"class": "Stack",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/Stack.gd"
|
||||
"path": "res://Scripts/Game/Pieces/Stack.gd"
|
||||
}, {
|
||||
"base": "MeshInstance",
|
||||
"class": "StackPieceInstance",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/StackPieceInstance.gd"
|
||||
"path": "res://Scripts/Game/Pieces/StackPieceInstance.gd"
|
||||
}, {
|
||||
"base": "Piece",
|
||||
"class": "StackablePiece",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/StackablePiece.gd"
|
||||
"path": "res://Scripts/Game/Pieces/StackablePiece.gd"
|
||||
}, {
|
||||
"base": "HBoxContainer",
|
||||
"class": "TimeEdit",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/TimeEdit.gd"
|
||||
"path": "res://Scripts/Misc/TimeEdit.gd"
|
||||
}, {
|
||||
"base": "SpeakerPiece",
|
||||
"class": "TimerPiece",
|
||||
"language": "GDScript",
|
||||
"path": "res://Scripts/TimerPiece.gd"
|
||||
"path": "res://Scripts/Game/Pieces/TimerPiece.gd"
|
||||
} ]
|
||||
_global_script_class_icons={
|
||||
"ActualTextFile": "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user