Small UI tweaks

This commit is contained in:
Rico 2020-06-26 13:08:08 -05:00
parent 068753a961
commit b674ef3ff4
3 changed files with 34 additions and 17 deletions

View file

@ -31,7 +31,7 @@ window/size/height=360
window/size/test_width=1280
window/size/test_height=720
window/stretch/mode="2d"
window/stretch/aspect="expand"
window/stretch/aspect="keep"
[input]

View file

@ -7,9 +7,9 @@ var port = 2670
# Called when the node enters the scene tree for the first time.
func _ready():
var myip = IP.get_local_addresses()
var interfaces = IP.get_local_interfaces ()
$HostPanel/label_myip.text = "IP "+myip[0]+". "+interfaces[0]
#var myip = IP.get_local_addresses()
#var interfaces = IP.get_local_interfaces ()
#$HostPanel/label_myip.text = "IP "+myip[0]+". "+interfaces[0]
pass # Replace with function body.

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=2]
[gd_scene load_steps=13 format=2]
[ext_resource path="res://misc/fonts/font_buttons.tres" type="DynamicFont" id=1]
[ext_resource path="res://misc/fonts/field_labels.tres" type="DynamicFont" id=2]
@ -9,6 +9,12 @@
[ext_resource path="res://misc/panel_mainmenu.tres" type="StyleBox" id=7]
[ext_resource path="res://Backgrounds/bk_clouds.png" type="Texture" id=8]
[ext_resource path="res://Sprites/polo_sprites/poloright_0.png" type="Texture" id=9]
[ext_resource path="res://misc/fonts/upheavtt.tres" type="DynamicFontData" id=10]
[sub_resource type="DynamicFont" id=2]
outline_size = 1
outline_color = Color( 1, 0.0117647, 0.0117647, 1 )
font_data = ExtResource( 10 )
[sub_resource type="Theme" id=1]
default_font = ExtResource( 3 )
@ -35,26 +41,22 @@ __meta__ = {
[node name="stars" type="Sprite" parent="."]
show_behind_parent = true
position = Vector2( 344, 376 )
position = Vector2( 344, 368 )
scale = Vector2( 1.5, 1.5 )
texture = ExtResource( 8 )
region_enabled = true
region_rect = Rect2( 0, 0, 500, 500 )
__meta__ = {
"_edit_lock_": true,
"_editor_description_": "50"
}
[node name="mountains" type="Sprite" parent="."]
show_behind_parent = true
position = Vector2( 304, 480 )
position = Vector2( 344, 520 )
scale = Vector2( 1.5, 1.5 )
texture = ExtResource( 6 )
region_enabled = true
region_rect = Rect2( 0, 0, 500, 500 )
__meta__ = {
"_edit_lock_": true
}
[node name="music" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 5 )
@ -100,6 +102,21 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="Label2" type="Label" parent="GeneralPanel"]
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = -43.0
margin_bottom = -10.0
custom_fonts/font = SubResource( 2 )
text = "There isnt much gameplay to this.
Its primary objective is learning netplay via godot"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="label_port" type="Label" parent="GeneralPanel"]
margin_left = 8.0
margin_top = 24.0
@ -119,7 +136,7 @@ margin_top = 24.0
margin_right = 303.0
margin_bottom = 48.0
custom_fonts/font = ExtResource( 3 )
text = "Rico"
text = "Player1"
max_length = 32
__meta__ = {
"_edit_use_anchors_": false
@ -130,14 +147,14 @@ anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
margin_left = 176.0
margin_top = -35.0
margin_right = 280.0
margin_bottom = -14.0
margin_left = 184.0
margin_top = -83.0
margin_right = 288.0
margin_bottom = -62.0
hint_tooltip = "Start a singleplayer game"
mouse_default_cursor_shape = 2
custom_fonts/font = ExtResource( 1 )
text = "Single player"
text = "Force Start"
__meta__ = {
"_edit_use_anchors_": false
}