public void ReInit(UplinkItem assignedItem) { itemPage = MasterTab.GetComponent <GUI_PDA>().uplinkPage.itemPage; item = assignedItem; itemName.SetValueServer(item.Name);; itemCost.SetValueServer(item.Cost.ToString()); }
public void AddToQueue() { if (ExoFabMasterTab == null) { MasterTab.GetComponent <GUI_ExosuitFabricator>().OnProductAddClicked.Invoke(Product); } else { ExoFabMasterTab?.OnProductAddClicked.Invoke(Product); } }
public void RemoveFromQueue() { if (ExoFabMasterTab == null) { MasterTab.GetComponent <GUI_Autolathe>().OnRemoveProductClicked.Invoke(NumberInQueue); } else { ExoFabMasterTab?.OnRemoveProductClicked.Invoke(NumberInQueue); } }
public void BackwardsInQueue() { if (ExoFabMasterTab == null) { MasterTab.GetComponent <GUI_Autolathe>().OnDownQueueClicked.Invoke(NumberInQueue); } else { ExoFabMasterTab?.OnDownQueueClicked.Invoke(NumberInQueue); } }
public void AddToQueue() { if (AutolatheMasterTab == null) { MasterTab.GetComponent <GUI_Autolathe>().OnProductAddClicked.Invoke(Product); } else { AutolatheMasterTab?.OnProductAddClicked.Invoke(Product); } }
public void SelectItem() { if (pdaMasterTab == null) { MasterTab.GetComponent <GUI_PDA>().OnItemClickedEvent.Invoke(item); } else { pdaMasterTab.OnItemClickedEvent.Invoke(item); } }
public void OpenCategory() { if (autolatheMasterTab == null) { MasterTab.GetComponent <GUI_Autolathe>().OnCategoryClicked.Invoke(ExoFabProducts); } else { autolatheMasterTab?.OnCategoryClicked.Invoke(ExoFabProducts); } }
public void ForwardInQueue() { if (ExoFabMasterTab == null) { MasterTab.GetComponent <GUI_ExosuitFabricator>().OnUpQueueClicked.Invoke(NumberInQueue); } else { ExoFabMasterTab?.OnUpQueueClicked.Invoke(NumberInQueue); } }
/// Send update to observers. protected void UpdatePeepers() { if (gameObject.activeInHierarchy) { UpdatePeepersLogic(); } else { // Logger.LogTraceFormat( "'{0}': didn't update peepers because gameObject is inactive (another page?)", Category.NetUI, name ); MasterTab.ValidatePeepers(); } }
public TabRegion DefineProfileSettingsTabs() { var profileTabs = new TabRegion(RegionNames.ProfileTabContentRegion); profileTabs.Add(new SimpleTab <SaveTab, SaveTabViewModel>(RegionNames.SaveTabContentRegion, HelpTopic.ProfileSave)); // TODO define proper help topic profileTabs.Add(new MultiTab <ConvertTabViewModel>(RegionNames.ConvertTabContentRegion, HelpTopic.ProfileSave, typeof(OutputFormatTab), typeof(ConvertPdfView), typeof(ConvertJpgView), typeof(ConvertPngView), typeof(ConvertTiffView), typeof(ConvertTextView))); profileTabs.Add(new SimpleTab <MetadataTab, MetadataViewModel>(RegionNames.MetadataTabContentRegion, HelpTopic.ProfileMetadata)); var modifyTab = new MasterTab <ModifyMasterTabViewModel>(RegionNames.ModifyMasterTabItemsRegion, RegionNames.ModifyMasterTabContentRegion); modifyTab.AddSubTab(new SubTab <CoverUserControl, ProfileModifyTranslation>(t => t.Cover, profile => profile.CoverPage)); modifyTab.AddSubTab(new SubTab <BackgroundUserControl, ProfileModifyTranslation>(t => t.Background, profile => profile.BackgroundPage)); modifyTab.AddSubTab(new SubTab <AttachmentUserControl, ProfileModifyTranslation>(t => t.Attachment, profile => profile.AttachmentPage)); modifyTab.AddSubTab(new SubTab <StampUserControl, ProfileModifyTranslation>(t => t.Stamp, profile => profile.Stamping)); profileTabs.Add(modifyTab); var sendTab = new MasterTab <SendMasterTabViewModel>(RegionNames.SendMasterTabItemsRegion, RegionNames.SendMasterTabContentRegion); sendTab.AddSubTab(new SubTab <FTPActionUserControl, ProfileSendSubTabTranslation>(t => t.Ftp, profile => profile.Ftp)); sendTab.AddSubTab(new SubTab <MailClientUserControl, MailClientTabTranslation>(t => t.Email, profile => profile.EmailClientSettings)); sendTab.AddSubTab(new SubTab <HttpActionUserControl, HttpTranslation>(t => t.HttpSubTabTitle, profile => profile.HttpSettings)); sendTab.AddSubTab(new SubTab <SmtpActionUserControl, SmtpTranslation>(t => t.SmtpSubTabTitle, profile => profile.EmailSmtpSettings)); sendTab.AddSubTab(new SubTab <DropboxUserControl, DropboxTranslation>(t => t.Dropbox, profile => profile.DropboxSettings)); sendTab.AddSubTab(new SubTab <PrintUserControl, PrintTabTranslation>(t => t.Print, profile => profile.Printing)); profileTabs.Add(sendTab); var secureTab = new MasterTab <SecureMasterTabViewModel>(RegionNames.SecureMasterTabItemsRegion, RegionNames.SecureMasterTabContentRegion); secureTab.AddSubTab(new SubTab <EncryptUserControl, ProfileSecureTranslation>(t => t.Encryption, profile => profile.PdfSettings.Security)); secureTab.AddSubTab(new SubTab <SignUserControl, ProfileSecureTranslation>(t => t.Signature, profile => profile.PdfSettings.Signature)); profileTabs.Add(secureTab); var advancedTab = new MasterTab <AdvancedMasterTabViewModel>(RegionNames.AdvancedMasterTabItemsRegion, RegionNames.AdvancedMasterTabContentRegion); advancedTab.AddSubTab(new SubTab <ScriptUserControl, ProfileAdvancedTranslation>(t => t.Script, profile => profile.Scripting)); advancedTab.AddSubTab(new SubTab <UserTokenUserControl, ProfileAdvancedTranslation>(t => t.UserToken, profile => profile.UserTokens)); profileTabs.Add(advancedTab); ModifyProfileSettingsTabs(profileTabs); return(profileTabs); }
public ProfileSettingsTabs() : base(RegionNames.ProfileTabContentRegion) { Add(new SimpleTab <SaveView, SaveViewModel>(RegionNames.SaveTabContentRegion, HelpTopic.ProfileSave)); Add(new MultiTab <ConvertTabViewModel>(RegionNames.ConvertTabContentRegion, HelpTopic.OutputFormat, typeof(OutputFormatTab), typeof(ConvertPdfView), typeof(ConvertJpgView), typeof(ConvertPngView), typeof(ConvertTiffView), typeof(ConvertTextView))); Add(new SimpleTab <MetadataView, MetadataViewModel>(RegionNames.MetadataTabContentRegion, HelpTopic.ProfileMetadata)); var modifyTab = new MasterTab <ModifyMasterTabViewModel>(RegionNames.ModifyMasterTabItemsRegion, RegionNames.ModifyMasterTabContentRegion); modifyTab.AddSubTab(new SubTab <CoverUserControl, ProfileModifyTranslation>(t => t.Cover, p => p.CoverPage)); modifyTab.AddSubTab(new SubTab <BackgroundUserControl, ProfileModifyTranslation>(t => t.Background, p => p.BackgroundPage)); modifyTab.AddSubTab(new SubTab <WatermarkView, ProfileModifyTranslation>(t => t.Watermark, p => p.Watermark)); modifyTab.AddSubTab(new SubTab <AttachmentUserControl, ProfileModifyTranslation>(t => t.Attachment, p => p.AttachmentPage)); modifyTab.AddSubTab(new SubTab <StampUserControl, ProfileModifyTranslation>(t => t.Stamp, p => p.Stamping)); Add(modifyTab); var sendTab = new MasterTab <SendMasterTabViewModel>(RegionNames.SendMasterTabItemsRegion, RegionNames.SendMasterTabContentRegion); sendTab.AddSubTab(new SubTab <FTPActionUserControl, ProfileSendSubTabTranslation>(t => t.Ftp, p => p.Ftp)); sendTab.AddSubTab(new SubTab <MailClientUserControl, MailTranslation>(t => t.Email, p => p.EmailClientSettings)); sendTab.AddSubTab(new SubTab <HttpActionUserControl, HttpTranslation>(t => t.HttpSubTabTitle, p => p.HttpSettings)); sendTab.AddSubTab(new SubTab <SmtpActionUserControl, MailTranslation>(t => t.SmtpSubTabTitle, p => p.EmailSmtpSettings)); sendTab.AddSubTab(new SubTab <DropboxUserControl, DropboxTranslation>(t => t.Dropbox, p => p.DropboxSettings)); sendTab.AddSubTab(new SubTab <PrintUserControl, PrintTabTranslation>(t => t.Print, p => p.Printing)); Add(sendTab); var secureTab = new MasterTab <SecureMasterTabViewModel>(RegionNames.SecureMasterTabItemsRegion, RegionNames.SecureMasterTabContentRegion); secureTab.AddSubTab(new SubTab <EncryptUserControl, ProfileSecureTranslation>(t => t.Encryption, p => p.PdfSettings.Security, p => p.HasNotSupportedEncryption())); secureTab.AddSubTab(new SubTab <SignatureUserControl, ProfileSecureTranslation>(t => t.Signature, p => p.PdfSettings.Signature, p => p.HasNotSupportedSignature())); Add(secureTab); var advancedTab = new MasterTab <AdvancedMasterTabViewModel>(RegionNames.AdvancedMasterTabItemsRegion, RegionNames.AdvancedMasterTabContentRegion); advancedTab.AddSubTab(new SubTab <ScriptUserControl, ProfileAdvancedTranslation>(t => t.Script, p => p.Scripting)); advancedTab.AddSubTab(new SubTab <ForwardToFurtherProfileView, ProfileAdvancedTranslation>(t => t.Forward, p => p.ForwardToFurtherProfile)); advancedTab.AddSubTab(new SubTab <UserTokenUserControl, ProfileAdvancedTranslation>(t => t.UserToken, p => p.UserTokens)); advancedTab.AddSubTab(new SubTab <OpenViewerActionUserControl, OpenViewerActionTranslation>(t => t.OpenFileActionTitle, p => p.OpenViewer)); Add(advancedTab); }
public void ReInit(UplinkCategory assignedCategory) { categoryPage = MasterTab.GetComponent <GUI_PDA>().uplinkPage.categoryPage; category = assignedCategory; categoryName.SetValueServer(category.CategoryName); }
private void Start() { pdaMasterTab = MasterTab.GetComponent <GUI_PDA>(); }
public void ReInit(UplinkCatagories assignedCategory) { mainTab = MasterTab.GetComponent <GUI_PDA>(); category = assignedCategory; categoryName.SetValueServer(category.CategoryName); }