1
This commit is contained in:
@@ -42,4 +42,5 @@ _subresources={
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
@@ -30,4 +30,5 @@ animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
@@ -30,7 +30,6 @@ void fragment() {
|
||||
|
||||
}
|
||||
"
|
||||
graph_offset = Vector2(-527.376, 50.6207)
|
||||
nodes/fragment/2/node = SubResource("VisualShaderNodeTexture_pnmq1")
|
||||
nodes/fragment/2/position = Vector2(-400, 180)
|
||||
nodes/fragment/3/node = SubResource("VisualShaderNodeFloatConstant_20cju")
|
||||
|
@@ -37,4 +37,5 @@ _subresources={
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
@@ -30,4 +30,5 @@ animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@@ -0,0 +1,35 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ltbkeesxm1pl"
|
||||
path="res://.godot/imported/dev_quad_1080p-460bafeb5b050cb0745a7ffe855f94e9_Premium Vector _ High tech technology geometric.jpg-5dcf3d09baf2bde2da6cd832728b630b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
generator_parameters={}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://iFactory/Models/dev_quad_1080p-460bafeb5b050cb0745a7ffe855f94e9_Premium Vector _ High tech technology geometric.jpg"
|
||||
dest_files=["res://.godot/imported/dev_quad_1080p-460bafeb5b050cb0745a7ffe855f94e9_Premium Vector _ High tech technology geometric.jpg-5dcf3d09baf2bde2da6cd832728b630b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
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
|
@@ -37,4 +37,5 @@ _subresources={
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
@@ -37,4 +37,5 @@ _subresources={
|
||||
}
|
||||
}
|
||||
}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
@@ -30,4 +30,5 @@ animation/trimming=false
|
||||
animation/remove_immutable_tracks=true
|
||||
import_script/path=""
|
||||
_subresources={}
|
||||
gltf/naming_version=0
|
||||
gltf/embedded_image_handling=1
|
||||
|
62
Artists/Scripts/Business/PlaceOrder.cs
Normal file
62
Artists/Scripts/Business/PlaceOrder.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BITKit;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Godot.Collections;
|
||||
using Newtonsoft.Json;
|
||||
using HttpClient = System.Net.Http.HttpClient;
|
||||
|
||||
namespace BITFactory.Business
|
||||
{
|
||||
public partial class PlaceOrder : Node,IAction
|
||||
{
|
||||
private static readonly HttpClient _httpClient = new();
|
||||
|
||||
[Export] private StringResource postUrl;
|
||||
[Export] private Array<StringResource> keys;
|
||||
|
||||
[Signal]
|
||||
public delegate void OnPostEventHandler(string httpContext);
|
||||
[Signal]
|
||||
public delegate void OnExceptionEventHandler(string exception);
|
||||
[Signal]
|
||||
public delegate void OnPostSuccessEventHandler(string httpContext);
|
||||
|
||||
public async void Execute()
|
||||
{
|
||||
try
|
||||
{
|
||||
var value =new System.Collections.Generic.Dictionary<string,string>(keys.Select(GetValue)) ;
|
||||
var json = JsonHelper.Get(value);
|
||||
BIT4Log.Log<PlaceOrder>(json);
|
||||
|
||||
if (postUrl is not null && string.IsNullOrEmpty(postUrl) is false)
|
||||
{
|
||||
try
|
||||
{
|
||||
EmitSignal(nameof(OnPostEventHandler), json);
|
||||
await _httpClient.PostJsonAsync(postUrl, value);
|
||||
EmitSignal(nameof(OnPostSuccess));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
await BITApp.SwitchToMainThread();
|
||||
BIT4Log.LogException(e);
|
||||
EmitSignal(nameof(OnExceptionEventHandler), e.Message);
|
||||
}
|
||||
await BITApp.SwitchToMainThread();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
BIT4Log.LogException(e);
|
||||
}
|
||||
}
|
||||
private static KeyValuePair<string,string> GetValue(StringResource stringResource)
|
||||
{
|
||||
return new KeyValuePair<string, string>(stringResource.Value, Data.Get<string>(stringResource.Value));
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user