Last active
June 25, 2023 20:36
-
-
Save Elliot-Markus-John-Adams/b338aab76bbaa0c4f879630a61d97122 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _UI_FEED_POST_HELP_TEXT ( 0x049D5C615BD38BAD ) = Text top left of screen ( aka help text) | |
| _UI_FEED_POST_LOCATION_SHARD = ( 0xD05590C1AB38F068 ) = Text at center top of screen ( rectangle with title of area & subtitle) | |
| _UI_FEED_POST_OBJECTIVE = ( 0xCEDBF17EFCC0E4A4 ) = Text at center bottom of screen | |
| _UI_FEED_POST_SAMPLE_TOAST ( 0x26E87218390E6729 ) = Like _UI_FEED_POST_HELP_TEXT but with textures. | |
| _UI_FEED_POST_MISSION_NAME = ( 0x2024F4F333095FB1 ) = Displays text (mission name) at the bottom right of screen. | |
| _UI_FEED_POST_SAMPLE_TOAST_RIGHT = ( 0xB249EBCB30DD88E0 ) = Text at the center right of the screen. Kind of like _UI_FEED_POST_HELP_TEXT but without the rectangle around it. | |
| _UI_FEED_POST_RETICLE_MESSAGE = ( 0x893128CDB4B81FBB ) = Text at the center of the screen. (Maybe used for debug?) | |
| _UI_FEED_POST_ONE_TEXT_SHARD = ( 0x860DDFE97CC94DF0 ) = Text at the center top of the screen, large scaling. | |
| struct sFeedData | |
| { | |
| alignas(8) int duration; //how long to display the feed item for (milliseconds) | |
| alignas(8) const char* f_1; //Used with UIFEED::0xAFF5BE9BA496CE40, seems to set the background colour, untested. | |
| alignas(8) const char* f_2; //Used with UIFEED::0xAFF5BE9BA496CE40, seems to set the background colour, untested. | |
| alignas(8) int f_3; | |
| alignas(8) int f_4; //Seems to be a struct for the UIFEED::_0xAFF5BE9BA496CE40 native. | |
| alignas(8) int f_5; | |
| alignas(8) const char* secondary_subtitle; //Used with natives like UIFEED::_UI_FEED_POST_SAMPLE_TOAST. Displays another subtitle once the primary once has been displayed (from FeedInfo.subtitle). | |
| alignas(8) int f_7; | |
| alignas(8) int f_8; | |
| alignas(8) int f_9; | |
| alignas(8) int f_10; | |
| alignas(8) int f_11; | |
| alignas(8) int f_12; | |
| }; | |
| struct sFeedInfo | |
| { | |
| alignas(8) int f_0; | |
| alignas(8) const char* title; //The title of the feed item. | |
| alignas(8) const char* subtitle; //the main subtitle of the feed item. | |
| alignas(8) int f_3; | |
| alignas(8) int texture_dictionary_hash; //the texture dict hash. Used with natives like UIFEED::_UI_FEED_POST_SAMPLE_TOAST | |
| alignas(8) int texture_name_hash; //the texture name hash. Used with natives like UIFEED::_UI_FEED_POST_SAMPLE_TOAST | |
| alignas(8) int f_6; | |
| alignas(8) int f_7; | |
| }; | |
| ---------------- | |
| Usage example: | |
| FeedData data; | |
| memset(&data, 0, sizeof(data)); | |
| data.duration = 10000; | |
| FeedInfo info; | |
| memset(&info, 0, sizeof(info)); | |
| info.title = MISC::VAR_STRING(10, "LITERAL_STRING", "Press ~INPUT_CONTEXT~ to do stuff!"); | |
| UIFEED::_UI_FEED_POST_HELP_TEXT((Any*)&data, (Any*)&info, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment