Example #1
0
        public void Reload()
        {
            DeleteChildren(true);

            _title = Add.TranslationLabel(new TranslationData(), "title");

            OnCreateHeader();

            Add.ButtonWithIcon(null, "close", "closeButton", () =>
            {
                OnClose?.Invoke(this);
            });
        }
Example #2
0
        public Hint(TranslationData translationData)
        {
            AddClass("centered-vertical-75");
            AddClass("background-color-primary");
            AddClass("rounded");
            AddClass("text-color-info");
            AddClass("text-shadow");

            _label = Add.TranslationLabel(translationData);
            _label.Style.Padding = 10;

            Style.ZIndex = 1;

            this.Enabled(false);
        }
Example #3
0
        private void AddGlyphEntry(GlyphHintData glyphHintData)
        {
            Panel panel = Add.Panel();

            panel.AddClass("text-color-info");
            panel.AddClass("text-shadow");

            for (int i = 0; i < glyphHintData.InputButtons.Count; i++)
            {
                panel.AddChild(new BindingKeyImage(glyphHintData.InputButtons[i]));

                if (i != glyphHintData.InputButtons.Count - 1)
                {
                    Label label = panel.Add.Label(" + ", "text-color-info");
                    label.Style.PaddingTop  = 10;
                    label.Style.PaddingLeft = 5;
                }
            }

            TranslationLabel translationLabel = panel.Add.TranslationLabel(glyphHintData.TranslationData);

            translationLabel.Style.Padding     = 10;
            translationLabel.Style.PaddingLeft = 15;
        }