Skip to content

Commit

Permalink
Merge remote-tracking branch 'deltav/master' into upstream-ops
Browse files Browse the repository at this point in the history
# Conflicts:
#	Resources/ConfigPresets/DeltaV/deltav.toml
#	Resources/ConfigPresets/DeltaV/periapsis.toml
  • Loading branch information
MilonPL committed Oct 4, 2024
2 parents 11a9bec + b32635b commit d79cd0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ public DepartmentWhitelistPanel(DepartmentPrototype department, IPrototypeManage
RobustXamlLoader.Load(this);

var allWhitelisted = true;
var grey = Color.FromHex("#ccc");
foreach (var id in department.Roles)
{
var thisJob = id; // closure capturing funny
var button = new CheckBox();
button.Text = proto.Index(id).LocalizedName;
if (!proto.Index(id).Whitelisted)
button.Modulate = grey; // Let admins know whitelisting this job is only for futureproofing.
button.Pressed = whitelists.Contains(id);
button.OnPressed += _ => OnSetJob?.Invoke(thisJob, button.Pressed);
JobsContainer.AddChild(button);
Expand Down
2 changes: 1 addition & 1 deletion RobustToolbox
Submodule RobustToolbox updated 205 files

0 comments on commit d79cd0f

Please sign in to comment.