mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-22 13:41:54 -05:00
Merge remote-tracking branch 'upstream/rando-next' into rando-enhanced-magic-arrows
This commit is contained in:
commit
5aaaccb72d
@ -511,9 +511,6 @@ void DrawNotes(bool resizeable = false) {
|
|||||||
(void*)itemTrackerNotes);
|
(void*)itemTrackerNotes);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (itemTrackerNotes.empty()) {
|
|
||||||
itemTrackerNotes.push_back(0);
|
|
||||||
}
|
|
||||||
ImVec2 size = resizeable ? ImVec2(-FLT_MIN, ImGui::GetContentRegionAvail().y) : ImVec2(((iconSize + iconSpacing) * 6) - 8, 200);
|
ImVec2 size = resizeable ? ImVec2(-FLT_MIN, ImGui::GetContentRegionAvail().y) : ImVec2(((iconSize + iconSpacing) * 6) - 8, 200);
|
||||||
ItemTrackerNotes::TrackerNotesInputTextMultiline("##ItemTrackerNotes", &itemTrackerNotes, size, ImGuiInputTextFlags_AllowTabInput);
|
ItemTrackerNotes::TrackerNotesInputTextMultiline("##ItemTrackerNotes", &itemTrackerNotes, size, ImGuiInputTextFlags_AllowTabInput);
|
||||||
if (ImGui::IsItemDeactivatedAfterEdit() && IsValidSaveFile()) {
|
if (ImGui::IsItemDeactivatedAfterEdit() && IsValidSaveFile()) {
|
||||||
@ -926,6 +923,10 @@ void InitItemTracker() {
|
|||||||
trackerBgB,
|
trackerBgB,
|
||||||
trackerBgA
|
trackerBgA
|
||||||
}; // Float value, 1 = 255 in rgb value.
|
}; // Float value, 1 = 255 in rgb value.
|
||||||
|
// Crashes when the itemTrackerNotes is empty, so add an empty character to it
|
||||||
|
if (itemTrackerNotes.empty()) {
|
||||||
|
itemTrackerNotes.push_back(0);
|
||||||
|
}
|
||||||
Ship::RegisterHook<Ship::ControllerRead>([](OSContPad* cont_pad) {
|
Ship::RegisterHook<Ship::ControllerRead>([](OSContPad* cont_pad) {
|
||||||
buttonsPressed = cont_pad;
|
buttonsPressed = cont_pad;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user