feat: more admin controls, new icons, MSAA...
- fixed scaling viewport
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://m542qwlp7hl7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dg5jt0o0r0v3r" path="res://scripts/BoardScreen.cs" id="1_b3w8x"]
|
||||
[ext_resource type="PackedScene" uid="uid://rl33x81cxlh0" path="res://scenes/bracket_view.tscn" id="2_u1oi2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlx02qat7j6lf" path="res://assets/sprites/AssetTileset.png" id="3_1tlhv"]
|
||||
[ext_resource type="FontFile" uid="uid://c3jmev24lo6ci" path="res://assets/fonts/PixelOperator8.ttf" id="3_rjcmr"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckmfi0cjgxgyk" path="res://assets/sprites/RedChip.png" id="4_1hrcj"]
|
||||
[ext_resource type="Texture2D" uid="uid://qy30emdgrk7o" path="res://assets/sprites/YellowChip.png" id="5_i2o8i"]
|
||||
[ext_resource type="Texture2D" uid="uid://8un28mol7qow" path="res://assets/sprites/BoardTileMap.png" id="6_i2o8i"]
|
||||
[ext_resource type="PackedScene" uid="uid://pdean68jjg80" path="res://scenes/button_small.tscn" id="7_glh1q"]
|
||||
[ext_resource type="Script" uid="uid://b3q4gq63qmx23" path="res://scripts/BackButton.cs" id="8_u1oi2"]
|
||||
|
||||
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_b3w8x"]
|
||||
|
||||
@@ -31,10 +31,8 @@ sources/0 = SubResource("TileSetAtlasSource_i2o8i")
|
||||
atlas = ExtResource("3_1tlhv")
|
||||
region = Rect2(112, 32, 16, 16)
|
||||
|
||||
[node name="BoardScreen" type="Node2D" node_paths=PackedStringArray("BackButton")]
|
||||
[node name="BoardScreen" type="Node2D"]
|
||||
script = ExtResource("1_b3w8x")
|
||||
BracketScene = ExtResource("2_u1oi2")
|
||||
BackButton = NodePath("BracketButton")
|
||||
|
||||
[node name="Floor Collider" type="StaticBody2D" parent="."]
|
||||
position = Vector2(0, 200)
|
||||
@@ -77,6 +75,7 @@ position = Vector2(274, 0)
|
||||
shape = SubResource("SegmentShape2D_i2o8i")
|
||||
|
||||
[node name="Player1Card" type="Node2D" parent="."]
|
||||
position = Vector2(0, 8)
|
||||
|
||||
[node name="Left" type="Sprite2D" parent="Player1Card"]
|
||||
position = Vector2(-556, -300)
|
||||
@@ -123,6 +122,7 @@ theme_override_font_sizes/font_size = 8
|
||||
text = "NOT READY"
|
||||
|
||||
[node name="Player2Card" type="Node2D" parent="."]
|
||||
position = Vector2(989, -64)
|
||||
|
||||
[node name="Left" type="Sprite2D" parent="Player2Card"]
|
||||
position = Vector2(-556, -228)
|
||||
@@ -181,6 +181,7 @@ offset_left = -566.0
|
||||
offset_top = 281.0
|
||||
offset_right = -550.0
|
||||
offset_bottom = 297.0
|
||||
script = ExtResource("8_u1oi2")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="BracketButton"]
|
||||
position = Vector2(8, 8)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://rl33x81cxlh0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dm25u0a2lqk2x" path="res://scripts/BracketScene.cs" id="1_dvj3m"]
|
||||
[ext_resource type="Texture2D" uid="uid://ckmfi0cjgxgyk" path="res://assets/sprites/RedChip.png" id="2_7c11m"]
|
||||
[ext_resource type="PackedScene" uid="uid://b4tujjdhmk4h" path="res://scenes/red_chip.tscn" id="3_1511b"]
|
||||
[ext_resource type="Texture2D" uid="uid://dd7lvnidxr5ss" path="res://icon.png" id="2_mbqc8"]
|
||||
[ext_resource type="Texture2D" uid="uid://stk7umv2ppss" path="res://assets/sprites/cancel.png" id="3_as653"]
|
||||
[ext_resource type="Script" uid="uid://1y72woiynf31" path="res://scripts/AdminControls.cs" id="4_mbqc8"]
|
||||
|
||||
[node name="BracketView" type="Control" node_paths=PackedStringArray("Players", "Matches")]
|
||||
@@ -15,8 +15,8 @@ grow_vertical = 2
|
||||
script = ExtResource("1_dvj3m")
|
||||
Players = NodePath("HBoxContainer/PlayerList")
|
||||
Matches = NodePath("HBoxContainer/MatchList")
|
||||
JoinButton = ExtResource("2_7c11m")
|
||||
BoardScene = ExtResource("3_1511b")
|
||||
WatchButton = ExtResource("2_mbqc8")
|
||||
TerminateKickButton = ExtResource("3_as653")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
custom_minimum_size = Vector2(0, 36)
|
||||
@@ -26,7 +26,7 @@ anchor_right = 1.0
|
||||
grow_horizontal = 2
|
||||
color = Color(0.13319641, 0.13319641, 0.13319638, 1)
|
||||
|
||||
[node name="AdminControls" type="HBoxContainer" parent="ColorRect" node_paths=PackedStringArray("BecomeAdmin", "StartTournament")]
|
||||
[node name="AdminControls" type="HBoxContainer" parent="ColorRect" node_paths=PackedStringArray("BecomeAdmin", "StartTournament", "Label", "Timeout")]
|
||||
custom_minimum_size = Vector2(0, 36)
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
@@ -36,6 +36,8 @@ grow_horizontal = 2
|
||||
script = ExtResource("4_mbqc8")
|
||||
BecomeAdmin = NodePath("BecomeAdmin")
|
||||
StartTournament = NodePath("StartTournament")
|
||||
Label = NodePath("Label")
|
||||
Timeout = NodePath("HSlider")
|
||||
|
||||
[node name="BecomeAdmin" type="Button" parent="ColorRect/AdminControls"]
|
||||
layout_mode = 2
|
||||
@@ -45,6 +47,21 @@ text = "Become Admin"
|
||||
layout_mode = 2
|
||||
text = "Start Tournament"
|
||||
|
||||
[node name="Label" type="Label" parent="ColorRect/AdminControls"]
|
||||
layout_mode = 2
|
||||
text = "Wait To Move: 5.0s "
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="ColorRect/AdminControls"]
|
||||
custom_minimum_size = Vector2(256, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 1
|
||||
min_value = 0.1
|
||||
max_value = 5.0
|
||||
step = 0.2
|
||||
value = 5.0
|
||||
tick_count = 25
|
||||
ticks_on_borders = true
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
|
||||
Reference in New Issue
Block a user