private void Start() { id = PhotonNetwork.LocalPlayer.ActorNumber; cardgenerator = GameObject.Find("CardGenerator").GetComponent <CardGenerator>(); DecisionButton = GameObject.Find("DecisionButton"); PowerButton = GameObject.Find("PowerButton"); MagicButton = GameObject.Find("MagicButton"); SkillButton = GameObject.Find("SkillButton"); DecisionButton.GetComponent <Button>().onClick.AddListener(OnDecisionButton); PowerButton.GetComponent <Button>().onClick.AddListener(OnPowerButton); MagicButton.GetComponent <Button>().onClick.AddListener(OnMagicButton); SkillButton.GetComponent <Button>().onClick.AddListener(OnSkillButton); DecisionButton.SetActive(false); PowerButton.SetActive(false); MagicButton.SetActive(false); SkillButton.SetActive(false); attackmethods = GameObject.Find("Methods").GetComponent <AttackMethods>(); specialmethods = GameObject.Find("Methods").GetComponent <SpecialMethods>(); textcontroller = GameObject.Find("TextController").GetComponent <TextController>(); //Phase2Text = GameObject.Find("Phase2Text"); //Phase2Text.SetActive(false); phase = 1; if (id == 2) { //プレイヤー1に参加を伝える photonView.RPC(nameof(Login2Player), RpcTarget.All); } // gameObject.GetComponent<Text>().text }
private void TimeLine_Load(object sender, EventArgs e) { SetGeoCodedYearRange(); SetupMap(); DisplayLocationsForYear(labValue.Text); mh.CheckIfGeocodingNeeded(this, outputText); int Width = (int)Application.UserAppDataRegistry.GetValue("Timeline size - width", this.Width); int Height = (int)Application.UserAppDataRegistry.GetValue("Timeline size - height", this.Height); int Top = (int)Application.UserAppDataRegistry.GetValue("Timeline position - top", this.Top); int Left = (int)Application.UserAppDataRegistry.GetValue("Timeline position - left", this.Left); this.Width = Width; this.Height = Height; this.Top = Top; this.Left = Left; SpecialMethods.SetFonts(this); RefreshMap(); loading = false; }
void LifeLine_Load(object sender, EventArgs e) { int Width = (int)Application.UserAppDataRegistry.GetValue("Lifeline size - width", this.Width); int Height = (int)Application.UserAppDataRegistry.GetValue("Lifeline size - height", this.Height); int Top = (int)Application.UserAppDataRegistry.GetValue("Lifeline position - top", this.Top); int Left = (int)Application.UserAppDataRegistry.GetValue("Lifeline position - left", this.Left); this.Width = Width; this.Height = Height; this.Top = Top; this.Left = Left; isLoading = false; // only turn off building map if completely done initializing if (dgIndividuals.RowCount > 0) { // update map using first row as selected row BuildMap(); } mh.CheckIfGeocodingNeeded(this, outputText); SpecialMethods.SetFonts(this); }
void Places_Load(object sender, EventArgs e) { TreeNode[] nodes = TreeViewHandler.Instance.GetAllLocationsTreeNodes(tvPlaces.Font, false); tvPlaces.Nodes.AddRange(nodes); int Width = (int)Application.UserAppDataRegistry.GetValue("Places size - width", this.Width); int Height = (int)Application.UserAppDataRegistry.GetValue("Places size - height", this.Height); int Top = (int)Application.UserAppDataRegistry.GetValue("Places position - top", this.Top); int Left = (int)Application.UserAppDataRegistry.GetValue("Places position - left", this.Left); this.Width = Width; this.Height = Height; this.Top = Top; this.Left = Left; isloading = false; // only turn off building map if completely done initializing if (tvPlaces.Nodes.Count > 0) { // update map using first node as selected node tvPlaces.SelectedNode = tvPlaces.Nodes[0]; } mh.CheckIfGeocodingNeeded(this, outputText); Cursor = Cursors.Default; SpecialMethods.SetFonts(this); }
public void NextBiggerNumber_IntMinValue_ArgumentException() { Assert.ThrowsException <ArgumentException>(() => SpecialMethods.NextBiggerNumber(int.MinValue), "Argument must be a positive integer"); }
void Sources_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
private void Notes_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { SpecialMethods.VisitWebsite(e.Link.LinkData as string); }
void StatisticsForm_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
void Progress_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
void ColourCensus_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
partial void VisitLostCousinsWebsiteClicked(NSObject sender) { SpecialMethods.VisitWebsite("http://www.lostcousins.com/?ref=LC585149"); Analytics.TrackAction(Analytics.LostCousinsAction, Analytics.LCWebLinkEvent); }
partial void VisitLostCousinsForumClicked(NSObject sender) { SpecialMethods.VisitWebsite("http://forums.lc"); }
private void BingOSMap_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
public void NextBiggerNumber_1234321_1241233() { Assert.AreEqual(1241233, SpecialMethods.NextBiggerNumber(1234321)); }
void People_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
private void ColourBMD_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
partial void ViewOnlineGuides(NSObject sender) { Analytics.TrackAction(Analytics.MainFormAction, Analytics.OnlineGuideEvent); SpecialMethods.VisitWebsite("http://www.ftanalyzer.com/guides"); }
void LostCousinsReferral_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
partial void ReportIssue(NSObject sender) { UIHelpers.ShowMessage("Please note this is a early development version if you find a crashing bug please report it.\nOtherwise assume I'll get round to fixing things later.\nYou may find it more useful to raise issue at the Facebook User Group."); Analytics.TrackAction(Analytics.MainFormAction, Analytics.ReportIssueEvent); SpecialMethods.VisitWebsite("https://github.com/ShammyLevva/FTAnalyzer.Mac/issues"); }
void AboutBox1_Load(object sender, System.EventArgs e) => SpecialMethods.SetFonts(this);
partial void VisitFacebookUserGroup(NSObject sender) { SpecialMethods.VisitWebsite("https://www.facebook.com/groups/ftanalyzer"); Analytics.TrackAction(Analytics.MainFormAction, Analytics.FacebookUsersEvent); }
void EditLocation_Load(object sender, EventArgs e) { SpecialMethods.SetFonts(this); }
partial void VisitPrivacyPolicy(NSObject sender) { Analytics.TrackAction(Analytics.MainFormAction, Analytics.PrivacyEvent); SpecialMethods.VisitWebsite("http://www.ftanalyzer.com/privacy"); }
void MapIndividuals_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
partial void VisitWhatsNew(NSObject sender) { Analytics.TrackAction(Analytics.MainFormAction, Analytics.WhatsNewEvent); SpecialMethods.VisitWebsite("http://mac.ftanalyzer.com/Whats%20New%20in%20this%20Release"); }
void GoogleMap_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
void Chart_Load(object sender, System.EventArgs e) => SpecialMethods.SetFonts(this);
void MissingData_Load(object sender, System.EventArgs e) => SpecialMethods.SetFonts(this);
public void NextBiggerNumber_minus324_ArgumentException() { Assert.ThrowsException <ArgumentException>(() => SpecialMethods.NextBiggerNumber(-324), "Argument must be a positive integer"); }