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)

Trevally. 05-19-13 03:45 AM

This is great, thanks:yeah:

Bathrone 05-19-13 04:05 AM

Goodness :salute::yeah::up:

Fifi 05-19-13 04:09 AM

Just excellent :yeah:
Thanks for that! (and all other things!)

Sartoris 05-19-13 04:10 AM

A wonderful new addition to the already excellent mod!:woot:

Mikemike47 05-19-13 07:59 AM

Wonderful:up:

TheDarkWraith 05-19-13 10:05 AM

Quote:

Originally Posted by Mikemike47 (Post 2058683)
I have posted about this to TDW to update the meu.txt in hopes of others would not be continuously asking.

All menu entries needed in the menu.txt files for my Generic Patcher have been added starting with v7.4.0.

I've increased the max # of user charts you can define to 20 (I didn't want to have to go back and change this later so it was best to do it now :D)

gap 05-19-13 11:28 AM

Quote:

Originally Posted by TheDarkWraith (Post 2059012)
While on the plane again I finally wrote the DLL responsible for the user charts...

Excellent news :up:

I have a few small suggestions, as usual: :D

- could you make the user charts tab to diplay a (user customizable) icon for each chart, close to its name? A visual feature more than a else, but it would also help the player to quickly locate the desired chart if many are enabled.

- how difficult would be increaing the limit of 16 custom charts?

- could yo sort the charts in customizable categories (e.g: shipping charts, navigation tables, weather charts, etc.).

- most important: could you make each chart to have its own cfg file, instead of being listed in one common cfg file? It would make your implementation of the custom chart feature even more "generic", and it would allow people to simply enable additional charts in JSGME, without having to edit any cfg file :03:

TheDarkWraith 05-19-13 11:45 AM

Quote:

Originally Posted by gap (Post 2059155)
could you make the user charts tab to diplay a (user customizable) icon for each chart, close to its name? A visual feature more than a else, but it would also help the player to quickly locate the desired chart if many are enabled.

No promises here. I'll see how difficult it would be to implement.

- how difficult would be increaing the limit of 16 custom charts?

Would require a new rev of the mod as too many things would need to be changed. I increased the limit to 20.

- could yo sort the charts in customizable categories (e.g: shipping charts, navigation tables, weather charts, etc.).

That's getting into an Automation type setup and once was enough for me currently. Besides it would eat too much screen real estate to implement. Look at the size of the Automation window, it's huge!

- most important: could you make each chart to have its own cfg file, instead of being listed in one common cfg file? It would make your implementation of the custom chart feature even more "generic", and it would allow people to simply enable additional charts in JSGME, without having to edit any cfg file :03:

this I can more than likely do and will look into it now.

see above in yellow.

gap 05-19-13 12:30 PM

Quote:

Originally Posted by TheDarkWraith (Post 2059167)
No promises here. I'll see how difficult it would be to implement.

Okay. If it takes too long just scrap my idea: there are more important aspects of this game that are waiting for you to take care of them :D

Quote:

Originally Posted by TheDarkWraith (Post 2059167)
I increased the limit to 20.

Okay, better than nothing

Quote:

Originally Posted by TheDarkWraith (Post 2059167)
That's getting into an Automation type setup and once was enough for me currently. Besides it would eat too much screen real estate to implement. Look at the size of the Automation window, it's huge!

I was thinking of a more basic graphic implementation of it. For instance something like this:

http://img15.imageshack.us/img15/726/usercharts.jpg

Quote:

Originally Posted by TheDarkWraith (Post 2059167)
this I can more than likely do and will look into it now.

:up:

Fifi 05-19-13 03:58 PM

Where is the download link for 7.4? :oops:

volodya61 05-19-13 04:40 PM

Quote:

Originally Posted by Fifi (Post 2059289)
Where is the download link for 7.4? :oops:

:o

It's not released yet.. be patient and stay tuned :D

Fifi 05-19-13 05:23 PM

Quote:

Originally Posted by volodya61 (Post 2059322)
:o

It's not released yet.. be patient and stay tuned :D

Okay! :haha:
Thought it was already out! lol

