示例#1
0
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            var maxdist = new SliderHelper(
                "Max Distance",
                this.Config.MaxDistance,
                this.Config.MinDistance,
                this.Config.MaxDistance);

            maxdist.Attach(this.Menu, this.Path);

            this.Config.MaxDistance = maxdist.Value;

            maxdist.ValueChanged += (o, args) => this.Config.MaxDistance = maxdist.Value;


            var minDist = new SliderHelper(
                "Min Distance",
                this.Config.MinDistance,
                this.Config.MinDistance,
                this.Config.MaxDistance);

            minDist.Attach(this.Menu, this.Path);

            this.Config.MinDistance = minDist.Value;

            minDist.ValueChanged += (o, args) => this.Config.MinDistance = minDist.Value;
        }
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            var scoreMana = new SliderHelper(
                "Score when mana over threshold",
                this.Config.ScoreWhenMana,
                this.Config.MinScore,
                this.Config.MaxScore);

            scoreMana.Attach(this.Menu, this.Path);

            this.ScoreWhenMana = scoreMana.Value;

            scoreMana.ValueChanged += (o, args) => this.ScoreWhenMana = args.NewValue;


            var minMana = new SliderHelper("Min mana", this.Config.MinMana, 0, 500);

            minMana.Attach(this.Menu, this.Path);

            this.MinMana = minMana.Value;

            minMana.ValueChanged += (o, args) => this.MinMana = args.NewValue;
        }
 // Token: 0x06000346 RID: 838 RVA: 0x0001ACAA File Offset: 0x00018EAA
 public ACCMaterialsView(Renderer r, Material m, int slotIdx, int idx, SliderHelper sliderHelper, CheckboxHelper cbHelper)
 {
     this.slotIdx      = slotIdx;
     this.matIdx       = idx;
     this.edited       = new ACCMaterial(m, r, idx);
     this.sliderHelper = sliderHelper;
     this.cbHelper     = cbHelper;
 }
 public void Confirm()
 {
     if (Parameter is IDocumentInputListener listener)
     {
         listener.OnDocumentConfirm(Model);
         SliderHelper.Close();
     }
 }
示例#5
0
 public override void OnEndDrag(PointerEventData data)
 {
     if (isDragging)
     {
         Debug.Log("hello");
         SliderHelper sh = this.GetComponent <SliderHelper>();
         sh.GetHeight();
     }
     isDragging = false;
 }
示例#6
0
 public ACCMaterialsView(Renderer r, Material m, int slotIdx, int idx, SliderHelper sliderHelper, CheckboxHelper cbHelper)
 {
     //original = new ACCMaterial(m, r);
     //edited = new ACCMaterial(original);
     this.slotIdx      = slotIdx;
     matIdx            = idx;
     edited            = new ACCMaterial(m, r, idx);
     this.sliderHelper = sliderHelper;
     this.cbHelper     = cbHelper;
 }
示例#7
0
        private void ChbShowValue_CheckChanged(object sender, RoutedEventArgs e)
        {
            if (!IsLoaded)
            {
                return;
            }

            SliderHelper.SetIsTickValueVisible(SldCustom, ChbShowValue.IsChecked == true);

            UpdateCode();
        }
示例#8
0
        public void Confirm()
        {
            var request = new AddressRequest {
                DTO = Mapper.Map(Model, new AddressDTO())
            };
            var response = Helper.Call(s => s.AddressSet(request));

            ServiceResponseHelper.CheckServiceResponse(response, "AddressSet", request);
            Messenger.Default.Send(Messages.Address.Refresh);
            SliderHelper.Close();
        }
        public void Confirm()
        {
            var request = new ResearchRequest {
                DTO = Mapper.Map(Model, new ResearchDTO()), UserID = GlobalVar.UserID
            };
            var response = Helper.Call(s => s.ResearchSet(request));

            ServiceResponseHelper.CheckServiceResponse(response, "ResearchSet", request);
            Messenger.Default.Send(Messages.Research.Refresh);
            SliderHelper.Close();
        }
示例#10
0
        private void RdbBaseStyle_CheckChanged(object sender, RoutedEventArgs e)
        {
            if (!IsLoaded)
            {
                return;
            }
            var rdb = sender as RadioButton;

            SliderHelper.SetSliderStyle(SldCustom, (SliderStyle)Enum.Parse(typeof(SliderStyle), rdb.Content.ToString()));
            UpdateTemplate();
            UpdateCode();
        }
