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 04-18-10, 08:13 AM   #1
TheBeast
The Old Man
 
Join Date: Jan 2010
Location: Lynnwood, WA
Posts: 1,533
Downloads: 888
Uploads: 23


Default

Quote:
Originally Posted by reaper7 View Post
Hi dark just noticed this in the Page Default Hud script:

PageDefaultHud_MapGroup_InterceptCourseButton.Enab led = False
elif PageDefaultHud_MapGroup.Width > 300 and PageDefaultHud_MapGroup.Height > 200:
if PageDefaultHud_MapGroup_Mapcontrol.SelectedContact != None:
PageDefaultHud_MapGroup_Mapcontrol_SelectedContact GUI.Visible = SelectedContactGUIEnabled
elif appears again just a few more lines below the above quoted info. Is elif a valid Python Script expression? Is elif equal to elseif?
__________________
Fear me! I am, TheBeastBelow

SHIV-MediaFire | SHV-MediaFire
TheBeast is offline   Reply With Quote
Old 04-18-10, 08:16 AM   #2
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by TheBeast View Post
elif appears again just a few more lines below the above quoted info. Is elif a valid Python Script expression?
Unless its an abbreviated else if statement. (Wish I know Python)
reaper7 is offline   Reply With Quote
Old 04-18-10, 08:31 AM   #3
Captain von Keldunk
Sonar Guy
 
Join Date: Dec 2007
Posts: 376
Downloads: 187
Uploads: 21
Default

Quote:
Originally Posted by reaper7 View Post
Unless its an abbreviated else if statement. (Wish I know Python)
faren = input("Enter a temperature ") * 9.0 / 5 + 32
print "That degrees converts to",faren
if faren > 212:
print "Steam"
elif faren > 112:
print "Very Hot Water"
elif faren > 32:
print "Water"
else:
print "Ice"
print "Program completed"
__________________
SH
Captain von Keldunk is offline   Reply With Quote
Old 04-18-10, 08:35 AM   #4
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by Captain von Keldunk View Post
faren = input("Enter a temperature ") * 9.0 / 5 + 32
print "That degrees converts to",faren
if faren > 212:
print "Steam"
elif faren > 112:
print "Very Hot Water"
elif faren > 32:
print "Water"
else:
print "Ice"
print "Program completed"
Ah Ok, So it is an Else IF Staement. Cheers
reaper7 is offline   Reply With Quote
Old 04-18-10, 10:51 AM   #5
Yoram777
A-ganger
 
Join Date: Feb 2008
Location: Kingdom of the Netherlands
Posts: 73
Downloads: 60
Uploads: 2
Default

Some great improvements with V1.2, fantastic work

Some questions/ideas for the SH3 style version:

With 1.2 it's not possible to unselect the officers?

Could you remove the dive buttons with the depth meter?
(can already be seen and controlled with the dials on the right)

And would it be possible to show the map tools on the map instead of next to it?,
(this would save some space on the screen and it would look nicer/cleaner)

Yoram777 is offline   Reply With Quote
Old 04-18-10, 11:36 AM   #6
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by Yoram777 View Post
Some great improvements with V1.2, fantastic work

Some questions/ideas for the SH3 style version:

With 1.2 it's not possible to unselect the officers?

Could you remove the dive buttons with the depth meter?
(can already be seen and controlled with the dials on the right)

And would it be possible to show the map tools on the map instead of next to it?,
(this would save some space on the screen and it would look nicer/cleaner)

Like This . Thats the way I'm doing it in my UI Mod.

reaper7 is offline   Reply With Quote
Old 04-18-10, 11:43 AM   #7
Lopo
Lieutenant
 
Join Date: Jun 2007
Location: Lausanne/ Switzerland
Posts: 260
Downloads: 477
Uploads: 0
Default ...

Quote:
Originally Posted by reaper7 View Post
Like This . Thats the way I'm doing it in my UI Mod.

Very interesting. How do you do that?
__________________
Aperite Infernos



Lopo is offline   Reply With Quote
Old 04-18-10, 12:16 PM   #8
Yoram777
A-ganger
 
Join Date: Feb 2008
Location: Kingdom of the Netherlands
Posts: 73
Downloads: 60
Uploads: 2
Default

Quote:
Originally Posted by reaper7 View Post
Like This . Thats the way I'm doing it in my UI Mod.
Yes like that , is your mod still a WIP?
Yoram777 is offline   Reply With Quote
Old 04-18-10, 12:59 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Yoram777 View Post
Some great improvements with V1.2, fantastic work

Some questions/ideas for the SH3 style version:

With 1.2 it's not possible to unselect the officers?

Could you remove the dive buttons with the depth meter?
(can already be seen and controlled with the dials on the right)

And would it be possible to show the map tools on the map instead of next to it?,
(this would save some space on the screen and it would look nicer/cleaner)

You can unselect the officer's order categories very simply. By clicking on an officer it will hide the current order category that is visible. Say you click on the Chief Engineer (CE). He brings up the order category with the propeller, maneuvers, and reports. Now if you click on NA (navigator) that previous order category bar will disappear.

