Exemple #1
0
    private void onLightingButton(IglooCustomizationButton customizationButton)
    {
        customizationButton.RemoveBreadcrumb();
        Service.Get <NotificationBreadcrumbController>().RemoveBreadcrumb(MenuBreadcrumbType);
        if (lastSelected.DefinitionId == customizationButton.DefinitionId)
        {
            return;
        }
        LightingDefinition key = inventoryCountPairs[customizationButton.Index - numberOfStaticButtons].Key;

        if (key != null)
        {
            if (sceneLayoutData != null)
            {
                sceneLayoutData.LightingId = key.Id;
                Service.Get <ICPSwrveService>().Action("igloo", "lighting_selection", key.InternalName);
            }
            lastSelected.SetSelected(isSelected: false);
            customizationButton.SetSelected(isSelected: true);
            lastSelected = customizationButton;
        }
    }