jpcsupplies / Economy_mod

Basic Economy System for Space Engineers
13 stars 12 forks source link

[player request enh] Method to break up the LCD list across more than one LCD #149

Closed jpcsupplies closed 7 years ago

jpcsupplies commented 7 years ago

A player on a server which has a ton of mods that results in more components than a single LCD can legibly show on a single screen has asked if we have any way to allow components to be spread out on more than one screen.

Two possible solutions might be:

I can possibly hack together a #'th line solution, but there may be a better way. What are your thoughts @midspace ?

midspace commented 7 years ago

I did consider following what MMaster did, creating this group linking, "!LINK:GROUP NUMBER" http://steamcommunity.com/sharedfiles/filedetails/?id=407158161

But it's a level of complexity that is not required for a fixed system. The plan was to simply specify the Page number. The line number would be calculated automatically from the text size. The rest would fall into place easily. ie.,

"components P1"

"components P2"

"components P3"

jpcsupplies commented 7 years ago

Think i've got a super simple solution, just committing at the moment.

Adds keyword #
so

[economy]
* #50

Would display only from item 50 onwards.

Crazy simple and even i could code it :)

jpcsupplies commented 7 years ago

Hows that look, works for me when i test it, but it may be less than entirely elegant.

jpcsupplies commented 7 years ago

Ok i've disabled my mission tech demo with a || false and pushed the version with this to public.. god help us all i put my code in the wild lol

jpcsupplies commented 7 years ago

If the code seems ok (ie wont burn any houses down) or if you trim it down to something more efficient feel free to close this issue, otherwise ill close it when i hear from you next or I have double checked this build is behaving ok on ramblers.. i am also ordering some C# teach yourself books.. so if i learn anything useful I might be less incompetent in c# than usual in a month or so lol.

jpcsupplies commented 7 years ago

All seems well on ramblers for this feature.