예제 #1
0
 // Token: 0x0600034B RID: 843 RVA: 0x0001B694 File Offset: 0x00019894
 public override void UpdateUI(UIParams uParams)
 {
     this.uiParams    = uParams;
     this.titleWidth  = GUILayout.Width((float)this.uiParams.fontSize * 20f);
     this.titleHeight = GUILayout.Height(this.uiParams.titleBarRect.height);
     this.viewHeight  = this.uiParams.winRect.height - (float)this.uiParams.unitHeight - (float)this.uiParams.margin * 2f - this.uiParams.titleBarRect.height;
 }
 public static void Init(UIParams uiparams)
 {
     if (uiParams == null)
     {
         uiParams = uiparams;
         uiParams.Add(updateUI);
     }
 }
        public override void UpdateUI(UIParams uParams)
        {
            uiParams    = uParams;
            titleWidth  = GUILayout.Width(uiParams.fontSize * 20f);
            titleHeight = GUILayout.Height(uiParams.titleBarRect.height);

            viewHeight = uiParams.winRect.height - uiParams.unitHeight - uiParams.margin * 2f - uiParams.titleBarRect.height;
        }
 // Token: 0x0600033F RID: 831 RVA: 0x0001AAFB File Offset: 0x00018CFB
 public static void Init(UIParams uiparams)
 {
     if (ACCMaterialsView.uiParams != null)
     {
         return;
     }
     ACCMaterialsView.uiParams = uiparams;
     ACCMaterialsView.uiParams.Add(ACCMaterialsView.updateUI);
 }
예제 #5
0
        public static void Init(UIParams uiparams)
        {
            if (uiParams != null)
            {
                return;
            }

            uiParams = uiparams;
            uiParams.Add(updateUI);
        }
예제 #6
0
 // Token: 0x06000362 RID: 866 RVA: 0x0001E3C9 File Offset: 0x0001C5C9
 public static void Init(UIParams uiparams)
 {
     TextureModifier.uiParams = uiparams;
     if (ACCTexturesView.uiParams != null)
     {
         return;
     }
     ACCTexturesView.uiParams = uiparams;
     ACCTexturesView.uiParams.Add(ACCTexturesView.updateUI);
     ACCTexturesView.InitUIParams(uiparams);
 }
예제 #7
0
        public static void Init(UIParams uiparams)
        {
            TextureModifier.uiParams = uiparams;
            if (uiParams == null)
            {
                uiParams = uiparams;
                uiParams.Add(updateUI);

                InitUIParams(uiparams);
            }
        }
예제 #8
0
        // Token: 0x06000338 RID: 824 RVA: 0x0001A304 File Offset: 0x00018504
        public override void UpdateUI(UIParams uParams)
        {
            this.uiParams    = uParams;
            this.titleWidth  = GUILayout.Width((float)this.uiParams.fontSize * 20f);
            this.titleHeight = GUILayout.Height(this.uiParams.titleBarRect.height);
            float num = this.uiParams.colorRect.width - 30f;

            this.toggleWidth = GUILayout.Width(num * 0.4f);
            this.otherWidth  = GUILayout.Width(num * 0.6f);
            this.baseHeight  = this.uiParams.winRect.height - (float)this.uiParams.itemHeight * 3f - this.uiParams.titleBarRect.height;
        }
        public override void UpdateUI(UIParams uParams)
        {
            uiParams    = uParams;
            titleWidth  = GUILayout.Width(uiParams.fontSize * 20f);
            titleHeight = GUILayout.Height(uiParams.titleBarRect.height);

            var width = uiParams.colorRect.width - 30;

            toggleWidth = GUILayout.Width(width * 0.4f);
            otherWidth  = GUILayout.Width(width * 0.6f);
            baseHeight  = uiParams.winRect.height - uiParams.itemHeight * 3f - uiParams.titleBarRect.height;
        }
예제 #10
0
        // Token: 0x06000364 RID: 868 RVA: 0x0001E418 File Offset: 0x0001C618
        private static void InitUIParams(UIParams uiparam)
        {
            ACCTexturesView.inboxStyle.normal.background = new Texture2D(1, 1);
            Color color = new Color(0.3f, 0.3f, 0.3f, 0.3f);

            Color[] pixels = ACCTexturesView.inboxStyle.normal.background.GetPixels();
            for (int i = 0; i < pixels.Length; i++)
            {
                pixels[i] = color;
            }
            ACCTexturesView.inboxStyle.normal.background.SetPixels(pixels);
            ACCTexturesView.inboxStyle.normal.background.Apply();
            ACCTexturesView.inboxStyle.padding.left = (ACCTexturesView.inboxStyle.padding.right = 2);
        }
예제 #11
0
        // Token: 0x06000337 RID: 823 RVA: 0x0001A258 File Offset: 0x00018458
        public ACCBoneSlotView(UIParams uiParams, SliderHelper sliderHelper)
        {
            this.uiParams     = uiParams;
            this.boneRenderer = new CustomBoneRenderer();
            this.sliderHelper = sliderHelper;
            this.picker       = new ColorPicker(ColorPresetManager.Instance)
            {
                ColorTex = new Texture2D(32, uiParams.itemHeight, TextureFormat.RGB24, false)
            };
            Color white = Color.white;

            this.picker.SetTexColor(ref white);
            this.slotNames = this.CreateSlotNames();
        }
예제 #12
0
        private static void InitUIParams(UIParams uiparam)
        {
            // 背景設定
            inboxStyle.normal.background = new Texture2D(1, 1);
            var color      = new Color(0.3f, 0.3f, 0.3f, 0.3f);
            var colorArray = inboxStyle.normal.background.GetPixels();

            for (int i = 0; i < colorArray.Length; i++)
            {
                colorArray[i] = color;
            }
            inboxStyle.normal.background.SetPixels(colorArray);
            inboxStyle.normal.background.Apply();
            inboxStyle.padding.left = inboxStyle.padding.right = 2;
        }
예제 #13
0
 public ACCSaveMenuView(UIParams up)
 {
     Init(up);
 }
예제 #14
0
 private static void InitUIParams(UIParams uiparam)
 {
 }
예제 #15
0
 // Token: 0x0600034A RID: 842 RVA: 0x0001B65D File Offset: 0x0001985D
 public ACCPartsColorView(UIParams uiParams, SliderHelper sliderHelper)
 {
     this.uiParams     = uiParams;
     this.sliderHelper = sliderHelper;
 }
예제 #16
0
 // Token: 0x06000332 RID: 818
 public abstract void UpdateUI(UIParams uiparams);