Beispiel #1
0
        private void scrlAlpha_Scroll(object sender, ScrollValueEventArgs e)
        {
            var brightness = (int)((255 - scrlAlpha.Value) / 255f * 100);

            lblBrightness.Text = Strings.TimeEditor.brightness.ToString(brightness.ToString());
            mYTime.DaylightHues[lstTimes.SelectedIndex].A = (byte)scrlAlpha.Value;
            pnlColor.Refresh();
        }
Beispiel #2
0
        private void LstFileContentOnScrollValueChanged(object sender, ScrollValueEventArgs args)
        {
            string s = string.Format("SlaveScroll Changed: Min:{0} Max:{1} Position:{2}", args.Min, args.Max, args.Position);

            Debug(s);
            int length = args.Max - args.Min;

            if (length == 0)
            {
                _log.Error("problem because args.Max - args.Min=0 => aborting LstFileContentOnScrollValueChanged()");
                return;
            }
            decimal positionRatio    = ((decimal)args.Position) / length;
            decimal offsetInPage     = _currentPage.TotalSize * positionRatio;
            long    offsetCalculated = _currentPage.OffsetStart + (long)Math.Floor(offsetInPage);

            Debug("Setting scrollMaster.Value =" + offsetCalculated);
            if (IsOutOfRange(offsetCalculated, _reader.scrollMaster))
            {
                _log.Error("offset is out of range");
                return;
            }
            _reader.scrollMaster.Value = (int)offsetCalculated;
        }
Beispiel #3
0
 private void scrlDarkness_Scroll(object sender, ScrollValueEventArgs e)
 {
     labelDarkness.Text = Strings.AnimationEditor.simulatedarkness.ToString(scrlDarkness.Value);
 }
Beispiel #4
0
 private void scrlUpperFrame_Scroll(object sender, ScrollValueEventArgs e)
 {
     lblUpperFrame.Text = Strings.AnimationEditor.upperframe.ToString(scrlUpperFrame.Value);
     LoadUpperLight();
     DrawUpperFrame();
 }
 private void scrollY_ValueChanged(object sender, ScrollValueEventArgs e)
 {
     _camera.Position = new Vector2(_camera.Position.X, e.Value);
 }
Beispiel #6
0
 void listBox_ScrollValueChanged(object sender, ScrollValueEventArgs e)
 {
     ShowScrollPosition(e.Position);
 }
Beispiel #7
0
 private void scrlRange_Scroll(object sender, ScrollValueEventArgs e)
 {
     lblRange.Text = Strings.SpellEditor.dashrange.ToString(scrlRange.Value);
     mEditorItem.Combat.CastRange = scrlRange.Value;
 }
Beispiel #8
0
 private void ScrollBarInstallPaths_ValueChanged(object sender, ScrollValueEventArgs e)
 {
     try { DgvInstallPaths.FirstDisplayedScrollingRowIndex = ScrollBarInstallPaths.Value; } catch { }
 }
Beispiel #9
0
 private void ScrollBarDetails_ValueChanged(object sender, ScrollValueEventArgs e)
 {
     FlowPanelDetails.VerticalScroll.Value = ScrollBarDetails.Value;
     FlowPanelDetails.Update();
 }
Beispiel #10
0
 private void scrlY_Scroll(object sender, ScrollValueEventArgs e)
 {
     lblY.Text = Strings.Warping.y.ToString(scrlY.Value);
 }
 private void scrlSpawnRange_Scroll(object sender, ScrollValueEventArgs e)
 {
     mEditorItem.Animations[lstAnimations.SelectedIndex].SpawnRange = scrlSpawnRange.Value;
     UpdateAnimations();
 }