Пример #1
0
 protected void OnSlideChanged(SliderEventArgs e)
 {
     if (SlideChanged != null && scriptTemplate == null)
     {
         SlideChanged(this, e);
     }
 }
        // 0-127 0 = up  127 = down

        private void Controller_Slider(object sender, SliderEventArgs e)
        {
            int slider = e.Slider * 32;

            //this.tmThrottleController.VisualState.UpdateAxis3((UInt32)slider);
            tmThrottleController.SetJoystickAxis(slider, HID_USAGES.HID_USAGE_SL0, vJoyTypes.Throttle);
        }
Пример #3
0
 private void SidePositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.leftPanel.X      = (Hud.Info.ScreenSize.X / 2f) - (this.centerPanel.Width / 2f) - e.NewValue;
     this.leftPanel.Width  = e.NewValue;
     this.rightPanel.Width = e.NewValue;
     this.widthPerPlayer   = this.leftPanel.Width / PlayersPerPanel;
 }
Пример #4
0
 // Token: 0x060003B8 RID: 952 RVA: 0x0001D2EC File Offset: 0x0001B4EC
 private void SidePositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.leftPanel.X      = O9K.Core.Helpers.Hud.Info.ScreenSize.X / 2f - this.centerPanel.Width / 2f - (float)e.NewValue;
     this.leftPanel.Width  = (float)e.NewValue;
     this.rightPanel.Width = (float)e.NewValue;
     this.widthPerPlayer   = this.leftPanel.Width / 5f;
 }
 void Slider_UpdateEvent(object sender, SliderEventArgs e)
 {
     if (App.ViewModel.IsUserViewModelLoaded)
     {
         App.ViewModel.UserViewModel.Distance = e.Value;
         App.ViewModel.UpdateViewModel();
     }
 }
Пример #6
0
 // Token: 0x06000063 RID: 99 RVA: 0x000023D3 File Offset: 0x000005D3
 private void ColorOnValueChange(object sender, SliderEventArgs e)
 {
     if (e.NewValue == e.OldValue)
     {
         return;
     }
     this.DelayedRedraw();
 }
Пример #7
0
    void OnMasterSliderValueChanged(object sender, SliderEventArgs e)
    {
        if(masterSlider == null || RightSlider == null || LeftSlider == null){
            EditorDebug.LogError("Cannot found all Slider - Cancel!!");
            return;
        }
        var difference = e.SliderDifference;

        RightSlider.SliderValue += difference;
        LeftSlider.SliderValue += difference;
        EditorDebug.Log("SliderChange Value: " + difference + " Object: " + gameObject.name);
    }
Пример #8
0
        // 0-127 0 = up  127 = down

        private void Controller_Slider(object sender, SliderEventArgs e)
        {
            int slider = e.Slider * 8 * 32;

            swff2Controller.SetJoystickAxis(slider, HID_USAGES.HID_USAGE_SL0, vJoyTypes.StickAndPedals);

            // Switch to Elite
            if (false == ProcessSet && slider > 30000)
            {
                ProcessSet = true;
                Utils.FocusWindow("EliteDangerous64");
            }
            else if (ProcessSet && slider < 30000)
            {
                ProcessSet = false;
            }
        }
Пример #9
0
 private void BotPositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.leftPanel.Height   = e.NewValue;
     this.rightPanel.Height  = e.NewValue;
     this.centerPanel.Height = e.NewValue;
 }
Пример #10
0
 private void YPositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.minimap.Y = e.NewValue;
 }
Пример #11
0
 private void YSizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.minimap.Height   = e.NewValue;
     this.minimapMapScaleY = this.minimap.Height / (Math.Abs(this.MapBottom) + Math.Abs(this.MapTop));
 }
Пример #12
0
 // Token: 0x0600039B RID: 923 RVA: 0x00004494 File Offset: 0x00002694
 private void XPositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.minimap.X = (float)e.NewValue;
 }
Пример #13
0
 private void XSizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.minimap.Width    = e.NewValue;
     this.minimapMapScaleX = this.minimap.Width / (Math.Abs(this.MapLeft) + Math.Abs(this.MapRight));
 }
Пример #14
0
 // Token: 0x0600011C RID: 284 RVA: 0x00002C67 File Offset: 0x00000E67
 private void OverlayYOnValueChanged(object sender, SliderEventArgs e)
 {
     this.AdditionalOverlayPosition = new Vector2(this.AdditionalOverlayPosition.X, (float)e.NewValue);
 }
Пример #15
0
 // Token: 0x0600039C RID: 924 RVA: 0x000044A8 File Offset: 0x000026A8
 private void XSizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.minimap.Width    = (float)e.NewValue;
     this.minimapMapScaleX = this.minimap.Width / (Math.Abs(-7700f) + Math.Abs(7700f));
 }
