MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / closeAllFloatingWindows

Function closeAllFloatingWindows

src/OpenLoco/src/Ui/WindowManager.cpp:1764–1792  ·  view source on GitHub ↗

0x004CF456

Source from the content-addressed store, hash-verified

1762
1763 // 0x004CF456
1764 void closeAllFloatingWindows()
1765 {
1766 close(WindowType::dropdown, 0);
1767
1768 bool changed = true;
1769 while (changed)
1770 {
1771 changed = false;
1772 for (auto it = _windows.rbegin(); it != _windows.rend(); it++)
1773 {
1774 auto& w = *it;
1775 if (w.hasFlags(WindowFlags::stickToBack))
1776 {
1777 continue;
1778 }
1779
1780 if (w.hasFlags(WindowFlags::stickToFront))
1781 {
1782 continue;
1783 }
1784
1785 close(&w);
1786
1787 // restart loop
1788 changed = true;
1789 break;
1790 }
1791 }
1792 }
1793
1794 int32_t getCurrentRotation()
1795 {

Callers 1

loadsaveMenuDropdownFunction · 0.50

Calls 4

rbeginMethod · 0.80
rendMethod · 0.80
closeFunction · 0.70
hasFlagsMethod · 0.45

Tested by

no test coverage detected