INFOPEDIA
Unreal Engine 5 Tutorial
How to use?
To add categories open "ECategories" and add a new line with the name of the main category (example: INFOPEDIA). After adding Sub-Categires (example: INFOPEDIA|How To Use) be sure to use the delimiter "|". You can translate them into other languages through the Localization Dashboard.
Since moving enum elements change their order everywhere, the displayed list is compiled depending on the order in the table "DT_Infopedia".
Now you can add content. Open "DT_Infopedia" and add a new line. To display the main category, you need to add it, too, with an empty description. Without the main category in the table, its sub-categories will not be displayed either. You can also use custom widgets.
Custom Widgets
To create your own custom widget look at the folder INFOPEDIA>UMG>Examples>W_Infopedia_Custom_Example_01 - an example of how to use a custom widget without a sub-category name. Always leave a W_Infopedia_Title widget so that you can navigate to it, just set its isHidden variable in the detail panel. W_Infopedia_Custom_Example_02 is a classic usage example, before creating your own just duplicate one of the above widgets. All custom widgets contain 2 variables: ECategories - Enum with category. Text - Body from table.
Background
If you need a transparent background, then in W_Infopedia_MainFrame remove the Background element.
Addditional Functions
This is usually used as a book that you can open from a menu or a key, however I have left a helper function in case you need to direct the player to the right item at the moment. For example: the player received a new sword and next to the sword is a button to explore, which directs to the right place in the guide. Example 2: The player is damaged and you pause the game and show the guide window in the right place.
Is Show Cursor - used in case you decide to call the guide window directly from the game, then it will do Set Input Mode Game And UI and back Set Input Mode Game Only.
To open without using a category:
You can use ready-made functions to call, but if you want to call from a menu, for example, then I advise you to add W_Infopedia_MainFrame to your menu widget and open it with similar functions, but using W_Infopedia_MainFrame as the target.
Audio player
Custom:
Data Table:
Video player
Open the Game>Content>Infopedia>Movies folder and add your mp4 video to the folder.
Drag this file from the project folder (in the Content Browser) to the Content>Infopedia>Movies folder and open check the Precache File checkbox.
Go to project settings:
Open "DT_Infopedia" and add your video.
YouTube Video player (Experimental)
Enable plugin:
Open "DT_Infopedia" and add your video.
Still have questions?
If you have any questions, please write to me by mail: myalreadyday@gmail.com