Skip to content
Snippets Groups Projects
Select Git revision
  • 632a651448fd969791205eee68d6b3c45141e7b3
  • 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

GraphicOptionsMenue_mobile.cs

Blame
  • GraphicOptionsMenue_mobile.cs 1.47 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 UIconfig;
    using static StreamingAssetLoader;
    
    
    public class GraphicOptionsMenue_mobile : MonoBehaviour
    {
    
        public GameObject cursorScaler_Slider;
        public GameObject cursorScaler_SliderT;
        
    
    
    
    
        /*
        public GameObject TAV_Slider;
        public GameObject TAvisibilityT;
        */
    
        private Color colChangeable = new Color(1f, 1f, 1f, 0.5f);
        private Color colChangeable2 = new Color(1f, 1f, 1f, 0.5f);
    
        //public GameObject TouchModeButton;
    
    
        //public GameObject back_GObj;
    
        void Start()
        {
    
        }
    
        private void Update()
        {
            cursorScaler_Slider.GetComponent<Slider>().value = (float)((UIconfig.cursorSize) / (UIconfig.cursorsize_default * UIconfig.cursorSize_SliderMax));
            mousePointerScaleBttn();
        }
    
    
    
        public void mousePointerScaleBttn()
        {
            UIconfig.cursorSize = cursorScaler_Slider.GetComponent<Slider>().value * UIconfig.cursorSize_SliderMax * UIconfig.cursorsize_default;
            double zwischenRechn = 100 * (UIconfig.cursorSize) / (UIconfig.cursorsize_default);
            cursorScaler_SliderT.GetComponent<Text>().text = "Size of MouseCursor is " + (int)(zwischenRechn) + "%";
            setMouse();
        }
    
        public void setMouse()
        {
            updateMouseCursor.setMouse();
            
        }
    
    }