Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                WorkBoxTitle.Text = WorkBox.Title;

                string html = "<table class=\"wbf-view-audit-log\">";

                List <WBAuditLogEntry> auditLog = WorkBox.AuditLog;

                foreach (WBAuditLogEntry logEntry in auditLog)
                {
                    html += string.Format("<tr><td>{0}</td><td>{1}</td><td><b>{2}</b></td><td>{3}</td></tr>",
                                          logEntry.DateTimeAsString,
                                          logEntry.UserLoginName,
                                          logEntry.Title,
                                          logEntry.Comment);
                }

                html += "</table>";

                GeneratedAuditLogTable.Text = html;

                CloseButton.Focus();
            }
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (BottomConstraint != null)
            {
                BottomConstraint.Dispose();
                BottomConstraint = null;
            }

            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (CountriesTableView != null)
            {
                CountriesTableView.Dispose();
                CountriesTableView = null;
            }

            if (SearchTextField != null)
            {
                SearchTextField.Dispose();
                SearchTextField = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Пример #3
0
    public override async void UpdateBuildAndSaveBtns()
    {
        if (GameManager.Instance.GetGameState() != GameManager.GameStateEnum.SceneEditor)
        {
            return;
        }
        if (CurrentSubmenuOpened != LeftMenuSelection.Home)
        {
            return;
        }

        SaveButton.SetInteractivity(false, "Loading...");
        CloseButton.SetInteractivity(false, "Loading...");
        //WebsocketManager.Instance.CloseScene(true, true, CloseSceneCallback);
        if (SceneManager.Instance.SceneStarted)
        {
            WebsocketManager.Instance.StopScene(true, StopSceneCallback);
        }
        else
        {
            CloseButton.SetInteractivity(true);
        }

        if (!SceneManager.Instance.SceneChanged)
        {
            SaveButton.SetInteractivity(false, "There are no unsaved changes");
        }
        else
        {
            WebsocketManager.Instance.SaveScene(true, SaveSceneCallback);
        }
    }
Пример #4
0
        /// <summary>
        /// Paints the Ribbon on the specified device
        /// </summary>
        /// <param name="g">Device where to paint on</param>
        /// <param name="clip">Clip rectangle</param>
        private void PaintOn(Graphics g, Rectangle clip)
        {
            if (WinApi.IsWindows && Environment.OSVersion.Platform == PlatformID.Win32NT)
            {
                g.SmoothingMode     = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
                g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
            }

            //Caption Background
            Renderer.OnRenderRibbonBackground(new RibbonRenderEventArgs(this, g, clip));

            //Caption Bar
            Renderer.OnRenderRibbonCaptionBar(new RibbonRenderEventArgs(this, g, clip));

            //Caption Buttons
            if (CaptionButtonsVisible)
            {
                MinimizeButton.OnPaint(this, new RibbonElementPaintEventArgs(clip, g, RibbonElementSizeMode.Medium));
                MaximizeRestoreButton.OnPaint(this, new RibbonElementPaintEventArgs(clip, g, RibbonElementSizeMode.Medium));
                CloseButton.OnPaint(this, new RibbonElementPaintEventArgs(clip, g, RibbonElementSizeMode.Medium));
            }

            //Orb
            Renderer.OnRenderRibbonOrb(new RibbonRenderEventArgs(this, g, clip));

            //QuickAcess toolbar
            QuickAcessToolbar.OnPaint(this, new RibbonElementPaintEventArgs(clip, g, RibbonElementSizeMode.Compact));

            //Render Tabs
            foreach (RibbonTab tab in Tabs)
            {
                tab.OnPaint(this, new RibbonElementPaintEventArgs(tab.TabBounds, g, RibbonElementSizeMode.None, this));
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TitleLabel.Text = Resources.Startdate;
            CloseButton.SetTitle(Resources.Save, UIControlState.Normal);

            prepareDatePicker();

            var bindingSet = this.CreateBindingSet <SelectDateTimeViewController, SelectDateTimeViewModel>();

            //Dates
            DatePicker.MinimumDate = ViewModel.MinDate.ToNSDate();
            DatePicker.MaximumDate = ViewModel.MaxDate.ToNSDate();

            bindingSet.Bind(DatePicker)
            .For(v => v.BindDateTimeOffset())
            .To(vm => vm.CurrentDateTime);

            //Commands
            bindingSet.Bind(CloseButton).To(vm => vm.CloseCommand);
            bindingSet.Bind(SaveButton).To(vm => vm.SaveCommand);

            bindingSet.Apply();
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            WorkspaceTableView.RowHeight      = rowHeight;
            WorkspaceTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            WorkspaceTableView.RegisterNibForCellReuse(WorkspaceViewCell.Nib, WorkspaceViewCell.Identifier);

            var source = new CustomTableViewSource <Unit, SelectableWorkspaceViewModel>(
                WorkspaceViewCell.CellConfiguration(WorkspaceViewCell.Identifier),
                ViewModel.Workspaces
                );

            WorkspaceTableView.Source = source;

            TitleLabel.Text = ViewModel.Title;

            CloseButton.Rx()
            .BindAction(ViewModel.Close)
            .DisposedBy(DisposeBag);

            source.Rx().ModelSelected()
            .Subscribe(ViewModel.SelectWorkspace.Inputs)
            .DisposedBy(DisposeBag);
        }
Пример #7
0
        public override void Update(GameTime gameTime, GameState state)
        {
            if (Disposed)
            {
                return;
            }

            // get mouse state
            _previousMouseState = _currentMouseState;
            _currentMouseState  = Mouse.GetState();

            if (TopBarRectangle.Contains(_mouseRect))
            {
                if (_currentMouseState.LeftButton == ButtonState.Pressed)
                {
                    // get location offset of mouse states
                    var x = _mouseRect.X - _prevMouseRect.X;
                    var y = _mouseRect.Y - _prevMouseRect.Y;

                    Position             += new Vector2(x, y);
                    CloseButton.Position += new Vector2(x, y);
                }
            }

            CloseButton.Update(gameTime, state);
        }
Пример #8
0
        public AddPollAdapterViewHolder(View itemView, Action <AddPollAdapterClickEventArgs> clickListener, Action <AddPollAdapterClickEventArgs> closeClickListener) : base(itemView)
        {
            try
            {
                MainView = itemView;
                var circel = (TextView)MainView.FindViewById(Resource.Id.bgcolor);
                Number      = (TextView)MainView.FindViewById(Resource.Id.number);
                Input       = (EditText)MainView.FindViewById(Resource.Id.text_input);
                CloseButton = (Button)MainView.FindViewById(Resource.Id.Close);

                FontUtils.SetTextViewIcon(FontsIconFrameWork.IonIcons, circel, IonIconsFonts.Record);

                Methods.SetColorEditText(Input, AppSettings.SetTabDarkTheme ? Color.White : Color.Black);

                Typeface font = Typeface.CreateFromAsset(Application.Context.Resources.Assets, "ionicons.ttf");
                CloseButton.SetTypeface(font, TypefaceStyle.Normal);
                CloseButton.Text = IonIconsFonts.CloseRound;

                //Create an Event
                Input.AfterTextChanged += (sender, e) => clickListener(new AddPollAdapterClickEventArgs {
                    View = itemView, Position = AdapterPosition, Text = Input.Text, Input = Input
                });
                CloseButton.Click += (sender, e) => closeClickListener(new AddPollAdapterClickEventArgs {
                    View = itemView, Position = AdapterPosition, Text = Input.Text
                });
                //itemView.Click += (sender, e) => clickListener(new AddPollAdapterClickEventArgs { View = itemView, Position = AdapterPosition });
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            WorkspaceTableView.RowHeight      = rowHeight;
            WorkspaceTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            WorkspaceTableView.RegisterNibForCellReuse(WorkspaceViewCell.Nib, WorkspaceViewCell.Identifier);

            var source = new CustomTableViewSource <SectionModel <Unit, SelectableWorkspaceViewModel>, Unit, SelectableWorkspaceViewModel>(
                WorkspaceViewCell.CellConfiguration(WorkspaceViewCell.Identifier),
                ViewModel.Workspaces
                );

            WorkspaceTableView.Source = source;

            TitleLabel.Text = ViewModel.Title;

            CloseButton.Rx()
            .BindAction(ViewModel.Close)
            .DisposedBy(DisposeBag);

            source.Rx().ModelSelected()
            .Subscribe(ViewModel.SelectWorkspace.Inputs)
            .DisposedBy(DisposeBag);

            if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
            {
                PreferredContentSize = new CoreGraphics.CGSize(0, headerHeight + (ViewModel.Workspaces.Count * rowHeight));
            }
        }
Пример #10
0
        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            if (Disposed)
            {
                return;
            }

            var k = TextRows;
            var g = MaxTextDimensions();

            spriteBatch.Draw(_shadowTexture, destinationRectangle: ShadowRectangle, color: Color.White);
            spriteBatch.Draw(_texture, destinationRectangle: Rectangle, color: Color.White);
            spriteBatch.Draw(_texture, destinationRectangle: TopBarRectangle, color: Color.White);
            CloseButton.Draw(gameTime, spriteBatch);
            if (!string.IsNullOrEmpty(Text))
            {
                int i = 0;
                foreach (var row in TextRows)
                {
                    // calculate text position and sheit
                    var txt_pos = TextStartPosition;
                    txt_pos += new Vector2(0, i * _font.MeasureString(row).Y);

                    // middle of the text, betch
                    var txt_origin = new Vector2(_font.MeasureString(row).X / 2, _font.MeasureString(row).Y / 2);

                    var txt_scale = new Vector2(1, 1);

                    spriteBatch.DrawString(_font, row, txt_pos, TextColor, 0f, txt_origin, txt_scale,
                                           SpriteEffects.None, 1f);

                    i++;
                }
            }
        }
Пример #11
0
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (DatePicker != null)
            {
                DatePicker.Dispose();
                DatePicker = null;
            }

            if (SaveButton != null)
            {
                SaveButton.Dispose();
                SaveButton = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Пример #12
0
        public HiColorPicker() : base("HiColor Color Picker", "=========[HiColor Color Picker]=========".Length, 10)
        {
            Rainbow RainbowGraphic = new Rainbow();


            Label MegaLabel = new Label(this, "Color 1:                   Shade: ░▒▓\n\n\n" +
                                        "Color 2:", ConsoleColor.Gray, ConsoleColor.Black, 1, 2);
            Image Rainbow1 = new Image(this, RainbowGraphic, 10, 2);
            Image Rainbow2 = new Image(this, RainbowGraphic, 10, 5);

            Slider1  = new Slider(this, RainbowGraphic.GetWidth(), 10, 3, ConsoleColor.DarkGray, ConsoleColor.DarkBlue, ConsoleColor.Red);
            Slider2  = new Slider(this, RainbowGraphic.GetWidth(), 10, 6, ConsoleColor.DarkGray, ConsoleColor.DarkBlue, ConsoleColor.Red);
            Slider3  = new Slider(this, 3, 35, 3, ConsoleColor.DarkGray, ConsoleColor.DarkBlue, ConsoleColor.Red);
            OKButton = new FlaggedCloseButton(this, "[     OK     ]", ConsoleColor.DarkGray, ConsoleColor.White, ConsoleColor.DarkBlue, 3, 8);
            CloseButton Cancelbutton = new CloseButton(this, "[   CANCEL   ]", ConsoleColor.DarkGray, ConsoleColor.White, ConsoleColor.DarkBlue, 24, 8);

            WindowElement[] AddIt = { MegaLabel, Rainbow1, Rainbow2, Slider1, Slider2, Slider3, OKButton, Cancelbutton };
            AllElements.AddRange(AddIt);

            //Link elements
            Slider1.NextElement          = Slider2;
            Slider2.PreviousElement      = Slider1;
            Slider2.NextElement          = Slider3;
            Slider3.PreviousElement      = Slider2;
            Slider3.NextElement          = OKButton;
            OKButton.PreviousElement     = Slider3;
            OKButton.NextElement         = Cancelbutton;
            Cancelbutton.PreviousElement = OKButton;
            Cancelbutton.NextElement     = Slider1;
            Slider1.PreviousElement      = Cancelbutton;

            //Highlight elements
            HighlightedElement  = Slider1;
            Slider1.Highlighted = true;
        }
Пример #13
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            CloseButton.SetCommand(ViewModel.CloseCommand);
            DoneButton.SetCommand(ViewModel.DoneCommand);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TitleLabel.Text             = Resources.CountryOfResidence;
            SearchTextField.Placeholder = Resources.Search;

            CountriesTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            CountriesTableView.RegisterNibForCellReuse(CountryViewCell.Nib, CountryViewCell.Identifier);
            CountriesTableView.RowHeight = rowHeight;

            var source = new CustomTableViewSource <SectionModel <string, SelectableCountryViewModel>, string, SelectableCountryViewModel>(
                CountryViewCell.CellConfiguration(CountryViewCell.Identifier));

            CountriesTableView.Source = source;

            source.Rx().ModelSelected()
            .Subscribe(ViewModel.SelectCountry.Inputs)
            .DisposedBy(DisposeBag);

            ViewModel.Countries
            .Subscribe(CountriesTableView.Rx().ReloadItems(source))
            .DisposedBy(DisposeBag);

            CloseButton.Rx().Tap()
            .Subscribe(ViewModel.CloseWithDefaultResult)
            .DisposedBy(DisposeBag);

            SearchTextField.Rx().Text()
            .Subscribe(ViewModel.FilterText)
            .DisposedBy(DisposeBag);

            SearchTextField.BecomeFirstResponder();
        }
Пример #15
0
        private void _MakeButtonClose()
        {
            _closeButton = new Button();

            CloseButton.Anchor    = AnchorStyles.Right;
            CloseButton.CanSelect = false;
            CloseButton.Text      = "";
            if (ApplicationBehaviour.Resources != null && ApplicationBehaviour.Resources.Images.Close != null)
            {
                CloseButton.Image = ApplicationBehaviour.Resources.Images.Close;
            }
            else
            {
                CloseButton.Text = "X";
            }
            CloseButton.HoverColor       = System.Drawing.Color.FromArgb(252, 252, 252);
            CloseButton.BorderHoverColor = System.Drawing.Color.Transparent;
            CloseButton.Location         = new Point(Width - 32, 1);
            CloseButton.Name             = "buttonClose";
            CloseButton.BackColor        = System.Drawing.Color.FromArgb(238, 238, 242);
            CloseButton.BorderColor      = System.Drawing.Color.Transparent;
            CloseButton.Size             = new System.Drawing.Size(24, 16);
            CloseButton.ForeColor        = System.Drawing.Color.FromArgb(64, 64, 64);

            CloseButton.BringToFront();
            CloseButton.Click += (o, e) => { Close(); };

            Controls.Add(CloseButton);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TitleLabel.Text = Resources.Startdate;
            SaveButton.SetTitle(Resources.Save, UIControlState.Normal);

            prepareDatePicker();

            DatePicker.MinimumDate = ViewModel.MinDate.ToNSDate();
            DatePicker.MaximumDate = ViewModel.MaxDate.ToNSDate();

            DatePicker.Rx().Date()
            .Subscribe(ViewModel.CurrentDateTime.Accept)
            .DisposedBy(DisposeBag);

            ViewModel.CurrentDateTime
            .Subscribe(DatePicker.Rx().DateTimeObserver())
            .DisposedBy(DisposeBag);

            SaveButton.Rx()
            .BindAction(ViewModel.SaveCommand)
            .DisposedBy(DisposeBag);

            CloseButton.Rx()
            .BindAction(ViewModel.CloseCommand)
            .DisposedBy(DisposeBag);
        }
Пример #17
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TitleLabel.Text             = Resources.Clients;
            SearchTextField.Placeholder = Resources.AddFilterClients;

            SuggestionsTableView.RegisterNibForCellReuse(ClientViewCell.Nib, ClientViewCell.Identifier);
            SuggestionsTableView.RegisterNibForCellReuse(CreateClientViewCell.Nib, CreateClientViewCell.Identifier);
            SuggestionsTableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            SuggestionsTableView.Source         = tableViewSource;

            ViewModel.Clients
            .Subscribe(replaceClients)
            .DisposedBy(DisposeBag);

            CloseButton.Rx()
            .BindAction(ViewModel.Close)
            .DisposedBy(DisposeBag);

            SearchTextField.Rx().Text()
            .Subscribe(ViewModel.FilterText)
            .DisposedBy(DisposeBag);

            tableViewSource.ClientSelected
            .Subscribe(ViewModel.SelectClient.Inputs)
            .DisposedBy(DisposeBag);

            SearchTextField.BecomeFirstResponder();
        }
        protected override void FadeActive()
        {
            base.FadeActive();

            this.ResizeWidthTo(200, TRANSITION_LENGTH, Easing.OutQuint);
            CloseButton.FadeIn(TRANSITION_LENGTH, Easing.OutQuint);
        }
Пример #19
0
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (CoverShotButton != null)
            {
                CoverShotButton.Dispose();
                CoverShotButton = null;
            }

            if (InterviewButton != null)
            {
                InterviewButton.Dispose();
                InterviewButton = null;
            }

            if (NoCaptureModeButton != null)
            {
                NoCaptureModeButton.Dispose();
                NoCaptureModeButton = null;
            }
        }