示例#11
0
        private void UpdateTemplate()
        {
            var color = Helper.GetColorByOffset(_linearGradientBrush.GradientStops, SldTheme.Value / 7);

            SliderHelper.SetTrackThickness(SldCustom, SldTrackThickness.Value);

            SliderHelper.SetThumbSize(SldCustom, SldThumbSize.Value);

            SliderHelper.SetThemeBrush(SldCustom, color.ToBrush());
            SldCustom.Background = new Color()
            {
                A = 30, R = color.R, G = color.G, B = color.B
            }.ToBrush();
        }
示例#12
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();
        }
示例#13
0
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            var scoreWhenCancelable = new SliderHelper(
                "Score when true",
                this.Config.ScoreWhenCancelable,
                this.config.MinScore,
                this.config.MaxScore);

            scoreWhenCancelable.Attach(this.Menu, this.Path);

            this.Config.ScoreWhenCancelable = scoreWhenCancelable.Value;

            scoreWhenCancelable.ValueChanged += (o, args) => this.Config.ScoreWhenCancelable = args.NewValue;
        }
示例#14
0
        private void UpdateCode()
        {
            var style          = SliderHelper.GetSliderStyle(SldCustom);
            var thumbSize      = SliderHelper.GetThumbSize(SldCustom);
            var trackThickness = SliderHelper.GetTrackThickness(SldCustom);
            var valueVisible   = SliderHelper.GetIsTickValueVisible(SldCustom);
            var tickBarVisible = SldCustom.TickPlacement == System.Windows.Controls.Primitives.TickPlacement.Both;

            TbCode.Text = $"<Slider  Width=\"{SldCustom.Width}\"" +
                          (style == SliderStyle.Standard ? "" : $"\npu:SliderHelper.SliderStyle=\"{style}\"") +
                          (thumbSize == 18 ? "" : $"\npu:SliderHelper.ThumbSize=\"{thumbSize}\"") +
                          (trackThickness == 3 ? "" : $"\npu:SliderHelper.TrackThickness=\"{trackThickness}\"") +
                          $"\npu:SliderHelper.ThemeBrush=\"{SliderHelper.GetThemeBrush(SldCustom).ToColor().ToHexString(false)}\"" +
                          $"\nBackground=\"{SldCustom.Background.ToColor().ToHexString()}\"" +
                          (valueVisible ?  "" : "\npu:SliderHelper.IsTickValueVisible=\"True\"") +
                          (tickBarVisible ? "\nTickPlacement=\"Both\"" : "") +

                          " />";
        }
        /// <summary>
        ///     Called when [load].
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="eventArgs">The <see cref="Base.FeatureBaseEventArgs" /> instance containing the event data.</param>
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            var minExcess = new SliderHelper("Min damage excess", this.Config.MinDamageExcess, 0, 1000);

            minExcess.Attach(this.Menu, this.Path);

            this.Config.MinDamageExcess = minExcess.Value;

            minExcess.ValueChanged += (o, args) => this.Config.MinDamageExcess = args.NewValue;

            var maxExcess = new SliderHelper("Max damage excess", this.Config.MaxDamageExcess, 0, 1000);

            maxExcess.Attach(this.Menu, this.Path);

            this.Config.MaxDamageExcess = maxExcess.Value;

            maxExcess.ValueChanged += (o, args) => this.Config.MaxDamageExcess = args.NewValue;
        }
        // TODO Config
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            var minHit = new SliderHelper("Min Amount Hit To Score", this.Config.MinAmountHitToScore, 0, 5);

            minHit.Attach(this.Menu, this.Path);

            this.Config.MinAmountHitToScore = minHit.Value;

            minHit.ValueChanged += (o, args) => this.Config.MinAmountHitToScore = args.NewValue;


            var scorePerHit = new SliderHelper("Score Per Hit", 10, 0, 100);

            scorePerHit.Attach(this.Menu, this.Path);

            this.Config.ScorePerHit = scorePerHit.Value;

            scorePerHit.ValueChanged += (o, args) => this.Config.ScorePerHit = args.NewValue;
        }
    private void Start()
    {
        signUpPanel.SetActive(false);
        logInPanel.SetActive(false);
        soundPanel.SetActive(false);

        sliderHelper    = soundPanel.transform.Find("SESlider").GetComponent <SliderHelper>();
        bgmSlider       = soundPanel.transform.Find("BGMSlider").GetComponent <Slider>();
        bgmSlider.value = SoundManager.Instance.BgmVolume;
        seSlider        = soundPanel.transform.Find("SESlider").GetComponent <Slider>();
        seSlider.value  = SoundManager.Instance.SeVolume;

        SoundManager.Instance.PlayBgm(0);

        /* NCMBに登録しておくべきもの                          */
        /* ・オブジェクトID  ->  初回ログイン時                */
        /* ・ユーザー名      ->  初回ログイン時                */
        /* ・パスワード      ->  初回ログイン時                */
        /* ・レート          ->  初回ログイン時 + バトル終了時 */
        /* ・コイン          ->  初回ログイン時 + バトル終了時 */
        /*                                      + ガチャ排出時 */
        /* ・持ち駒          ->  初回ログイン時 + ガチャ排出時 */
        /* ・配置データ      ->  初回ログイン時 + 配置変更時   */
    }
