Merge branch 'ui'
@ -84,6 +84,11 @@ input_shoot={
|
||||
"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":-1,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null)
|
||||
]
|
||||
}
|
||||
esc={
|
||||
"deadzone": 0.5,
|
||||
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"unicode":0,"echo":false,"script":null)
|
||||
]
|
||||
}
|
||||
|
||||
[physics]
|
||||
|
||||
|
||||
@ -4,11 +4,13 @@ var player_master = null
|
||||
var ui = null
|
||||
var alive_players = []
|
||||
|
||||
|
||||
func instance_node_at_location(node: Object, parent: Object, location: Vector2) -> Object:
|
||||
var node_instance = instance_node(node, parent)
|
||||
node_instance.global_position = location
|
||||
return node_instance
|
||||
|
||||
|
||||
func instance_node(node: Object, parent: Object) -> Object:
|
||||
var node_instance = node.instance()
|
||||
parent.add_child(node_instance)
|
||||
|
||||
@ -2,17 +2,26 @@ extends Control
|
||||
|
||||
var player = load("res://source/entities/player/player_node.tscn")
|
||||
|
||||
var min_players = 1
|
||||
var current_spawn_location_instance_number = 1
|
||||
var current_player_for_spawn_location_number = null
|
||||
var mode
|
||||
|
||||
onready var multiplayer_config_ui = $multiplayer_configure
|
||||
onready var username_text_edit = $multiplayer_configure/username_text_edit
|
||||
onready var username_text_edit = $multiplayer_configure/username/username_text_edit
|
||||
onready var username = $multiplayer_configure/username
|
||||
|
||||
onready var device_ip_address = $UI/device_ip_address
|
||||
onready var start_game = $UI/start_game
|
||||
onready var background_lobby = $background_lobby
|
||||
onready var text = $UI/text
|
||||
|
||||
|
||||
func _ready():
|
||||
func _ready() -> void:
|
||||
username.hide()
|
||||
background_lobby.hide()
|
||||
device_ip_address.hide()
|
||||
text.hide()
|
||||
|
||||
get_tree().connect("network_peer_connected", self, "_player_connected")
|
||||
get_tree().connect("network_peer_disconnected", self, "_player_disconnected")
|
||||
get_tree().connect("connected_to_server", self, "_connected_to_server")
|
||||
@ -21,7 +30,9 @@ func _ready():
|
||||
|
||||
if get_tree().network_peer != null:
|
||||
multiplayer_config_ui.hide()
|
||||
|
||||
background_lobby.show()
|
||||
device_ip_address.show()
|
||||
text.show()
|
||||
current_spawn_location_instance_number = 1
|
||||
for player in PersistentNodes.get_children():
|
||||
if player.is_in_group("Player"):
|
||||
@ -35,9 +46,9 @@ func _ready():
|
||||
start_game.hide()
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
func _process(_delta: float) -> void:
|
||||
if get_tree().network_peer != null:
|
||||
if get_tree().get_network_connected_peers().size() >= (min_players - 1) and get_tree().is_network_server():
|
||||
if get_tree().get_network_connected_peers().size() >= 0 and get_tree().is_network_server():
|
||||
start_game.show()
|
||||
else:
|
||||
start_game.hide()
|
||||
@ -50,28 +61,28 @@ func _player_connected(id) -> void:
|
||||
|
||||
func _player_disconnected(id) -> void:
|
||||
print("Player " + str(id) + " has disconnected")
|
||||
|
||||
if PersistentNodes.has_node(str(id)):
|
||||
PersistentNodes.get_node(str(id)).username_text_instance.queue_free()
|
||||
PersistentNodes.get_node(str(id)).queue_free()
|
||||
|
||||
|
||||
func _on_create_server_pressed():
|
||||
if username_text_edit.text != "":
|
||||
Network.current_player_username = username_text_edit.text
|
||||
multiplayer_config_ui.hide()
|
||||
Network.create_server()
|
||||
instance_player(get_tree().get_network_unique_id())
|
||||
username.show()
|
||||
username_text_edit.call_deferred("grab_focus")
|
||||
mode = "create"
|
||||
|
||||
|
||||
func _on_join_server_pressed():
|
||||
if username_text_edit.text != "":
|
||||
multiplayer_config_ui.hide()
|
||||
username_text_edit.hide()
|
||||
Global.instance_node(load("res://source/scenes/GUI/server_handlers/server_browser.tscn"), self)
|
||||
username.show()
|
||||
username_text_edit.call_deferred("grab_focus")
|
||||
mode = "join"
|
||||
|
||||
|
||||
func _connected_to_server() -> void:
|
||||
yield(get_tree().create_timer(0.1), "timeout")
|
||||
device_ip_address.show()
|
||||
background_lobby.show()
|
||||
text.show()
|
||||
instance_player(get_tree().get_network_unique_id())
|
||||
|
||||
|
||||
@ -92,4 +103,26 @@ sync func switch_to_game() -> void:
|
||||
if child.is_in_group("Player"):
|
||||
child.update_shoot_mode(true)
|
||||
|
||||
get_tree().change_scene("res://source/levels/trinity_site/trinity_site_level.tscn")
|
||||
get_tree().change_scene("res://source/levels/trinity_site/trinity_site_level.tscn")
|
||||
|
||||
|
||||
func _on_confirm_pressed():
|
||||
if mode == "create":
|
||||
if username_text_edit.text != "":
|
||||
Network.current_player_username = username_text_edit.text
|
||||
multiplayer_config_ui.hide()
|
||||
device_ip_address.show()
|
||||
background_lobby.show()
|
||||
text.show()
|
||||
Network.create_server()
|
||||
instance_player(get_tree().get_network_unique_id())
|
||||
elif mode == "join":
|
||||
if username_text_edit.text != "":
|
||||
multiplayer_config_ui.hide()
|
||||
#username_text_edit.hide()
|
||||
Global.instance_node(load("res://source/scenes/GUI/server_handlers/server_browser.tscn"), self)
|
||||
|
||||
|
||||
func _on_return_pressed():
|
||||
get_tree().change_scene("res://source/scenes/GUI/main_menu.tscn")
|
||||
|
||||
|
||||
@ -2,13 +2,19 @@ extends Control
|
||||
|
||||
onready var server_listener = $server_listener
|
||||
onready var server_ip_text_edit = $background_panel/server_ip_text_edit
|
||||
onready var server_container = $background_panel/VBoxContainer
|
||||
onready var manual_setup_button = $background_panel/manual_setup
|
||||
onready var server_container = $controls/background_panel/VBoxContainer
|
||||
onready var manual_setup_button = $controls/manual_setup/Label
|
||||
onready var background_panel = $background_panel
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
server_ip_text_edit.hide()
|
||||
|
||||
background_panel.hide()
|
||||
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_just_pressed("esc") and background_panel.is_visible_in_tree():
|
||||
background_panel.hide()
|
||||
|
||||
|
||||
func _on_server_listener_new_server(serverInfo):
|
||||
var server_node = Global.instance_node(load("res://source/scenes/GUI/server_handlers/server_display.tscn"), server_container)
|
||||
@ -25,16 +31,8 @@ func _on_server_listener_remove_server(serverIp):
|
||||
|
||||
|
||||
func _on_manual_setup_pressed():
|
||||
if manual_setup_button.text != "Exit setup":
|
||||
server_ip_text_edit.show()
|
||||
manual_setup_button.text = "Exit setup"
|
||||
server_container.hide()
|
||||
server_ip_text_edit.call_deferred("grab_focus")
|
||||
else:
|
||||
server_ip_text_edit.text = ""
|
||||
server_ip_text_edit.hide()
|
||||
manual_setup_button.text = "Manual setup"
|
||||
server_container.show()
|
||||
background_panel.show()
|
||||
server_ip_text_edit.call_deferred("grab_focus")
|
||||
|
||||
|
||||
func _on_join_server_pressed():
|
||||
@ -44,5 +42,5 @@ func _on_join_server_pressed():
|
||||
Network.join_server()
|
||||
|
||||
|
||||
func _on_go_back_pressed():
|
||||
func _on_return_pressed():
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
@ -6,4 +6,4 @@ var ip_address = ""
|
||||
func _on_join_button_pressed():
|
||||
Network.ip_address = ip_address
|
||||
Network.join_server()
|
||||
get_parent().get_parent().queue_free()
|
||||
get_parent().get_parent().get_parent().get_parent().queue_free()
|
||||
|
||||
13
Game/source/assets/scripts/ui_element_handlers/main_menu.gd
Normal file
@ -0,0 +1,13 @@
|
||||
extends Control
|
||||
|
||||
|
||||
func _on_play_pressed():
|
||||
get_tree().change_scene("res://source/levels/trinity_site/trinity_site_level.tscn")
|
||||
|
||||
|
||||
func _on_LAN_party_pressed():
|
||||
get_tree().change_scene("res://source/scenes/GUI/network_setup.tscn")
|
||||
|
||||
|
||||
func _on_exit_pressed():
|
||||
get_tree().quit()
|
||||
@ -1,7 +1,7 @@
|
||||
extends Label
|
||||
|
||||
sync func return_to_lobby():
|
||||
get_tree().change_scene("res://source/scenes/GUI/main_menu.tscn")
|
||||
get_tree().change_scene("res://source/scenes/GUI/network_setup.tscn")
|
||||
|
||||
|
||||
func _on_win_timer_timeout():
|
||||
|
||||
300
Game/source/assets/sprites/GUI/background_lobby.svg
Normal file
|
After Width: | Height: | Size: 128 KiB |
34
Game/source/assets/sprites/GUI/background_lobby.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/background_lobby.svg-06ea140a84b3f56c75ad6759c82baa30.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/background_lobby.svg"
|
||||
dest_files=[ "res://.import/background_lobby.svg-06ea140a84b3f56c75ad6759c82baa30.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
|
||||
1729
Game/source/assets/sprites/GUI/background_main_menu.svg
Normal file
|
After Width: | Height: | Size: 102 KiB |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/background_main_menu.svg-5f46fc4238a42907deac7eba838ce736.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/background_main_menu.svg"
|
||||
dest_files=[ "res://.import/background_main_menu.svg-5f46fc4238a42907deac7eba838ce736.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
|
||||
1246
Game/source/assets/sprites/GUI/background_server.svg
Normal file
|
After Width: | Height: | Size: 28 KiB |
34
Game/source/assets/sprites/GUI/background_server.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/background_server.svg-13dbbcdecf9445c672c8dcdfde37ed7d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/background_server.svg"
|
||||
dest_files=[ "res://.import/background_server.svg-13dbbcdecf9445c672c8dcdfde37ed7d.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
|
||||
270
Game/source/assets/sprites/GUI/button.svg
Normal file
|
After Width: | Height: | Size: 128 KiB |
34
Game/source/assets/sprites/GUI/button.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/button.svg-cac9640e5d782b30cde0a13413acff96.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/button.svg"
|
||||
dest_files=[ "res://.import/button.svg-cac9640e5d782b30cde0a13413acff96.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
|
||||
148
Game/source/assets/sprites/GUI/button_disabled.svg
Normal file
@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="300"
|
||||
height="72"
|
||||
viewBox="0 0 79.375 19.05"
|
||||
version="1.1"
|
||||
id="svg429"
|
||||
sodipodi:docname="button_disabled.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview431"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:zoom="1.1224747"
|
||||
inkscape:cx="29.844769"
|
||||
inkscape:cy="189.31384"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="44"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs426">
|
||||
<clipPath
|
||||
id="b">
|
||||
<rect
|
||||
width="551"
|
||||
height="75"
|
||||
fill="none"
|
||||
id="rect7"
|
||||
x="0"
|
||||
y="0" />
|
||||
</clipPath>
|
||||
<radialGradient
|
||||
id="a"
|
||||
cx="491.85364"
|
||||
cy="491.85364"
|
||||
r="491.85364"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.51641379,0,0,0.29048275,1.5258789e-6,-2.3742676e-7)"
|
||||
fx="491.85364"
|
||||
fy="491.85364">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#345475"
|
||||
id="stop2" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#1c142d"
|
||||
id="stop4" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<g
|
||||
transform="matrix(0.396875,0,0,0.381,-204.39062,-118.11)"
|
||||
id="g401">
|
||||
<path
|
||||
d="M 15,0 H 194 V 35 A 15,15 0 0 1 179,50 H 0 V 15 A 15,15 0 0 1 15,0 Z"
|
||||
transform="translate(521,310)"
|
||||
fill="#292929"
|
||||
id="path375" />
|
||||
<path
|
||||
d="M 15,0 H 45 V 35 A 15,15 0 0 1 30,50 H 0 V 15 A 15,15 0 0 1 15,0 Z"
|
||||
transform="translate(515,310)"
|
||||
fill="#3d3d3d"
|
||||
id="path377" />
|
||||
<g
|
||||
transform="translate(454,252)"
|
||||
id="g395">
|
||||
<g
|
||||
transform="translate(74,74)"
|
||||
fill="none"
|
||||
stroke="#1e1e1e"
|
||||
stroke-width="1"
|
||||
id="g383">
|
||||
<circle
|
||||
cx="9.5"
|
||||
cy="9.5"
|
||||
r="9.5"
|
||||
stroke="none"
|
||||
id="circle379" />
|
||||
<circle
|
||||
cx="9.5"
|
||||
cy="9.5"
|
||||
r="9"
|
||||
fill="none"
|
||||
id="circle381" />
|
||||
</g>
|
||||
<path
|
||||
d="m 2412.521,-2093.832 c 0,0 -11.763,8.455 -0.018,17.834"
|
||||
transform="translate(-2329.017,2168.322)"
|
||||
fill="none"
|
||||
stroke="#1e1e1e"
|
||||
stroke-width="1"
|
||||
id="path385" />
|
||||
<path
|
||||
d="m 2448.727,-2094.419 c 0,0 11.466,8.548 -0.088,17.887"
|
||||
transform="translate(-2365.258,2168.856)"
|
||||
fill="none"
|
||||
stroke="#1e1e1e"
|
||||
stroke-width="1"
|
||||
id="path387" />
|
||||
<path
|
||||
d="M 11.078,1 H 26.413"
|
||||
transform="translate(64.703,77.519)"
|
||||
fill="none"
|
||||
stroke="#1e1e1e"
|
||||
stroke-width="1"
|
||||
id="path389" />
|
||||
<path
|
||||
d="M 16.676,0 H 31.735"
|
||||
transform="translate(59.228,88.42)"
|
||||
fill="none"
|
||||
stroke="#1e1e1e"
|
||||
stroke-width="1"
|
||||
id="path391" />
|
||||
<line
|
||||
x2="18.431"
|
||||
transform="translate(74.276,83.691)"
|
||||
fill="none"
|
||||
stroke="#1e1e1e"
|
||||
stroke-width="1"
|
||||
opacity="0.76"
|
||||
id="line393"
|
||||
x1="0"
|
||||
y1="0"
|
||||
y2="0" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.9 KiB |
34
Game/source/assets/sprites/GUI/button_disabled.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/button_disabled.svg-1645aa2c3b02b1298d50c2efbbc961a4.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/button_disabled.svg"
|
||||
dest_files=[ "res://.import/button_disabled.svg-1645aa2c3b02b1298d50c2efbbc961a4.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
|
||||
271
Game/source/assets/sprites/GUI/button_hover.svg
Normal file
|
After Width: | Height: | Size: 128 KiB |
34
Game/source/assets/sprites/GUI/button_hover.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/button_hover.svg-1c62b1c693b43d087bdbc7254293a530.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/button_hover.svg"
|
||||
dest_files=[ "res://.import/button_hover.svg-1c62b1c693b43d087bdbc7254293a530.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
|
||||
34
Game/source/assets/sprites/GUI/button_play.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/button_play.svg-0d959369142cf9c05ba8de57072ee80c.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/button_play.svg"
|
||||
dest_files=[ "res://.import/button_play.svg-0d959369142cf9c05ba8de57072ee80c.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
|
||||
271
Game/source/assets/sprites/GUI/button_pressed.svg
Normal file
|
After Width: | Height: | Size: 128 KiB |
34
Game/source/assets/sprites/GUI/button_pressed.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/button_pressed.svg-06daadad8f5649869eff21b5223e29af.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/button_pressed.svg"
|
||||
dest_files=[ "res://.import/button_pressed.svg-06daadad8f5649869eff21b5223e29af.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
|
||||
99
Game/source/assets/sprites/GUI/floor.svg
Normal file
@ -0,0 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="1920"
|
||||
height="126"
|
||||
viewBox="0 0 508 33.337499"
|
||||
version="1.1"
|
||||
id="svg1165"
|
||||
sodipodi:docname="floor.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview1167"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:zoom="0.28061869"
|
||||
inkscape:cx="201.34083"
|
||||
inkscape:cy="685.98426"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="44"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs1162" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
x="-81.539429"
|
||||
y="55.135269"
|
||||
width="343.16458"
|
||||
height="19.84375"
|
||||
fill="none"
|
||||
id="rect421"
|
||||
inkscape:export-filename="/home/kristofers/Documents/rect421.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
style="stroke-width:0.264583" />
|
||||
<rect
|
||||
x="-93.32515"
|
||||
y="-3.7933035"
|
||||
width="343.16458"
|
||||
height="19.84375"
|
||||
fill="none"
|
||||
id="rect421-3"
|
||||
inkscape:export-filename="/home/kristofers/Documents/rect421.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96"
|
||||
style="stroke-width:0.264583" />
|
||||
<g
|
||||
transform="matrix(0.3951543,0,0,0.45446078,-4.2333333,0)"
|
||||
fill="#201831"
|
||||
stroke="#418df2"
|
||||
stroke-width="10"
|
||||
id="g423">
|
||||
<rect
|
||||
width="1307"
|
||||
height="85"
|
||||
stroke="none"
|
||||
id="rect419"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
x="5"
|
||||
y="5"
|
||||
width="1297"
|
||||
height="75"
|
||||
fill="none"
|
||||
id="rect421-6"
|
||||
inkscape:export-filename="/home/kristofers/Documents/rect421.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
<rect
|
||||
x="5"
|
||||
y="5"
|
||||
width="1297"
|
||||
height="75"
|
||||
fill="none"
|
||||
id="rect1237"
|
||||
inkscape:export-filename="/home/kristofers/Documents/rect421.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.7 KiB |
@ -2,15 +2,15 @@
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/floor.svg-86da9fb94a8a492527a026759e2d9055.stex"
|
||||
path="res://.import/floor.svg-b79f442e9ead427c03573eb4e5401ea6.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/sprites/floor.svg"
|
||||
dest_files=[ "res://.import/floor.svg-86da9fb94a8a492527a026759e2d9055.stex" ]
|
||||
source_file="res://source/assets/sprites/GUI/floor.svg"
|
||||
dest_files=[ "res://.import/floor.svg-b79f442e9ead427c03573eb4e5401ea6.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
316
Game/source/assets/sprites/GUI/lan_logo.svg
Normal file
|
After Width: | Height: | Size: 129 KiB |
34
Game/source/assets/sprites/GUI/lan_logo.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/lan_logo.svg-b439fc221992a07305499b467dc9b69c.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/lan_logo.svg"
|
||||
dest_files=[ "res://.import/lan_logo.svg-b439fc221992a07305499b467dc9b69c.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
|
||||
77
Game/source/assets/sprites/GUI/server_title.svg
Normal file
@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="450"
|
||||
height="50"
|
||||
viewBox="0 0 119.0625 13.229167"
|
||||
version="1.1"
|
||||
id="svg429"
|
||||
sodipodi:docname="server_title.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview431"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:zoom="0.28061869"
|
||||
inkscape:cx="304.68391"
|
||||
inkscape:cy="625.40382"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="44"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs426">
|
||||
<clipPath
|
||||
id="b">
|
||||
<rect
|
||||
width="551"
|
||||
height="75"
|
||||
fill="none"
|
||||
id="rect7"
|
||||
x="0"
|
||||
y="0" />
|
||||
</clipPath>
|
||||
<radialGradient
|
||||
id="a"
|
||||
cx="491.85364"
|
||||
cy="491.85364"
|
||||
r="491.85364"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(0.51641379,0,0,0.29048275,1.5258789e-6,-2.3742676e-7)"
|
||||
fx="491.85364"
|
||||
fy="491.85364">
|
||||
<stop
|
||||
offset="0"
|
||||
stop-color="#345475"
|
||||
id="stop2" />
|
||||
<stop
|
||||
offset="1"
|
||||
stop-color="#1c142d"
|
||||
id="stop4" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
d="M 5.95312,0 H 119.0625 v 7.028 a 5.953125,6.2011707 0 0 1 -5.95312,6.20117 H 0 v -7.028 A 5.953125,6.2011707 0 0 1 5.95312,0 Z"
|
||||
fill="#ffffff"
|
||||
id="path363"
|
||||
style="stroke-width:0.405058" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
34
Game/source/assets/sprites/GUI/server_title.svg.import
Normal file
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/server_title.svg-2897adf4d416843a712ca1520c8afe70.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/GUI/server_title.svg"
|
||||
dest_files=[ "res://.import/server_title.svg-2897adf4d416843a712ca1520c8afe70.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
|
||||
826
Game/source/assets/sprites/character/menu_player/tank.svg
Normal file
@ -0,0 +1,826 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="189"
|
||||
height="171"
|
||||
viewBox="0 0 189 171"
|
||||
version="1.1"
|
||||
id="svg130"
|
||||
sodipodi:docname="tank.svg"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview132"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.0559662"
|
||||
inkscape:cx="392.53149"
|
||||
inkscape:cy="360.33349"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="44"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg130" />
|
||||
<defs
|
||||
id="defs8">
|
||||
<clipPath
|
||||
id="clip-path">
|
||||
<rect
|
||||
width="551"
|
||||
height="75"
|
||||
fill="none"
|
||||
id="rect2"
|
||||
x="0"
|
||||
y="0" />
|
||||
</clipPath>
|
||||
<clipPath
|
||||
id="clip-Tank">
|
||||
<rect
|
||||
width="630"
|
||||
height="596.60999"
|
||||
id="rect5"
|
||||
x="0"
|
||||
y="0" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g
|
||||
id="Tank"
|
||||
clip-path="url(#clip-Tank)"
|
||||
transform="scale(0.3,0.28661941)">
|
||||
<g
|
||||
id="Group_44"
|
||||
data-name="Group 44">
|
||||
<g
|
||||
id="Gun"
|
||||
transform="rotate(47,48.341,111.17669)">
|
||||
<rect
|
||||
id="Rectangle_40"
|
||||
data-name="Rectangle 40"
|
||||
width="188"
|
||||
height="66"
|
||||
transform="translate(58,15)"
|
||||
fill="#7a9ff6"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_39"
|
||||
data-name="Rectangle 39"
|
||||
width="58"
|
||||
height="85"
|
||||
transform="translate(188,15)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_41"
|
||||
data-name="Rectangle 41"
|
||||
width="58"
|
||||
height="100"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_42"
|
||||
data-name="Rectangle 42"
|
||||
width="130"
|
||||
height="31"
|
||||
transform="translate(58,50)"
|
||||
fill="rgba(0,0,0,0.11)"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_43"
|
||||
data-name="Rectangle 43"
|
||||
width="58"
|
||||
height="31"
|
||||
transform="translate(188,69)"
|
||||
fill="rgba(0,0,0,0.11)"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_44"
|
||||
data-name="Rectangle 44"
|
||||
width="58"
|
||||
height="31"
|
||||
transform="translate(0,69)"
|
||||
fill="rgba(0,0,0,0.11)"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_46"
|
||||
data-name="Rectangle 46"
|
||||
width="96"
|
||||
height="13"
|
||||
rx="6.5"
|
||||
transform="translate(80.507,21.57)"
|
||||
fill="#ffffff"
|
||||
x="0"
|
||||
y="0" />
|
||||
</g>
|
||||
<g
|
||||
id="Top"
|
||||
transform="translate(-185,-103.387)">
|
||||
<path
|
||||
id="Rectangle_28"
|
||||
data-name="Rectangle 28"
|
||||
d="M 139,0 H 360 V 182 H 0 V 139 A 139,139 0 0 1 139,0 Z"
|
||||
transform="translate(329,279)"
|
||||
fill="#89d9e2" />
|
||||
<path
|
||||
id="Rectangle_29"
|
||||
data-name="Rectangle 29"
|
||||
d="m 12,0 h 152 a 12,12 0 0 1 12,12 v 0 H 0 v 0 A 12,12 0 0 1 12,0 Z"
|
||||
transform="translate(488,267)"
|
||||
fill="#432f51" />
|
||||
<path
|
||||
id="Rectangle_30"
|
||||
data-name="Rectangle 30"
|
||||
d="M 11,0 V 0 A 11,11 0 0 1 22,11 V 25 H 0 V 11 A 11,11 0 0 1 11,0 Z"
|
||||
transform="translate(621,242)"
|
||||
fill="#61d6a8" />
|
||||
<rect
|
||||
id="Rectangle_31"
|
||||
data-name="Rectangle 31"
|
||||
width="217"
|
||||
height="16"
|
||||
rx="8"
|
||||
transform="translate(435,310)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_32"
|
||||
data-name="Rectangle 32"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(420,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_33"
|
||||
data-name="Rectangle 33"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(455,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_34"
|
||||
data-name="Rectangle 34"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(491,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_35"
|
||||
data-name="Rectangle 35"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(526,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_36"
|
||||
data-name="Rectangle 36"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(561,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_37"
|
||||
data-name="Rectangle 37"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(596,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_38"
|
||||
data-name="Rectangle 38"
|
||||
width="15"
|
||||
height="16"
|
||||
rx="7.5"
|
||||
transform="translate(631,344)"
|
||||
fill="#2f397b"
|
||||
x="0"
|
||||
y="0" />
|
||||
</g>
|
||||
<g
|
||||
id="Base"
|
||||
transform="translate(-185,-103.387)">
|
||||
<g
|
||||
id="Rectangle_1"
|
||||
data-name="Rectangle 1"
|
||||
transform="translate(200,600)"
|
||||
fill="#432f51"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="8">
|
||||
<path
|
||||
d="m 0,0 h 600 v 25 a 75,75 0 0 1 -75,75 H 75 A 75,75 0 0 1 0,25 Z"
|
||||
stroke="none"
|
||||
id="path30" />
|
||||
<path
|
||||
d="m 8,4 h 584 a 4,4 0 0 1 4,4 V 25 A 71,71 0 0 1 525,96 H 75 A 71,71 0 0 1 4,25 V 8 A 4,4 0 0 1 8,4 Z"
|
||||
fill="none"
|
||||
id="path32" />
|
||||
</g>
|
||||
<g
|
||||
id="Repeat_Grid_1"
|
||||
data-name="Repeat Grid 1"
|
||||
transform="translate(225,607)"
|
||||
clip-path="url(#clip-path)">
|
||||
<g
|
||||
transform="translate(-257,-601)"
|
||||
id="g40">
|
||||
<g
|
||||
id="Ellipse_2"
|
||||
data-name="Ellipse 2"
|
||||
transform="translate(257,601)"
|
||||
fill="#7a9ff6"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="7">
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="37.5"
|
||||
stroke="none"
|
||||
id="circle35" />
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="34"
|
||||
fill="none"
|
||||
id="circle37" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="translate(-162,-601)"
|
||||
id="g47">
|
||||
<g
|
||||
id="Ellipse_2-2"
|
||||
data-name="Ellipse 2"
|
||||
transform="translate(257,601)"
|
||||
fill="#7a9ff6"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="7">
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="37.5"
|
||||
stroke="none"
|
||||
id="circle42" />
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="34"
|
||||
fill="none"
|
||||
id="circle44" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="translate(-67,-601)"
|
||||
id="g54">
|
||||
<g
|
||||
id="Ellipse_2-3"
|
||||
data-name="Ellipse 2"
|
||||
transform="translate(257,601)"
|
||||
fill="#7a9ff6"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="7">
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="37.5"
|
||||
stroke="none"
|
||||
id="circle49" />
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="34"
|
||||
fill="none"
|
||||
id="circle51" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="translate(28,-601)"
|
||||
id="g61">
|
||||
<g
|
||||
id="Ellipse_2-4"
|
||||
data-name="Ellipse 2"
|
||||
transform="translate(257,601)"
|
||||
fill="#7a9ff6"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="7">
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="37.5"
|
||||
stroke="none"
|
||||
id="circle56" />
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="34"
|
||||
fill="none"
|
||||
id="circle58" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="translate(123,-601)"
|
||||
id="g68">
|
||||
<g
|
||||
id="Ellipse_2-5"
|
||||
data-name="Ellipse 2"
|
||||
transform="translate(257,601)"
|
||||
fill="#7a9ff6"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="7">
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="37.5"
|
||||
stroke="none"
|
||||
id="circle63" />
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="34"
|
||||
fill="none"
|
||||
id="circle65" />
|
||||
</g>
|
||||
</g>
|
||||
<g
|
||||
transform="translate(218,-601)"
|
||||
id="g75">
|
||||
<g
|
||||
id="Ellipse_2-6"
|
||||
data-name="Ellipse 2"
|
||||
transform="translate(257,601)"
|
||||
fill="#7a9ff6"
|
||||
stroke="#61d6a8"
|
||||
stroke-width="7">
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="37.5"
|
||||
stroke="none"
|
||||
id="circle70" />
|
||||
<circle
|
||||
cx="37.5"
|
||||
cy="37.5"
|
||||
r="34"
|
||||
fill="none"
|
||||
id="circle72" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<circle
|
||||
id="Ellipse_3"
|
||||
data-name="Ellipse 3"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="8"
|
||||
transform="translate(397,671)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_4"
|
||||
data-name="Ellipse 4"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="8"
|
||||
transform="translate(302,671)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_5"
|
||||
data-name="Ellipse 5"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="8"
|
||||
transform="translate(492,671)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_6"
|
||||
data-name="Ellipse 6"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="8"
|
||||
transform="translate(587,671)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_7"
|
||||
data-name="Ellipse 7"
|
||||
cx="8"
|
||||
cy="8"
|
||||
r="8"
|
||||
transform="translate(682,671)"
|
||||
fill="#61d6a8" />
|
||||
<rect
|
||||
id="Rectangle_10"
|
||||
data-name="Rectangle 10"
|
||||
width="630"
|
||||
height="65"
|
||||
transform="translate(185,549)"
|
||||
fill="#ffffff"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_11"
|
||||
data-name="Rectangle 11"
|
||||
width="630"
|
||||
height="65"
|
||||
transform="translate(185,576)"
|
||||
fill="rgba(0,0,0,0.22)"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_2"
|
||||
data-name="Rectangle 2"
|
||||
width="30"
|
||||
height="65"
|
||||
transform="translate(185,549)"
|
||||
fill="#89d9e2"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_4"
|
||||
data-name="Rectangle 4"
|
||||
width="111"
|
||||
height="65"
|
||||
transform="translate(215,549)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_5"
|
||||
data-name="Rectangle 5"
|
||||
width="111"
|
||||
height="65"
|
||||
transform="translate(437,549)"
|
||||
fill="#7a9ff6"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_6"
|
||||
data-name="Rectangle 6"
|
||||
width="111"
|
||||
height="65"
|
||||
transform="translate(326,549)"
|
||||
fill="#89d9e2"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_7"
|
||||
data-name="Rectangle 7"
|
||||
width="111"
|
||||
height="65"
|
||||
transform="translate(659,549)"
|
||||
fill="#7a9ff6"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_8"
|
||||
data-name="Rectangle 8"
|
||||
width="111"
|
||||
height="65"
|
||||
transform="translate(548,549)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_9"
|
||||
data-name="Rectangle 9"
|
||||
width="45"
|
||||
height="65"
|
||||
transform="translate(770,549)"
|
||||
fill="#89d9e2"
|
||||
x="0"
|
||||
y="0" />
|
||||
<circle
|
||||
id="Ellipse_8"
|
||||
data-name="Ellipse 8"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(306,555)"
|
||||
fill="#432f51" />
|
||||
<circle
|
||||
id="Ellipse_9"
|
||||
data-name="Ellipse 9"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(306,598)"
|
||||
fill="#432f51" />
|
||||
<circle
|
||||
id="Ellipse_10"
|
||||
data-name="Ellipse 10"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(419,555)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_11"
|
||||
data-name="Ellipse 11"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(419,598)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_12"
|
||||
data-name="Ellipse 12"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(531,556)"
|
||||
fill="#fb8168" />
|
||||
<circle
|
||||
id="Ellipse_13"
|
||||
data-name="Ellipse 13"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(531,599)"
|
||||
fill="#fb8168" />
|
||||
<circle
|
||||
id="Ellipse_14"
|
||||
data-name="Ellipse 14"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(531,556)"
|
||||
fill="#89d9e2" />
|
||||
<circle
|
||||
id="Ellipse_15"
|
||||
data-name="Ellipse 15"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(531,599)"
|
||||
fill="#89d9e2" />
|
||||
<circle
|
||||
id="Ellipse_16"
|
||||
data-name="Ellipse 16"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(641,557)"
|
||||
fill="#89d9e2" />
|
||||
<circle
|
||||
id="Ellipse_17"
|
||||
data-name="Ellipse 17"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(641,600)"
|
||||
fill="#89d9e2" />
|
||||
<circle
|
||||
id="Ellipse_18"
|
||||
data-name="Ellipse 18"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(753,557)"
|
||||
fill="#432f51" />
|
||||
<circle
|
||||
id="Ellipse_19"
|
||||
data-name="Ellipse 19"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(753,600)"
|
||||
fill="#432f51" />
|
||||
<path
|
||||
id="Path_2"
|
||||
data-name="Path 2"
|
||||
d="M 0,0 H 364.806 V 24.994 H 417 V 140 H 0 Z"
|
||||
transform="translate(348,409)"
|
||||
fill="#61d6a8" />
|
||||
<path
|
||||
id="Path_1"
|
||||
data-name="Path 1"
|
||||
d="M 57.448,0 H 365.5 V 103.912 H 0 Z"
|
||||
transform="translate(238,445.088)"
|
||||
fill="#89d9e2" />
|
||||
<rect
|
||||
id="Rectangle_12"
|
||||
data-name="Rectangle 12"
|
||||
width="320"
|
||||
height="12"
|
||||
transform="translate(295,433)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_13"
|
||||
data-name="Rectangle 13"
|
||||
width="12"
|
||||
height="89"
|
||||
transform="translate(603,433)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_14"
|
||||
data-name="Rectangle 14"
|
||||
width="102"
|
||||
height="27"
|
||||
transform="translate(603,522)"
|
||||
fill="#89d9e2"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_15"
|
||||
data-name="Rectangle 15"
|
||||
width="60"
|
||||
height="11"
|
||||
transform="translate(705,480)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_16"
|
||||
data-name="Rectangle 16"
|
||||
width="60"
|
||||
height="58"
|
||||
transform="translate(705,491)"
|
||||
fill="#89d9e2"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_17"
|
||||
data-name="Rectangle 17"
|
||||
width="102"
|
||||
height="11"
|
||||
transform="translate(603,511)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_18"
|
||||
data-name="Rectangle 18"
|
||||
width="60"
|
||||
height="24"
|
||||
transform="translate(740,525)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_19"
|
||||
data-name="Rectangle 19"
|
||||
width="630"
|
||||
height="5"
|
||||
transform="translate(185,544)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_20"
|
||||
data-name="Rectangle 20"
|
||||
width="320"
|
||||
height="12"
|
||||
transform="translate(393,397)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_21"
|
||||
data-name="Rectangle 21"
|
||||
width="90"
|
||||
height="99"
|
||||
transform="translate(345,445)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_22"
|
||||
data-name="Rectangle 22"
|
||||
width="90"
|
||||
height="99"
|
||||
transform="translate(513,445)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_23"
|
||||
data-name="Rectangle 23"
|
||||
width="48"
|
||||
height="16"
|
||||
rx="8"
|
||||
transform="translate(452,471)"
|
||||
fill="#432f51"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_24"
|
||||
data-name="Rectangle 24"
|
||||
width="48"
|
||||
height="16"
|
||||
rx="8"
|
||||
transform="translate(329,497)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_25"
|
||||
data-name="Rectangle 25"
|
||||
width="48"
|
||||
height="16"
|
||||
rx="8"
|
||||
transform="translate(315,471)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_26"
|
||||
data-name="Rectangle 26"
|
||||
width="48"
|
||||
height="16"
|
||||
rx="8"
|
||||
transform="translate(488,517)"
|
||||
fill="#89d9e2"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_27"
|
||||
data-name="Rectangle 27"
|
||||
width="48"
|
||||
height="16"
|
||||
rx="8"
|
||||
transform="translate(424,492)"
|
||||
fill="#61d6a8"
|
||||
x="0"
|
||||
y="0" />
|
||||
<circle
|
||||
id="Ellipse_20"
|
||||
data-name="Ellipse 20"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(715,520)"
|
||||
fill="#61d6a8" />
|
||||
<circle
|
||||
id="Ellipse_21"
|
||||
data-name="Ellipse 21"
|
||||
cx="4.5"
|
||||
cy="4.5"
|
||||
r="4.5"
|
||||
transform="translate(715,505)"
|
||||
fill="#61d6a8" />
|
||||
</g>
|
||||
<rect
|
||||
id="Rectangle_45"
|
||||
data-name="Rectangle 45"
|
||||
width="74"
|
||||
height="13"
|
||||
rx="6.5"
|
||||
transform="translate(272,184.613)"
|
||||
fill="#ffffff"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_47"
|
||||
data-name="Rectangle 47"
|
||||
width="109"
|
||||
height="13"
|
||||
rx="6.5"
|
||||
transform="translate(380,184.613)"
|
||||
fill="#ffffff"
|
||||
x="0"
|
||||
y="0" />
|
||||
<rect
|
||||
id="Rectangle_48"
|
||||
data-name="Rectangle 48"
|
||||
width="122"
|
||||
height="13"
|
||||
rx="6.5"
|
||||
transform="translate(132,351.613)"
|
||||
fill="#ffffff"
|
||||
x="0"
|
||||
y="0" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 21 KiB |
@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/tank.svg-dd75a0a35b6e8c0b4f9010a769c83637.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://source/assets/sprites/character/menu_player/tank.svg"
|
||||
dest_files=[ "res://.import/tank.svg-dd75a0a35b6e8c0b4f9010a769c83637.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
|
||||
@ -54,15 +54,15 @@ animations = [ {
|
||||
"name": "idle_down",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 38 ), ExtResource( 35 ), ExtResource( 41 ), ExtResource( 37 ), ExtResource( 19 ), ExtResource( 18 ), ExtResource( 40 ) ],
|
||||
"loop": false,
|
||||
"name": "transition_up",
|
||||
"speed": 24.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 17 ), ExtResource( 34 ), ExtResource( 28 ), ExtResource( 26 ), ExtResource( 24 ), ExtResource( 27 ), ExtResource( 36 ) ],
|
||||
"loop": false,
|
||||
"name": "transition_down",
|
||||
"speed": 24.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 38 ), ExtResource( 35 ), ExtResource( 41 ), ExtResource( 37 ), ExtResource( 19 ), ExtResource( 18 ), ExtResource( 40 ) ],
|
||||
"loop": false,
|
||||
"name": "transition_up",
|
||||
"speed": 24.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
@ -76,11 +76,10 @@ position = Vector2( -3.36365, 0 )
|
||||
scale = Vector2( 0.75, 0.75 )
|
||||
frames = SubResource( 1 )
|
||||
animation = "idle"
|
||||
frame = 7
|
||||
frame = 2
|
||||
playing = true
|
||||
|
||||
[node name="trinity_site_level_layout-level_design_z-index_0_grass_type-2" type="Sprite" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="grass_node" type="Node2D" parent="."]
|
||||
|
||||
|
||||
15
Game/source/entities/menu_player/player_node.tscn
Normal file
@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://source/assets/sprites/character/menu_player/tank.svg" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=1]
|
||||
radius = 76.0267
|
||||
|
||||
[node name="player" type="KinematicBody2D"]
|
||||
|
||||
[node name="player_collider" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="player_sprite" type="Sprite" parent="."]
|
||||
position = Vector2( 0.561218, -8.41847 )
|
||||
texture = ExtResource( 1 )
|
||||
@ -1,5 +0,0 @@
|
||||
extends Position2D
|
||||
|
||||
|
||||
func _process(delta):
|
||||
look_at(get_global_mouse_position())
|
||||
BIN
Game/source/fonts/oxygen/Oxygen-Bold.ttf
Normal file
BIN
Game/source/fonts/oxygen/Oxygen-Light.ttf
Normal file
BIN
Game/source/fonts/oxygen/Oxygen-Regular.ttf
Normal file
9
Game/source/fonts/oxygen/oxygen_bold.tres
Normal file
@ -0,0 +1,9 @@
|
||||
[gd_resource type="DynamicFont" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Bold.ttf" type="DynamicFontData" id=1]
|
||||
|
||||
[resource]
|
||||
size = 36
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 1 )
|
||||
9
Game/source/fonts/oxygen/oxygen_regular.tres
Normal file
@ -0,0 +1,9 @@
|
||||
[gd_resource type="DynamicFont" load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=1]
|
||||
|
||||
[resource]
|
||||
size = 50
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 1 )
|
||||
@ -106,11 +106,11 @@ z_index = -3
|
||||
[node name="spawn_locations" type="Node" parent="."]
|
||||
|
||||
[node name="1" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 460, 540 )
|
||||
position = Vector2( 260, 540 )
|
||||
z_index = 1
|
||||
|
||||
[node name="2" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 260, 540 )
|
||||
position = Vector2( 460, 540 )
|
||||
z_index = 1
|
||||
|
||||
[node name="3" type="Position2D" parent="spawn_locations"]
|
||||
|
||||
18
Game/source/scenes/GUI/background.tscn
Normal file
@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://source/scenes/OVERLAY/elements/floor.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/background_main_menu.svg" type="Texture" id=6]
|
||||
|
||||
[node name="background" type="Node2D"]
|
||||
|
||||
[node name="background_main_menu" type="Sprite" parent="."]
|
||||
position = Vector2( 960, 540 )
|
||||
z_index = -10
|
||||
z_as_relative = false
|
||||
texture = ExtResource( 6 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="floor" parent="." instance=ExtResource( 5 )]
|
||||
position = Vector2( 960, 1016 )
|
||||
@ -1,122 +1,137 @@
|
||||
[gd_scene load_steps=7 format=2]
|
||||
[gd_scene load_steps=9 format=2]
|
||||
|
||||
[ext_resource path="res://source/fonts/roboto/roboto.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://source/assets/scripts/server_handlers/network_processors/network_setup.gd" type="Script" id=2]
|
||||
[ext_resource path="res://source/assets/scripts/ui_element_handlers/UI.gd" type="Script" id=3]
|
||||
[ext_resource path="res://source/floor.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://source/fonts/roboto/Roboto-Regular.ttf" type="DynamicFontData" id=5]
|
||||
[ext_resource path="res://source/entities/menu_player/player_node.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://source/scenes/GUI/background.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/lan_logo.svg" type="Texture" id=3]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Bold.ttf" type="DynamicFontData" id=4]
|
||||
[ext_resource path="res://source/fonts/oxygen/oxygen_bold.tres" type="DynamicFont" id=5]
|
||||
[ext_resource path="res://source/assets/scripts/ui_element_handlers/main_menu.gd" type="Script" id=6]
|
||||
[ext_resource path="res://source/scenes/OVERLAY/elements/button.tscn" type="PackedScene" id=7]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 32
|
||||
size = 100
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 5 )
|
||||
font_data = ExtResource( 4 )
|
||||
|
||||
[node name="network_setup" type="Control"]
|
||||
[node name="main_menu" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 2 )
|
||||
script = ExtResource( 6 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="multiplayer_configure" type="Control" parent="."]
|
||||
[node name="background" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[node name="player" parent="background" instance=ExtResource( 1 )]
|
||||
position = Vector2( 408, 872 )
|
||||
|
||||
[node name="foreground" type="Control" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 2.5199
|
||||
margin_right = 2.5199
|
||||
margin_top = 1.49835
|
||||
margin_bottom = 1.49829
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="create_server" type="Button" parent="multiplayer_configure"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -267.5
|
||||
margin_top = -202.0
|
||||
margin_right = 267.5
|
||||
margin_bottom = -26.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Create server"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="join_server" type="Button" parent="multiplayer_configure"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -266.52
|
||||
margin_top = 28.0
|
||||
margin_right = 268.48
|
||||
margin_bottom = 204.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Join server"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="username_text_edit" type="LineEdit" parent="multiplayer_configure"]
|
||||
[node name="name" type="Label" parent="foreground"]
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
margin_left = -422.5
|
||||
margin_top = 117.0
|
||||
margin_right = 422.5
|
||||
margin_bottom = 221.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
align = 1
|
||||
placeholder_text = "Enter username"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="UI" type="CanvasLayer" parent="."]
|
||||
script = ExtResource( 3 )
|
||||
|
||||
[node name="start_game" type="Button" parent="UI"]
|
||||
margin_left = 27.0
|
||||
margin_top = 24.7551
|
||||
margin_right = 391.0
|
||||
margin_bottom = 155.755
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Start game"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="device_ip_address" type="Label" parent="UI"]
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
margin_left = -256.0
|
||||
margin_bottom = 64.0
|
||||
margin_left = -320.0
|
||||
margin_top = 350.0
|
||||
margin_right = 320.0
|
||||
margin_bottom = 477.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "NAME&LOGO"
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="play" parent="foreground" instance=ExtResource( 7 )]
|
||||
margin_left = 810.0
|
||||
margin_top = 500.0
|
||||
margin_right = 1110.0
|
||||
margin_bottom = 572.0
|
||||
|
||||
[node name="Label" type="Label" parent="foreground/play"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -150.0
|
||||
margin_top = -36.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 36.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "PLAY"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="floor" parent="." instance=ExtResource( 4 )]
|
||||
position = Vector2( 960, 1096 )
|
||||
scale = Vector2( 2, 1 )
|
||||
[node name="LAN_party" parent="foreground" instance=ExtResource( 7 )]
|
||||
margin_left = 810.0
|
||||
margin_top = 580.0
|
||||
margin_right = 1110.0
|
||||
margin_bottom = 652.0
|
||||
|
||||
[node name="spawn_locations" type="Node" parent="."]
|
||||
[node name="Label2" type="Label" parent="foreground/LAN_party"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -98.8223
|
||||
margin_top = -36.0
|
||||
margin_right = 134.178
|
||||
margin_bottom = 36.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "LAN Party"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="1" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 264, 880 )
|
||||
[node name="lan_logo" type="Sprite" parent="foreground/LAN_party"]
|
||||
position = Vector2( 33.5, 36 )
|
||||
texture = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="2" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 688, 912 )
|
||||
[node name="exit" parent="foreground" instance=ExtResource( 7 )]
|
||||
margin_left = 810.0
|
||||
margin_top = 660.0
|
||||
margin_right = 1110.0
|
||||
margin_bottom = 732.0
|
||||
|
||||
[node name="3" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 1264, 872 )
|
||||
[node name="Label" type="Label" parent="foreground/exit"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -150.0
|
||||
margin_top = -36.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 36.0
|
||||
custom_fonts/font = ExtResource( 5 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "EXIT"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="4" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 1584, 888 )
|
||||
|
||||
[connection signal="pressed" from="multiplayer_configure/create_server" to="." method="_on_create_server_pressed"]
|
||||
[connection signal="pressed" from="multiplayer_configure/join_server" to="." method="_on_join_server_pressed"]
|
||||
[connection signal="pressed" from="UI/start_game" to="." method="_on_start_game_pressed"]
|
||||
[connection signal="pressed" from="foreground/play" to="." method="_on_play_pressed"]
|
||||
[connection signal="pressed" from="foreground/LAN_party" to="." method="_on_LAN_party_pressed"]
|
||||
[connection signal="pressed" from="foreground/exit" to="." method="_on_exit_pressed"]
|
||||
|
||||
282
Game/source/scenes/GUI/network_setup.tscn
Normal file
@ -0,0 +1,282 @@
|
||||
[gd_scene load_steps=16 format=2]
|
||||
|
||||
[ext_resource path="res://source/assets/scripts/server_handlers/network_processors/network_setup.gd" type="Script" id=1]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=2]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Bold.ttf" type="DynamicFontData" id=3]
|
||||
[ext_resource path="res://source/fonts/roboto/roboto.tres" type="DynamicFont" id=4]
|
||||
[ext_resource path="res://source/scenes/GUI/background.tscn" type="PackedScene" id=5]
|
||||
[ext_resource path="res://source/scenes/OVERLAY/elements/floor.tscn" type="PackedScene" id=6]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/lan_logo.svg" type="Texture" id=7]
|
||||
[ext_resource path="res://source/fonts/oxygen/oxygen_bold.tres" type="DynamicFont" id=8]
|
||||
[ext_resource path="res://source/scenes/OVERLAY/elements/button.tscn" type="PackedScene" id=9]
|
||||
[ext_resource path="res://source/fonts/oxygen/oxygen_regular.tres" type="DynamicFont" id=10]
|
||||
[ext_resource path="res://source/assets/scripts/ui_element_handlers/UI.gd" type="Script" id=11]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/background_lobby.svg" type="Texture" id=12]
|
||||
|
||||
[sub_resource type="DynamicFont" id=3]
|
||||
size = 36
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 88
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 3 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 22
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 2 )
|
||||
|
||||
[node name="network_setup" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="background" parent="." instance=ExtResource( 5 )]
|
||||
|
||||
[node name="multiplayer_configure" type="Control" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 2.5199
|
||||
margin_right = 2.5199
|
||||
rect_pivot_offset = Vector2( -2200.59, -462.965 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="create_server" parent="multiplayer_configure" instance=ExtResource( 9 )]
|
||||
margin_left = 810.0
|
||||
margin_top = 424.0
|
||||
margin_right = 1110.0
|
||||
margin_bottom = 496.0
|
||||
|
||||
[node name="Label" type="Label" parent="multiplayer_configure/create_server"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -150.0
|
||||
margin_top = -36.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 36.0
|
||||
custom_fonts/font = ExtResource( 8 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "CREATE SERVER"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="join_server" parent="multiplayer_configure" instance=ExtResource( 9 )]
|
||||
margin_left = 810.0
|
||||
margin_top = 504.0
|
||||
margin_right = 1110.0
|
||||
margin_bottom = 576.0
|
||||
|
||||
[node name="Label" type="Label" parent="multiplayer_configure/join_server"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -233.0
|
||||
margin_top = -36.0
|
||||
margin_bottom = 36.0
|
||||
custom_fonts/font = ExtResource( 8 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "JOIN SERVER"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="lan_logo" type="Sprite" parent="multiplayer_configure/join_server"]
|
||||
position = Vector2( 33.5, 36 )
|
||||
texture = ExtResource( 7 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="return" parent="multiplayer_configure" instance=ExtResource( 9 )]
|
||||
margin_left = 810.0
|
||||
margin_top = 584.0
|
||||
margin_right = 1110.0
|
||||
margin_bottom = 656.0
|
||||
|
||||
[node name="Label" type="Label" parent="multiplayer_configure/return"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -150.0
|
||||
margin_top = -36.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 36.0
|
||||
custom_fonts/font = ExtResource( 8 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "RETURN"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="username" type="Panel" parent="multiplayer_configure"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -480.0
|
||||
margin_top = -270.0
|
||||
margin_right = 480.0
|
||||
margin_bottom = 270.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="username_text_edit" type="LineEdit" parent="multiplayer_configure/username"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -403.0
|
||||
margin_top = -243.0
|
||||
margin_right = 403.0
|
||||
margin_bottom = -138.0
|
||||
custom_fonts/font = ExtResource( 4 )
|
||||
custom_colors/selection_color = Color( 0.607843, 0.607843, 0.607843, 1 )
|
||||
custom_colors/cursor_color = Color( 1, 1, 1, 1 )
|
||||
align = 1
|
||||
placeholder_text = "Enter username"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="confirm" parent="multiplayer_configure/username/username_text_edit" instance=ExtResource( 9 )]
|
||||
margin_left = 255.623
|
||||
margin_top = 129.885
|
||||
margin_right = 555.623
|
||||
margin_bottom = 201.885
|
||||
|
||||
[node name="Label" type="Label" parent="multiplayer_configure/username/username_text_edit/confirm"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_fonts/font = SubResource( 3 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "CONFIRM"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="background_lobby" type="Node2D" parent="."]
|
||||
z_index = -1
|
||||
|
||||
[node name="background_lobby" type="Sprite" parent="background_lobby"]
|
||||
position = Vector2( 960, 540 )
|
||||
texture = ExtResource( 12 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="floor" parent="background_lobby" instance=ExtResource( 6 )]
|
||||
position = Vector2( 960, 1016 )
|
||||
|
||||
[node name="UI" type="CanvasLayer" parent="."]
|
||||
script = ExtResource( 11 )
|
||||
|
||||
[node name="device_ip_address" type="Label" parent="UI"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -319.0
|
||||
margin_top = -56.0
|
||||
margin_right = 319.0
|
||||
margin_bottom = 56.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color = Color( 0.439216, 0.666667, 1, 0.27451 )
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="text" type="Label" parent="UI"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -116.5
|
||||
margin_top = 60.0
|
||||
margin_right = 116.5
|
||||
margin_bottom = 89.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
custom_colors/font_color = Color( 0.439216, 0.666667, 1, 0.27451 )
|
||||
text = "WAITING FOR PLAYERS"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="start_game" parent="UI" instance=ExtResource( 9 )]
|
||||
visible = false
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -150.0
|
||||
margin_top = 100.0
|
||||
margin_right = 150.0
|
||||
margin_bottom = 172.0
|
||||
|
||||
[node name="Label" type="Label" parent="UI/start_game"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -74.5
|
||||
margin_top = -32.0
|
||||
margin_right = 74.5
|
||||
margin_bottom = 32.0
|
||||
custom_fonts/font = ExtResource( 10 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "START"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="spawn_locations" type="Node" parent="."]
|
||||
|
||||
[node name="1" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 384, 860 )
|
||||
|
||||
[node name="2" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 768, 860 )
|
||||
|
||||
[node name="3" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 1152, 860 )
|
||||
|
||||
[node name="4" type="Position2D" parent="spawn_locations"]
|
||||
position = Vector2( 1536, 860 )
|
||||
|
||||
[connection signal="pressed" from="multiplayer_configure/create_server" to="." method="_on_create_server_pressed"]
|
||||
[connection signal="pressed" from="multiplayer_configure/join_server" to="." method="_on_join_server_pressed"]
|
||||
[connection signal="pressed" from="multiplayer_configure/return" to="." method="_on_return_pressed"]
|
||||
[connection signal="pressed" from="multiplayer_configure/username/username_text_edit/confirm" to="." method="_on_confirm_pressed"]
|
||||
[connection signal="pressed" from="UI/start_game" to="." method="_on_start_game_pressed"]
|
||||
@ -1,10 +1,27 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=12 format=2]
|
||||
|
||||
[ext_resource path="res://source/fonts/roboto/roboto.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://source/scenes/GUI/server_handlers/server_listener.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://source/assets/scripts/server_handlers/server_processors/server_browser.gd" type="Script" id=3]
|
||||
[ext_resource path="res://source/scenes/OVERLAY/elements/button.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/background_server.svg" type="Texture" id=5]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/server_title.svg" type="Texture" id=6]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/button_disabled.svg" type="Texture" id=7]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=8]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 36
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 8 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 32
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 8 )
|
||||
|
||||
[sub_resource type="Animation" id=3]
|
||||
resource_name = "searching_for_servers"
|
||||
length = 0.8
|
||||
loop = true
|
||||
@ -26,44 +43,160 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
script = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="background_server" type="Sprite" parent="."]
|
||||
position = Vector2( 960, 540 )
|
||||
texture = ExtResource( 5 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="controls" type="Control" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 2.51978
|
||||
margin_top = 1.77069
|
||||
margin_right = 2.51978
|
||||
margin_bottom = 1.77075
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="manual_setup" parent="controls" instance=ExtResource( 4 )]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = 40.0
|
||||
margin_top = -116.0
|
||||
margin_right = 340.0
|
||||
margin_bottom = -44.0
|
||||
|
||||
[node name="Label" type="Label" parent="controls/manual_setup"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "MANUAL SETUP"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="online" type="TextureButton" parent="controls"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = 40.0
|
||||
margin_top = -36.0
|
||||
margin_right = 340.0
|
||||
margin_bottom = 36.0
|
||||
texture_normal = ExtResource( 7 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Label" type="Label" parent="controls/online"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 68.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color = Color( 0.329412, 0.329412, 0.329412, 1 )
|
||||
text = "ONLINE"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="return" parent="controls" instance=ExtResource( 4 )]
|
||||
margin_left = 1000.0
|
||||
margin_top = 584.0
|
||||
margin_right = 1300.0
|
||||
margin_bottom = 656.0
|
||||
|
||||
[node name="Label" type="Label" parent="controls/return"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "RETURN"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="background_panel" type="Panel" parent="controls"]
|
||||
self_modulate = Color( 0.0862745, 0.0862745, 0.0862745, 0.392157 )
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -447.5
|
||||
margin_top = -66.0
|
||||
margin_right = -20.0
|
||||
margin_bottom = 171.5
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="controls/background_panel"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
rect_pivot_offset = Vector2( -279.611, -199.539 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="server_title" type="Sprite" parent="controls/background_panel"]
|
||||
position = Vector2( 225, -25 )
|
||||
texture = ExtResource( 6 )
|
||||
__meta__ = {
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="searching_for_servers" type="Label" parent="controls/background_panel/server_title"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -450.0
|
||||
margin_top = -64.0
|
||||
margin_bottom = 14.0
|
||||
rect_min_size = Vector2( 0, 70 )
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "Searching for servers"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_lock_": true,
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="controls/background_panel/server_title/searching_for_servers"]
|
||||
autoplay = "searching_for_servers"
|
||||
playback_speed = 0.5
|
||||
anims/searching_for_servers = SubResource( 3 )
|
||||
|
||||
[node name="background_panel" type="Panel" parent="."]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 96.0
|
||||
margin_top = 162.0
|
||||
margin_right = -96.0
|
||||
margin_bottom = -54.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="manual_setup" type="Button" parent="background_panel"]
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -473.0
|
||||
margin_top = -175.0
|
||||
margin_right = -30.0
|
||||
margin_bottom = -30.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Manual setup"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="go_back" type="Button" parent="background_panel"]
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 30.0
|
||||
margin_top = -170.0
|
||||
margin_right = 473.0
|
||||
margin_bottom = -25.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Go back"
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -480.0
|
||||
margin_top = -270.0
|
||||
margin_right = 480.0
|
||||
margin_bottom = 270.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
@ -78,71 +211,36 @@ margin_top = -243.0
|
||||
margin_right = 403.0
|
||||
margin_bottom = -138.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_colors/selection_color = Color( 0.607843, 0.607843, 0.607843, 1 )
|
||||
custom_colors/cursor_color = Color( 1, 1, 1, 1 )
|
||||
align = 1
|
||||
|
||||
[node name="type_in_server_ip" type="Label" parent="background_panel/server_ip_text_edit"]
|
||||
anchor_right = 1.0
|
||||
margin_top = -105.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Type in server IP"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="join_server" type="Button" parent="background_panel/server_ip_text_edit"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -221.5
|
||||
margin_top = 94.5
|
||||
margin_right = 221.5
|
||||
margin_bottom = 239.5
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Join server"
|
||||
placeholder_text = "Server IP"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="background_panel"]
|
||||
[node name="join_server" parent="background_panel/server_ip_text_edit" instance=ExtResource( 4 )]
|
||||
margin_left = 255.623
|
||||
margin_top = 129.885
|
||||
margin_right = 555.623
|
||||
margin_bottom = 201.885
|
||||
|
||||
[node name="Label" type="Label" parent="background_panel/server_ip_text_edit/join_server"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 70.0
|
||||
margin_top = 40.0
|
||||
margin_right = -70.0
|
||||
margin_bottom = -175.0
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="searching_for_servers" type="Label" parent="background_panel/VBoxContainer"]
|
||||
margin_right = 1588.0
|
||||
margin_bottom = 76.0
|
||||
rect_min_size = Vector2( 0, 70 )
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Searching for servers.."
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="background_panel/VBoxContainer/searching_for_servers"]
|
||||
autoplay = "searching_for_servers"
|
||||
playback_speed = 0.5
|
||||
anims/searching_for_servers = SubResource( 1 )
|
||||
|
||||
[node name="server_browser_label" type="Label" parent="background_panel"]
|
||||
anchor_right = 1.0
|
||||
margin_top = -176.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
text = "Server Browser"
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
||||
text = "JOIN SERVER"
|
||||
align = 1
|
||||
valign = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
"_edit_lock_": true
|
||||
}
|
||||
|
||||
[node name="server_listener" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[connection signal="pressed" from="background_panel/manual_setup" to="." method="_on_manual_setup_pressed"]
|
||||
[connection signal="pressed" from="background_panel/go_back" to="." method="_on_go_back_pressed"]
|
||||
[connection signal="pressed" from="controls/manual_setup" to="." method="_on_manual_setup_pressed"]
|
||||
[connection signal="pressed" from="controls/return" to="." method="_on_return_pressed"]
|
||||
[connection signal="pressed" from="background_panel/server_ip_text_edit/join_server" to="." method="_on_join_server_pressed"]
|
||||
[connection signal="new_server" from="server_listener" to="." method="_on_server_listener_new_server"]
|
||||
[connection signal="remove_server" from="server_listener" to="." method="_on_server_listener_remove_server"]
|
||||
|
||||
@ -1,18 +1,30 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://source/fonts/roboto/roboto.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Regular.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://source/assets/scripts/server_handlers/server_processors/server_display.gd" type="Script" id=2]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Bold.ttf" type="DynamicFontData" id=3]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 24
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[sub_resource type="DynamicFont" id=2]
|
||||
size = 36
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 3 )
|
||||
|
||||
[node name="server_display" type="Label" groups=[
|
||||
"Server_display",
|
||||
]]
|
||||
anchor_right = 1.0
|
||||
margin_right = -220.0
|
||||
margin_right = -1520.0
|
||||
margin_bottom = 130.0
|
||||
rect_min_size = Vector2( 0, 130 )
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "N/A: 000.000.000"
|
||||
align = 1
|
||||
valign = 1
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
@ -22,11 +34,9 @@ __meta__ = {
|
||||
[node name="join_button" type="Button" parent="."]
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = -302.0
|
||||
margin_top = 13.0
|
||||
margin_bottom = -13.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
margin_left = -100.0
|
||||
margin_bottom = 52.0
|
||||
custom_fonts/font = SubResource( 2 )
|
||||
text = "Join"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
|
||||
15
Game/source/scenes/OVERLAY/elements/button.tscn
Normal file
@ -0,0 +1,15 @@
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://source/assets/sprites/GUI/button.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/button_hover.svg" type="Texture" id=2]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/button_pressed.svg" type="Texture" id=3]
|
||||
|
||||
[node name="TextureButton" type="TextureButton"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
texture_normal = ExtResource( 1 )
|
||||
texture_pressed = ExtResource( 3 )
|
||||
texture_hover = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://source/sprites/floor.svg" type="Texture" id=1]
|
||||
[ext_resource path="res://source/assets/sprites/GUI/floor.svg" type="Texture" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 960, 24 )
|
||||
extents = Vector2( 960, 64 )
|
||||
|
||||
[node name="floor" type="StaticBody2D"]
|
||||
|
||||
@ -11,4 +11,5 @@ extents = Vector2( 960, 24 )
|
||||
texture = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource( 1 )
|
||||
@ -1,8 +1,14 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
[gd_scene load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://source/fonts/roboto/roboto.tres" type="DynamicFont" id=1]
|
||||
[ext_resource path="res://source/fonts/oxygen/Oxygen-Bold.ttf" type="DynamicFontData" id=1]
|
||||
[ext_resource path="res://source/assets/scripts/ui_element_handlers/username_text.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="DynamicFont" id=1]
|
||||
size = 36
|
||||
use_mipmaps = true
|
||||
use_filter = true
|
||||
font_data = ExtResource( 1 )
|
||||
|
||||
[node name="username_text" type="Node2D" groups=[
|
||||
"Net",
|
||||
]]
|
||||
@ -14,7 +20,7 @@ margin_left = -197.0
|
||||
margin_top = -125.0
|
||||
margin_right = 197.0
|
||||
margin_bottom = -49.0
|
||||
custom_fonts/font = ExtResource( 1 )
|
||||
custom_fonts/font = SubResource( 1 )
|
||||
text = "null"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="1920"
|
||||
height="48"
|
||||
viewBox="0 0 508.00001 12.7"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="floor.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview7"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:pageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
width="7256.6929px"
|
||||
units="px"
|
||||
inkscape:zoom="0.14030934"
|
||||
inkscape:cx="416.9359"
|
||||
inkscape:cy="1297.1339"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1006"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="45"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="fill:#b4cffa;stroke-width:0.259237;fill-opacity:1"
|
||||
id="rect31"
|
||||
width="508"
|
||||
height="12.7"
|
||||
x="0"
|
||||
y="0" />
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 1.4 KiB |