StrangeLoopGames / EcoModKit

Eco Modkit
https://docs.play.eco
69 stars 25 forks source link

Modding Custom UI Pages To Show A List Of Information. #24

Open Jinjer88 opened 3 years ago

Jinjer88 commented 3 years ago

Is your feature request related to a problem? Please describe. Not being able to display custom information on some UI pages by code/modding.
I'm working on different mods that add new skills/professions to the game. And I want to display some information about the skill in a UI page, preferably when the player clicks or presses E on an object like a desk or using a device/tool. Let's say a prison mod. Prison guard needs to check the list of prisoners and some other information about them, he can walk to the office desk and press E, a page opens up and all the information about the prisoners are there. Or for a police mod, officers can check the monitor inside the police car to see a list of reported crimes or suspects.

Describe the solution you'd like A way to add custom UI pages using server scripts. Using an action, like right clicking on a desk, opens a UI page that can be filled with information with texts and possibly buttons. In the prison mod example, a way to add new entries either by code or in-game menu would be really nice. Like clicking a + button to add another item to a list of information. Or just auto fill all the entries with server code, like how it is with shops listing all the items for sale automatically.

Describe alternatives you've considered For this specific mod I'm working on, the only solution is roleplay, like adding custom signs for different scenarios, for example a sign for every prison cell and changing the name every time a new prisoner checks in. Would have been nice to have a UI to show all prisoners when you open the prison guard's desk.

Additional context