InfoCard GUI Hack Request
-
Hello folks, I’m currently in charge of adding all the infocards for the FW:ToW mod.
While I was figuring out where the different IDS_info entries are located, i came across an issue with IDS_info’s 2 and 3. I understand what each does but the issue is that it only allows for 8 lines of text.
In FW:ToW, our ships weapons and equipment are hard coded in and the Technical data, which goes in these two lines, is 14 lines long minimum, with up to 18 on some capital ships. We can’t do separate “Tech Name”(IDS_info2) and “Stats”(IDS_info3) because some ships have more equipment/weapons than others.
What I am requesting is if a scroll bar could be added to the right lower pane of the Ship Dealer window just like the one on the left. So players can see the Ship Description on the left and Manufacturer and Technical data on the right.
Here’s a screen shot of what I mean:
As you can see in the image, the left pane has a scrolling bar that allows you to see further down the “window” but, the right side does not, cutting at 8 lines. What I’m asking for is if it where possible to implement a scroll bar on the right side.
Any and all help will be most appreciated.
Curri.
-
freelancer.exe 0811E4 E17A94->713D8A = make "Infocard_Stats" smaller (0.29->0.27) for scroll freelancer.exe 0B7D25 8FC275->1F856B = make "ShipInfocard_Stats" smaller (0.24->0.23) for scroll freelancer.exe 0B8DE9 538B->EB06 = allow scroll for "ShipInfocard_Stats" freelancer.exe 0B8EE3 538B->EB06 = allow scroll for "ShipInfocard_Values" ```The first one stops the scroll bar from overlapping the stats after selecting a ship; the others are what you asked for. You do have to scroll "stats" separately from "values", though, but that can't be helped.
-
Awesome. One thing though. When I edited the first(or forth, can’t remember off hand) part, my game crashed. I don’t doubt it was an error inputting the info but, for those of you using this, keep that in mind.
Secondly, I am only using the ShipInfocard_Stats, discarding the ShipInfocard_Value as the layout of the infocards we’re using does not permit this.
I’ve only used two of the “hacks”
freelancer.exe 0B7D25 8FC275->1F856B = make "ShipInfocard_Stats" smaller (0.24->0.23) for scroll freelancer.exe 0B8DE9 538B->EB06 = allow scroll for "ShipInfocard_Stats"
To make the Shipinfocard_Stats larger, I’ve changed the value of:
freelancer.exe 0B7D25 8FC275->1F856B = make "ShipInfocard_Stats" smaller (0.24->0.23) for scroll
to:
freelancer.exe 0B7D25 8FC275->1DB6D0 = make "ShipInfocard_Stats" smaller (0.24->0.23) for scroll
increasing the Shipinfocard_Stats window by 60 Bytes. Here’s an example of what I did:
As you can see, I am ignoring the info in Shipinfocard_Value(IDS_Name3) so I only have 2 windows at the bottom. One for the description the other for the Technical data.
-
Gisteron wrote:
so, with that hack there are no two columns anymore for the stats but only one, right?There is already 3 columns in the ship dealer infocard. This hack permits adding a scroll bar to each of the 2 right columns so you can add more information if desired.
I just used two of those columns for FW:ToW purposes.
Thank you so much adoxa, you’ve just doubled my work :lol:
-
Gisteron wrote:
okay… is there a way to force the scroll bars added by these to always do move together? or, if easily possible ofc, even show one single (stats) scroll bar scrolling both stats columns…adoxa wrote:
You do have to scroll “stats” separately from “values”, though, but that can’t be helped.I don’t think so. But, I’ll leave that for adoxa to answer.
Also can’t thank you enough adoxa. You, like w0dk4 and Qi are the code.
-
-
adoxa wrote:
@currican: Oops, the first line was indeed wrong - fixed it (typo, doubling the E instead of the 1).@Gisteron: With a bit of mucking about, I can have the one scroll bar to scroll both windows. I guess I’d need to do it for the ship selection as well as ship info screens. Anywhere else?
Nice hack Adoxa… Been wondering if this could be done for a long time now!
Anywhere else? Weapon infocards please…
-
I won’t (yet?) make it part of the plugin, but here’s the hexedits.
freelancer.exe 08122A 0.17f = size of stats values ~adoxa freelancer.exe 08123C 0.99f = position of stats values ~adoxa freelancer.exe 0B7D60 0.14f = size of stats values (ship dealer) ~adoxa freelancer.exe 0B7D75 0.27f = position of stats values (ship dealer) ~adoxa