void Awake() { instance = this; entitySprite.sprite = null; description.text = ""; tempText.text = ""; condition.text = ""; nameLabel.text = ""; }
public ProfilePage() { InitializeComponent(); DataContext = TLContainer.Current.Resolve <ProfileViewModel, IProfileDelegate>(this); if (ApiInfo.CanAddContextRequestedEvent) { DescriptionLabel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(About_ContextRequested), true); DescriptionPanel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(Description_ContextRequested), true); } }
private async void StartAnimation() { // Waiting for the page to load await Task.Delay(200).ConfigureAwait(false); await Task.WhenAll( DescriptionPanel.TranslateTo(0, -15, 1000, Easing.CubicOut), DescriptionPanel.FadeTo(100, 1000, Easing.CubicIn), GithubButton.FadeTo(100, 1000, Easing.CubicIn) ).ConfigureAwait(false); }
public void SetDescriptionPanel(int ID) { if (CurItems [ID]) { DescriptionPanel.gameObject.SetActive(true); DescriptionPanel.GetChild(0).GetComponent <Text> ().text = CurItems [ID].Name; DescriptionPanel.GetChild(1).GetComponent <Text> ().text = "price: " + CurItems [ID].price + "\n" + (CurItems [ID].GetComponent <Weapon>() ? ("damage: " + CurItems [ID].GetComponent <Weapon>().damage + "\n") : "") + (CurItems [ID].GetComponent <Weapon>() ? ("attack speed: " + CurItems [ID].GetComponent <Weapon>().AttackSpeed + "\n") :"") + CurItems [ID].description; DescriptionPanel.transform.position = new Vector3(Input.mousePosition.x + DescriptionPanel.rect.width / 2, Input.mousePosition.y - DescriptionPanel.rect.height / 2, Input.mousePosition.z); } }
public SubmittedChangelistDlg(P4ScmProvider scm, bool readOnly = false) { PreferenceKey = "SubmittedChangelistDlg"; _scm = scm; InitializeComponent(); //this.slidingPanelContainer1.DlgParent = this; this.Icon = Images.submitted; if (readOnly) { ReadOnly = readOnly; RestrictAccessCB.Enabled = false; DescriptionTB.ReadOnly = true; BrowseJobsBtn.Enabled = false; BrowseJobsBtn.Visible = false; BrowseJobsBtn.Height = 0; AddJobBtn.Enabled = false; AddJobBtn.Visible = false; AddJobBtn.Height = 0; JobLbl.Visible = false; JobLbl.Height = 0; JobTB.Enabled = false; JobTB.Multiline = true; JobTB.Height = 0; CancelBtn.Enabled = false; CancelBtn.Visible = false; OkBtn.Location = CancelBtn.Location; SelectAllJobsCB.Enabled = false; SelectAllJobsCB.Visible = false; SelectAllJobsCB.Text = SelectAllJobsCB.Text.TrimStart(' '); JobsListLV.CheckBoxes = false; } JobIcon = new System.Windows.Forms.ImageList(this.components); // // JobIcon // JobIcon.Images.Add("jobs_icon", Images.jobs_icon); //JobsListLV.SmallImageList = JobIcon; CheckboxIcons = new System.Windows.Forms.ImageList(this.components); // // CheckboxIcons // CheckboxIcons.TransparentColor = System.Drawing.Color.Transparent; CheckboxIcons.Images.Add("noCheckBox.png", Images.noCheckBox); CheckboxIcons.Images.Add("CheckBox.png", Images.CheckBox); JobsListLV.SmallImageList = CheckboxIcons; FileIcon = new System.Windows.Forms.ImageList(this.components); // // FileIcon // FileIcon.Images.Add("portrait.png", Images.portrait); FileListLV.SmallImageList = FileIcon; //DetailsPanel.Collapsed = Preferences.LocalSettings.GetBool("DetailsPanel.Collapsed",false); DescriptionPanel.Collapsed = Preferences.LocalSettings.GetBool("DescriptionPanel.Collapsed", false); if (DescriptionPanel.Collapsed) { DescriptionPanel.LayoutPanel(); } FilesPanel.Collapsed = Preferences.LocalSettings.GetBool("FilesPanel.Collapsed", false); if (FilesPanel.Collapsed) { FilesPanel.LayoutPanel(); } JobsPanel.Collapsed = Preferences.LocalSettings.GetBool("JobsPanel.Collapsed", true); if (JobsPanel.Collapsed) { JobsPanel.LayoutPanel(); } slidingPanelContainer1.LayoutPanel(); slidingPanelContainer1.Refresh(); }