private void TabControlOnLoaded(object sender, RoutedEventArgs e) { var scrollLeft = VisualElementHelper.FindName <ButtonBase>("LeftScrollButtonElement", TabControl); var scrollRight = VisualElementHelper.FindName <ButtonBase>("RightScrollButtonElement", TabControl); var dropDown = VisualElementHelper.FindName <ToggleButton>("DropDownButtonElement", TabControl); if (scrollLeft != null && scrollLeft is RepeatButton) { ToolTipService.SetToolTip(scrollLeft, UIResources.Resources.BookingControl_Tooltip_Tabs); } if (scrollRight != null && scrollRight is RepeatButton) { ToolTipService.SetToolTip(scrollRight, UIResources.Resources.BookingControl_Tooltip_Tabs); } if (dropDown != null && dropDown is ToggleButton) { ToolTipService.SetToolTip(dropDown, UIResources.Resources.Tabs_Tooltip_SeeAll); } }
private void fillFromSource() { _mapEntities.Clear(); // fill in walls foreach (IWallEntity wall in _sourceFloor.Walls) { _mapEntities.Add(new WallElement(wall)); foreach (IDoorEntity door in wall.Doors) { _mapEntities.Add(VisualElementHelper.CreateFromMapEntity(door)); // Create visual door } foreach (IDoorEntity door in wall.Windows) { _mapEntities.Add(null); //TODO: Create visual window } } // add other entities foreach (IMapEntity entity in _sourceFloor.Entities) { _mapEntities.Add(VisualElementHelper.CreateFromMapEntity(entity)); } }
public void Show(string text, Exception exception) { m_ParentVisual.Clear(); ExceptionHelper.AddExceptionVisual(m_ParentVisual, text, exception.Message); VisualElementHelper.SetDisplayStyle(m_CloseButton, DisplayStyle.Flex); }
static void SetupStyleSheets(VisualElement parentVisual) { VisualElementHelper.AddStyleSheetFromPath(parentVisual, UssPath.Window); VisualElementHelper.AddStyleSheetFromPath(parentVisual, EditorGUIUtility.isProSkin ? UssPath.DarkTheme : UssPath.LightTheme); }
void ShowExceptionVisual(CoppaCompliance coppaCompliance, Exception exception) { HadException = true; VisualElementHelper.SetDisplayStyle(m_CoppaContainer, DisplayStyle.None); m_ExceptionVisual?.Show(k_ExceptionMessage, exception); }
void ShowUserRequest() { VisualElementHelper.SetDisplayStyle(m_Separator, DisplayStyle.Flex); m_UserRequestVisual.Show(); }
void SetupSeparator() { m_Separator = m_ParentVisual?.Q(className: ServiceActivationPopupVisual.UxmlClassNames.Separator); VisualElementHelper.SetDisplayStyle(m_Separator, DisplayStyle.None); }
void ShowExceptionVisual(Exception exception) { HadException = true; VisualElementHelper.SetDisplayStyle(m_ProjectBindContainer, DisplayStyle.None); m_ExceptionVisual?.Show(k_ExceptionMessage, exception); }
void SetupButton(VisualElement buttonsContainer) { m_NoPermissionButton = buttonsContainer.Q <Button>(className: ServiceActivationPopupVisual.UxmlClassNames.ConfirmationButton); VisualElementHelper.SetDisplayStyle(m_NoPermissionButton, DisplayStyle.None); }