[MOD] UI - Thinned Station Columns

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

pesoda
Posts: 16
Joined: Thu, 13. Dec 18, 19:45
x4

[MOD] UI - Thinned Station Columns

Post by pesoda »

This is a sample UI mod that accessed to “Object List” and “Property Owned” in the left bar. Double-height of station columns were changed to single-height. This patch will increase amount of information to be displayed at same time.

Figure

Download
Copy the directory to “X4 Foundations/extensions” (create if needed).

Known Problem or Future work
- Information of number of subordinates are not displayed in “Property Owned”.
- UI patches can conflict (General issue).

Memo
In this try, only one line was edited in ui/addons/ego_detailmonitor/menu_map.lua.
function menu.createPropertyRow

Code: Select all

local isdoublerow = (iteration == 0 and (isstation or #subordinates > 0))
to

Code: Select all

local isdoublerow = (iteration == 0 and (not isstation and #subordinates > 0))
I suggest that you find (Ctrl+F) in menu_map.lua using a keyword, “function menu.create”. The results will indicate right places to be modified. I wish you to utilize this example for your purpose. And feel free to modify and reupload.
cdeeks
Posts: 89
Joined: Tue, 22. Jan 13, 20:38
x3tc

Re: [MOD] UI - Thinned Station Columns

Post by cdeeks »

Great work, please tell me this will do some good to help with map fps dropping?
User avatar
nonnex
Posts: 366
Joined: Wed, 28. Aug 13, 12:42
x4

Re: [MOD] UI - Thinned Station Columns

Post by nonnex »

Nice, small things has a great effect sometimes. good job!

Computer Science is not just about coding, but more about data treatment aka making a lot of Information easy consumable for normal human beeings ;)
This change (data compression) is a good first step.

Next step, make use of colors and icons. Different entry types like stations or moving objects (ships) and so on should have an own pattern to make it easier to differentiate.
Humans can recognize colors/patterns(Icons) faster then text.
pesoda
Posts: 16
Joined: Thu, 13. Dec 18, 19:45
x4

Re: [MOD] UI - Thinned Station Columns

Post by pesoda »

Thanks for comments.
cdeeks wrote: Sat, 5. Jan 19, 17:02 Great work, please tell me this will do some good to help with map fps dropping?
This patch can reduce very small part of costs for processing objects, but I expect that we cannot feel it. In future, someone will try to improve fps by creating additional simple UI.

nonnex wrote: Sat, 5. Jan 19, 17:03 Computer Science is not just about coding, but more about data treatment aka making a lot of Information easy consumable for normal human beeings ;)
This change (data compression) is a good first step.

Next step, make use of colors and icons. Different entry types like stations or moving objects (ships) and so on should have an own pattern to make it easier to differentiate.
Humans can recognize colors/patterns(Icons) faster then text.
1) For instance, I imagine that a new price chart is essential to handle flowing data from many satellites. If the key functions to process info statistically are made, the way to correct unreal X-market will also be opened (e.g. disable "Average Price" that (max+min)/2, etc).
2) Providing evaluated info using colors/patterns is nice idea. That has a potential to affect our whole gaming experience. Ideally, it will need another window for setting global parameters.

Return to “X4: Foundations - Scripts and Modding”