Fix lightbar settings, add failsafe retry loading for icons and action button handles when the icons fail to load for reasons. Fix sin wave breathing for lightbar on death screen, misplaced division operation. Release Build 8418.
This commit is contained in:
@@ -174,14 +174,16 @@ void Input::Initialize(){
|
||||
|
||||
void Input::LoadSteamButtonIcons(){
|
||||
GFX.Unlock();
|
||||
LOG(std::format("Steam Icons may be required... Loading in {} icons",int(k_EInputActionOrigin_Count)));
|
||||
for(int i=1;i<k_EInputActionOrigin_Count;i++){
|
||||
const char*imageName{SteamInput()->GetGlyphPNGForActionOrigin(EInputActionOrigin(i),k_ESteamInputGlyphSize_Small,0U)};
|
||||
if(imageName!=nullptr){
|
||||
std::string loadImage{imageName};
|
||||
if(loadImage.length()>0&&!GFX.count(loadImage)){
|
||||
if(loadImage.length()>0&&(!GFX.count(loadImage)||GFX.at(loadImage).Decal()==nullptr)){
|
||||
LOG(std::format("Loading steam image {}",loadImage));
|
||||
GFX[loadImage].Load(loadImage);
|
||||
if(!GFX.count(loadImage))GFX[loadImage];
|
||||
if(GFX.at(loadImage).Load(loadImage)!=rcode::OK){
|
||||
LOG(std::format("WARNING! Failed to load steam image {}!",loadImage));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user