init
This commit is contained in:
4
.editorconfig
Normal file
4
.editorconfig
Normal file
@@ -0,0 +1,4 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# Normalize EOL for all files that Git considers text files.
|
||||
* text=auto eol=lf
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
# Godot 4+ specific ignores
|
||||
.godot/
|
||||
/android/
|
||||
15
.idea/.idea.your are an ai ceo/.idea/.gitignore
generated
vendored
Normal file
15
.idea/.idea.your are an ai ceo/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Rider ignored files
|
||||
/projectSettingsUpdater.xml
|
||||
/.idea.your are an ai ceo.iml
|
||||
/contentModel.xml
|
||||
/modules.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Ignored default folder with query files
|
||||
/queries/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
1
.idea/.idea.your are an ai ceo/.idea/.name
generated
Normal file
1
.idea/.idea.your are an ai ceo/.idea/.name
generated
Normal file
@@ -0,0 +1 @@
|
||||
your are an ai ceo
|
||||
4
.idea/.idea.your are an ai ceo/.idea/encodings.xml
generated
Normal file
4
.idea/.idea.your are an ai ceo/.idea/encodings.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" />
|
||||
</project>
|
||||
8
.idea/.idea.your are an ai ceo/.idea/indexLayout.xml
generated
Normal file
8
.idea/.idea.your are an ai ceo/.idea/indexLayout.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="UserContentModel">
|
||||
<attachedFolders />
|
||||
<explicitIncludes />
|
||||
<explicitExcludes />
|
||||
</component>
|
||||
</project>
|
||||
9
.idea/.idea.your are an ai ceo/.idea/libraries/GdSdk.xml
generated
Normal file
9
.idea/.idea.your are an ai ceo/.idea/libraries/GdSdk.xml
generated
Normal file
@@ -0,0 +1,9 @@
|
||||
<component name="libraryTable">
|
||||
<library name="GdSdk" type="GdScript">
|
||||
<CLASSES />
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="file://$APPLICATION_PLUGINS_DIR$/GdScript/extracted/Master" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
6
.idea/.idea.your are an ai ceo/.idea/vcs.xml
generated
Normal file
6
.idea/.idea.your are an ai ceo/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
83
Main.tscn
Normal file
83
Main.tscn
Normal file
@@ -0,0 +1,83 @@
|
||||
[gd_scene format=3 uid="uid://b2rl7r8oav3hy"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dciugg77wsy6p" path="res://Meeting.tscn" id="1_glv2v"]
|
||||
[ext_resource type="Script" uid="uid://dldaxqajhnnva" path="res://TimeSlot.cs" id="2_r0du0"]
|
||||
[ext_resource type="PackedScene" uid="uid://do8ll0kylvrcn" path="res://MeetingControl.tscn" id="2_uu6xs"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sko1m"]
|
||||
size = Vector2(575, 20)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ig7tw"]
|
||||
size = Vector2(21.5, 1920)
|
||||
|
||||
[node name="Main" type="Node2D" unique_id=287617203]
|
||||
|
||||
[node name="MeetingControl" parent="." unique_id=11410047 instance=ExtResource("2_uu6xs")]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = 631.0
|
||||
offset_top = 18.0
|
||||
offset_right = 960.0
|
||||
offset_bottom = 98.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_default_cursor_shape = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Control" type="Control" parent="." unique_id=1593899]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_left = 114.0
|
||||
offset_top = 34.0
|
||||
offset_right = 514.0
|
||||
offset_bottom = 603.0
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="Control" unique_id=1636973054]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -1.0
|
||||
offset_right = -1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control/PanelContainer" unique_id=1658498861]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TimeSlot" type="PanelContainer" parent="Control/PanelContainer/VBoxContainer" unique_id=1554329623]
|
||||
custom_minimum_size = Vector2(0, 74)
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_r0du0")
|
||||
|
||||
[node name="Box" type="StaticBody2D" parent="." unique_id=56956355]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Box" unique_id=220723577]
|
||||
position = Vector2(843, 611)
|
||||
shape = SubResource("RectangleShape2D_sko1m")
|
||||
|
||||
[node name="CollisionShape2D4" type="CollisionShape2D" parent="Box" unique_id=416813543]
|
||||
position = Vector2(844, -1289)
|
||||
shape = SubResource("RectangleShape2D_sko1m")
|
||||
|
||||
[node name="CollisionShape2D2" type="CollisionShape2D" parent="Box" unique_id=240246518]
|
||||
position = Vector2(566.25, -339)
|
||||
shape = SubResource("RectangleShape2D_ig7tw")
|
||||
|
||||
[node name="CollisionShape2D3" type="CollisionShape2D" parent="Box" unique_id=297721234]
|
||||
position = Vector2(1120, -339)
|
||||
shape = SubResource("RectangleShape2D_ig7tw")
|
||||
|
||||
[node name="Meeting" parent="." unique_id=796440984 instance=ExtResource("1_glv2v")]
|
||||
position = Vector2(749, 176)
|
||||
|
||||
[node name="Meeting2" parent="." unique_id=1691479453 instance=ExtResource("1_glv2v")]
|
||||
position = Vector2(957, 231.99998)
|
||||
rotation = -0.5541229
|
||||
|
||||
[node name="Meeting3" parent="." unique_id=673551448 instance=ExtResource("1_glv2v")]
|
||||
position = Vector2(782.9999, 402.99997)
|
||||
rotation = -0.18364333
|
||||
79
Meeting.cs
Normal file
79
Meeting.cs
Normal file
@@ -0,0 +1,79 @@
|
||||
using System;
|
||||
using Godot;
|
||||
|
||||
public partial class Meeting : RigidBody2D
|
||||
{
|
||||
private bool _mouseInside;
|
||||
private bool _isDragging;
|
||||
private Vector2 _dragTarget;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
FreezeMode = FreezeModeEnum.Kinematic;
|
||||
|
||||
MouseEntered += () =>
|
||||
{
|
||||
_mouseInside = true;
|
||||
CanSleep = false;
|
||||
};
|
||||
MouseExited += () =>
|
||||
{
|
||||
_mouseInside = false;
|
||||
CanSleep = true;
|
||||
};
|
||||
}
|
||||
|
||||
public override void _UnhandledInput(InputEvent @event)
|
||||
{
|
||||
// TODO: probably memory problem
|
||||
if (@event is InputEventMouse mouseEvent)
|
||||
{
|
||||
if (_mouseInside)
|
||||
{
|
||||
if (mouseEvent.IsPressed() && mouseEvent.ButtonMask == MouseButtonMask.Left)
|
||||
{
|
||||
GD.Print("Start Dragging");
|
||||
StartDragging();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (_isDragging && @event is InputEventMouseButton { Pressed: false })
|
||||
{
|
||||
GD.Print("Let me free");
|
||||
StopDragging();
|
||||
}
|
||||
}
|
||||
|
||||
public override void _PhysicsProcess(double delta)
|
||||
{
|
||||
_dragTarget = GetGlobalMousePosition();
|
||||
}
|
||||
|
||||
public override void _IntegrateForces(PhysicsDirectBodyState2D state)
|
||||
{
|
||||
if (!_isDragging)
|
||||
return;
|
||||
|
||||
var t = state.Transform;
|
||||
t.Origin = _dragTarget;
|
||||
|
||||
state.Transform = t;
|
||||
state.LinearVelocity = Vector2.Zero;
|
||||
state.AngularVelocity = 0;
|
||||
}
|
||||
|
||||
private void StartDragging()
|
||||
{
|
||||
Freeze = true;
|
||||
_isDragging = true;
|
||||
CollisionLayer = 0;
|
||||
}
|
||||
|
||||
private void StopDragging()
|
||||
{
|
||||
Freeze = false;
|
||||
_isDragging = false;
|
||||
CollisionLayer = 1;
|
||||
}
|
||||
}
|
||||
1
Meeting.cs.uid
Normal file
1
Meeting.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cit20jyhj41rs
|
||||
24
Meeting.tscn
Normal file
24
Meeting.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_scene format=3 uid="uid://dciugg77wsy6p"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cit20jyhj41rs" path="res://Meeting.cs" id="1_1rolt"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyxftkkuf7h7w" path="res://icon.svg" id="1_2t4nr"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_glv2v"]
|
||||
bounce = 0.1
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_boq60"]
|
||||
size = Vector2(294, 72)
|
||||
|
||||
[node name="Meeting" type="RigidBody2D" unique_id=796440984]
|
||||
input_pickable = true
|
||||
physics_material_override = SubResource("PhysicsMaterial_glv2v")
|
||||
freeze_mode = 1
|
||||
continuous_cd = 2
|
||||
script = ExtResource("1_1rolt")
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="." unique_id=1878852055]
|
||||
scale = Vector2(2.3203125, 0.6015625)
|
||||
texture = ExtResource("1_2t4nr")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=235269066]
|
||||
shape = SubResource("RectangleShape2D_boq60")
|
||||
15
MeetingControl.cs
Normal file
15
MeetingControl.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
|
||||
public sealed partial class MeetingControlDragData : GodotObject { }
|
||||
|
||||
public partial class MeetingControl : PanelContainer
|
||||
{
|
||||
public override Variant _GetDragData(Vector2 atPosition)
|
||||
{
|
||||
GD.Print("CONTROL DRAG");
|
||||
var copy = Duplicate() as MeetingControl;
|
||||
SetDragPreview(copy);
|
||||
|
||||
return Variant.From(new MeetingControlDragData());
|
||||
}
|
||||
}
|
||||
1
MeetingControl.cs.uid
Normal file
1
MeetingControl.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ctl23v8cgy4k3
|
||||
16
MeetingControl.tscn
Normal file
16
MeetingControl.tscn
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_scene format=3 uid="uid://do8ll0kylvrcn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ctl23v8cgy4k3" path="res://MeetingControl.cs" id="1_o5h3n"]
|
||||
[ext_resource type="Texture2D" uid="uid://dyxftkkuf7h7w" path="res://icon.svg" id="1_o8u20"]
|
||||
|
||||
[node name="MeetingControl" type="PanelContainer" unique_id=508053904]
|
||||
custom_minimum_size = Vector2(10.74, 9.49)
|
||||
offset_right = 329.0
|
||||
offset_bottom = 80.0
|
||||
size_flags_horizontal = 3
|
||||
script = ExtResource("1_o5h3n")
|
||||
|
||||
[node name="Icon" type="Sprite2D" parent="." unique_id=1047834216]
|
||||
position = Vector2(36.999996, 37)
|
||||
scale = Vector2(0.390625, 0.390625)
|
||||
texture = ExtResource("1_o8u20")
|
||||
16
TimeSlot.cs
Normal file
16
TimeSlot.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Godot;
|
||||
|
||||
public partial class TimeSlot : PanelContainer
|
||||
{
|
||||
public override bool _CanDropData(Vector2 atPosition, Variant data)
|
||||
{
|
||||
GD.Print("DRAGGED OVERR!!!");
|
||||
return data.VariantType == Variant.Type.Object
|
||||
&& data.AsGodotObject() is MeetingControlDragData;
|
||||
}
|
||||
|
||||
public override void _DropData(Vector2 atPosition, Variant data)
|
||||
{
|
||||
GD.Print("DROP");
|
||||
}
|
||||
}
|
||||
1
TimeSlot.cs.uid
Normal file
1
TimeSlot.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dldaxqajhnnva
|
||||
7
TimeSlot.tscn
Normal file
7
TimeSlot.tscn
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_scene format=3 uid="uid://nnr6u0igggve"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dldaxqajhnnva" path="res://TimeSlot.cs" id="1_50jir"]
|
||||
|
||||
[node name="TimeSlot" type="PanelContainer" unique_id=979842204]
|
||||
custom_minimum_size = Vector2(0, 74)
|
||||
script = ExtResource("1_50jir")
|
||||
1
icon.svg
Normal file
1
icon.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128"><rect width="124" height="124" x="2" y="2" fill="#363d52" stroke="#212532" stroke-width="4" rx="14"/><g fill="#fff" transform="translate(12.322 12.322)scale(.101)"><path d="M105 673v33q407 354 814 0v-33z"/><path fill="#478cbf" d="m105 673 152 14q12 1 15 14l4 67 132 10 8-61q2-11 15-15h162q13 4 15 15l8 61 132-10 4-67q3-13 15-14l152-14V427q30-39 56-81-35-59-83-108-43 20-82 47-40-37-88-64 7-51 8-102-59-28-123-42-26 43-46 89-49-7-98 0-20-46-46-89-64 14-123 42 1 51 8 102-48 27-88 64-39-27-82-47-48 49-83 108 26 42 56 81zm0 33v39c0 276 813 276 814 0v-39l-134 12-5 69q-2 10-14 13l-162 11q-12 0-16-11l-10-65H446l-10 65q-4 11-16 11l-162-11q-12-3-14-13l-5-69z"/><path d="M483 600c0 34 58 34 58 0v-86c0-34-58-34-58 0z"/><circle cx="725" cy="526" r="90"/><circle cx="299" cy="526" r="90"/></g><g fill="#414042" transform="translate(12.322 12.322)scale(.101)"><circle cx="307" cy="532" r="60"/><circle cx="717" cy="532" r="60"/></g></svg>
|
||||
|
After Width: | Height: | Size: 995 B |
43
icon.svg.import
Normal file
43
icon.svg.import
Normal file
@@ -0,0 +1,43 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dyxftkkuf7h7w"
|
||||
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://icon.svg"
|
||||
dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
34
project.godot
Normal file
34
project.godot
Normal file
@@ -0,0 +1,34 @@
|
||||
; Engine configuration file.
|
||||
; It's best edited using the editor UI and not directly,
|
||||
; since the parameters that go here are not all obvious.
|
||||
;
|
||||
; Format:
|
||||
; [section] ; section goes between []
|
||||
; param=value ; assign values to parameters
|
||||
|
||||
config_version=5
|
||||
|
||||
[application]
|
||||
|
||||
config/name="your are an ai ceo"
|
||||
run/main_scene="uid://b2rl7r8oav3hy"
|
||||
config/features=PackedStringArray("4.7", "C#", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
[display]
|
||||
|
||||
window/stretch/mode="canvas_items"
|
||||
window/stretch/aspect="expand"
|
||||
|
||||
[dotnet]
|
||||
|
||||
project/assembly_name="your are an ai ceo"
|
||||
|
||||
[physics]
|
||||
|
||||
2d/run_on_separate_thread=true
|
||||
3d/physics_engine="Jolt Physics"
|
||||
|
||||
[rendering]
|
||||
|
||||
rendering_device/driver.windows="d3d12"
|
||||
8
your are an ai ceo.csproj
Normal file
8
your are an ai ceo.csproj
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project Sdk="Godot.NET.Sdk/4.7.0">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net9.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
<RootNamespace>yourareanaiceo</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
8
your are an ai ceo.csproj.old
Normal file
8
your are an ai ceo.csproj.old
Normal file
@@ -0,0 +1,8 @@
|
||||
<Project Sdk="Godot.NET.Sdk/4.6.2">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net9.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
<RootNamespace>yourareanaiceo</RootNamespace>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
19
your are an ai ceo.sln
Normal file
19
your are an ai ceo.sln
Normal file
@@ -0,0 +1,19 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "your are an ai ceo", "your are an ai ceo.csproj", "{14ED9EF7-626E-4207-89C0-D22BC4CE0310}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
ExportDebug|Any CPU = ExportDebug|Any CPU
|
||||
ExportRelease|Any CPU = ExportRelease|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{14ED9EF7-626E-4207-89C0-D22BC4CE0310}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{14ED9EF7-626E-4207-89C0-D22BC4CE0310}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{14ED9EF7-626E-4207-89C0-D22BC4CE0310}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
|
||||
{14ED9EF7-626E-4207-89C0-D22BC4CE0310}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
|
||||
{14ED9EF7-626E-4207-89C0-D22BC4CE0310}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
|
||||
{14ED9EF7-626E-4207-89C0-D22BC4CE0310}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Reference in New Issue
Block a user