Skip to content
Snippets Groups Projects
Select Git revision
  • b1f7a76fdcc9ea087045f08a693e73393a96fb85
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

SaveNetwAddr_mobile.cs

Blame
  • SaveNetwAddr_mobile.cs 5.69 KiB
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEngine.UI; //andr
    using UnityEngine.SceneManagement;
    using System.IO; //
    using UnityEngine.Video;//streaming
    using UnityEngine.Networking;
    using static CommunicationEvents;
    using static UIconfig;
    using static StreamingAssetLoader;
    using static CheckServer;
    
    public class SaveNetwAddr_mobile : MonoBehaviour
    {
    
        public GameObject SaveSlot1_B_GObj;
        public GameObject SaveSlot2_B_GObj;
        public GameObject SaveSlot3_B_GObj;
    
        private Color32 firstColB;
        private float transCol;
        private ColorBlock tempColB;
    
    
        void Start()
        {
            Update();
        }
    
        private void Update()
        {
    
    
            UpdateUI_3_f();
            UpdateUI_4_f();
    
            UpdateUI_5_f();
        }
    
    
    
    
    
        void UpdateUI_3_f()
        {
            //------------------------------------------------------------------------
            tempColB = SaveSlot1_B_GObj.GetComponent<Button>().colors;
            tempColB.pressedColor = colPressed;
            tempColB.selectedColor = colSelect;
            if (CommunicationEvents.ServerRunningA[3] == 0)
            {
                tempColB.normalColor = colOffline;
                if (string.IsNullOrEmpty(CommunicationEvents.IPslot1))// || CommunicationEvents.IPslot1.Length < 1)
                {
                    SaveSlot1_B_GObj.GetComponentInChildren<Text>().text = "OVERWRITE: \n< empty >";
                }
                else
                {
    
                    SaveSlot1_B_GObj.GetComponentInChildren<Text>().text = "OVERWRITE: \nServer " + CommunicationEvents.IPslot1 + " (Offline)";
                }
            }
            else
            {
                if (CommunicationEvents.ServerRunningA[3] == 2)
                {
                    tempColB.normalColor = colOnline;
                    SaveSlot1_B_GObj.GetComponentInChildren<Text>().text = "OVERWRITE: \nServer " + CommunicationEvents.IPslot1 + " (Online)";
                }