SaveTool: update formatting of accessory numbers.
This commit is contained in:
parent
b58ff5a763
commit
c054169124
1 changed files with 2 additions and 2 deletions
|
@ -496,7 +496,7 @@ void SaveTool::drawAccessoryEditor(Accessory& accessory, Containers::ArrayView<C
|
||||||
ImGui::TextUnformatted("Accessory: <none>");
|
ImGui::TextUnformatted("Accessory: <none>");
|
||||||
}
|
}
|
||||||
else if(accessories.find(accessory.id) != accessories.cend()) {
|
else if(accessories.find(accessory.id) != accessories.cend()) {
|
||||||
ImGui::Text("Accessory #%i - %s", accessory.id, accessories.at(accessory.id).name.data());
|
ImGui::Text("Accessory #%.4i - %s", accessory.id, accessories.at(accessory.id).name.data());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ImGui::Text("Accessory #%i", accessory.id);
|
ImGui::Text("Accessory #%i", accessory.id);
|
||||||
|
@ -604,7 +604,7 @@ void SaveTool::drawAccessoryEditor(Accessory& accessory, Containers::ArrayView<C
|
||||||
if(ImGui::BeginListBox("##AccessoryListbox", {-1.0f, 0.0f})) {
|
if(ImGui::BeginListBox("##AccessoryListbox", {-1.0f, 0.0f})) {
|
||||||
for(const auto& acc : accessories) {
|
for(const auto& acc : accessories) {
|
||||||
if(acc.first >= tab * 1000 && acc.first < ((tab + 1) * 1000) && (!size || *size == acc.second.size)) {
|
if(acc.first >= tab * 1000 && acc.first < ((tab + 1) * 1000) && (!size || *size == acc.second.size)) {
|
||||||
if(ImGui::Selectable(Utility::format("{} ({})", acc.second.name, size_labels[acc.second.size]).data(),
|
if(ImGui::Selectable(Utility::format("#{:.4d} - {} ({})", acc.first, acc.second.name, size_labels[acc.second.size]).data(),
|
||||||
acc.first == accessory.id))
|
acc.first == accessory.id))
|
||||||
{
|
{
|
||||||
accessory.id = acc.first;
|
accessory.id = acc.first;
|
||||||
|
|
Loading…
Reference in a new issue