Пример #20
0
        //Verifie sur le curseur est dans le pérmimètre du bouton fermer | Checks if cursor is in the perimeter of Close Button
        bool IsCursorOnCloseButton()
        {
            int loc_x = CloseButton.PointToClient(Cursor.Position).X;
            int loc_y = CloseButton.PointToClient(Cursor.Position).Y;

            return(CloseButtonParams[2] == 1 && loc_x > 0 && loc_x < CloseButton.Width && loc_y > 0 && loc_y < CloseButton.Height);
        }
        void ReleaseDesignerOutlets()
        {
            if (AcceptButton != null)
            {
                AcceptButton.Dispose();
                AcceptButton = null;
            }

            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (TextView != null)
            {
                TextView.Dispose();
                TextView = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Пример #22
0
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (SaveButton != null)
            {
                SaveButton.Dispose();
                SaveButton = null;
            }

            if (TagsTableView != null)
            {
                TagsTableView.Dispose();
                TagsTableView = null;
            }

            if (TextField != null)
            {
                TextField.Dispose();
                TextField = null;
            }
        }
Пример #23
0
        void ReleaseDesignerOutlets()
        {
            if (SuggestionsTableViewConstraint != null)
            {
                SuggestionsTableViewConstraint.Dispose();
                SuggestionsTableViewConstraint = null;
            }

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (SearchTextField != null)
            {
                SearchTextField.Dispose();
                SearchTextField = null;
            }

            if (SuggestionsTableView != null)
            {
                SuggestionsTableView.Dispose();
                SuggestionsTableView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

            if (ImageView != null)
            {
                ImageView.Dispose();
                ImageView = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (CloseButtonHeightConstraint != null)
            {
                CloseButtonHeightConstraint.Dispose();
                CloseButtonHeightConstraint = null;
            }

            if (CloseButtonWidthConstraint != null)
            {
                CloseButtonWidthConstraint.Dispose();
                CloseButtonWidthConstraint = null;
            }
        }
Пример #25
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);

            UpdateViewConstraints();
            CloseButton.UpdateState();
        }
Пример #26
0
        public override void WillAnimateRotation(UIInterfaceOrientation toInterfaceOrientation, double duration)
        {
            base.WillAnimateRotation(toInterfaceOrientation, duration);

            UpdateViewConstraints();
            CloseButton.UpdateState();
        }
Пример #27
0
 private void InitializeStyle()
 {
     CloseButton.SemiTransparentType = SemiTransparentType.Dark;
     CloseButton.VerticalIcon        = ThemeIcons.Close;
     CloseButton.LandscapeIcon       = ThemeIcons.CloseLandscape;
     CloseButton.UpdateState();
 }
 private void ElementValueModifyDialog_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Escape)
     {
         CloseButton.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
     }
 }
        protected override void FadeInactive()
        {
            base.FadeInactive();

            this.ResizeWidthTo(ChatOverlay.TAB_AREA_HEIGHT + 10, TRANSITION_LENGTH, Easing.OutQuint);
            CloseButton.FadeOut(TRANSITION_LENGTH, Easing.OutQuint);
        }
