Compare commits
No commits in common. "918ead073321cc323e1897145aff5b2e07bfecc3" and "71d38f4a91bffe69be7066bf0832eae8e4a36607" have entirely different histories.
918ead0733
...
71d38f4a91
2 changed files with 4 additions and 21 deletions
|
@ -130,10 +130,7 @@ auto Mass::writeArmourPart(ArmourSlot slot) -> bool {
|
||||||
|
|
||||||
for(UnsignedInt i = 0; i < armour_array->items.size(); i++) {
|
for(UnsignedInt i = 0; i < armour_array->items.size(); i++) {
|
||||||
part_prop = armour_array->at<GenericStructProperty>(i);
|
part_prop = armour_array->at<GenericStructProperty>(i);
|
||||||
if(slot_str == part_prop->at<ByteProperty>("Slot_3_408BA56F4C9605C7E805CF91B642249C"_s)->enumValue) {
|
if(slot_str != part_prop->at<StringProperty>("Slot_3_408BA56F4C9605C7E805CF91B642249C"_s)->value) {
|
||||||
break;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
part_prop = nullptr;
|
part_prop = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -389,8 +389,8 @@ void SaveTool::drawWeaponEditor(Weapon& weapon) {
|
||||||
weapon.damageType = DamageType::Freeze;
|
weapon.damageType = DamageType::Freeze;
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
if(ImGui::RadioButton("Shock##Shock", weapon.damageType == DamageType::Shock)) {
|
if(ImGui::RadioButton("Shock##Shock", weapon.damageType == DamageType::Freeze)) {
|
||||||
weapon.damageType = DamageType::Shock;
|
weapon.damageType = DamageType::Freeze;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -429,26 +429,12 @@ void SaveTool::drawWeaponEditor(Weapon& weapon) {
|
||||||
_selectedWeaponPart = 0;
|
_selectedWeaponPart = 0;
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::RadioButton(std::to_string(i).c_str(), &_selectedWeaponPart, i);
|
ImGui::RadioButton(std::to_string(i + 1).c_str(), &_selectedWeaponPart, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto& part = weapon.parts[_selectedWeaponPart];
|
auto& part = weapon.parts[_selectedWeaponPart];
|
||||||
|
|
||||||
ImGui::Text("ID: %i", part.id);
|
ImGui::Text("ID: %i", part.id);
|
||||||
if(weapon.type == WeaponType::Shield ||
|
|
||||||
(weapon.type == WeaponType::BulletLauncher && _selectedWeaponPart != 0))
|
|
||||||
{
|
|
||||||
ImGui::SameLine();
|
|
||||||
if(ImGui::SmallButton("Unequip")) {
|
|
||||||
part.id = -1;
|
|
||||||
}
|
|
||||||
if(weapon.type == WeaponType::Shield && _selectedWeaponPart == 0) {
|
|
||||||
drawTooltip("This will make the whole shield and its accessories invisible.");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
drawTooltip("This will make accessories invisible as well.");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if(ImGui::BeginChild("##PartDetails", {0.0f, 0.0f}, true)) {
|
if(ImGui::BeginChild("##PartDetails", {0.0f, 0.0f}, true)) {
|
||||||
ImGui::TextUnformatted("Styles:");
|
ImGui::TextUnformatted("Styles:");
|
||||||
|
|
Loading…
Reference in a new issue