Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
35be20293b | |||
597bd928d7 | |||
c8e0058ce3 | |||
0b5029aab1 | |||
15a7f27cee | |||
b44bcb8758 | |||
b59f8a09bd | |||
f71ed1c5a7 | |||
cb5842a32b | |||
ac8b51031b |
35
LLMApi/.vscode/launch.json
vendored
Normal file
35
LLMApi/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
// Use IntelliSense to find out which attributes exist for C# debugging
|
||||
// Use hover for the description of the existing attributes
|
||||
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md.
|
||||
"name": ".NET Core Launch (web)",
|
||||
"type": "coreclr",
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
// If you have changed target frameworks, make sure to update the program path.
|
||||
"program": "${workspaceFolder}/bin/Debug/net7.0/LLMApi.dll",
|
||||
"args": [],
|
||||
"cwd": "${workspaceFolder}",
|
||||
"stopAtEntry": false,
|
||||
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
|
||||
"serverReadyAction": {
|
||||
"action": "openExternally",
|
||||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
|
||||
},
|
||||
"env": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
},
|
||||
"sourceFileMap": {
|
||||
"/Views": "${workspaceFolder}/Views"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": ".NET Core Attach",
|
||||
"type": "coreclr",
|
||||
"request": "attach"
|
||||
}
|
||||
]
|
||||
}
|
12
LLMApi/.vscode/settings.json
vendored
Normal file
12
LLMApi/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/.git": true,
|
||||
"**/.svn": true,
|
||||
"**/.hg": true,
|
||||
"**/CVS": true,
|
||||
"**/.DS_Store": true,
|
||||
"**/Thumbs.db": true,
|
||||
"**/bin/": true,
|
||||
"**/obj/": true,
|
||||
}
|
||||
}
|
41
LLMApi/.vscode/tasks.json
vendored
Normal file
41
LLMApi/.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "build",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"build",
|
||||
"${workspaceFolder}/LLMApi.csproj",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "publish",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"publish",
|
||||
"${workspaceFolder}/LLMApi.csproj",
|
||||
"/property:GenerateFullPaths=true",
|
||||
"/consoleloggerparameters:NoSummary"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
},
|
||||
{
|
||||
"label": "watch",
|
||||
"command": "dotnet",
|
||||
"type": "process",
|
||||
"args": [
|
||||
"watch",
|
||||
"run",
|
||||
"--project",
|
||||
"${workspaceFolder}/LLMApi.csproj"
|
||||
],
|
||||
"problemMatcher": "$msCompile"
|
||||
}
|
||||
]
|
||||
}
|
24
LLMApi/Controllers/LLMController.cs
Normal file
24
LLMApi/Controllers/LLMController.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using LLMApi.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LLMApi.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("[controller]")]
|
||||
public class LLMController : ControllerBase
|
||||
{
|
||||
private readonly ILlmApiService _apiService;
|
||||
|
||||
public LLMController(ILlmApiService apiService)
|
||||
{
|
||||
_apiService = apiService;
|
||||
}
|
||||
|
||||
[HttpGet(nameof(AnswerToPrompt))]
|
||||
public async Task<IActionResult> AnswerToPrompt(string prompt = "")
|
||||
{
|
||||
var temp = await _apiService.GetAnswerToPrompt(prompt);
|
||||
|
||||
return Ok(temp);
|
||||
}
|
||||
}
|
11
LLMApi/Data/Contracts/ChatGpt3_5/ChatCompletionRequest.cs
Normal file
11
LLMApi/Data/Contracts/ChatGpt3_5/ChatCompletionRequest.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace LLMApi.Data.Contracts.ChatGpt3_5;
|
||||
|
||||
public record ChatCompletionRequest(
|
||||
string Model,
|
||||
Message[] Messages
|
||||
);
|
||||
|
||||
public record Message(
|
||||
string Role,
|
||||
string? Content
|
||||
);
|
22
LLMApi/Data/Contracts/ChatGpt3_5/ChatCompletionResponse.cs
Normal file
22
LLMApi/Data/Contracts/ChatGpt3_5/ChatCompletionResponse.cs
Normal file
@ -0,0 +1,22 @@
|
||||
namespace LLMApi.Data.Contracts.ChatGpt3_5;
|
||||
|
||||
public record ChatCompletionResponse(
|
||||
string Id,
|
||||
string Object,
|
||||
int Created,
|
||||
string Model,
|
||||
Choice[] Choices,
|
||||
Usage Usage
|
||||
);
|
||||
|
||||
public record Choice(
|
||||
int Index,
|
||||
Message Message,
|
||||
string FinishReason
|
||||
);
|
||||
|
||||
public record Usage(
|
||||
int PromptTokens,
|
||||
int CompletionTokens,
|
||||
int TotalTokens
|
||||
);
|
15
LLMApi/LLMApi.csproj
Normal file
15
LLMApi/LLMApi.csproj
Normal file
@ -0,0 +1,15 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.11" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
31
LLMApi/Program.cs
Normal file
31
LLMApi/Program.cs
Normal file
@ -0,0 +1,31 @@
|
||||
using System.Net.Http;
|
||||
using LLMApi.Services;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
|
||||
builder.Services.AddControllers();
|
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
builder.Services.AddSingleton<HttpClient>();
|
||||
builder.Services.AddSingleton<ILlmApiService, ChatGpt3_5Service>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
||||
app.Run();
|
41
LLMApi/Properties/launchSettings.json
Normal file
41
LLMApi/Properties/launchSettings.json
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/launchsettings.json",
|
||||
"iisSettings": {
|
||||
"windowsAuthentication": false,
|
||||
"anonymousAuthentication": true,
|
||||
"iisExpress": {
|
||||
"applicationUrl": "http://localhost:17280",
|
||||
"sslPort": 44333
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:5246",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"https": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "https://localhost:7113;http://localhost:5246",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
},
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
46
LLMApi/Services/ChatGpt3_5.cs
Normal file
46
LLMApi/Services/ChatGpt3_5.cs
Normal file
@ -0,0 +1,46 @@
|
||||
using LLMApi.Data.Contracts.ChatGpt3_5;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace LLMApi.Services;
|
||||
|
||||
public class ChatGpt3_5Service : ILlmApiService
|
||||
{
|
||||
private readonly HttpClient _client;
|
||||
private static readonly JsonSerializerSettings jsonSerializerSettings = new()
|
||||
{
|
||||
ContractResolver = new DefaultContractResolver()
|
||||
{
|
||||
NamingStrategy = new SnakeCaseNamingStrategy()
|
||||
}
|
||||
};
|
||||
private const string API_TOKEN = "";
|
||||
private const string VERSION_IDENTIFIER = "gpt-3.5-turbo";
|
||||
|
||||
public ChatGpt3_5Service(HttpClient client)
|
||||
{
|
||||
_client = client;
|
||||
_client.BaseAddress = new Uri("https://api.openai.com");
|
||||
// _client.DefaultRequestHeaders.Add("Content-Type", "application/json");
|
||||
_client.DefaultRequestHeaders.Add("Authorization", $"Bearer {API_TOKEN}");
|
||||
}
|
||||
|
||||
public async Task<string> GetAnswerToPrompt(string prompt)
|
||||
{
|
||||
var requestContract = new ChatCompletionRequest(VERSION_IDENTIFIER,
|
||||
new Message[]
|
||||
{
|
||||
new("system", "You are a helpful assistant."),
|
||||
new("user", "Hello!"),
|
||||
});
|
||||
|
||||
var response = await _client.PostAsJsonAsync("/v1/chat/completions", requestContract);
|
||||
|
||||
var content = await response.Content.ReadAsStringAsync();
|
||||
|
||||
var obj = JsonConvert.DeserializeObject<ChatCompletionResponse>(content, jsonSerializerSettings);
|
||||
|
||||
return obj!.ToString() + Environment.NewLine + string.Join(", ", obj!.Choices.Select(c => c.ToString()));
|
||||
|
||||
}
|
||||
}
|
6
LLMApi/Services/ILLMApiService.cs
Normal file
6
LLMApi/Services/ILLMApiService.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace LLMApi.Services;
|
||||
|
||||
public interface ILlmApiService
|
||||
{
|
||||
public Task<string> GetAnswerToPrompt(string prompt);
|
||||
}
|
8
LLMApi/appsettings.Development.json
Normal file
8
LLMApi/appsettings.Development.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
}
|
||||
}
|
9
LLMApi/appsettings.json
Normal file
9
LLMApi/appsettings.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
}
|
30
godot/AttributeBox.cs
Normal file
30
godot/AttributeBox.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class AttributeBox : SpinBox
|
||||
{
|
||||
// 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)
|
||||
{
|
||||
}
|
||||
|
||||
public override void _ValueChanged(double new_value)
|
||||
{
|
||||
nuint Strength = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Strength/SpinBox").Value;
|
||||
nuint Perception = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Perception/SpinBox").Value;
|
||||
nuint Endurance = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Endurance/SpinBox").Value;
|
||||
nuint Charisma = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Charisma/SpinBox").Value;
|
||||
nuint Intelligence = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Intelligence/SpinBox").Value;
|
||||
nuint Agility = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Agility/SpinBox").Value;
|
||||
nuint Luck = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Luck/SpinBox").Value;
|
||||
string Name = GetTree().Root.GetNode<TextEdit>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Name/NameEdit").Text;
|
||||
Player player = new Player{Name = Name, Strength = Strength, Perception = Perception, Endurance = Endurance, Charisma = Charisma, Intelligence = Intelligence, Agility = Agility, Luck = Luck};
|
||||
|
||||
GetTree().Root.GetNode<TextEdit>("Root/MainMenu/MainMenuCanvas/VBoxContainer/PointsLeft").Text = String.Format("Attribute Points Left: {0}", 35-player.StatSum());
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class LLMApiRequest : HttpRequest
|
||||
public partial class LLMApiRequests : HttpRequest
|
||||
{
|
||||
public record AnswerRequest(
|
||||
Message[] Context,
|
||||
@ -15,7 +15,6 @@ public partial class LLMApiRequest : HttpRequest
|
||||
|
||||
private bool PostToApiIsSet = false;
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
SetProcess(false);
|
||||
|
@ -1,12 +1,12 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class Hauptmenü : Node2D
|
||||
public partial class MainMenu : Node2D
|
||||
{
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
var node = this.GetNode<CanvasLayer>("HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame");
|
||||
var node = this.GetTree().Root.GetNode<CanvasLayer>("Root/Ingame/IngameCanvas");
|
||||
node.SetProcess(false);
|
||||
node.Hide();
|
||||
}
|
||||
@ -14,6 +14,5 @@ public partial class Hauptmenü : Node2D
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -4,29 +4,47 @@ using System.Net.Cache;
|
||||
|
||||
public partial class Playbutton : Button
|
||||
{
|
||||
private LLMApiRequest llmApiRequest;
|
||||
private LLMApiRequests llmApiRequests;
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
SetProcess(false);
|
||||
llmApiRequest = GetNode<LLMApiRequest>("/root/Node2D/HTTPRequests");
|
||||
llmApiRequests = GetNode<LLMApiRequests>("/root/LLMApiRequests");
|
||||
}
|
||||
|
||||
public override void _Pressed()
|
||||
{
|
||||
// llmApiRequest.RequestCompleted += OnRequestCompleted;
|
||||
// llmApiRequest.Request("https://api.github.com/repos/godotengine/godot/releases/latest");
|
||||
llmApiRequest?.PostToApi(OnRequestCompleted);
|
||||
nuint Strength = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Strength/SpinBox").Value;
|
||||
nuint Perception = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Perception/SpinBox").Value;
|
||||
nuint Endurance = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Endurance/SpinBox").Value;
|
||||
nuint Charisma = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Charisma/SpinBox").Value;
|
||||
nuint Intelligence = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Intelligence/SpinBox").Value;
|
||||
nuint Agility = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Agility/SpinBox").Value;
|
||||
nuint Luck = (nuint) GetTree().Root.GetNode<SpinBox>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Luck/SpinBox").Value;
|
||||
string Name = GetTree().Root.GetNode<TextEdit>("Root/MainMenu/MainMenuCanvas/VBoxContainer/Name/NameEdit").Text;
|
||||
Player player = new Player{Name = Name, Strength = Strength, Perception = Perception, Endurance = Endurance, Charisma = Charisma, Intelligence = Intelligence, Agility = Agility, Luck = Luck};
|
||||
|
||||
if (player.isValid())
|
||||
{
|
||||
llmApiRequests?.PostToApi(OnRequestCompleted);
|
||||
|
||||
GD.Print("a");
|
||||
var node = this.GetNode<CanvasLayer>("Ingame/Ingame");
|
||||
var node = this.GetTree().Root.GetNode<CanvasLayer>("Root/Ingame/IngameCanvas");
|
||||
node.SetProcess(true);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Strength").Text = String.Format("Strength: {0}", Strength);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Perception").Text = String.Format("Perception: {0}", Perception);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Endurance").Text = String.Format("Endurance: {0}", Endurance);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Charisma").Text = String.Format("Charisma: {0}", Charisma);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Intelligence").Text = String.Format("Intelligence: {0}", Intelligence);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Agility").Text = String.Format("Agility: {0}", Agility);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Luck").Text = String.Format("Luck: {0}", Luck);
|
||||
GetTree().Root.GetNode<TextEdit>("Root/Ingame/IngameCanvas/Stats/Name").Text = String.Format("Name: {0}", Name);
|
||||
|
||||
node.Show();
|
||||
var GParent = this.GetTree().Root.GetNode<CanvasLayer>("Root/Hauptmenü/HauptMenü");
|
||||
var GParent = this.GetTree().Root.GetNode<CanvasLayer>("Root/MainMenu/MainMenuCanvas");
|
||||
GParent.Hide();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnRequestCompleted(long result, long responseCode, string[] headers, byte[] body)
|
||||
{
|
||||
|
36
godot/Player.cs
Normal file
36
godot/Player.cs
Normal file
@ -0,0 +1,36 @@
|
||||
public record Player
|
||||
{
|
||||
public string Name { get; init; }
|
||||
public nuint Strength { get; init; }
|
||||
public nuint Perception { get; init; }
|
||||
public nuint Endurance { get; init; }
|
||||
public nuint Charisma { get; init; }
|
||||
public nuint Intelligence { get; init; }
|
||||
public nuint Agility { get; init; }
|
||||
public nuint Luck { get; init; }
|
||||
|
||||
// public Person(string Name, nuint Strength, nuint Perception, nuint Endurance, nuint Charisma, nuint Intelligence, nuint Agility, nuint Luck, )
|
||||
// {
|
||||
// Name
|
||||
//}
|
||||
|
||||
public bool isValid()
|
||||
{
|
||||
return StatSum() <= 35;
|
||||
}
|
||||
|
||||
public nint StatSum()
|
||||
{
|
||||
nuint sum = 0;
|
||||
|
||||
sum += Strength;
|
||||
sum += Perception;
|
||||
sum += Endurance;
|
||||
sum += Charisma;
|
||||
sum += Intelligence;
|
||||
sum += Agility;
|
||||
sum += Luck;
|
||||
|
||||
return (nint) sum;
|
||||
}
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class TextEdit : Godot.TextEdit
|
||||
{
|
||||
// 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
166
godot/UI.cs
Normal file
166
godot/UI.cs
Normal file
@ -0,0 +1,166 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class UI : Node2D
|
||||
{
|
||||
[Export]
|
||||
private byte Strength = 5;
|
||||
[Export]
|
||||
private byte Perception = 5;
|
||||
[Export]
|
||||
private byte Endurance = 5;
|
||||
[Export]
|
||||
private byte Charisma = 5;
|
||||
[Export]
|
||||
private byte Intelligence = 5;
|
||||
[Export]
|
||||
private byte Agility = 5;
|
||||
[Export]
|
||||
private byte Luck = 5;
|
||||
|
||||
private List<string> = context;
|
||||
|
||||
// Called when the node enters the scene tree for the first time.
|
||||
public override void _Ready()
|
||||
{
|
||||
GD.Randomize();
|
||||
}
|
||||
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
context = new List<string>();
|
||||
}
|
||||
|
||||
public bool StrengthCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Strength; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool PerceptionCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Perception; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool EnduranceCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Endurance; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool CharismaCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Charisma; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IntelligenceCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Intelligence; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool AgilityCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Agility; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
public bool LuckCheck(byte difficulty)
|
||||
{
|
||||
uint score = 0;
|
||||
for (byte i = 0; i < Luck; i++)
|
||||
{
|
||||
score += GD.Randi() % 6 + 1;
|
||||
}
|
||||
|
||||
if (score >= difficulty)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public bool isJSON(string text)
|
||||
{
|
||||
return text.Contains('{') || text.Contains('}');
|
||||
}
|
||||
|
||||
|
||||
}
|
186
godot/UI.tscn
186
godot/UI.tscn
@ -1,22 +1,22 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://1gar30yhw8ay"]
|
||||
|
||||
[ext_resource type="Script" path="res://Hauptmenü.cs" id="1_4eu52"]
|
||||
[ext_resource type="Script" path="res://TextEdit.cs" id="1_5gfrp"]
|
||||
[ext_resource type="Script" path="res://MainMenu.cs" id="1_m0gay"]
|
||||
[ext_resource type="Texture2D" uid="uid://vn2ficr8n4n5" path="res://GodofAi.jpg" id="2_m684j"]
|
||||
[ext_resource type="Script" path="res://AttributeBox.cs" id="3_hpms0"]
|
||||
[ext_resource type="Script" path="res://Playbutton.cs" id="3_ucfae"]
|
||||
[ext_resource type="Script" path="res://LLMApiRequests.cs" id="5_pukni"]
|
||||
[ext_resource type="Script" path="res://LLMApiRequests.cs" id="4_ff2gi"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ncw85"]
|
||||
|
||||
[node name="Root" type="Node2D"]
|
||||
|
||||
[node name="Hauptmenü" type="Node2D" parent="."]
|
||||
[node name="MainMenu" type="Node2D" parent="."]
|
||||
position = Vector2(320, 20)
|
||||
script = ExtResource("1_4eu52")
|
||||
script = ExtResource("1_m0gay")
|
||||
|
||||
[node name="HauptMenü" type="CanvasLayer" parent="Hauptmenü"]
|
||||
[node name="MainMenuCanvas" type="CanvasLayer" parent="MainMenu"]
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Hauptmenü/HauptMenü"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MainMenu/MainMenuCanvas"]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
@ -30,12 +30,12 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 0
|
||||
|
||||
[node name="Titelbild" type="TextureRect" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Titelbild" type="TextureRect" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(0, 200)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_m684j")
|
||||
|
||||
[node name="Pop up Menu Szenen" type="MenuButton" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Pop up Menu Szenen" type="MenuButton" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
@ -73,7 +73,7 @@ popup/item_10/id = 10
|
||||
popup/item_11/text = "Krimi 2"
|
||||
popup/item_11/id = 11
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="TextEdit" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 300)
|
||||
layout_direction = 1
|
||||
layout_mode = 2
|
||||
@ -82,13 +82,46 @@ placeholder_text = "Enter a custom setting"
|
||||
drag_and_drop_selection_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="Strength" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="PointsLeft" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_direction = 1
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Attribute Points Left: 28"
|
||||
editable = false
|
||||
drag_and_drop_selection_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="Name" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="NameLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Name"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Character Name:"
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
shortcut_keys_enabled = false
|
||||
selecting_enabled = false
|
||||
deselect_on_focus_loss_enabled = false
|
||||
drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="NameEdit" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Name"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Strength" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="StrengthLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Strength"]
|
||||
[node name="StrengthLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Strength"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Strength"
|
||||
@ -101,19 +134,20 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Strength"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Strength"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Perception" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Perception" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="PerceptionLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Perception"]
|
||||
[node name="PerceptionLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Perception"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Perception"
|
||||
@ -126,19 +160,20 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Perception"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Perception"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Endurance" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Endurance" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="EnduranceLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Endurance"]
|
||||
[node name="EnduranceLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Endurance"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Endurance"
|
||||
@ -151,19 +186,20 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Endurance"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Endurance"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Charisma" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Charisma" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="CharismaLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Charisma"]
|
||||
[node name="CharismaLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Charisma"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Charisma"
|
||||
@ -176,19 +212,20 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Charisma"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Charisma"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Intelligence" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Intelligence" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="CharismaLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Intelligence"]
|
||||
[node name="CharismaLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Intelligence"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Intelligence"
|
||||
@ -201,19 +238,20 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Intelligence"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Intelligence"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Agillity" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Agility" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="AgillityLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Agillity"]
|
||||
[node name="AgilityLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Agility"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Agillity"
|
||||
@ -226,19 +264,20 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Agillity"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Agility"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Luck" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Luck" type="HBoxContainer" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(520, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="LuckLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Luck"]
|
||||
[node name="LuckLabel" type="TextEdit" parent="MainMenu/MainMenuCanvas/VBoxContainer/Luck"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Luck"
|
||||
@ -251,25 +290,25 @@ drag_and_drop_selection_enabled = false
|
||||
virtual_keyboard_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Luck"]
|
||||
clip_contents = true
|
||||
[node name="SpinBox" type="SpinBox" parent="MainMenu/MainMenuCanvas/VBoxContainer/Luck"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
placeholder_text = "0"
|
||||
min_value = 1.0
|
||||
max_value = 10.0
|
||||
value = 1.0
|
||||
script = ExtResource("3_hpms0")
|
||||
|
||||
[node name="Playbutton" type="Button" parent="Hauptmenü/HauptMenü/VBoxContainer"]
|
||||
[node name="Playbutton" type="Button" parent="MainMenu/MainMenuCanvas/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 3
|
||||
text = " PLAY "
|
||||
script = ExtResource("3_ucfae")
|
||||
|
||||
[node name="Ingame" type="Node2D" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton"]
|
||||
position = Vector2(-699, -1003)
|
||||
[node name="Ingame" type="Node2D" parent="."]
|
||||
|
||||
[node name="Ingame" type="CanvasLayer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame"]
|
||||
[node name="IngameCanvas" type="CanvasLayer" parent="Ingame"]
|
||||
|
||||
[node name="Eingabe" type="VBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
|
||||
[node name="Eingabe" type="VBoxContainer" parent="Ingame/IngameCanvas"]
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
@ -280,12 +319,11 @@ grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Eingabe"]
|
||||
[node name="TextEdit" type="TextEdit" parent="Ingame/IngameCanvas/Eingabe"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
script = ExtResource("1_5gfrp")
|
||||
|
||||
[node name="Story" type="VBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
|
||||
[node name="Story" type="VBoxContainer" parent="Ingame/IngameCanvas"]
|
||||
anchors_preset = 11
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
@ -295,7 +333,7 @@ grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 8
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Story"]
|
||||
[node name="TextEdit" type="TextEdit" parent="Ingame/IngameCanvas/Story"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
placeholder_text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
|
||||
@ -303,7 +341,7 @@ editable = false
|
||||
context_menu_enabled = false
|
||||
wrap_mode = 1
|
||||
|
||||
[node name="Stats" type="VBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
|
||||
[node name="Stats" type="VBoxContainer" parent="Ingame/IngameCanvas"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@ -313,7 +351,13 @@ offset_bottom = -360.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Name" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
wrap_mode = 1
|
||||
|
||||
[node name="Strength" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
placeholder_text = "SampleStat = 1
|
||||
@ -321,43 +365,43 @@ placeholder_text = "SampleStat = 1
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="TextEdit2" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Perception" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="TextEdit3" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Endurance" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="TextEdit4" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Charisma" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="TextEdit5" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Intelligence" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="TextEdit6" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Agility" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="TextEdit7" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
|
||||
[node name="Luck" type="TextEdit" parent="Ingame/IngameCanvas/Stats"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
editable = false
|
||||
context_menu_enabled = false
|
||||
|
||||
[node name="Szenerie" type="TextureRect" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
|
||||
[node name="Szenerie" type="TextureRect" parent="Ingame/IngameCanvas"]
|
||||
offset_left = -3.0
|
||||
offset_top = -1.0
|
||||
offset_right = 1277.0
|
||||
@ -367,4 +411,4 @@ expand_mode = 1
|
||||
stretch_mode = 1
|
||||
|
||||
[node name="LLMApiRequests" type="HTTPRequest" parent="."]
|
||||
script = ExtResource("5_pukni")
|
||||
script = ExtResource("4_ff2gi")
|
||||
|
Reference in New Issue
Block a user