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)
-   -   [REL] Multiple UIs for SH5 with TDC (https://www.subsim.com/radioroom/showthread.php?t=166093)

reaper7 04-26-10 05:06 PM

Quote:

Originally Posted by TheDarkWraith (Post 1374394)
a good example that's quick to get to is in the chalkboard mod by ottos.....


Ok I had download that but there was only a dds file in it. I prob downloaded an update rather than the original. Will check out his thread again.
Cheers :up:

loooking forward to V1.9.0

Ps. did you get my previous PM's regarding my Mod (Not sure as your Mailbox gats full fast these days ;))

TheDarkWraith 04-26-10 06:37 PM

ok I lied....one more thing to add to v1.9.0 - making the messagebox draggable so you can put it where you want :03:

I think we need to add 2 more draggable charts to the nav map....what should they be?

If someone can come up with a better speed chart than I have included please send it my way and I'll include it in the next version.

And how about some more ideas?? You all gave me great ideas for v1.9.0. Keep 'em coming.....

reaper7 04-26-10 07:03 PM

Quote:

Originally Posted by TheDarkWraith (Post 1374495)
ok I lied....one more thing to add to v1.9.0 - making the messagebox draggable so you can put it where you want :03:

I think we need to add 2 more draggable charts to the nav map....what should they be?

If someone can come up with a better speed chart than I have included please send it my way and I'll include it in the next version.

And how about some more ideas?? You all gave me great ideas for v1.9.0. Keep 'em coming.....


How about a shipping lanes chart - Since we never got one this time in the box. I created one if you want it:
http://www.subsim.com/radioroom/down...o=file&id=1593

http://i236.photobucket.com/albums/f...H5_Preview.jpg

TheDarkWraith 04-26-10 07:17 PM

Quote:

Originally Posted by reaper7 (Post 1374514)
How about a shipping lanes chart - Since we never got one this time in the box. I created one if you want it:
http://www.subsim.com/radioroom/down...o=file&id=1593

http://i236.photobucket.com/albums/f...H5_Preview.jpg

whoa :o cool.....is this valid for SH5?? If so, I lied again.....this needs to be added to v1.9.0!

EDIT:

messagebox being draggable isn't going to make it into v1.9.0. Needs more work than I thought it would to make it work correctly.

reaper7 04-26-10 07:37 PM

Quote:

Originally Posted by TheDarkWraith (Post 1374522)
whoa :o cool.....is this valid for SH5?? If so, I lied again.....this needs to be added to v1.9.0!

EDIT:

messagebox being draggable isn't going to make it into v1.9.0. Needs more work than I thought it would to make it work correctly.

It should be. Someone had posted a scanned in version from the SH5 Box set where the Map was an Extra. (Didn't like the washed out brown look of the original, So redone it).

Map graphics were taken of the web form a earthquake mapping site so all the trench and fault names are on the map plus depth is shown in colour.

TheDarkWraith 04-26-10 07:51 PM

Reaper's shipping chart added (I had to resize it to minimize use of texture memory - the original size was huge!):
http://www.subsim.com/radioroom/pict...pictureid=1921

kylania 04-26-10 07:52 PM

Quote:

Originally Posted by TheDarkWraith (Post 1374495)
I think we need to add 2 more draggable charts to the nav map....what should they be?

knots in meters per minute and knots in km per hour. :DL

The others from SH3 were Flags and Minefields and convoys. Though, those will be of limited use till 1.2 allows importing of other ships and something fixes the convoys, basically a player campaign. heh

The dragable map tools or attack wheels would be cool too, from MaGui if possible.

TheDarkWraith 04-26-10 08:05 PM

Quote:

Originally Posted by kylania (Post 1374549)
knots in meters per minute and knots in km per hour. :DL

The others from SH3 were Flags and Minefields and convoys. Though, those will be of limited use till 1.2 allows importing of other ships and something fixes the convoys, basically a player campaign. heh

The dragable map tools or attack wheels would be cool too, from MaGui if possible.

adding the two charts you sent me now.....

reaper7 04-26-10 08:12 PM

QUOTE=TheDarkWraith;1374548]Reaper's shipping chart added (I had to resize it to minimize use of texture memory - the original size was huge!):
[/QUOTE]

:D You should see my Photshop version. That was using the most compression I could get away with :D.
I should have the SH5 Logo on a seperate layer if you want a version without the Logo.

TheDarkWraith 04-26-10 08:31 PM

Speed tables added that were sent to me by kylania. Tooltips added to all the draggable charts - draggable compass doesn't get one.

Current draggable charts:
- Shipping chart by reaper7
- Tabelle Std
- Tabelle Min

Current draggable tools:
- compass

http://www.subsim.com/radioroom/pict...pictureid=1922

reaper7 04-26-10 08:34 PM

Hi DW, I've been trying the Draggable code, but no luck. Can you see anything obvious.
This is for an Attack Disc like that in OLC and MUI Mods:

Pageobsperiscope_AttackDisc is the Menu Group that all the Bmp Array Images for the dials are contained in.
The Drag Icon appears in the game once the mouse is placed over the Attack Disc, but it won't budge.

Code:

#Page obs periscope.py
from menu import *
from game import Game
# Globals
 
RAOBFShown = False
 
def InitializeScript():
 SetAttackDisc_Drag()
 Pageobsperiscope_ShipContext_LockButton.Visible = False
 Pageobsperiscope_ShipContext_UpArrow.Visible = False
 Pageobsperiscope_ShipContext_DownArrow.Visible = False
 Pageobsperiscope_LockToggle.Clicked += LockToggle
 Pageobsperiscope_RAOBFToggle.Visible = True
 Pageobsperiscope_RAOBFToggle.Clicked += RAOBFToggle
 RAOBFToggle( None )
 LockToggle( None )
 
def StartGame():
 Pageobsperiscope_RAOBF.Visible = False
 pass
 
def SetAttackDisc_Drag():
h = Pageobsperiscope_AttackDisc.AddMoveFixedSizeHandle()
h.SetSnapParent( Pageobsperiscope_AttackDisc, MenuItemWrapper.LocationPresets.Center)
s = Pageobsperiscope_AttackDisc.Size
h.Resizability = MenuItemWrapper.ResizabilityTypes.NoAspectRatioConstraint
h.Resize( s.Width, s.Height, False )
 
def LockToggle( sender ):
 Game.SubmarineCommands.ExecuteCommand(  "Toggle_lock_target" )
 
def RAOBFToggle( sender ):
 global RAOBFShown
 RAOBFShown = not RAOBFShown
 Pageobsperiscope_RAOBF.Visible = not RAOBFShown
 Pageobsperiscope_Compass.Visible = RAOBFShown
 Pageobsperiscope_Compassbkgr.Visible = RAOBFShown
 
def EndGame():
 pass
def UnloadScript():
 Pageobsperiscope_LockToggle.Clicked -= LockToggle
 Pageobsperiscope_RAOBFToggle.Clicked -= RAOBFToggle
 pass

I was thinking to start a new Thread down the road to show different scripts for Silent Hunter 5 for anyone with no scripting experience - king of like a SH5 Scripting wiki.

E.g to show Examples of basic things in scripting like Making a button work or Hidding/showing items.
Something that everyone could add examples to.

kylania 04-26-10 08:41 PM

Quote:

Originally Posted by reaper7 (Post 1374593)
I was thinking to start a new Thread down the road to show different scripts for Silent Hunter 5 for anyone with no scripting experience - king of like a SH5 Scripting wiki.

E.g to show Examples of basic things in scripting like Making a button work or Hidding/showing items.
Something that everyone could add examples to.

That's a really great idea!

reaper7 04-26-10 08:53 PM

Quote:

Originally Posted by kylania (Post 1374597)
That's a really great idea!

Thanks, its something that I sure could have used :D

Was thinking to do it very basic, i.e. single page examples in the following form:

Example: To Hide an Item

Code Structure
Code:


 
def: InitializeScript ()
 
 PageName_ParentGroupName_ControlName.Visible = True or False

Followed by a real example

Code:


 
def: InitializeScript ()
 
 Pageattackperiscope_AOBF_AOBFToggle.Visible = True

Above being possibly the most simple. The idea being that anyone could view it and pick out the type of function they need and copy and paste - just changing the nesseceary page and control names to theres. :03:

wetgoat 04-26-10 08:59 PM

Had to reinstall win 7 over the weekend. No big deal, as I had most of my stuff saved to disk. Problem is... reinstalled sh5 (works fine) but when I try to open this mod to the version I want, my computer tells me that it can't open a py file. Must be missing a program or something, but have been unable to figure it out.:damn: Everything worked fine before win7 reinstall. Any help with this problem would be very much appreciated.

TheDarkWraith 04-26-10 09:00 PM

Quote:

Originally Posted by wetgoat (Post 1374615)
Had to reinstall win 7 over the weekend. No big deal, as I had most of my stuff saved to disk. Problem is... reinstalled sh5 (works fine) but when I try to open this mod to the version I want, my computer tells me that it can't open a py file. Must be missing a program or something, but have been unable to figure it out.:damn: Everything worked fine before win7 reinstall. Any help with this problem would be very much appreciated.

you can open the file up with Notepad.exe


All times are GMT -5. The time now is 02:31 AM.

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