mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 22:12:23 +02:00
Buttttons
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
[gd_scene load_steps=2 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Menus/SelectUpgradeUI/SelectUpgradeUI.gd" type="Script" id=1]
|
[ext_resource path="res://Menus/SelectUpgradeUI/SelectUpgradeUI.gd" type="Script" id=1]
|
||||||
|
[ext_resource path="res://Menus/SelectUpgradeUI/button.png" type="Texture" id=2]
|
||||||
|
|
||||||
[node name="SelectUpgradeUI" type="Control"]
|
[node name="SelectUpgradeUI" type="Control"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
@@ -12,19 +13,31 @@ __meta__ = {
|
|||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Button" type="Button" parent="."]
|
[node name="Button" type="TextureButton" parent="."]
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_top = 1.0
|
anchor_top = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
margin_left = 349.105
|
margin_left = 346.675
|
||||||
margin_top = 249.473
|
margin_top = 249.693
|
||||||
margin_right = 482.105
|
margin_right = 479.675
|
||||||
margin_bottom = 269.473
|
margin_bottom = 269.693
|
||||||
text = "Continue"
|
texture_normal = ExtResource( 2 )
|
||||||
|
expand = true
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_group_": true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="Button"]
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
margin_left = -28.5
|
||||||
|
margin_top = -7.0
|
||||||
|
margin_right = 28.5
|
||||||
|
margin_bottom = 7.0
|
||||||
|
text = "Continue"
|
||||||
|
|
||||||
[node name="Cards" type="Node" parent="."]
|
[node name="Cards" type="Node" parent="."]
|
||||||
[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]
|
[connection signal="pressed" from="Button" to="." method="_on_Button_pressed"]
|
||||||
|
|||||||
BIN
src/Menus/SelectUpgradeUI/button.png
Normal file
BIN
src/Menus/SelectUpgradeUI/button.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 289 B |
34
src/Menus/SelectUpgradeUI/button.png.import
Normal file
34
src/Menus/SelectUpgradeUI/button.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/button.png-451076353ad81c95d3e36c204a87928b.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Menus/SelectUpgradeUI/button.png"
|
||||||
|
dest_files=[ "res://.import/button.png-451076353ad81c95d3e36c204a87928b.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=false
|
||||||
|
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=false
|
||||||
|
svg/scale=1.0
|
||||||
34
src/Menus/Startup/startup.png.import
Normal file
34
src/Menus/Startup/startup.png.import
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/startup.png-76e14ec0aaa4c2e98ec185835a468bad.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://Menus/Startup/startup.png"
|
||||||
|
dest_files=[ "res://.import/startup.png-76e14ec0aaa4c2e98ec185835a468bad.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=false
|
||||||
|
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=false
|
||||||
|
svg/scale=1.0
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=24 format=2]
|
[gd_scene load_steps=25 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://Player/Player.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://World.gd" type="Script" id=2]
|
[ext_resource path="res://World.gd" type="Script" id=2]
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
[ext_resource path="res://Debug/BossStateDisplay.gd" type="Script" id=11]
|
[ext_resource path="res://Debug/BossStateDisplay.gd" type="Script" id=11]
|
||||||
[ext_resource path="res://Maps/Tilesets/Edge/tileset_edge.png" type="Texture" id=12]
|
[ext_resource path="res://Maps/Tilesets/Edge/tileset_edge.png" type="Texture" id=12]
|
||||||
[ext_resource path="res://Boss/Minion.tscn" type="PackedScene" id=13]
|
[ext_resource path="res://Boss/Minion.tscn" type="PackedScene" id=13]
|
||||||
|
[ext_resource path="res://Menus/SelectUpgradeUI/button.png" type="Texture" id=14]
|
||||||
[ext_resource path="res://Maps/Grid.tscn" type="PackedScene" id=18]
|
[ext_resource path="res://Maps/Grid.tscn" type="PackedScene" id=18]
|
||||||
|
|
||||||
[sub_resource type="ConvexPolygonShape2D" id=1]
|
[sub_resource type="ConvexPolygonShape2D" id=1]
|
||||||
@@ -57,10 +58,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
1/autotile/z_index_map = [ ]
|
1/autotile/z_index_map = [ ]
|
||||||
1/occluder_offset = Vector2( 0, 0 )
|
1/occluder_offset = Vector2( 0, 0 )
|
||||||
1/navigation_offset = Vector2( 0, 0 )
|
1/navigation_offset = Vector2( 0, 0 )
|
||||||
1/shape_offset = Vector2( 0, 0 )
|
|
||||||
1/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
1/shape_one_way = false
|
|
||||||
1/shape_one_way_margin = 0.0
|
|
||||||
1/shapes = [ ]
|
1/shapes = [ ]
|
||||||
1/z_index = 0
|
1/z_index = 0
|
||||||
2/name = "tileset_edge.png 2"
|
2/name = "tileset_edge.png 2"
|
||||||
@@ -71,11 +68,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
2/tile_mode = 0
|
2/tile_mode = 0
|
||||||
2/occluder_offset = Vector2( 0, 0 )
|
2/occluder_offset = Vector2( 0, 0 )
|
||||||
2/navigation_offset = Vector2( 0, 0 )
|
2/navigation_offset = Vector2( 0, 0 )
|
||||||
2/shape_offset = Vector2( 0, 0 )
|
|
||||||
2/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
2/shape = SubResource( 1 )
|
|
||||||
2/shape_one_way = false
|
|
||||||
2/shape_one_way_margin = 1.0
|
|
||||||
2/shapes = [ {
|
2/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -92,11 +84,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
3/tile_mode = 0
|
3/tile_mode = 0
|
||||||
3/occluder_offset = Vector2( 0, 0 )
|
3/occluder_offset = Vector2( 0, 0 )
|
||||||
3/navigation_offset = Vector2( 0, 0 )
|
3/navigation_offset = Vector2( 0, 0 )
|
||||||
3/shape_offset = Vector2( 0, 0 )
|
|
||||||
3/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
3/shape = SubResource( 2 )
|
|
||||||
3/shape_one_way = false
|
|
||||||
3/shape_one_way_margin = 1.0
|
|
||||||
3/shapes = [ {
|
3/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -113,11 +100,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
4/tile_mode = 0
|
4/tile_mode = 0
|
||||||
4/occluder_offset = Vector2( 0, 0 )
|
4/occluder_offset = Vector2( 0, 0 )
|
||||||
4/navigation_offset = Vector2( 0, 0 )
|
4/navigation_offset = Vector2( 0, 0 )
|
||||||
4/shape_offset = Vector2( 0, 0 )
|
|
||||||
4/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
4/shape = SubResource( 3 )
|
|
||||||
4/shape_one_way = false
|
|
||||||
4/shape_one_way_margin = 1.0
|
|
||||||
4/shapes = [ {
|
4/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -134,11 +116,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
5/tile_mode = 0
|
5/tile_mode = 0
|
||||||
5/occluder_offset = Vector2( 0, 0 )
|
5/occluder_offset = Vector2( 0, 0 )
|
||||||
5/navigation_offset = Vector2( 0, 0 )
|
5/navigation_offset = Vector2( 0, 0 )
|
||||||
5/shape_offset = Vector2( 0, 0 )
|
|
||||||
5/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
5/shape = SubResource( 4 )
|
|
||||||
5/shape_one_way = false
|
|
||||||
5/shape_one_way_margin = 1.0
|
|
||||||
5/shapes = [ {
|
5/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -155,11 +132,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
6/tile_mode = 0
|
6/tile_mode = 0
|
||||||
6/occluder_offset = Vector2( 0, 0 )
|
6/occluder_offset = Vector2( 0, 0 )
|
||||||
6/navigation_offset = Vector2( 0, 0 )
|
6/navigation_offset = Vector2( 0, 0 )
|
||||||
6/shape_offset = Vector2( 0, 0 )
|
|
||||||
6/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
6/shape = SubResource( 5 )
|
|
||||||
6/shape_one_way = false
|
|
||||||
6/shape_one_way_margin = 1.0
|
|
||||||
6/shapes = [ {
|
6/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -176,11 +148,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
7/tile_mode = 0
|
7/tile_mode = 0
|
||||||
7/occluder_offset = Vector2( 0, 0 )
|
7/occluder_offset = Vector2( 0, 0 )
|
||||||
7/navigation_offset = Vector2( 0, 0 )
|
7/navigation_offset = Vector2( 0, 0 )
|
||||||
7/shape_offset = Vector2( 0, 0 )
|
|
||||||
7/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
7/shape = SubResource( 6 )
|
|
||||||
7/shape_one_way = false
|
|
||||||
7/shape_one_way_margin = 1.0
|
|
||||||
7/shapes = [ {
|
7/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -197,11 +164,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
8/tile_mode = 0
|
8/tile_mode = 0
|
||||||
8/occluder_offset = Vector2( 0, 0 )
|
8/occluder_offset = Vector2( 0, 0 )
|
||||||
8/navigation_offset = Vector2( 0, 0 )
|
8/navigation_offset = Vector2( 0, 0 )
|
||||||
8/shape_offset = Vector2( 0, 0 )
|
|
||||||
8/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
8/shape = SubResource( 7 )
|
|
||||||
8/shape_one_way = false
|
|
||||||
8/shape_one_way_margin = 1.0
|
|
||||||
8/shapes = [ {
|
8/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -218,11 +180,6 @@ points = PoolVector2Array( 0, 0, 32, 0, 32, 32, 0, 32 )
|
|||||||
9/tile_mode = 0
|
9/tile_mode = 0
|
||||||
9/occluder_offset = Vector2( 0, 0 )
|
9/occluder_offset = Vector2( 0, 0 )
|
||||||
9/navigation_offset = Vector2( 0, 0 )
|
9/navigation_offset = Vector2( 0, 0 )
|
||||||
9/shape_offset = Vector2( 0, 0 )
|
|
||||||
9/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
|
|
||||||
9/shape = SubResource( 8 )
|
|
||||||
9/shape_one_way = false
|
|
||||||
9/shape_one_way_margin = 1.0
|
|
||||||
9/shapes = [ {
|
9/shapes = [ {
|
||||||
"autotile_coord": Vector2( 0, 0 ),
|
"autotile_coord": Vector2( 0, 0 ),
|
||||||
"one_way": false,
|
"one_way": false,
|
||||||
@@ -338,13 +295,27 @@ margin_bottom = 0.463318
|
|||||||
[node name="SelectUpgradeUI" parent="CanvasLayer" instance=ExtResource( 4 )]
|
[node name="SelectUpgradeUI" parent="CanvasLayer" instance=ExtResource( 4 )]
|
||||||
visible = false
|
visible = false
|
||||||
|
|
||||||
[node name="Win" type="Button" parent="CanvasLayer"]
|
[node name="Win" type="TextureButton" parent="CanvasLayer"]
|
||||||
visible = false
|
visible = false
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
margin_left = -42.0
|
margin_left = -96.0
|
||||||
margin_bottom = 24.0
|
margin_bottom = 25.0
|
||||||
text = "Win"
|
texture_normal = ExtResource( 14 )
|
||||||
|
__meta__ = {
|
||||||
|
"_edit_group_": true
|
||||||
|
}
|
||||||
|
|
||||||
|
[node name="Label" type="Label" parent="CanvasLayer/Win"]
|
||||||
|
anchor_left = 0.5
|
||||||
|
anchor_top = 0.5
|
||||||
|
anchor_right = 0.5
|
||||||
|
anchor_bottom = 0.5
|
||||||
|
margin_left = -28.5
|
||||||
|
margin_top = -7.0
|
||||||
|
margin_right = 28.5
|
||||||
|
margin_bottom = 7.0
|
||||||
|
text = "Win Now"
|
||||||
[connection signal="phase_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_phase_changed"]
|
[connection signal="phase_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_phase_changed"]
|
||||||
[connection signal="state_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_state_changed"]
|
[connection signal="state_changed" from="YSort/SlimeBoss" to="CanvasLayer/DebugLabel/BossStateDisplay" method="_on_SlimeBoss_state_changed"]
|
||||||
[connection signal="pressed" from="CanvasLayer/Win" to="." method="_on_Win_pressed"]
|
[connection signal="pressed" from="CanvasLayer/Win" to="." method="_on_Win_pressed"]
|
||||||
|
|||||||
Reference in New Issue
Block a user