Пример #16
0
        /*public void Dispose()
         * {
         *  Game.ExecuteCommand("dota_camera_disable_zoom false");
         *
         *  ZoomVar.SetValue(DefaultZoomValue);
         *
         *  ZoomSliderItem.PropertyChanged -= ZoomSliderItemChanged;
         *  InputManage.Value.MouseWheel -= InputManagerMouseWheel;
         * }*/

        private void OnZoomSliderValueChanged(MenuSlider slider, SliderEventArgs e)
        {
            ConVarManager.SetValue("dota_camera_distance", e.NewValue);
        }
Пример #17
0
 private void YOnValueChange(object sender, SliderEventArgs e)
 {
     this.Value = new Vector2(this.Value.X, e.NewValue);
 }
Пример #18
0
 private void SizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.heroSize = new Vector2(e.NewValue * 1.5f, e.NewValue);
     this.lineSize = new Vector2(e.NewValue * 5.5f, e.NewValue);
     this.textSize = e.NewValue * 0.7f;
 }
Пример #19
0
 private void PositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.panel.Location = new Vector2(Hud.Info.ScreenSize.X - this.panel.Width, e.NewValue);
 }
Пример #20
0
 // Token: 0x060000EE RID: 238 RVA: 0x00002908 File Offset: 0x00000B08
 private void ZoomOnValueChange(object sender, SliderEventArgs e)
 {
     this.zoomVar.SetValue(e.NewValue);
 }
Пример #21
0
 // Token: 0x0600039E RID: 926 RVA: 0x000044F7 File Offset: 0x000026F7
 private void YSizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.minimap.Height   = (float)e.NewValue;
     this.minimapMapScaleY = this.minimap.Height / (Math.Abs(-7700f) + Math.Abs(7700f));
 }
Пример #22
0
 // Token: 0x06000119 RID: 281 RVA: 0x00002C0A File Offset: 0x00000E0A
 private void OverlaySizeXOnValueChanged(object sender, SliderEventArgs e)
 {
     this.AdditionalOverlaySize = new Vector2((float)e.NewValue, this.AdditionalOverlaySize.Y);
 }
Пример #23
0
 private void UpdateRateOnValueChange(object sender, SliderEventArgs e)
 {
     this.Handler.SetUpdateRate(e.NewValue);
 }
Пример #24
0
 private void SizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.heroSize = new Vector2(e.NewValue * 1.6f, e.NewValue);
     this.itemSize = new Vector2(e.NewValue, e.NewValue);
 }
Пример #25
0
    private void InvokeSliderValueChanged()
    {
        var handler = SliderValueChanged;
        if (handler == null) {
            return;
        }

        var e = new SliderEventArgs(lastSliderValue, SliderValue);
        SliderValueChanged(this, e);
    }
Пример #26
0
 protected void OnSlideChanged(SliderEventArgs e)
 {
     if (SlideChanged != null && scriptTemplate == null)
     {
         SlideChanged(this, e);
     }
 }
Пример #27
0
 // Token: 0x060003C4 RID: 964 RVA: 0x000045F5 File Offset: 0x000027F5
 private void PositionOnValueChange(object sender, SliderEventArgs e)
 {
     this.panel.Location = new Vector2(O9K.Core.Helpers.Hud.Info.ScreenSize.X - this.panel.Width, (float)e.NewValue);
 }
Пример #28
0
 // Token: 0x060003C5 RID: 965 RVA: 0x0001D964 File Offset: 0x0001BB64
 private void SizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.panel.Size = new Size2F((float)e.NewValue * 3.5f, (float)e.NewValue);
     this.panel.X    = O9K.Core.Helpers.Hud.Info.ScreenSize.X - this.panel.Width;
 }
Пример #29
0
 private void SizeOnValueChange(object sender, SliderEventArgs e)
 {
     this.panel.Size = new Size2F(e.NewValue * 3.5f, e.NewValue);
     this.panel.X    = Hud.Info.ScreenSize.X - this.panel.Width;
 }
 // Token: 0x06000386 RID: 902 RVA: 0x000043F9 File Offset: 0x000025F9
 private void SliderOnValueChange(object sender, SliderEventArgs e)
 {
     this.Value = new Vector2((float)e.NewValue);
 }
Пример #31
0
 private void ZoomOnValueChange(object sender, SliderEventArgs e)
 {
     ConVarManager.SetValue("dota_camera_distance", e.NewValue);
 }
Пример #32
0
 private void XOnValueChange(object sender, SliderEventArgs e)
 {
     this.Value = new Vector2(e.NewValue, this.Value.Y);
 }