SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [TEC] Help for a Slide rule (https://www.subsim.com/radioroom/showthread.php?t=256493)

Dönitz78 01-16-24 10:42 PM

Help for a Slide rule
 
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:

Quote:

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/1iwt...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/multithum..._16_rys_06.png

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

A little help would be welcome !!


All times are GMT -5. The time now is 12:19 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.