Skip to content

Commit

Permalink
Cleaned up ArkanYota's UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolwoocle committed Sep 11, 2024
1 parent dd90530 commit 2831a1f
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 64 deletions.
7 changes: 4 additions & 3 deletions src/assets/resources/label_warning.tres
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[gd_resource type="LabelSettings" load_steps=2 format=3 uid="uid://b5nxegdlm352f"]

[ext_resource type="FontFile" uid="uid://djmgql28si3cf" path="res://assets/fonts/font_normal.ttf" id="1_kvt47"]
[ext_resource type="FontFile" uid="uid://cjyup1ooil314" path="res://assets/fonts/font_normal.ttf" id="1_kvt47"]

[resource]
font = ExtResource("1_kvt47")
font_size = 10
font_color = Color(1, 0, 0, 1)
font_size = 4
outline_size = 2
outline_color = Color(0, 0, 0, 1)
35 changes: 10 additions & 25 deletions src/scenes/main.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=3 uid="uid://clib81weo65vk"]
[gd_scene load_steps=12 format=3 uid="uid://clib81weo65vk"]

[ext_resource type="Script" path="res://scripts/main.gd" id="1_ngeyx"]
[ext_resource type="PackedScene" uid="uid://bpqekaydn06nf" path="res://scenes/ui/scene_transition.tscn" id="4_mholn"]
Expand All @@ -12,7 +12,7 @@

[sub_resource type="LabelSettings" id="LabelSettings_u3bde"]
font = ExtResource("5_v4ddl")
font_size = 4
font_size = 5
font_color = Color(0.878098, 0.878098, 0.878098, 1)
outline_size = 2
outline_color = Color(0, 0, 0, 1)
Expand All @@ -23,19 +23,6 @@ font_size = 8
outline_size = 2
outline_color = Color(0, 0, 0, 1)

[sub_resource type="Gradient" id="Gradient_bgniq"]
colors = PackedColorArray(0.966052, 0.966052, 5.39064e-06, 1, 0.869317, 0.869318, 3.85046e-07, 1)

[sub_resource type="GradientTexture2D" id="GradientTexture2D_fjena"]
gradient = SubResource("Gradient_bgniq")

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_bdjxa"]
texture = SubResource("GradientTexture2D_fjena")
texture_margin_left = 8.0
texture_margin_top = 8.0
texture_margin_right = 8.0
texture_margin_bottom = 8.0

[node name="Main" type="Node2D"]
script = ExtResource("1_ngeyx")

Expand Down Expand Up @@ -143,22 +130,20 @@ grow_vertical = 2
texture = ExtResource("8_53ti5")

[node name="AppleWarn" type="Control" parent="CanvasLayer"]
visible = false
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0

[node name="WarningApple" type="Label" parent="CanvasLayer/AppleWarn"]
layout_mode = 0
offset_left = 22.0
offset_top = 39.0
offset_right = 225.0
offset_bottom = 97.0
theme_override_styles/normal = SubResource("StyleBoxTexture_bdjxa")
text = "Warning IOS and MacOS web
version is not always
supported"
offset_left = 17.0
offset_top = 3.0
offset_right = 220.0
offset_bottom = 26.0
text = "Warning : iOS and macOS web version is not always supported"
label_settings = ExtResource("9_nsas2")
horizontal_alignment = 1
uppercase = true
script = ExtResource("7_h54yi")
color_1 = Color(1, 0.8275, 0.31, 1)
color_2 = Color(1, 0.433333, 0, 1)
104 changes: 70 additions & 34 deletions src/scenes/ui/redirect_page_to_our_games.tscn
Original file line number Diff line number Diff line change
@@ -1,40 +1,76 @@
[gd_scene load_steps=2 format=3 uid="uid://do8khq28rqe3n"]
[gd_scene load_steps=5 format=3 uid="uid://do8khq28rqe3n"]

[ext_resource type="LabelSettings" uid="uid://cl1yg37xye2ku" path="res://assets/resources/label_settings.tres" id="1_voncg"]
[ext_resource type="PackedScene" uid="uid://wmysu03x830w" path="res://scenes/levels/visuals/city_visuals.tscn" id="1_uhilt"]
[ext_resource type="Texture2D" uid="uid://b3l0i7o6emx6i" path="res://assets/images/logo.png" id="2_5nfmw"]
[ext_resource type="FontFile" uid="uid://cjyup1ooil314" path="res://assets/fonts/font_normal.ttf" id="3_mfx0u"]

[sub_resource type="LabelSettings" id="LabelSettings_7ciee"]
font = ExtResource("3_mfx0u")
font_size = 8
outline_size = 2
outline_color = Color(0, 0, 0, 1)

[node name="RedirectPageToOurGames" type="Node2D"]

[node name="Control" type="Control" parent="."]
[node name="CityVisuals" parent="." instance=ExtResource("1_uhilt")]

[node name="CanvasLayer" type="CanvasLayer" parent="."]

[node name="Control" type="Control" parent="CanvasLayer"]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0

[node name="Label" type="Label" parent="Control"]
layout_mode = 0
offset_left = 19.0
offset_top = 23.0
offset_right = 220.0
offset_bottom = 80.0
text = "Hey man, you are on an unknown URL.
And end the demo for an unknown URL.
If you think this is a mistake,
please report it to us.
Otherwise: Please go to our URL:"
label_settings = ExtResource("1_voncg")

[node name="Yolwoocle" type="LinkButton" parent="Control"]
offset_left = 77.0
offset_top = 80.0
offset_right = 155.0
offset_bottom = 103.0
text = "Yolwoocle"
uri = "https://yolwoocle.itch.io/globs"
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="Arkanyota" type="LinkButton" parent="Control"]
offset_left = 77.0
offset_top = 99.0
offset_right = 158.0
offset_bottom = 122.0
text = "ArkanYota"
uri = "https://arkanyota.github.io/gmtk2024"
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Control"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -63.0
offset_top = 11.0
offset_right = 63.0
offset_bottom = 53.0
grow_horizontal = 2
texture = ExtResource("2_5nfmw")

[node name="Label" type="Label" parent="CanvasLayer/Control"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -121.0
offset_top = -4.5
offset_right = 123.0
offset_bottom = 31.5
grow_horizontal = 2
grow_vertical = 2
text = "This is the end of the demo
on this website.
You can continue playing by clicking here:"
label_settings = SubResource("LabelSettings_7ciee")
horizontal_alignment = 1

[node name="Yolwoocle" type="LinkButton" parent="CanvasLayer/Control"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -35.0
offset_top = 38.5
offset_right = 33.0
offset_bottom = 58.5
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/outline_size = 3
theme_override_constants/underline_spacing = 5
theme_override_fonts/font = ExtResource("3_mfx0u")
theme_override_font_sizes/font_size = 0
text = "itch.io"
uri = "https://yolwoocle.itch.io/globs"
7 changes: 5 additions & 2 deletions src/scripts/ui/click_anywhere_text.gd
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
extends Label

@export var color_1: Color = Color.WHITE
@export var color_2: Color = Color(0.7, 0.7, 0.7)

var time = 0.0

# Called when the node enters the scene tree for the first time.
Expand All @@ -11,6 +14,6 @@ func _ready():
func _process(delta):
time += delta
if fmod(time, 1.0) < 0.5:
label_settings.font_color = Color.WHITE
label_settings.font_color = color_1
else:
label_settings.font_color = Color(0.7, 0.7, 0.7)
label_settings.font_color = color_2

0 comments on commit 2831a1f

Please sign in to comment.