Пример #30
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            TitleLabel.Text = Resources.UpcomingEvent;

            TableView.ScrollEnabled   = false;
            TableView.TableFooterView = new UIView(CGRect.Empty);
            TableView.RegisterNibForCellReuse(UpcomingEventsOptionCell.Nib, UpcomingEventsOptionCell.Identifier);
            TableView.RowHeight = rowHeight;

            var source = new CustomTableViewSource <CalendarSectionModel, Unit, SelectableCalendarNotificationsOptionViewModel>(
                UpcomingEventsOptionCell.CellConfiguration(UpcomingEventsOptionCell.Identifier),
                ViewModel.AvailableOptions
                );

            source.Rx().ModelSelected()
            .Subscribe(ViewModel.SelectOption.Inputs)
            .DisposedBy(DisposeBag);

            TableView.Source = source;

            CloseButton.Rx()
            .BindAction(ViewModel.Close)
            .DisposedBy(DisposeBag);
        }
Пример #31
0
        public Dialog(int x, int y, int width, int height, bool hasCloseButton = false)
        {
            this.visible = true;
            this.padding = 1;  // How much extra space we leave around the text in tiles
            this.x = x;
            this.y = y;
            this.width = width;
            this.tileWidth = Convert.ToInt32(width / Settings.UI_TILE_SIZE) + padding;
            this.height = height;
            this.tileHeight = Convert.ToInt32(height / Settings.UI_TILE_SIZE) + padding;
            this.dialogSprite = new SpriteBatch(UI.getInstance().graphics);
            this.buttonCollection = new List<Button>();

            if (hasCloseButton)
            {
                CloseButton closeButton = new CloseButton(this);
                this.buttonCollection.Add(closeButton);

            }
        }
Пример #32
0
 void Start()
 {
     critterGen = FindObjectOfType<CritterGenerator>();
     textElements = this.gameObject.GetComponentsInChildren<Text>();
     closeButton = okButton.GetComponent<CloseButton>();
     uiControl = FindObjectOfType<UIController>();
     exPanel = uiControl.GetExpandedPanel();
 }
Пример #33
0
 public static MvcHtmlString UxCloseButton(this HtmlHelper helper, bool closeAlert = false, string clientId = null)
 {
     var close = new CloseButton(closeAlert, clientId);
     return helper.RenderUxControl(close);
 }