![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#16 | ||
Mate
![]() Join Date: Jan 2008
Location: Some U-Boat pen in Austria
Posts: 59
Downloads: 26
Uploads: 0
|
![]() Quote:
__________________
SH III 1.4b + GWX 3.0 + TMT v2 + OLC GUI MkIId + ACM + Ext. FreeCam + no submarine icon on map + SH3 Cmdr 3.2 85% (ext. views ON) |
||
![]() |
![]() |
![]() |
#17 | |||
Gunner
![]() Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
|
![]() Quote:
Hmmmm, I din´t follow the instructions of joegrundman in detail, but he mentioned that you have to add something like the following to the Dials.cfg: [Dial75] Name=circularsliderule Type=16; DIAL_TORP_DEPTH Cmd=Set_torpedo_depth Dial=0x0x3F070015 CrtVal=0x0x3F070014You NewVal=0x0 DialVal=0,360 RealVal=5,5.2; meters Circular=Yes CmdOnDrag=Yes RelativeDrag=Yes You obviously found another way if I get you right .... and I´am really interested in the "How-To-Do"!! To get it clear for me: - you made an object (Slide rule) which is moveable (as a MenuGroup I suppose) - you add two objects (tongue, transp. window) to it - you can adjust the tongue and window on the slide rule like in reality - if you move the slide rule, the added objects keep their relativ position to it then I have two questions: 1. how do you restrict the movemant of the added objects to a linear one? 2. how did you mange the relativ movemant of the whole group? on my first attempt yesterday I can build only these two versions; first - menu moving, objects fixed to the menu, but not moveable second - menu moving, objects moving, but not together ![]() CU |
|||
![]() |
![]() |
![]() |
#18 |
Ocean Warrior
![]() Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
|
![]()
Hi Latemail
I'm not sure that you fully understand what's been said above. I suggest you download and install the U-jagd tools mod to see what it is that has been created and how it works (although i thought you were familiar with the OLC GUI which incorporates most of the U-jagd tools). This sliderule which we are talking about is a circular slide rule. It looks like the one in the pictures posted by Puster Bill. Lambda.... is also referring to a linear (straight) sliderule, but this is a different project. The circular sliderule is not draggable as a whole. It uses the slideout function. The command to make things draggable is Draggable=Yes in the menu file, and that is how the Jonz draggable chrono works, the draggable Navmap reference sheets by FLB Sale, and the draggable nomograph. What you have seen is RelativeDrag=Yes in the dials.cfg. This is related to the property of how circular dials drag. If Relative drag =No, then the "top" position of the dial will always snap to where you click with the mouse (like the AOB notepad tool) If RelativeDrag=Yes then the dial will rotate as you grab the dial with the mouse and drag it, like the range dial in the TDC. klar? However, it could be possible to make the complete dial draggable instead of slideout. I'll have a go at making that. @ Puster Bill - nice work! The middle wheel doesn't need to be clear, just the indicator arm. You could just glue any scrap of convenient trtansparent material to it for that purpose joe
__________________
"Enemy submarines are to be called U-Boats. The term submarine is to be reserved for Allied under water vessels. U-Boats are those dastardly villains who sink our ships, while submarines are those gallant and noble craft which sink theirs." Winston Churchill Last edited by joegrundman; 02-06-08 at 06:52 AM. |
![]() |
![]() |
![]() |
#19 | |
Gunner
![]() Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
|
![]() Quote:
Klar, THX for your explanations, due to my "dusty" English I´am sometimes not really sure if I get the content right. But in this case I understand the two different projects, and I would like to solve lambda´s problem as well. As I wrote: - made an object (e.g. Slide rule) which is moveable (a MenuGroup with Drag=true) - easy, DONE - add two objects (e.g. tongue, transp. window) to it - easy, DONE - you can drag the tongue and window - easy (Drag=true), but how to limit the movemant to a linear one? - if you move the Group, the added objects keep their relativ position to it - no idea, didn´t see anything like that before!! But maybe " ... with a little help from my friends ... " ![]() |
|
![]() |
![]() |
![]() |
#20 | |
Mate
![]() Join Date: Jan 2008
Location: Some U-Boat pen in Austria
Posts: 59
Downloads: 26
Uploads: 0
|
![]() Quote:
__________________
SH III 1.4b + GWX 3.0 + TMT v2 + OLC GUI MkIId + ACM + Ext. FreeCam + no submarine icon on map + SH3 Cmdr 3.2 85% (ext. views ON) |
|
![]() |
![]() |
![]() |
#21 |
Ocean Warrior
![]() Join Date: May 2007
Posts: 2,689
Downloads: 34
Uploads: 0
|
![]()
The way the U-jagd tools works is to take existing dials and give them different images.
It occurs to me that you could try using a sliderbar like you find on the message box. You have one fixed background of part of the sliderule, one slider image you replace with the second part of the sliderule and you could maybe fit a third sliderbar with the pastic indicator. Look at this entry for the message sliderbar. there's lots to here to get you started [G3F I149] Name=MsgSlider Type=1034;Slider ItemID=0x3F040003 ParentID=0x3F040000 Pos=2,-32,15,84 Materials=8 Display=0;No stretch Mat 0=data/menu/gui/layout/m_back.tga Mat 1=data/menu/gui/layout/m_back.tga Mat 2=data/menu/gui/layout/m_back.tga Mat 3=data/menu/gui/layout/m_back.tga Mat 4=data/menu/gui/layout/m_slide.tga Mat 5=data/menu/gui/layout/m_slide.tga Mat 6=data/menu/gui/layout/m_slide.tga Mat 7=data/menu/gui/layout/m_slide.tga MatFlags=0x1 TexFmt=0x9 SliderValue=1 SliderNumSteps=1 Vertical=true StatesColors=0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF Anyway it's just an idea, it may not work.
__________________
"Enemy submarines are to be called U-Boats. The term submarine is to be reserved for Allied under water vessels. U-Boats are those dastardly villains who sink our ships, while submarines are those gallant and noble craft which sink theirs." Winston Churchill |
![]() |
![]() |
![]() |
#22 | |
Gunner
![]() Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
|
![]() Quote:
Ok, so I will stay in touch, maybe we find a solution, would be very helpfull for other tools too ......... |
|
![]() |
![]() |
![]() |
#23 | |
Mate
![]() Join Date: Jan 2008
Location: Some U-Boat pen in Austria
Posts: 59
Downloads: 26
Uploads: 0
|
![]() Quote:
EDIT: OK... got an answer for this one... thanks latemail (Deutsch ist meine Muttersprache) for the menu...ini tutorial!
__________________
SH III 1.4b + GWX 3.0 + TMT v2 + OLC GUI MkIId + ACM + Ext. FreeCam + no submarine icon on map + SH3 Cmdr 3.2 85% (ext. views ON) Last edited by lambda*sqrt(u*x); 02-06-08 at 11:05 AM. |
|
![]() |
![]() |
![]() |
#24 | |
Gunner
![]() Join Date: May 2006
Location: Germany
Posts: 92
Downloads: 14
Uploads: 0
|
![]() Quote:
![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|