public void SetRepresentedTab(CurrentTab tab) { _representedTab = tab; text = tab.ToString(); var textObj = StaticScripts.CreateTextObj(name + "_text", text, new Vector3(0.02f, 0.02f), new Vector3(0f, 0f, 0f), FontType.DiabloFont, 96, new Color32(131, 176, 209, 255), TextAlignment.Center, true, name, FontStyle.Bold); textObj.transform.localPosition = text.Length > 8 ? new Vector3(0.9f, 0.5f, 0f) : new Vector3(0.9f, 1.1f - (textObj.GetComponent<Renderer>().bounds.size.x / 2f), 0f); textObj.transform.localScale = new Vector2(1f, 1.5f); }
public void SetRepresentedTab(CurrentTab tab) { _representedTab = tab; text = tab.ToString(); var textObj = StaticScripts.CreateTextObj(name + "_text", text, new Vector3(0.02f, 0.02f), new Vector3(0f, 0f, 0f), FontType.DiabloFont, 96, new Color32(131, 176, 209, 255), TextAlignment.Center, true, name, FontStyle.Bold); textObj.transform.localPosition = text.Length > 8 ? new Vector3(0.9f, 0.5f, 0f) : new Vector3(0.9f, 1.1f - (textObj.GetComponent <Renderer>().bounds.size.x / 2f), 0f); textObj.transform.localScale = new Vector2(1f, 1.5f); }
/**<summary>Saves the settings.</summary>*/ public static void Save() { Settings.Default.TerrariaContentDirectory = TerrariaContentDirectory; Settings.Default.CurrentTab = CurrentTab.ToString(); Settings.Default.AutoCloseProgress = AutoCloseProgress; Settings.Default.AutoCloseDropProgress = AutoCloseDropProgress; Settings.Default.AutoCloseCmdProgress = AutoCloseCmdProgress; Settings.Default.CompressImages = CompressImages; Settings.Default.CompletionSound = CompletionSound; Settings.Default.PremultiplyAlpha = PremultiplyAlpha; Settings.Default.ExtractFolderInput = Extract.FolderInput; Settings.Default.ExtractFolderOutput = Extract.FolderOutput; Settings.Default.ExtractFileInput = Extract.FileInput; Settings.Default.ExtractFileOutput = Extract.FileOutput; Settings.Default.ConvertFolderInput = Convert.FolderInput; Settings.Default.ConvertFolderOutput = Convert.FolderOutput; Settings.Default.ConvertFileInput = Convert.FileInput; Settings.Default.ConvertFileOutput = Convert.FileOutput; Settings.Default.BackupFolderContent = Backup.FolderContent; Settings.Default.BackupFolderBackup = Backup.FolderBackup; Settings.Default.ScriptFile = Script.File; Settings.Default.ExtractMode = Extract.Mode.ToString(); Settings.Default.ConvertMode = Convert.Mode.ToString(); Settings.Default.ExtractAllowImages = Extract.AllowImages; Settings.Default.ExtractAllowSounds = Extract.AllowSounds; Settings.Default.ExtractAllowFonts = Extract.AllowFonts; Settings.Default.ExtractAllowWaveBank = Extract.AllowWaveBank; Settings.Default.ExtractUseInput = Extract.UseInput; Settings.Default.ConvertAllowImages = Convert.AllowImages; Settings.Default.ConvertAllowSounds = Convert.AllowSounds; Settings.Default.ConvertUseInput = Convert.UseInput; Settings.Default.Save(); }
protected void Page_Load(object sender, EventArgs e) { Master.Page.Title = TITLE_TEXT + "Campaign Dashboard"; //RadAjaxManager ram = (RadAjaxManager)this.Master.FindControl("RadAjaxManager1"); //RadAjaxLoadingPanel alp = (RadAjaxLoadingPanel)this.Master.FindControl("AjaxLoadingPanel1"); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, rgCampaignHistory, alp); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, rgCampaignHistory); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, tsCampaignDetails); //ram.AjaxSettings.AddAjaxSetting(rgCampaignHistory, mpCampaignDetails); //ram.AjaxSettings.AddAjaxSetting(tsCampaignDetails, tsCampaignDetails); //ram.AjaxSettings.AddAjaxSetting(tsCampaignDetails, mpCampaignDetails); if (!IsPostBack) { CurrentCampaignID = -1; CurrentTab = 0; CurrentOverView = null; CurrentTotals = null; LoadCampaigns(true); tsCampaignDetails.SelectedIndex = CurrentTab; mpCampaignDetails.PageViews[0].Selected = true; LoadDetailsByTab(CurrentTab.ToString(), true); } }