TheDarkWraith 05-19-13 05:38 PM

Quote:

Originally Posted by gap (Post 2059185)
I was thinking of a more basic graphic implementation of it. For instance something like this:

http://img15.imageshack.us/img15/726/usercharts.jpg

Have it coded in (no radio buttons though - checkboxes) :D Testing it now.

Just have to revise the DLL code for possibility of multiple user charts files.

TheDarkWraith 05-19-13 05:51 PM

ok all that works perfectly. Now just have to update the DLL code to handle multiple user chart files.

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

this window is pretty cool in how it works :D The top is the title bar and where you put your mouse to drag the window anywhere on screen. The total left side of the user charts window can be grabbed with the mouse and expanded to the left in case you have long names in it.

Below that are all the categories read in from the files. Notice the small round button. Clicking it will expand/contract only the section it is in. Pretty cool :D You can only have one category checked at a time. Each time you click a category the bottom section will either fill in with all the available charts for that category or clear out to nothing (category not checked). When the game starts the 'Default' category is automatically selected.

Below the categories box are the charts box. When a category is checked all of it's charts are listed here. Check a chart to display it. Uncheck to hide.

Switching categories does not uncheck the charts already enabled for the previous category. You have to manually uncheck them yourself.

Clicking the charts icon will either show everything that is currently enabled or hide everything.

Revised UserCharts file:
Code:

; User Charts
; Category= the category where the chart will fall under (can be anything!) - if left blank will default to Default category
; Name= specifies the name to be shown in the charts listbox
; Filename= name of the DDS file of the chart (including .dds extension!) - user charts can ONLY be DDS files!
; Size= if you specify -1 then the DLL will get the size needed (width and/or height) from the image itself else you can specify custom size for the chart (image)
; Position= specifies the position on screen relative to upper left corner of game screen
; Draggable= valid values are 1 (yes) or 0 (no). If a 1 then you will be able to drag the chart anywhere on screen
; ToolTip= the tooltip displayed when the mouse is placed over the visible chart (image)
; max number of charts that can be defined is 20. Anything after 20 will be ignored!
; [ENDCHARTS] must be the last line in the file!
 
[Chart]
Category=
Name=Flags
Filename=FlagChart.dds
Size=-1,-1
Position=20,20
Draggable=1
ToolTip=Flag chart
 
[Chart]
Category=Shipping
Name=Shipping (colored)
Filename=SH5_Shipping_Chart_Colored.dds
Size=-1,-1
Position=10,10
Draggable=1
ToolTip=Colored shipping chart
 
 
[Chart]
Category=Shipping
Name=Shipping (non-colored)
Filename=SH5_Shipping_Chart.dds
Size=-1,-1
Position=10,10
Draggable=1
ToolTip=Non-colored shipping chart
 
 
[Chart]
Category=Speed conversions
Name=Knots in meters per minute
Filename=TabelleMin_English.dds
Size=-1,-1
Position=40,20
Draggable=1
ToolTip=conversion chart for knots in meters per minute
 
 
[Chart]
Category=Speed conversions
Name=Knots in kilometers per hour
Filename=TabelleStd_English.dds
Size=-1,-1
Position=60,20
Draggable=1
ToolTip=conversion chart for knots in kilometers per hour
 
[ENDCHARTS]


gap 05-19-13 06:01 PM

Quote:

Originally Posted by TheDarkWraith (Post 2059344)
Have it coded in (no radio buttons though - checkboxes) :D Testing it now.

Just have to revise the DLL code for possibility of multiple user charts files.

:rock:

I have been thinking of a funcional way to accomodate chart categories with individual chart cfg files. So far, these are the possible options that I thought of:

- defining some preset categories within a common cfg file, that individual chart cfg files should refer to.

- even better, making the game to parse all the available categories in chart cfg files. Indeed, there should be a maximum number of categories possible. If this limit is exceeded, all the categories in excess would be grouped in a preset super-category. In order to do it, you should device a category sorting system though.

EDIT: sorry, I see that you have already taken care of it: your wits is faster than my typing skills :doh:


All times are GMT -5. The time now is 10:44 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.