示例#18
0
        private bool UpdateUI()
        {
            WindowXCaption.SetBackground(this, baseColora.Main);
            WindowXCaption.SetForeground(this, baseColora.FontM);

            BG.BeginInit();
            BG.Source = baseColora.Bgpa;
            BG.EndInit();
            BG1.BeginInit();
            BG1.Source = baseColora.Bgpa;
            BG1.EndInit();
            BG2.BeginInit();
            BG2.Source = baseColora.Bgpa;
            BG2.EndInit();
            BG3.BeginInit();
            BG3.Source = baseColora.Bgpa;
            BG3.EndInit();

            //样式
            this.T11.Foreground = baseColora.Fg;
            this.T11.FontFamily = baseColora.Fonts;
            this.T11.FontSize   = 13;
            this.T12.Foreground = baseColora.Fg;
            this.T12.FontFamily = baseColora.Fonts;
            this.T12.FontSize   = 13;
            this.T13.Foreground = baseColora.Fg;
            this.T13.FontFamily = baseColora.Fonts;
            this.T13.FontSize   = 13;
            this.T14.Foreground = baseColora.Fg;
            this.T14.FontFamily = baseColora.Fonts;
            this.T14.FontSize   = 13;
            this.T15.Foreground = baseColora.Fg;
            this.T15.FontFamily = baseColora.Fonts;
            this.T15.FontSize   = 13;
            this.T16.Foreground = baseColora.Fg;
            this.T16.FontFamily = baseColora.Fonts;
            this.T16.FontSize   = 13;
            this.T17.Foreground = baseColora.Fg;
            this.T17.FontFamily = baseColora.Fonts;
            this.T17.FontSize   = 13;
            this.T18.Foreground = baseColora.Fg;
            this.T18.FontFamily = baseColora.Fonts;
            this.T18.FontSize   = 13;
            this.T21.Foreground = baseColora.Fg;
            this.T21.FontFamily = baseColora.Fonts;
            this.T21.FontSize   = 13;
            this.T22.Foreground = baseColora.Fg;
            this.T22.FontFamily = baseColora.Fonts;
            this.T22.FontSize   = 13;
            this.T31.Foreground = baseColora.Fg;
            this.T31.FontFamily = baseColora.Fonts;
            this.T31.FontSize   = 13;
            this.T41.Foreground = baseColora.Fg;
            this.T41.FontFamily = baseColora.Fonts;
            this.T41.FontSize   = 13;

            this.MT11.Foreground = baseColora.Fg;
            this.MT11.FontFamily = baseColora.Fonts;
            this.MT11.FontSize   = 15;
            this.MT12.Foreground = baseColora.Fg;
            this.MT12.FontFamily = baseColora.Fonts;
            this.MT12.FontSize   = 15;
            this.MT13.Foreground = baseColora.Fg;
            this.MT13.FontFamily = baseColora.Fonts;
            this.MT13.FontSize   = 15;
            this.MT21.Foreground = baseColora.Fg;
            this.MT21.FontFamily = baseColora.Fonts;
            this.MT21.FontSize   = 15;
            this.MT31.Foreground = baseColora.Fg;
            this.MT31.FontFamily = baseColora.Fonts;
            this.MT31.FontSize   = 15;
            this.MT41.Foreground = baseColora.Fg;
            this.MT41.FontFamily = baseColora.Fonts;
            this.MT41.FontSize   = 15;

            this.CD11.Background = baseColora.Bg;
            this.CD12.Background = baseColora.Bg;
            this.CD13.Background = baseColora.Bg;
            this.CD21.Background = baseColora.Bg;
            this.CD32.Background = baseColora.Bg;
            this.CD41.Background = baseColora.Bg;

            this.C11.Background = baseColora.DBg;
            this.C31.Background = baseColora.DBg;
            this.C32.Background = baseColora.DBg;
            CheckBoxHelper.SetCheckedBackground(C11, baseColora.DBg);
            CheckBoxHelper.SetCheckedBackground(C31, baseColora.DBg);
            CheckBoxHelper.SetCheckedBackground(C32, baseColora.DBg);
            CheckBoxHelper.SetGlyphBrush(C11, baseColora.DBg);
            CheckBoxHelper.SetGlyphBrush(C31, baseColora.DBg);
            CheckBoxHelper.SetGlyphBrush(C32, baseColora.DBg);
            CheckBoxHelper.SetCheckedGlyphBrush(C11, baseColora.Main);
            CheckBoxHelper.SetCheckedGlyphBrush(C31, baseColora.Main);
            CheckBoxHelper.SetCheckedGlyphBrush(C32, baseColora.Main);

            this.MainTab.Background = baseColora.Bg;
            this.MainTab.Foreground = baseColora.Fg;
            TabControlHelper.SetHeaderPanelBackground(MainTab, baseColora.DBg);
            TabControlHelper.SetItemIcon(MainTab, baseColora.DBg);
            TabControlHelper.SetSelectedBackground(MainTab, baseColora.Bg);
            TabControlHelper.SetSelectedForeground(MainTab, baseColora.Fg);

            this.Theams.Background = baseColora.DBg;
            this.Theams.Foreground = baseColora.Fg;
            ComboBoxHelper.SetShadowColor(Theams, baseColora.Bg.Color);
            ComboBoxHelper.SetHoverBackground(Theams, baseColora.Bg);
            ComboBoxHelper.SetHoverForeground(Theams, baseColora.Fg);
            ComboBoxHelper.SetSelectedBackground(Theams, baseColora.DBg);
            ComboBoxHelper.SetSelectedForeground(Theams, baseColora.Fg);

            this.S11.Background = baseColora.DBg;
            this.S11.Foreground = baseColora.Fg;
            SliderHelper.SetThemeBrush(S11, baseColora.Main);
            this.S12.Background = baseColora.DBg;
            this.S12.Foreground = baseColora.Fg;
            SliderHelper.SetThemeBrush(S12, baseColora.Main);
            this.S13.Background = baseColora.DBg;
            this.S13.Foreground = baseColora.Fg;
            SliderHelper.SetThemeBrush(S13, baseColora.Main);
            this.S14.Background = baseColora.DBg;
            this.S14.Foreground = baseColora.Fg;
            SliderHelper.SetThemeBrush(S14, baseColora.Main);

            this.TopIcon.Background = baseColora.Main;
            this.TopIcon.Foreground = baseColora.FontM;
            ButtonHelper.SetHoverBrush(TopIcon, baseColora.Main);
            ButtonHelper.SetClickCoverOpacity(TopIcon, 1);
            this.MBG.Foreground = baseColora.Fg;
            this.MBG.Background = baseColora.DBg;
            this.SBG.Foreground = baseColora.Fg;
            this.SBG.Background = baseColora.DBg;
            ButtonHelper.SetHoverBrush(MBG, baseColora.DBg);
            ButtonHelper.SetHoverBrush(SBG, baseColora.DBg);
            this.B21.Foreground = baseColora.Fg;
            this.B21.Background = baseColora.DBg;
            ButtonHelper.SetHoverBrush(B21, baseColora.DBg);
            this.B41.Foreground = baseColora.Fg;
            this.B41.Background = baseColora.DBg;
            ButtonHelper.SetHoverBrush(B41, baseColora.DBg);

            this.Password.Background  = baseColora.Bg;
            this.Password.Foreground  = baseColora.Fg;
            this.UpdateLog.Background = baseColora.Bg;
            this.UpdateLog.Foreground = baseColora.Fg;

            return(true);
        }
示例#19
0
 // Token: 0x0600034A RID: 842 RVA: 0x0001B65D File Offset: 0x0001985D
 public ACCPartsColorView(UIParams uiParams, SliderHelper sliderHelper)
 {
     this.uiParams     = uiParams;
     this.sliderHelper = sliderHelper;
 }
示例#20
0
 public void Add() => SliderHelper.Open(AppModules.DocumentInput, this);
示例#21
0
        protected static void CreateSliderHelper()
        {
            GameObject go = CreateGameObject("SliderHelper", true);

            SliderHelper slider = go.AddComponent <SliderHelper>();
        }