Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cooperative Cuisine Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
0e89e702
Commit
0e89e702
authored
1 year ago
by
fheinrich
Browse files
Options
Downloads
Patches
Plain Diff
Sorted layouts in selection list
parent
fb060696
No related branches found
No related tags found
1 merge request
!54
Resolve "More maps"
Pipeline
#45906
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
overcooked_simulator/gui_2d_vis/overcooked_gui.py
+4
-9
4 additions, 9 deletions
overcooked_simulator/gui_2d_vis/overcooked_gui.py
with
4 additions
and
9 deletions
overcooked_simulator/gui_2d_vis/overcooked_gui.py
+
4
−
9
View file @
0e89e702
import
argparse
import
dataclasses
import
glob
import
json
import
logging
import
random
import
sys
from
enum
import
Enum
from
pathlib
import
Path
from
subprocess
import
Popen
import
numpy
as
np
...
...
@@ -357,16 +359,9 @@ class PyGameGUI:
self
.
layout_file_paths
=
{
str
(
p
.
name
):
p
for
p
in
(
ROOT_DIR
/
"
game_content
"
/
"
layouts
"
).
glob
(
"
*.layout
"
)
for
p
in
[
Path
(
f
)
for
f
in
sorted
(
(
ROOT_DIR
/
"
game_content
"
/
"
layouts
"
).
r
glob
(
"
*.layout
"
)
)]
}
self
.
layout_file_paths
.
update
(
{
str
(
p
.
name
):
p
for
p
in
(
ROOT_DIR
/
"
game_content
"
/
"
layouts
"
/
"
overcooked-1
"
).
glob
(
"
*.layout
"
)
}
)
assert
len
(
self
.
layout_file_paths
)
!=
0
,
"
No layout files.
"
dropdown_width
,
dropdown_height
=
200
,
40
self
.
layout_selection
=
pygame_gui
.
elements
.
UIDropDownMenu
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment