示例#1
0
 private void CreateHideBlacklistedCheckbox()
 {
     hideBlacklistedCheckbox = AddUIComponent <CheckboxPanel>();
     hideBlacklistedCheckbox.Build(PanelType.None, new Layout(new Vector2(0.0f, 28.0f), true, LayoutDirection.Horizontal, LayoutStart.TopLeft, 10));
     hideBlacklistedCheckbox.Initialize(
         Persistence.HideBlacklisted,
         Translation.Instance.GetTranslation(TranslationID.LABEL_HIDEBLACKLISTED),
         Translation.Instance.GetTranslation(TranslationID.TOOLTIP_HIDEBLACKLISTED));
     hideBlacklistedCheckbox.EventCheckboxStateChanged += OnHideBlacklistedOptionChanged;
 }
示例#2
0
 private void CreateDisplayAtSelectedCheckbox()
 {
     displayAtSelectedCheckbox = AddUIComponent <CheckboxPanel>();
     displayAtSelectedCheckbox.Build(PanelType.None, new Layout(new Vector2(0.0f, 28.0f), true, LayoutDirection.Horizontal, LayoutStart.TopLeft, 10));
     displayAtSelectedCheckbox.Initialize(
         Persistence.DisplayAtSelected,
         Translation.Instance.GetTranslation(TranslationID.LABEL_DISPLAYATSELECTED),
         Translation.Instance.GetTranslation(TranslationID.TOOLTIP_DISPLAYATSELECTED));
     displayAtSelectedCheckbox.EventCheckboxStateChanged += OnDisplayAtSelectedOptionChanged;
 }
示例#3
0
 private void CreateActiveSelectionCheckbox()
 {
     activeSelectionCheckbox = AddUIComponent <CheckboxPanel>();
     activeSelectionCheckbox.Build(PanelType.None, new Layout(new Vector2(0.0f, 28.0f), true, LayoutDirection.Horizontal, LayoutStart.TopLeft, 10));
     activeSelectionCheckbox.Initialize(
         Persistence.SaveActiveSelectionGlobally,
         Translation.Instance.GetTranslation(TranslationID.LABEL_GLOBAL_SELECTION_DATA),
         Translation.Instance.GetTranslation(TranslationID.TOOLTIP_GLOBAL_SELECTION_DATA));
     activeSelectionCheckbox.EventCheckboxStateChanged += OnActiveSelectionOptionChanged;
 }