View Single Post
Old 05-19-13, 05:51 PM   #10019
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

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



this window is pretty cool in how it works 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 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]
TheDarkWraith is offline   Reply With Quote