Beispiel #1
0
    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
    }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
 public void NextBiggerNumber_IntMinValue_ArgumentException()
 {
     Assert.ThrowsException <ArgumentException>(() => SpecialMethods.NextBiggerNumber(int.MinValue),
                                                "Argument must be a positive integer");
 }
Beispiel #6
0
 void Sources_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #7
0
 private void Notes_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #8
0
 void LinkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     SpecialMethods.VisitWebsite(e.Link.LinkData as string);
 }
Beispiel #9
0
 void StatisticsForm_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #10
0
 void Progress_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #11
0
 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");
 }
Beispiel #14
0
 private void BingOSMap_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #15
0
 public void NextBiggerNumber_1234321_1241233()
 {
     Assert.AreEqual(1241233, SpecialMethods.NextBiggerNumber(1234321));
 }
Beispiel #16
0
 void People_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #17
0
 private void ColourBMD_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #18
0
 partial void ViewOnlineGuides(NSObject sender)
 {
     Analytics.TrackAction(Analytics.MainFormAction, Analytics.OnlineGuideEvent);
     SpecialMethods.VisitWebsite("http://www.ftanalyzer.com/guides");
 }
Beispiel #19
0
 void LostCousinsReferral_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #20
0
 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");
 }
Beispiel #21
0
 void AboutBox1_Load(object sender, System.EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #22
0
 partial void VisitFacebookUserGroup(NSObject sender)
 {
     SpecialMethods.VisitWebsite("https://www.facebook.com/groups/ftanalyzer");
     Analytics.TrackAction(Analytics.MainFormAction, Analytics.FacebookUsersEvent);
 }
Beispiel #23
0
 void EditLocation_Load(object sender, EventArgs e)
 {
     SpecialMethods.SetFonts(this);
 }
Beispiel #24
0
 partial void VisitPrivacyPolicy(NSObject sender)
 {
     Analytics.TrackAction(Analytics.MainFormAction, Analytics.PrivacyEvent);
     SpecialMethods.VisitWebsite("http://www.ftanalyzer.com/privacy");
 }
Beispiel #25
0
 void MapIndividuals_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #26
0
 partial void VisitWhatsNew(NSObject sender)
 {
     Analytics.TrackAction(Analytics.MainFormAction, Analytics.WhatsNewEvent);
     SpecialMethods.VisitWebsite("http://mac.ftanalyzer.com/Whats%20New%20in%20this%20Release");
 }
Beispiel #27
0
 void GoogleMap_Load(object sender, EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #28
0
 void Chart_Load(object sender, System.EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #29
0
 void MissingData_Load(object sender, System.EventArgs e) => SpecialMethods.SetFonts(this);
Beispiel #30
0
 public void NextBiggerNumber_minus324_ArgumentException()
 {
     Assert.ThrowsException <ArgumentException>(() => SpecialMethods.NextBiggerNumber(-324),
                                                "Argument must be a positive integer");
 }