Compare commits
No commits in common. "cf68bd7887b1664db981c501c38d71a9b767cb6a" and "a496e22033256a44bf86d8c7189cab1d6ddcd3f2" have entirely different histories.
cf68bd7887
...
a496e22033
@ -1,6 +1,5 @@
|
|||||||
[gd_resource type="MapResource" format=3 uid="uid://c7n1tacc7a73t"]
|
[gd_resource type="MapResource" format=3 uid="uid://c7n1tacc7a73t"]
|
||||||
|
|
||||||
[ext_resource type="Texture2D" uid="uid://bkugrxwqmw3lw" path="res://maps/default_map/icon.png" id="1_an43b"]
|
|
||||||
[ext_resource type="AudioStream" uid="uid://d3tpaim4ia0xr" path="res://raw_assets/music/n-Dimensions (Main Theme - Retro Ver.mp3" id="1_bjd18"]
|
[ext_resource type="AudioStream" uid="uid://d3tpaim4ia0xr" path="res://raw_assets/music/n-Dimensions (Main Theme - Retro Ver.mp3" id="1_bjd18"]
|
||||||
[ext_resource type="PackedScene" uid="uid://7iooamjot1tg" path="res://maps/default_map/map0.tscn" id="1_k5804"]
|
[ext_resource type="PackedScene" uid="uid://7iooamjot1tg" path="res://maps/default_map/map0.tscn" id="1_k5804"]
|
||||||
[ext_resource type="AudioStream" uid="uid://dkgm7o8u0w550" path="res://raw_assets/music/Red Doors 2.0 (GameClosure Edition).mp3" id="2_an43b"]
|
[ext_resource type="AudioStream" uid="uid://dkgm7o8u0w550" path="res://raw_assets/music/Red Doors 2.0 (GameClosure Edition).mp3" id="2_an43b"]
|
||||||
@ -13,5 +12,3 @@ name = "Default Map"
|
|||||||
scene = ExtResource("1_k5804")
|
scene = ExtResource("1_k5804")
|
||||||
teams = Array[TeamResource]([ExtResource("2_kkbjr"), ExtResource("3_o48fm")])
|
teams = Array[TeamResource]([ExtResource("2_kkbjr"), ExtResource("3_o48fm")])
|
||||||
music = Array[AudioStream]([ExtResource("1_bjd18"), ExtResource("2_an43b"), ExtResource("3_e1bs0")])
|
music = Array[AudioStream]([ExtResource("1_bjd18"), ExtResource("2_an43b"), ExtResource("3_e1bs0")])
|
||||||
icon = ExtResource("1_an43b")
|
|
||||||
hidden = true
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB |
@ -1,41 +0,0 @@
|
|||||||
[remap]
|
|
||||||
|
|
||||||
importer="texture"
|
|
||||||
type="CompressedTexture2D"
|
|
||||||
uid="uid://bkugrxwqmw3lw"
|
|
||||||
path.s3tc="res://.godot/imported/icon.png-e76ac314614d31fd9b0de52e21ac82c0.s3tc.ctex"
|
|
||||||
metadata={
|
|
||||||
"imported_formats": ["s3tc_bptc"],
|
|
||||||
"vram_texture": true
|
|
||||||
}
|
|
||||||
|
|
||||||
[deps]
|
|
||||||
|
|
||||||
source_file="res://maps/default_map/icon.png"
|
|
||||||
dest_files=["res://.godot/imported/icon.png-e76ac314614d31fd9b0de52e21ac82c0.s3tc.ctex"]
|
|
||||||
|
|
||||||
[params]
|
|
||||||
|
|
||||||
compress/mode=2
|
|
||||||
compress/high_quality=false
|
|
||||||
compress/lossy_quality=0.7
|
|
||||||
compress/uastc_level=0
|
|
||||||
compress/rdo_quality_loss=0.0
|
|
||||||
compress/hdr_compression=1
|
|
||||||
compress/normal_map=0
|
|
||||||
compress/channel_pack=0
|
|
||||||
mipmaps/generate=true
|
|
||||||
mipmaps/limit=-1
|
|
||||||
roughness/mode=0
|
|
||||||
roughness/src_normal=""
|
|
||||||
process/channel_remap/red=0
|
|
||||||
process/channel_remap/green=1
|
|
||||||
process/channel_remap/blue=2
|
|
||||||
process/channel_remap/alpha=3
|
|
||||||
process/fix_alpha_border=true
|
|
||||||
process/premult_alpha=false
|
|
||||||
process/normal_map_invert_y=false
|
|
||||||
process/hdr_as_srgb=false
|
|
||||||
process/hdr_clamp_exposure=false
|
|
||||||
process/size_limit=0
|
|
||||||
detect_3d/compress_to=0
|
|
||||||
@ -8,4 +8,3 @@
|
|||||||
name = "Diner"
|
name = "Diner"
|
||||||
scene = ExtResource("1_yteo6")
|
scene = ExtResource("1_yteo6")
|
||||||
teams = Array[TeamResource]([ExtResource("2_47vax"), ExtResource("3_i3gdq")])
|
teams = Array[TeamResource]([ExtResource("2_47vax"), ExtResource("3_i3gdq")])
|
||||||
hidden = true
|
|
||||||
|
|||||||
@ -1441,20 +1441,18 @@ layout_mode = 2
|
|||||||
metadata/_edit_lock_ = true
|
metadata/_edit_lock_ = true
|
||||||
|
|
||||||
[node name="v_box_container2" type="VBoxContainer" parent="lobby" unique_id=653902328]
|
[node name="v_box_container2" type="VBoxContainer" parent="lobby" unique_id=653902328]
|
||||||
propagate_maximum_size = false
|
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 1
|
anchors_preset = 1
|
||||||
anchor_left = 1.0
|
anchor_left = 1.0
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
offset_left = -857.0
|
offset_left = -835.0
|
||||||
offset_top = 513.0
|
offset_top = 111.0
|
||||||
offset_right = -557.0
|
offset_right = -727.0
|
||||||
offset_bottom = 613.0
|
offset_bottom = 169.0
|
||||||
grow_horizontal = 0
|
grow_horizontal = 0
|
||||||
|
|
||||||
[node name="option_button" type="OptionButton" parent="lobby/v_box_container2" unique_id=426342653]
|
[node name="option_button" type="OptionButton" parent="lobby/v_box_container2" unique_id=426342653]
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
theme_override_constants/icon_max_width = 100
|
|
||||||
metadata/_edit_lock_ = true
|
metadata/_edit_lock_ = true
|
||||||
|
|
||||||
[node name="options_panel" type="Panel" parent="lobby" unique_id=1194589850]
|
[node name="options_panel" type="Panel" parent="lobby" unique_id=1194589850]
|
||||||
|
|||||||
@ -1,7 +1,4 @@
|
|||||||
use godot::{
|
use godot::{classes::AudioStream, prelude::*};
|
||||||
classes::{AudioStream, CompressedTexture2D},
|
|
||||||
prelude::*,
|
|
||||||
};
|
|
||||||
|
|
||||||
use crate::team_resource::TeamResource;
|
use crate::team_resource::TeamResource;
|
||||||
|
|
||||||
@ -16,10 +13,6 @@ pub struct MapResource {
|
|||||||
pub teams: Array<Gd<TeamResource>>,
|
pub teams: Array<Gd<TeamResource>>,
|
||||||
#[export]
|
#[export]
|
||||||
pub music: Array<Gd<AudioStream>>,
|
pub music: Array<Gd<AudioStream>>,
|
||||||
#[export]
|
|
||||||
pub icon: Option<Gd<CompressedTexture2D>>,
|
|
||||||
#[export]
|
|
||||||
pub hidden: bool,
|
|
||||||
|
|
||||||
base: Base<Resource>,
|
base: Base<Resource>,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,21 +97,8 @@ impl IPanel for LobbyPanel {
|
|||||||
};
|
};
|
||||||
if let Some(map_selection) = &mut self.map_selection {
|
if let Some(map_selection) = &mut self.map_selection {
|
||||||
let prev_selection = game.bind().selected_map_idx as i32;
|
let prev_selection = game.bind().selected_map_idx as i32;
|
||||||
for (id, map) in game.bind().maps.iter_shared().enumerate() {
|
for map in game.bind().maps.iter_shared() {
|
||||||
if map.bind().hidden {
|
map_selection.add_item(&map.bind().name);
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if let Some(icon) = &map.bind().icon {
|
|
||||||
map_selection
|
|
||||||
.add_icon_item_ex(icon, &map.bind().name)
|
|
||||||
.id(id as i32)
|
|
||||||
.done();
|
|
||||||
} else {
|
|
||||||
map_selection
|
|
||||||
.add_item_ex(&map.bind().name)
|
|
||||||
.id(id as i32)
|
|
||||||
.done();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
map_selection.select(prev_selection);
|
map_selection.select(prev_selection);
|
||||||
if is_host {
|
if is_host {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user