Skip to content

Commit

Permalink
Interface: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Aug 7, 2021
1 parent 896f2ed commit 8ea56a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/gui/Interface.cpp
Expand Up @@ -1648,14 +1648,16 @@ void ArxGame::manageEntityDescription() {

pTextManage->Clear();
std::string description = ss.str();

PlatformDuration duration = 0; // just for this frame
if(!config.input.autoDescription) {
PlatformDuration duration = 2s + description.length() * 60ms;
pTextManage->AddText(hFontInGame, std::move(description), rDraw, Color(232, 204, 143), duration);
} else {
pTextManage->AddText(hFontInGame, std::move(description), rDraw, Color(232, 204, 143));
duration = 2s + description.length() * 60ms;
}

pTextManage->AddText(hFontInGame, std::move(description), rDraw, Color(232, 204, 143), duration);

}

}

EntityHandle LastSelectedIONum = EntityHandle();
Expand Down

0 comments on commit 8ea56a5

Please sign in to comment.