SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-16-24, 10:42 PM   #1
Dönitz78
Bosun
 
Join Date: Sep 2021
Posts: 64
Downloads: 327
Uploads: 0


Default 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 is offline   Reply With Quote
Old 01-28-24, 11:53 AM   #2
Dönitz78
Bosun
 
Join Date: Sep 2021
Posts: 64
Downloads: 327
Uploads: 0


Default

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 :



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

A little help would be welcome !!

Last edited by Dönitz78; 01-30-24 at 05:02 AM.
Dönitz78 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:20 PM.


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.