mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-23 06:35:33 -07:00
Merge branch 'HarbourMasters:develop' into develop
This commit is contained in:
commit
3cbb979812
2 changed files with 10 additions and 1 deletions
|
@ -259,7 +259,8 @@ namespace SohImGui {
|
||||||
}
|
}
|
||||||
|
|
||||||
void LoadRainbowColor() {
|
void LoadRainbowColor() {
|
||||||
for (uint16_t s=0; s <= sizeof(RainbowColorCvarList); s++) {
|
u8 arrayLength = sizeof(RainbowColorCvarList) / sizeof(*RainbowColorCvarList);
|
||||||
|
for (u8 s = 0; s < arrayLength; s++) {
|
||||||
std::string cvarName = RainbowColorCvarList[s];
|
std::string cvarName = RainbowColorCvarList[s];
|
||||||
std::string Cvar_Red = cvarName;
|
std::string Cvar_Red = cvarName;
|
||||||
Cvar_Red += "R";
|
Cvar_Red += "R";
|
||||||
|
|
|
@ -1316,6 +1316,9 @@ void DrawPlayerTab() {
|
||||||
case ITEM_SWORD_BGS:
|
case ITEM_SWORD_BGS:
|
||||||
curSword = "Biggoron's Sword";
|
curSword = "Biggoron's Sword";
|
||||||
break;
|
break;
|
||||||
|
case ITEM_FISHING_POLE:
|
||||||
|
curSword = "Fishing Pole";
|
||||||
|
break;
|
||||||
case ITEM_NONE:
|
case ITEM_NONE:
|
||||||
curSword = "None";
|
curSword = "None";
|
||||||
break;
|
break;
|
||||||
|
@ -1463,6 +1466,11 @@ void DrawPlayerTab() {
|
||||||
|
|
||||||
Inventory_ChangeEquipment(EQUIP_SWORD, PLAYER_SWORD_BGS);
|
Inventory_ChangeEquipment(EQUIP_SWORD, PLAYER_SWORD_BGS);
|
||||||
}
|
}
|
||||||
|
if (ImGui::Selectable("Fishing Pole")) {
|
||||||
|
player->currentSwordItem = ITEM_FISHING_POLE;
|
||||||
|
gSaveContext.equips.buttonItems[0] = ITEM_FISHING_POLE;
|
||||||
|
Inventory_ChangeEquipment(EQUIP_SWORD, PLAYER_SWORD_MASTER);
|
||||||
|
}
|
||||||
ImGui::EndCombo();
|
ImGui::EndCombo();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue