-
Notifications
You must be signed in to change notification settings - Fork 16
Add Rui Asset type #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
can RUIP specific functions and structs be moved to its own header? it keeps the asset files less cluttered, and is more inline with similar files such as MSW. more of a preference thing, but personally I'd name the asset file 'ui' like RSX does, not a big hitch but yeah. only main gripes with it currently, I've asked rexx to take a look too. |
Move package to own file Rename rui files to ui
r-ex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems good to me! just a few minor formatting changes, otherwise as long as it works i'm happy to merge this. thank you for the implementation!
| <ClInclude Include="public\lcd_screen_effect.h"> | ||
| <Filter>public</Filter> | ||
| </ClInclude> | ||
| <ClInclude Include="public\ruiPackage.h"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be rui_package.h?
| pak->AddPointer(hdrChunk,offsetof(RuiHeader_v30_s,renderJobData),renderJobChunk,0); | ||
|
|
||
| asset.InitAsset(hdrChunk.GetPointer(),sizeof(RuiHeader_v30_s), | ||
| PagePtr_t::NullPtr(),30,AssetType::UI); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would prefer if this version num was a define or a constexpr instead of just a magic number - easier to read at a glance
|
|
||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {"Ptch", PakAssetScope_e::kAll, Assets::AddPatchAsset, Assets::AddPatchAsset} | ||
| {"Ptch", PakAssetScope_e::kAll, Assets::AddPatchAsset, Assets::AddPatchAsset}, | ||
| {"ui", PakAssetScope_e::kClientOnly, Assets::AddRuiAsset_v30, nullptr} | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ARIG = TYPE_ARIG, // animation rig | ||
| SHDS = TYPE_SHDS, // shaderset | ||
| SHDR = TYPE_SHDR, // shader | ||
| UI = TYPE_UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| UI = TYPE_UI | |
| UI = TYPE_UI |
| uint16_t val_32; | ||
| }; | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| float elementHeight; | ||
| float elementWidthRcp; | ||
| float elementHeightRcp; | ||
| char* argNames; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this also be const char*?
| std::vector<Argument_s> arguments; | ||
| std::vector<ArgCluster_s> argCluster; | ||
| std::vector<char> styleDescriptors; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uint32_t renderJobSize; | ||
| uint32_t keyframingSize; | ||
| uint32_t defaultStringsSize; | ||
| uint64_t argNamesOffset;//debug only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| uint64_t argNamesOffset;//debug only | |
| uint64_t argNamesOffset; //debug only |
maybe worth separating out offsets from sizes as otherwise this is quite a wall of variables
| #define TYPE_ARIG MAKE_FOURCC('a', 'r', 'i', 'g') // arig | ||
| #define TYPE_SHDS MAKE_FOURCC('s', 'h', 'd', 's') // shds | ||
| #define TYPE_SHDR MAKE_FOURCC('s', 'h', 'd', 'r') // shdr | ||
| #define TYPE_UI MAKE_FOURCC('u', 'i', 0, 0) // ui |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #define TYPE_UI MAKE_FOURCC('u', 'i', 0, 0) // ui | |
| #define TYPE_UI MAKE_FOURCC('u', 'i', 0, 0) // ui |
Loads rui from RUIP files that are created with SERE
Only support v30 for now