| | 1 | | using DCL; |
| | 2 | | using DCL.Controllers.HUD; |
| | 3 | | using MainScripts.DCL.Controllers.HUD.Profile; |
| | 4 | | using MainScripts.DCL.Controllers.HUD.SettingsPanelHUDDesktop.Scripts; |
| | 5 | |
|
| | 6 | | public class HUDDesktopFactory : HUDFactory |
| | 7 | | { |
| | 8 | | public override IHUD CreateHUD(HUDElementID hudElementId) |
| | 9 | | { |
| 0 | 10 | | IHUD hudElement = null; |
| | 11 | |
|
| | 12 | | switch (hudElementId) |
| | 13 | | { |
| | 14 | | case HUDElementID.NONE: |
| | 15 | | break; |
| | 16 | | case HUDElementID.SETTINGS_PANEL: |
| 0 | 17 | | hudElement = new SettingsPanelHUDControllerDesktop(); |
| 0 | 18 | | break; |
| | 19 | | case HUDElementID.PROFILE_HUD: |
| 0 | 20 | | hudElement = new ProfileHUDControllerDesktop(new UserProfileWebInterfaceBridge()); |
| 0 | 21 | | break; |
| | 22 | | case HUDElementID.MINIMAP: |
| 0 | 23 | | hudElement = new MinimapHUDControllerDesktop(MinimapMetadataController.i, new WebInterfaceHomeLocationCo |
| 0 | 24 | | break; |
| | 25 | | case HUDElementID.LOADING: |
| 0 | 26 | | hudElement = new LoadingHUDControllerDesktop(); |
| 0 | 27 | | break; |
| | 28 | | default: |
| 0 | 29 | | hudElement = base.CreateHUD(hudElementId); |
| | 30 | | break; |
| | 31 | | } |
| | 32 | |
|
| 0 | 33 | | return hudElement; |
| | 34 | | } |
| | 35 | | } |