mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
Ensure placefile text IDs are unique, ensuring correct text placement
This commit is contained in:
parent
6e42001281
commit
eaf5089526
1 changed files with 2 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ void PlacefileLayer::Impl::RenderText(
|
|||
float x,
|
||||
float y)
|
||||
{
|
||||
const std::string windowName {fmt::format("PlacefileText-{}", ++textId_)};
|
||||
const std::string windowName {
|
||||
fmt::format("PlacefileText-{}-{}", placefileName_, ++textId_)};
|
||||
|
||||
// Convert screen to ImGui coordinates
|
||||
y = params.height - y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue