API:SetCareerMasteryImages
From RoR Wiki
UI Lua API · Career functions
Version: WAR 1.4.8
Loads the three mastery path images and makes them available as the textures career_mastery_image1 to career_mastery_image3.
SetCareerMasteryImages(path1, path2, path3)
Arguments
- path1
string– Image file for mastery path 1, relative to the interface directory.- path2
string– Image file for mastery path 2.- path3
string– Image file for mastery path 3.
Returns
Nothing.
Details
- Each path is joined to the interface directory in use (
directory/path): the custom interface directory when a custom main UI is enabled, otherwise the default one. The file loaded frompathNis registered under the namecareer_mastery_imageN. - Use the texture names with DynamicImageSetTexture.
- The stock specialisation training window calls this when the career line changes, with paths such as
"EA_InteractionWindow/Textures/EA_Mastery_Ironbreaker1_d1.dds".
Errors
None besides the generic Invalid Parameters message when an argument is not a string.
Example
From ea_interactionwindow/source/interactionspecialtytraining.lua:
SetCareerMasteryImages( pathName..careerImageNameLookUp[GameData.Player.SPECIALIZATION_PATH_1],
pathName..careerImageNameLookUp[GameData.Player.SPECIALIZATION_PATH_2],
pathName..careerImageNameLookUp[GameData.Player.SPECIALIZATION_PATH_3] )
Using one of the textures, from the same file:
DynamicImageSetTexture( "EA_Window_InteractionSpecialtyTrainingPicture", "career_mastery_image"..pathIndex, 0, 0 )
