20251808
This commit is contained in:
parent
f8aae2d19f
commit
04ce9036cc
@ -11,7 +11,7 @@ config_version=5
|
|||||||
[application]
|
[application]
|
||||||
|
|
||||||
config/name="最强导师"
|
config/name="最强导师"
|
||||||
run/main_scene="uid://bewpqkap6epnb"
|
run/main_scene="uid://db2qcx61nc0q4"
|
||||||
config/features=PackedStringArray("4.5", "C#", "GL Compatibility")
|
config/features=PackedStringArray("4.5", "C#", "GL Compatibility")
|
||||||
config/icon="res://icon.svg"
|
config/icon="res://icon.svg"
|
||||||
|
|
||||||
|
|||||||
BIN
res_src/button-hover.png
Normal file
BIN
res_src/button-hover.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 188 B |
40
res_src/button-hover.png.import
Normal file
40
res_src/button-hover.png.import
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://b73wqk6nf3gtd"
|
||||||
|
path="res://.godot/imported/button-hover.png-2adfb7fca4c1f54116783ddc5adc867c.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://res_src/button-hover.png"
|
||||||
|
dest_files=["res://.godot/imported/button-hover.png-2adfb7fca4c1f54116783ddc5adc867c.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
|
||||||
BIN
res_src/button-normal.png
Normal file
BIN
res_src/button-normal.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 211 B |
40
res_src/button-normal.png.import
Normal file
40
res_src/button-normal.png.import
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bfy4l227neg3u"
|
||||||
|
path="res://.godot/imported/button-normal.png-fd404f8fb8e7f997a78073f0113fa725.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://res_src/button-normal.png"
|
||||||
|
dest_files=["res://.godot/imported/button-normal.png-fd404f8fb8e7f997a78073f0113fa725.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
|
||||||
BIN
res_src/button-press.png
Normal file
BIN
res_src/button-press.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 209 B |
40
res_src/button-press.png.import
Normal file
40
res_src/button-press.png.import
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bcl5e8ai5ugj7"
|
||||||
|
path="res://.godot/imported/button-press.png-e13191b87d82c88b37b165b93457e0c3.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://res_src/button-press.png"
|
||||||
|
dest_files=["res://.godot/imported/button-press.png-e13191b87d82c88b37b165b93457e0c3.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
|
||||||
BIN
res_src/button.aseprite
Normal file
BIN
res_src/button.aseprite
Normal file
Binary file not shown.
BIN
res_src/campus.aseprite
Normal file
BIN
res_src/campus.aseprite
Normal file
Binary file not shown.
BIN
res_src/fame_icon.png
Normal file
BIN
res_src/fame_icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 234 B |
40
res_src/fame_icon.png.import
Normal file
40
res_src/fame_icon.png.import
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://brmchgisek2vy"
|
||||||
|
path="res://.godot/imported/fame_icon.png-dce031d02b618f6c775cedab59b8fa28.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://res_src/fame_icon.png"
|
||||||
|
dest_files=["res://.godot/imported/fame_icon.png-dce031d02b618f6c775cedab59b8fa28.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
|
||||||
BIN
resources/Font/GenSenRounded2-B.ttc
Normal file
BIN
resources/Font/GenSenRounded2-B.ttc
Normal file
Binary file not shown.
36
resources/Font/GenSenRounded2-B.ttc.import
Normal file
36
resources/Font/GenSenRounded2-B.ttc.import
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="font_data_dynamic"
|
||||||
|
type="FontFile"
|
||||||
|
uid="uid://b36k051ivdyik"
|
||||||
|
path="res://.godot/imported/GenSenRounded2-B.ttc-c5c1e3a0eef31233a762ef5b27f42717.fontdata"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resources/Font/GenSenRounded2-B.ttc"
|
||||||
|
dest_files=["res://.godot/imported/GenSenRounded2-B.ttc-c5c1e3a0eef31233a762ef5b27f42717.fontdata"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Rendering=null
|
||||||
|
antialiasing=1
|
||||||
|
generate_mipmaps=false
|
||||||
|
disable_embedded_bitmaps=true
|
||||||
|
multichannel_signed_distance_field=false
|
||||||
|
msdf_pixel_range=8
|
||||||
|
msdf_size=48
|
||||||
|
allow_system_fallback=true
|
||||||
|
force_autohinter=false
|
||||||
|
modulate_color_glyphs=false
|
||||||
|
hinting=1
|
||||||
|
subpixel_positioning=4
|
||||||
|
keep_rounding_remainders=true
|
||||||
|
oversampling=0.0
|
||||||
|
Fallbacks=null
|
||||||
|
fallbacks=[]
|
||||||
|
Compress=null
|
||||||
|
compress=true
|
||||||
|
preload=[]
|
||||||
|
language_support={}
|
||||||
|
script_support={}
|
||||||
|
opentype_features={}
|
||||||
BIN
resources/Font/GenSenRounded2-M.ttc
Normal file
BIN
resources/Font/GenSenRounded2-M.ttc
Normal file
Binary file not shown.
36
resources/Font/GenSenRounded2-M.ttc.import
Normal file
36
resources/Font/GenSenRounded2-M.ttc.import
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="font_data_dynamic"
|
||||||
|
type="FontFile"
|
||||||
|
uid="uid://dx3xrb5ewup4g"
|
||||||
|
path="res://.godot/imported/GenSenRounded2-M.ttc-a195b9e0e703b8cbfb4ade385bfdec82.fontdata"
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resources/Font/GenSenRounded2-M.ttc"
|
||||||
|
dest_files=["res://.godot/imported/GenSenRounded2-M.ttc-a195b9e0e703b8cbfb4ade385bfdec82.fontdata"]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
Rendering=null
|
||||||
|
antialiasing=1
|
||||||
|
generate_mipmaps=false
|
||||||
|
disable_embedded_bitmaps=true
|
||||||
|
multichannel_signed_distance_field=false
|
||||||
|
msdf_pixel_range=8
|
||||||
|
msdf_size=48
|
||||||
|
allow_system_fallback=true
|
||||||
|
force_autohinter=false
|
||||||
|
modulate_color_glyphs=false
|
||||||
|
hinting=1
|
||||||
|
subpixel_positioning=0
|
||||||
|
keep_rounding_remainders=true
|
||||||
|
oversampling=1.0
|
||||||
|
Fallbacks=null
|
||||||
|
fallbacks=[]
|
||||||
|
Compress=null
|
||||||
|
compress=true
|
||||||
|
preload=[]
|
||||||
|
language_support={}
|
||||||
|
script_support={}
|
||||||
|
opentype_features={}
|
||||||
BIN
resources/UI/chip_ramdrive-0.png
Normal file
BIN
resources/UI/chip_ramdrive-0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 468 B |
40
resources/UI/chip_ramdrive-0.png.import
Normal file
40
resources/UI/chip_ramdrive-0.png.import
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://f6cjqvlefyxh"
|
||||||
|
path="res://.godot/imported/chip_ramdrive-0.png-301039476d0b98ce27108dc6ea7eee0c.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resources/UI/chip_ramdrive-0.png"
|
||||||
|
dest_files=["res://.godot/imported/chip_ramdrive-0.png-301039476d0b98ce27108dc6ea7eee0c.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
|
||||||
BIN
resources/UI/chip_ramdrive-1.png
Normal file
BIN
resources/UI/chip_ramdrive-1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 352 B |
40
resources/UI/chip_ramdrive-1.png.import
Normal file
40
resources/UI/chip_ramdrive-1.png.import
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://qaitnvq4d877"
|
||||||
|
path="res://.godot/imported/chip_ramdrive-1.png-2a5e29b18cf82d5a3ef53b050ae0bd9d.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://resources/UI/chip_ramdrive-1.png"
|
||||||
|
dest_files=["res://.godot/imported/chip_ramdrive-1.png-2a5e29b18cf82d5a3ef53b050ae0bd9d.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
|
||||||
34
scenes/ui-elements/InfoBlock.cs
Normal file
34
scenes/ui-elements/InfoBlock.cs
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
using Godot;
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public partial class InfoBlock : PanelContainer
|
||||||
|
{
|
||||||
|
[Export]
|
||||||
|
public Texture2D IconTexture { get; set; }
|
||||||
|
|
||||||
|
[Export]
|
||||||
|
public string DisplayName { get; set; } = "资金";
|
||||||
|
|
||||||
|
[Export]
|
||||||
|
public string Value { get; set; } = "999.9 M";
|
||||||
|
|
||||||
|
private TextureRect _icon;
|
||||||
|
private Label _displayLabel;
|
||||||
|
private Label _valueLabel;
|
||||||
|
|
||||||
|
// Called when the node enters the scene tree for the first time.
|
||||||
|
public override void _Ready() {
|
||||||
|
_icon = GetNode<TextureRect>("VBoxContainer/HBoxContainer/Icon");
|
||||||
|
_displayLabel = GetNode<Label>("VBoxContainer/DisplayLabel");
|
||||||
|
_valueLabel = GetNode<Label>("VBoxContainer/HBoxContainer/ValueLabel");
|
||||||
|
|
||||||
|
_icon.Texture = IconTexture;
|
||||||
|
_displayLabel.Text = DisplayName;
|
||||||
|
_valueLabel.Text = Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
public override void _Process(double delta) {
|
||||||
|
_valueLabel.Text = Value;
|
||||||
|
}
|
||||||
|
}
|
||||||
1
scenes/ui-elements/InfoBlock.cs.uid
Normal file
1
scenes/ui-elements/InfoBlock.cs.uid
Normal file
@ -0,0 +1 @@
|
|||||||
|
uid://5r7vda2lcjsk
|
||||||
18
scenes/ui-elements/TopBar.cs
Normal file
18
scenes/ui-elements/TopBar.cs
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
using Godot;
|
||||||
|
|
||||||
|
public partial class TopBar : PanelContainer
|
||||||
|
{
|
||||||
|
private ProgressBar _progressBar;
|
||||||
|
|
||||||
|
// Called when the node enters the scene tree for the first time.
|
||||||
|
public override void _Ready()
|
||||||
|
{
|
||||||
|
_progressBar = GetNode<ProgressBar>("HBox/YearProgress/ProgressBar");
|
||||||
|
}
|
||||||
|
|
||||||
|
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
public override void _Process(double delta)
|
||||||
|
{
|
||||||
|
_progressBar.Value = (_progressBar.Value + 1) % _progressBar.MaxValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
1
scenes/ui-elements/TopBar.cs.uid
Normal file
1
scenes/ui-elements/TopBar.cs.uid
Normal file
@ -0,0 +1 @@
|
|||||||
|
uid://dkyo6dykai3fy
|
||||||
@ -1,9 +1,10 @@
|
|||||||
[gd_scene load_steps=4 format=3 uid="uid://bewpqkap6epnb"]
|
[gd_scene load_steps=5 format=3 uid="uid://bewpqkap6epnb"]
|
||||||
|
|
||||||
|
[ext_resource type="FontFile" uid="uid://b36k051ivdyik" path="res://resources/Font/GenSenRounded2-B.ttc" id="1_imdlh"]
|
||||||
|
[ext_resource type="Script" uid="uid://5r7vda2lcjsk" path="res://scenes/ui-elements/InfoBlock.cs" id="1_joheo"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dge24fqftcpc0" path="res://resources/UI/cash_dollars.png" id="2_1m205"]
|
[ext_resource type="Texture2D" uid="uid://dge24fqftcpc0" path="res://resources/UI/cash_dollars.png" id="2_1m205"]
|
||||||
[ext_resource type="FontFile" uid="uid://cexdvv8qg3x01" path="res://resources/Font/文泉驿点阵正黑.TTF" id="3_hmyfu"]
|
|
||||||
|
|
||||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_aerja"]
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_imdlh"]
|
||||||
content_margin_left = 5.0
|
content_margin_left = 5.0
|
||||||
content_margin_top = 5.0
|
content_margin_top = 5.0
|
||||||
content_margin_right = 5.0
|
content_margin_right = 5.0
|
||||||
@ -15,43 +16,35 @@ corner_radius_bottom_right = 5
|
|||||||
corner_radius_bottom_left = 5
|
corner_radius_bottom_left = 5
|
||||||
anti_aliasing = false
|
anti_aliasing = false
|
||||||
|
|
||||||
[node name="Control" type="Control"]
|
[node name="PanelContainer" type="PanelContainer"]
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
offset_right = -860.0
|
|
||||||
offset_bottom = -490.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
|
|
||||||
[node name="PanelContainer" type="PanelContainer" parent="."]
|
|
||||||
layout_mode = 0
|
|
||||||
offset_right = 100.0
|
offset_right = 100.0
|
||||||
offset_bottom = 50.0
|
offset_bottom = 45.0
|
||||||
theme_override_styles/panel = SubResource("StyleBoxFlat_aerja")
|
size_flags_horizontal = 0
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxFlat_imdlh")
|
||||||
|
script = ExtResource("1_joheo")
|
||||||
|
|
||||||
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
theme_override_constants/separation = 5
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer"]
|
[node name="DisplayLabel" type="Label" parent="VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_fonts/font = ExtResource("3_hmyfu")
|
theme_override_fonts/font = ExtResource("1_imdlh")
|
||||||
theme_override_font_sizes/font_size = 14
|
theme_override_font_sizes/font_size = 12
|
||||||
text = "资金:"
|
text = "资金:"
|
||||||
|
|
||||||
[node name="HBoxContainer" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
[node name="Icon" type="TextureRect" parent="VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
texture = ExtResource("2_1m205")
|
texture = ExtResource("2_1m205")
|
||||||
expand_mode = 3
|
expand_mode = 3
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/HBoxContainer"]
|
[node name="ValueLabel" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_colors/font_color = Color(1, 0.110000014, 0.110000014, 1)
|
theme_override_colors/font_color = Color(0.9882353, 0.84313726, 0.5411765, 1)
|
||||||
theme_override_colors/font_outline_color = Color(1, 0.110000014, 0.110000014, 1)
|
theme_override_fonts/font = ExtResource("1_imdlh")
|
||||||
theme_override_constants/outline_size = 1
|
theme_override_font_sizes/font_size = 16
|
||||||
theme_override_font_sizes/font_size = 14
|
|
||||||
text = "999.9 M"
|
text = "999.9 M"
|
||||||
|
vertical_alignment = 1
|
||||||
|
|||||||
170
scenes/ui-elements/top-bar.tscn
Normal file
170
scenes/ui-elements/top-bar.tscn
Normal file
@ -0,0 +1,170 @@
|
|||||||
|
[gd_scene load_steps=17 format=3 uid="uid://db2qcx61nc0q4"]
|
||||||
|
|
||||||
|
[ext_resource type="Script" uid="uid://dkyo6dykai3fy" path="res://scenes/ui-elements/TopBar.cs" id="1_0ntnr"]
|
||||||
|
[ext_resource type="PackedScene" uid="uid://bewpqkap6epnb" path="res://scenes/ui-elements/info-block.tscn" id="1_jtpmx"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://dge24fqftcpc0" path="res://resources/UI/cash_dollars.png" id="2_krusb"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://brmchgisek2vy" path="res://res_src/fame_icon.png" id="3_udeu6"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://qaitnvq4d877" path="res://resources/UI/chip_ramdrive-1.png" id="4_udeu6"]
|
||||||
|
[ext_resource type="FontFile" uid="uid://dx3xrb5ewup4g" path="res://resources/Font/GenSenRounded2-M.ttc" id="5_m47h2"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bfy4l227neg3u" path="res://res_src/button-normal.png" id="6_g1dje"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bcl5e8ai5ugj7" path="res://res_src/button-press.png" id="7_whltx"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://b73wqk6nf3gtd" path="res://res_src/button-hover.png" id="8_whltx"]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gify7"]
|
||||||
|
bg_color = Color(0.25490198, 0.3882353, 0.54901963, 1)
|
||||||
|
border_width_left = 1
|
||||||
|
border_width_top = 1
|
||||||
|
border_width_right = 1
|
||||||
|
border_width_bottom = 1
|
||||||
|
border_color = Color(0, 0, 0, 1)
|
||||||
|
corner_radius_top_left = 6
|
||||||
|
corner_radius_top_right = 6
|
||||||
|
corner_radius_bottom_right = 6
|
||||||
|
corner_radius_bottom_left = 6
|
||||||
|
expand_margin_left = 1.0
|
||||||
|
expand_margin_top = 1.0
|
||||||
|
expand_margin_right = 1.0
|
||||||
|
expand_margin_bottom = 1.0
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_0ntnr"]
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_whltx"]
|
||||||
|
content_margin_left = 1.0
|
||||||
|
content_margin_top = 1.0
|
||||||
|
content_margin_right = 1.0
|
||||||
|
content_margin_bottom = 1.0
|
||||||
|
bg_color = Color(0.16470589, 0.23137255, 0.3019608, 1)
|
||||||
|
border_width_left = 1
|
||||||
|
border_width_top = 1
|
||||||
|
border_width_right = 1
|
||||||
|
border_width_bottom = 1
|
||||||
|
border_color = Color(0, 0, 0, 1)
|
||||||
|
corner_radius_top_left = 2
|
||||||
|
corner_radius_top_right = 2
|
||||||
|
corner_radius_bottom_right = 2
|
||||||
|
corner_radius_bottom_left = 2
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0ntnr"]
|
||||||
|
bg_color = Color(0.8039216, 0.827451, 0.8392157, 1)
|
||||||
|
border_width_left = 1
|
||||||
|
border_width_top = 1
|
||||||
|
border_width_right = 1
|
||||||
|
border_width_bottom = 1
|
||||||
|
border_color = Color(0.8, 0.8, 0.8, 0)
|
||||||
|
corner_radius_top_left = 2
|
||||||
|
corner_radius_top_right = 2
|
||||||
|
corner_radius_bottom_right = 2
|
||||||
|
corner_radius_bottom_left = 2
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_jyumt"]
|
||||||
|
content_margin_left = 4.0
|
||||||
|
content_margin_top = 4.0
|
||||||
|
content_margin_right = 4.0
|
||||||
|
content_margin_bottom = 8.0
|
||||||
|
texture = ExtResource("6_g1dje")
|
||||||
|
texture_margin_left = 2.0
|
||||||
|
texture_margin_top = 2.0
|
||||||
|
texture_margin_right = 2.0
|
||||||
|
texture_margin_bottom = 5.0
|
||||||
|
axis_stretch_horizontal = 1
|
||||||
|
axis_stretch_vertical = 1
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_rqfvc"]
|
||||||
|
content_margin_left = 4.0
|
||||||
|
content_margin_top = 6.0
|
||||||
|
content_margin_right = 4.0
|
||||||
|
content_margin_bottom = 6.0
|
||||||
|
texture = ExtResource("7_whltx")
|
||||||
|
texture_margin_left = 2.0
|
||||||
|
texture_margin_top = 4.0
|
||||||
|
texture_margin_right = 2.0
|
||||||
|
texture_margin_bottom = 3.0
|
||||||
|
|
||||||
|
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_0ntnr"]
|
||||||
|
content_margin_left = 4.0
|
||||||
|
content_margin_top = 4.0
|
||||||
|
content_margin_right = 4.0
|
||||||
|
content_margin_bottom = 8.0
|
||||||
|
texture = ExtResource("8_whltx")
|
||||||
|
texture_margin_left = 2.0
|
||||||
|
texture_margin_top = 2.0
|
||||||
|
texture_margin_right = 2.0
|
||||||
|
texture_margin_bottom = 5.0
|
||||||
|
|
||||||
|
[node name="TopBar" type="PanelContainer"]
|
||||||
|
offset_right = 960.0
|
||||||
|
offset_bottom = 48.0
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxFlat_gify7")
|
||||||
|
script = ExtResource("1_0ntnr")
|
||||||
|
|
||||||
|
[node name="HBox" type="HBoxContainer" parent="."]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Padding" type="Panel" parent="HBox"]
|
||||||
|
custom_minimum_size = Vector2(5, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_0ntnr")
|
||||||
|
|
||||||
|
[node name="YearProgress" type="VBoxContainer" parent="HBox"]
|
||||||
|
layout_mode = 2
|
||||||
|
alignment = 1
|
||||||
|
|
||||||
|
[node name="Year" type="Label" parent="HBox/YearProgress"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_fonts/font = ExtResource("5_m47h2")
|
||||||
|
theme_override_font_sizes/font_size = 14
|
||||||
|
text = " 第1年"
|
||||||
|
|
||||||
|
[node name="ProgressBar" type="ProgressBar" parent="HBox/YearProgress"]
|
||||||
|
custom_minimum_size = Vector2(100, 12)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/background = SubResource("StyleBoxFlat_whltx")
|
||||||
|
theme_override_styles/fill = SubResource("StyleBoxFlat_0ntnr")
|
||||||
|
value = 50.0
|
||||||
|
show_percentage = false
|
||||||
|
|
||||||
|
[node name="Padding4" type="Panel" parent="HBox"]
|
||||||
|
custom_minimum_size = Vector2(250, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_0ntnr")
|
||||||
|
|
||||||
|
[node name="FundStats" parent="HBox" instance=ExtResource("1_jtpmx")]
|
||||||
|
custom_minimum_size = Vector2(100, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
IconTexture = ExtResource("2_krusb")
|
||||||
|
|
||||||
|
[node name="FameStats" parent="HBox" instance=ExtResource("1_jtpmx")]
|
||||||
|
custom_minimum_size = Vector2(100, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
IconTexture = ExtResource("3_udeu6")
|
||||||
|
DisplayName = "名声"
|
||||||
|
Value = "声名远扬"
|
||||||
|
|
||||||
|
[node name="ComputeStats" parent="HBox" instance=ExtResource("1_jtpmx")]
|
||||||
|
custom_minimum_size = Vector2(100, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
IconTexture = ExtResource("4_udeu6")
|
||||||
|
DisplayName = "算力"
|
||||||
|
|
||||||
|
[node name="Padding2" type="Panel" parent="HBox"]
|
||||||
|
layout_mode = 2
|
||||||
|
size_flags_horizontal = 3
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_0ntnr")
|
||||||
|
|
||||||
|
[node name="CenterContainer" type="CenterContainer" parent="HBox"]
|
||||||
|
layout_mode = 2
|
||||||
|
|
||||||
|
[node name="Button" type="Button" parent="HBox/CenterContainer"]
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_fonts/font = ExtResource("5_m47h2")
|
||||||
|
theme_override_styles/normal = SubResource("StyleBoxTexture_jyumt")
|
||||||
|
theme_override_styles/pressed = SubResource("StyleBoxTexture_rqfvc")
|
||||||
|
theme_override_styles/hover = SubResource("StyleBoxTexture_0ntnr")
|
||||||
|
text = "设置"
|
||||||
|
|
||||||
|
[node name="Padding3" type="Panel" parent="HBox"]
|
||||||
|
custom_minimum_size = Vector2(30, 0)
|
||||||
|
layout_mode = 2
|
||||||
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_0ntnr")
|
||||||
Loading…
Reference in New Issue
Block a user