Page 1 of 1

TH Ship More Info Mod

Posted: Mon Oct 06, 2014 10:30 am
by TimothyHills
TH Ship More Info ModAdds ship description to the Ship Market and your Ship Info screens.Avoids being cluttered by making allowance for small screen resolutions.A standard version and a version that is compatible with Scout Plus.ShipsAll the stock ships and many others have descriptions. More descriptions can be added by editing the files libsShipMoreInfo.lua and langship-more-info*.json. The ShipMoreInfo.lua file uses the name of the ship, found in the ship's definition file ships*.lua, to gain a reference to the description stored in the language files. Descriptions can be shared with multiple name variants of the same ship. To prevent a description from being truncated keep descriptions to a maximum length of around 750 characters. Test all is well by having a screen resolution of 1600 wide and viewing the ship in the Ship Market screen and edit your description as needed. If you wish to share your additional ship descriptions with the community then leave a reply to this post and I will then include them in the mod for all to use. Screen ResolutionIn the Ship Market screen the description is displayed along side the rotating ship image. If the screen width is less than 1600 pixels then a More Info button is displayed instead to present a message of the description. The default width setting can be changed in the file libsShipMoreInfo.lua. Download standard version: [attachment=2830:TH_Ship_More_Info_Mod_v1.0.zip]Download Scout Plus version: [attachment=2831:TH_Ship_More_Info_Mod_SP_v1.0.zip]

RE: TH Ship More Info Mod

Posted: Mon Oct 06, 2014 4:36 pm
by nozmajner
This looks very nice. Why don't you put it up ina PR on github, so it could find it's way into the game?We had some talk about this kind of feature a while ago, but it seems, everybody forgot about it. I remember there were some indecision, where to put the descriptions to make the thing mod and translation-friendly at the same time.