UI: login scene

This commit is contained in:
2020-04-05 17:09:01 +08:00
parent 71f038a36f
commit f62c723c41
3 changed files with 100 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

+34
View File
@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/LoginBackgounnd.png-2f86309a996274b15974fbe96f5b1f04.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Asset/LoginBackgounnd.png"
dest_files=[ "res://.import/LoginBackgounnd.png-2f86309a996274b15974fbe96f5b1f04.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
+66
View File
@@ -0,0 +1,66 @@
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Asset/LoginBackgounnd.png" type="Texture" id=1]
[ext_resource path="res://Asset/Font/SourceHanSansSC-Normal.otf" type="DynamicFontData" id=2]
[sub_resource type="DynamicFont" id=1]
size = 32
font_data = ExtResource( 2 )
[node name="Node2D" type="Node2D"]
[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 1920.0
margin_bottom = 1080.0
texture = ExtResource( 1 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="GridContainer" type="GridContainer" parent="."]
margin_right = 40.0
margin_bottom = 40.0
columns = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Label" type="Label" parent="GridContainer"]
margin_right = 64.0
margin_bottom = 48.0
custom_fonts/font = SubResource( 1 )
text = "账号"
[node name="LineEdit" type="LineEdit" parent="GridContainer"]
margin_left = 72.0
margin_right = 236.0
margin_bottom = 48.0
[node name="Label3" type="Label" parent="GridContainer"]
margin_top = 56.0
margin_right = 64.0
margin_bottom = 104.0
custom_fonts/font = SubResource( 1 )
text = "密码"
[node name="LineEdit2" type="LineEdit" parent="GridContainer"]
margin_left = 72.0
margin_top = 56.0
margin_right = 236.0
margin_bottom = 104.0
[node name="HBoxContainer" type="HBoxContainer" parent="."]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LoginButton" type="TextureButton" parent="HBoxContainer"]
margin_bottom = 40.0
[node name="SignupButton" type="TextureButton" parent="HBoxContainer"]
margin_left = 8.0
margin_right = 8.0
margin_bottom = 40.0