Respawn shuttle transport duration can be adjusted or set to unlimited (= shuttle won't leave after spawning), subs with the HideInMenus tag aren't shown in menus, respawn info msgs are shown to all players

This commit is contained in:
Regalis
2016-08-08 23:37:11 +03:00
parent d4338580c7
commit 70dd90f0f8
8 changed files with 64 additions and 49 deletions

View File

@@ -10,7 +10,7 @@ namespace Barotrauma
public class GUIDropDown : GUIComponent
{
public delegate bool OnSelectedHandler(GUIComponent selected);
public delegate bool OnSelectedHandler(GUIComponent selected, object obj = null);
public OnSelectedHandler OnSelected;
private GUIButton button;
@@ -126,7 +126,7 @@ namespace Barotrauma
Dropped = false;
if (OnSelected != null) OnSelected(component);
if (OnSelected != null) OnSelected(component, component.UserData);
return true;
}