Log in

View Full Version : [TEC] Help for a Slide rule


Dönitz78
01-16-24, 10:42 PM
I have a problem for add a slide rule.

All is fine and great, but one last thing I miss is having horizontal sliding and not rotation.

I think my problem comes from here:

def AttackDiskBack_MouseWheelEvent( rotatecw ):
rv = pi / 360.0

global tdwmouse
if tdwmouse == None:
return

if tdwmouse.GetMouseButtons()[ 1 ] > 0:
rv *= 4
else:
rv *= 0.5

if rotatecw:
rv = -rv

if Menu.MenuKeyManager.IsKeyPressed( MenuKeyManagerWrapper.Keys.Shift ):
PageTDC_AttackDisk_Back_SpeedAndDistance.Rotation += rv
elif Menu.MenuKeyManager.IsKeyPressed( MenuKeyManagerWrapper.Keys.Ctrl ):
PageTDC_AttackDisk_Back_Time.Rotation += rv
elif Menu.MenuKeyManager.IsKeyPressed( MenuKeyManagerWrapper.Keys.Alt ):
PageTDC_AttackDisk_Back_Degrees.Rotation += rv

If someone knows how I could replace the "rotation" with only horizontal sliding (<-->) that would help me enormously!

Dönitz78
01-28-24, 11:53 AM
Ok, maybe a video can help you to understand my problem.

This video shows my horizontal problem:
https://drive.google.com/file/d/1iwtej4j7DFdhHBFM0Vhd1EJhJHyWr3fK/view?usp=drive_link


I have this problem for the Nestler n°20 "Kiel", and exactly the same problem for including azimuth circles, this :

http://www.tvre.org/images/multithumb_thumbs/b_600_0_16777215_00_images_16_rys_06.png

It's exactly the same problem of moving only horizontal.

A little help would be welcome !!