View Single Post
Old 05-19-13, 03:32 AM   #10005
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

While on the plane again I finally wrote the DLL responsible for the user charts. Starting with v7.4.0 this will be available.

The old charts are no longer available in the mod. Instead when you click the charts icon in the upper right lower bar you will see a new scrollable window like so:



I'm referring to the User charts window. If you place your mouse inside this window you can scroll through all the user charts defined. Clicking a user chart will enable/disable it (make it visible/hide it). By clicking the little round circle in the upper right corner you can expand the user charts to see more user charts at once:



If you have user charts enabled and you click the charts icon to disable it then all user charts and the user charts window will hide. If you then click the charts icon again to enable it everything will reappear just like it was before.

If you have a user chart enabled in the user charts window and you mouse over that item in the user charts window you will cause that user chart to 'jump' to the front and become visible. This is very handy when you have multiple user charts enabled and you quickly want to view a certain chart.

You are allowed to define 16 user charts. User charts are defined in the \data\UserCharts\UserCharts.TDW file (open with Notepad to edit). There are many options in the UserCharts.TDW file. Here is the contents of that file as of now:

Code:
; User Charts
; 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 16. Anything after 16 will be ignored!
; [ENDCHARTS] must be the last line in the file!
 
[Chart]
Name=Flags
Filename=FlagChart.dds
Size=-1,-1
Position=20,20
Draggable=1
ToolTip=Flag chart
 
[Chart]
Name=Shipping (colored)
Filename=SH5_Shipping_Chart_Colored.dds
Size=-1,-1
Position=10,10
Draggable=1
ToolTip=Colored shipping chart
 
 
[Chart]
Name=Shipping (non-colored)
Filename=SH5_Shipping_Chart.dds
Size=-1,-1
Position=10,10
Draggable=1
ToolTip=Non-colored shipping chart
 
 
[Chart]
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]
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]
As you can see it's very easy to define new user charts. Simply add the required entries in the UserCharts.TDW file and drop your .dds file for it in \data\UserCharts.

You can override the .dds file's dimensions by specifying Size=x,y instead of Size=-1,-1.

By placing you mouse inside the area where the User charts text is you will be able to drag the User charts window anywhere on the screen you would like (it's draggable).

The User charts title (text) is a menu entry in the menu.txt file so it can accommodate different languages. It's menu entry # is 10000.

SOAN is still tied to the Charts icon (thus SOAN is only visible when charts are enabled).


Change log for v7.4.0 as of now:
v7.4.0 - removed the polling for the DestroyedMarks
- in process of rewriting destroyed marks code. Destroyed marks are no longer saved to ship's journal. At game start the mod will read the destroyed marks from the campaign file and add them to the map
- added all strings needed by my Generic Patcher to all the menu files for the mod
- redid how the charts are done. Now when user clicks the Charts icon in the low right upper bar a list box will be shown will all available user charts defined. By clicking the checkbox for each user chart defined you will control their visibility. Mousing over a user chart that is enabled will cause it to jump to the front (visibility). User charts are defined in the file \data\UserCharts\UserCharts.TDW (open with Notepad).

More work to do on the next version...

Last edited by TheDarkWraith; 05-19-13 at 03:42 AM.
TheDarkWraith is offline   Reply With Quote