added necessary buttons

This commit is contained in:
Linus Vogel 2025-12-08 22:17:50 +01:00
parent b74fc7e217
commit f59723e43f
22 changed files with 289 additions and 4 deletions

15
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,15 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/modules.xml
/.idea.StarSkyGodot.iml
/projectSettingsUpdater.xml
/contentModel.xml
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

15
.idea/.idea.StarSkyPresenter/.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,15 @@
# Default ignored files
/shelf/
/workspace.xml
# Rider ignored files
/contentModel.xml
/projectSettingsUpdater.xml
/modules.xml
/.idea.StarSkyPresenter.iml
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

View File

@ -0,0 +1 @@
StarSkyPresenter

View 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>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="UserContentModel">
<attachedFolders />
<explicitIncludes />
<explicitExcludes />
</component>
</project>

View 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>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

4
.idea/encodings.xml generated Normal file
View 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/indexLayout.xml generated Normal file
View 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/libraries/GdSdk.xml generated Normal file
View 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/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

43
Controller.cs Normal file
View File

@ -0,0 +1,43 @@
using Godot;
using System;
public partial class Controller : Window
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
Vector2 border = new Vector2(15, 15);
Vector2 rasterSize = this.Size / 4;
Vector2 btnSize = rasterSize - 2 * border;
Button btnScene1 = this.GetNode<Button>("BtnScene1");
Button btnScene2 = this.GetNode<Button>("BtnScene2");
Button btnScene3 = this.GetNode<Button>("BtnScene3");
Button btnScene4 = this.GetNode<Button>("BtnScene4");
Button btnScreen = this.GetNode<Button>("BtnScreen");
Button btnClose = this.GetNode<Button>("BtnClose");
btnScene1.Position = border + (new Vector2(0, 0)*rasterSize);
btnScene2.Position = border + (new Vector2(1, 0)*rasterSize);
btnScene3.Position = border + (new Vector2(2, 0)*rasterSize);
btnScene4.Position = border + (new Vector2(3, 0)*rasterSize);
btnScene1.Size = btnSize;
btnScene2.Size = btnSize;
btnScene3.Size = btnSize;
btnScene4.Size = btnSize;
btnScreen.Size = btnSize;
btnScreen.Position = border + (new Vector2(3, 3)*rasterSize);
btnClose.Size = btnSize * new Vector2(3, 1) + border * new Vector2(4, 0);
btnClose.Position = border + (new Vector2(0, 3)*rasterSize);
}
}

1
Controller.cs.uid Normal file
View File

@ -0,0 +1 @@
uid://dg0qtnm4epowu

16
Main.cs Normal file
View File

@ -0,0 +1,16 @@
using Godot;
using System;
public partial class Main : Node2D
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}

1
Main.cs.uid Normal file
View File

@ -0,0 +1 @@
uid://77crqavwamsd

16
Projection.cs Normal file
View File

@ -0,0 +1,16 @@
using Godot;
using System;
public partial class Projection : Window
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
GD.Print("Projection process");
}
}

1
Projection.cs.uid Normal file
View File

@ -0,0 +1 @@
uid://criv4i3x63akl

10
StarSkyPresenter.csproj Normal file
View File

@ -0,0 +1,10 @@
<Project Sdk="Godot.NET.Sdk/4.5.1">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework Condition=" '$(GodotTargetPlatform)' == 'android' ">net9.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
<ItemGroup>
<PackageReference Update="GodotSharp" Version="4.6.0-dev.6" />
</ItemGroup>
</Project>

19
StarSkyPresenter.sln Normal file
View File

@ -0,0 +1,19 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StarSkyPresenter", "StarSkyPresenter.csproj", "{39230ED2-229B-480D-A8CF-50E6A01D1F93}"
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
{39230ED2-229B-480D-A8CF-50E6A01D1F93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39230ED2-229B-480D-A8CF-50E6A01D1F93}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39230ED2-229B-480D-A8CF-50E6A01D1F93}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
{39230ED2-229B-480D-A8CF-50E6A01D1F93}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
{39230ED2-229B-480D-A8CF-50E6A01D1F93}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
{39230ED2-229B-480D-A8CF-50E6A01D1F93}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
EndGlobalSection
EndGlobal

45
export_presets.cfg Normal file
View File

@ -0,0 +1,45 @@
[preset.0]
name="Linux Default"
platform="Linux"
runnable=true
advanced_options=false
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
patches=PackedStringArray()
encryption_include_filters=""
encryption_exclude_filters=""
seed=0
encrypt_pck=false
encrypt_directory=false
script_export_mode=1
[preset.0.options]
custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=2
binary_format/embed_pck=false
texture_format/s3tc_bptc=true
texture_format/etc2_astc=false
shader_baker/enabled=false
binary_format/architecture="x86_64"
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="#!/usr/bin/env bash
export DISPLAY=:0
unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\"
\"{temp_dir}/{exe_name}\" {cmd_args}"
ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash
kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\")
rm -rf \"{temp_dir}\""
dotnet/include_scripts_content=true
dotnet/include_debug_symbols=false
dotnet/embed_build_outputs=false

View File

@ -1,11 +1,59 @@
[gd_scene format=3 uid="uid://lychvawyirrs"]
[gd_scene load_steps=4 format=3 uid="uid://lychvawyirrs"]
[ext_resource type="Script" uid="uid://77crqavwamsd" path="res://Main.cs" id="1_0e48y"]
[ext_resource type="Script" uid="uid://dg0qtnm4epowu" path="res://Controller.cs" id="1_wtcfe"]
[ext_resource type="Script" uid="uid://criv4i3x63akl" path="res://Projection.cs" id="2_0e48y"]
[node name="Node2D" type="Node2D"]
script = ExtResource("1_0e48y")
[node name="Controller" type="Window" parent="."]
oversampling_override = 1.0
position = Vector2i(0, 36)
position = Vector2i(-650, 0)
size = Vector2i(640, 480)
script = ExtResource("1_wtcfe")
[node name="BtnScene1" type="Button" parent="Controller"]
offset_left = 30.0
offset_top = 30.0
offset_right = 130.0
offset_bottom = 90.0
text = "Scene 1"
[node name="BtnScene2" type="Button" parent="Controller"]
offset_left = 160.0
offset_top = 30.0
offset_right = 260.0
offset_bottom = 90.0
text = "Scene 2"
[node name="BtnScene3" type="Button" parent="Controller"]
offset_left = 290.0
offset_top = 30.0
offset_right = 390.0
offset_bottom = 90.0
text = "Scene 3"
[node name="BtnScene4" type="Button" parent="Controller"]
offset_left = 420.0
offset_top = 30.0
offset_right = 520.0
offset_bottom = 90.0
text = "Scene 3"
[node name="BtnClose" type="Button" parent="Controller"]
offset_left = 42.0
offset_top = 373.0
offset_right = 592.0
offset_bottom = 433.0
text = "Close"
[node name="BtnScreen" type="Button" parent="Controller"]
offset_right = 8.0
offset_bottom = 8.0
text = "Screen"
[node name="Projection" type="Window" parent="."]
oversampling_override = 1.0
position = Vector2i(0, 36)
size = Vector2i(1920, 1080)
script = ExtResource("2_0e48y")

View File

@ -12,7 +12,7 @@ config_version=5
config/name="StarSkyPresenter"
run/main_scene="uid://lychvawyirrs"
config/features=PackedStringArray("4.5", "Forward Plus")
config/features=PackedStringArray("4.5", "C#", "Forward Plus")
config/icon="res://icon.svg"
[display]