mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Rename EditorObjectFlagsClear, VisibleListClear
This commit is contained in:
@@ -306,7 +306,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
UnloadUnselectedObjects();
|
||||
EditorLoadSelectedObjects();
|
||||
EditorObjectFlagsFree();
|
||||
EditorObjectFlagsClear();
|
||||
|
||||
if (_loadedObject != nullptr)
|
||||
_loadedObject->Unload();
|
||||
@@ -327,7 +327,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES);
|
||||
ContextBroadcastIntent(&intent);
|
||||
|
||||
VisibleListDispose();
|
||||
VisibleListClear();
|
||||
|
||||
intent = Intent(INTENT_ACTION_REFRESH_SCENERY);
|
||||
ContextBroadcastIntent(&intent);
|
||||
@@ -1173,7 +1173,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
{
|
||||
int32_t numObjects = static_cast<int32_t>(ObjectRepositoryGetItemsCount());
|
||||
|
||||
VisibleListDispose();
|
||||
VisibleListClear();
|
||||
selected_list_item = -1;
|
||||
|
||||
const ObjectRepositoryItem* items = ObjectRepositoryGetItems();
|
||||
@@ -1200,7 +1200,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
if (_listItems.empty())
|
||||
{
|
||||
VisibleListDispose();
|
||||
VisibleListClear();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1229,7 +1229,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
Invalidate();
|
||||
}
|
||||
|
||||
void VisibleListDispose()
|
||||
void VisibleListClear()
|
||||
{
|
||||
_listItems.clear();
|
||||
_listItems.shrink_to_fit();
|
||||
|
||||
@@ -355,7 +355,7 @@ void Sub6AB211()
|
||||
*
|
||||
* rct2: 0x006AB316
|
||||
*/
|
||||
void EditorObjectFlagsFree()
|
||||
void EditorObjectFlagsClear()
|
||||
{
|
||||
_objectSelectionFlags.clear();
|
||||
_objectSelectionFlags.shrink_to_fit();
|
||||
@@ -771,7 +771,7 @@ int32_t EditorRemoveUnusedObjects()
|
||||
}
|
||||
}
|
||||
UnloadUnselectedObjects();
|
||||
EditorObjectFlagsFree();
|
||||
EditorObjectFlagsClear();
|
||||
|
||||
auto intent = Intent(INTENT_ACTION_REFRESH_SCENERY);
|
||||
ContextBroadcastIntent(&intent);
|
||||
|
||||
@@ -33,7 +33,7 @@ extern uint32_t _numSelectedObjectsForType[EnumValue(ObjectType::count)];
|
||||
bool EditorCheckObjectGroupAtLeastOneSelected(ObjectType checkObjectType);
|
||||
bool EditorCheckObjectGroupAtLeastOneOfPeepTypeSelected(uint8_t peepType);
|
||||
bool EditorCheckObjectGroupAtLeastOneSurfaceSelected(bool queue);
|
||||
void EditorObjectFlagsFree();
|
||||
void EditorObjectFlagsClear();
|
||||
void UnloadUnselectedObjects();
|
||||
void Sub6AB211();
|
||||
void ResetSelectedObjectCountAndSize();
|
||||
|
||||
Reference in New Issue
Block a user