Remove the dive buttons on the far left side? Why? They are quick shortcuts to useful commands - dive, surface, crash dive, and emergency surface. Trying to remove them would be a little complicated as you would have to do lots of scripting to make it work correctly (if it even would work correctly) and then you'd have a problem with the map tools floating up above when they contracted.

Would it be possible to show the map tools on the mini-map? Yes it's possible. Will it do it? No. Too many complications with it. Since the end-user can resize the mini-map in my mod to any size they want, if I placed the map tools inside the mini-map you could experience strange issues of map tools being visible outside the mini-map if you sized it small enough. Second, why take up the little valuable screen real-estate you have with the mini-map by placing more items in it? Third, where it is now and how it's implemented leaves room to add additional items to the map tools very easily. The mini-map is supposed to be a quick reference to the battle situation. It's not the nav-map. The layout as it is now is simple, elegant, and efficient. There's no need to change it.
TheDarkWraith is offline   Reply With Quote
Old 04-18-10, 01:29 PM   #10
Yoram777
A-ganger
 
Join Date: Feb 2008
Location: Kingdom of the Netherlands
Posts: 73
Downloads: 60
Uploads: 2
Default

Quote:
Originally Posted by TheDarkWraith View Post
You can unselect the officer's order categories very simply. By clicking on an officer it will hide the current order category that is visible. Say you click on the Chief Engineer (CE). He brings up the order category with the propeller, maneuvers, and reports. Now if you click on NA (navigator) that previous order category bar will disappear.
But I mean it's not possible to have "no" officer selected.
(Which was possible in 1.1)
Now when you start a mission no officers are selected, but as soon as you select one, you will always have one selected.
It's not exactly a big problem or anything, just think it looks better.

Quote:
Remove the dive buttons on the far left side? Why? They are quick shortcuts to useful commands - dive, surface, crash dive, and emergency surface. Trying to remove them would be a little complicated as you would have to do lots of scripting to make it work correctly (if it even would work correctly) and then you'd have a problem with the map tools floating up above when they contracted.
Never used them even once.., since I use those shorcuts on the keyboard, and you can alternatively use the dails.

I mean removing them in combination with moving the tools on the map.
Off course I agree that removing "only" the dive buttons and then have floating map tools wouldn't look good.

Quote:
Would it be possible to show the map tools on the mini-map? Yes it's possible. Will it do it? No. Too many complications with it. Since the end-user can resize the mini-map in my mod to any size they want, if I placed the map tools inside the mini-map you could experience strange issues of map tools being visible outside the mini-map if you sized it small enough. Second, why take up the little valuable screen real-estate you have with the mini-map by placing more items in it? Third, where it is now and how it's implemented leaves room to add additional items to the map tools very easily. The mini-map is supposed to be a quick reference to the battle situation. It's not the nav-map. The layout as it is now is simple, elegant, and efficient. There's no need to change it.
I see, that's too bad, I was hoping it could work.
thanks for your response
Yoram777 is offline   Reply With Quote
Old 04-18-10, 03:03 PM   #11
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Yoram777 View Post
Some great improvements with V1.2, fantastic work

Some questions/ideas for the SH3 style version:

With 1.2 it's not possible to unselect the officers?
I've changed the code so that you can now unselect the selected officer. If you have an officer selected and you click on that selected officer again it will unselect them
TheDarkWraith is offline   Reply With Quote
Old 04-18-10, 03:31 PM   #12
kylania
Silent Hunter
 
Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
Default

Here's a video that shows the new v1.20 "teleport to station" feature at work:

__________________

kylania is offline   Reply With Quote
Old 04-18-10, 12:50 PM   #13
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by TheBeast View Post
elif appears again just a few more lines below the above quoted info. Is elif a valid Python Script expression? Is elif equal to elseif?
yes, elif is the python expression for 'else if'. It's a conditional expression statement.
TheDarkWraith is offline   Reply With Quote
Old 04-18-10, 01:01 PM   #14
Defiance
Grey Wolf
 
Join Date: Apr 2005
Location: UK
Posts: 906
Downloads: 673
Uploads: 0
Default

TDW, My max res is 1920x1200, only a 24" mon for now

If you need a tester for anything in that res just gimme a holla and i'll push whatever to the limit :P

Nice to know most mods now are compatible in the 1920x1200 res's (hopefully gone are the days of trying to convert letterbox to widescreen)

Ohh TDW, i hashed a sound click out for "Menu.PlaySound" besides that l'il extra i'm loving the whole feel of the TDC/UI layouts you've created

Cheers
__________________
Have Fun

Bye

Def
Defiance is offline   Reply With Quote
Old 04-18-10, 01:03 PM   #15
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Defiance View Post
Ohh TDW, i hashed a sound click out for "Menu.PlaySound" besides that l'il extra i'm loving the whole feel of the TDC/UI layouts you've created

Cheers
hashed a sound click? What do you mean?
TheDarkWraith is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

Thread Tools
Display Modes

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:06 AM.


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