MCPcopy Create free account
hub / github.com/Meridian59/Meridian59 / CmSearchPrev

Method CmSearchPrev

roomedit/source/editcli.cpp:2707–2730  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////// TEditorClient ------------- Hightlight the previous object (by number)

Source from the content-addressed store, hash-verified

2705// Hightlight the previous object (by number)
2706//
2707void TEditorClient::CmSearchPrev ()
2708{
2709 // Ignore if "insert object" mode
2710 if ( InsertingObject )
2711 return;
2712
2713 TMapDC dc (this);
2714
2715 // Unhighlight current object
2716 if (CurObject >= 0 )
2717 HighlightObject (dc, EditMode, CurObject, HL_COLOR);
2718
2719 if (CurObject > 0)
2720 CurObject--;
2721 else
2722 CurObject = GetMaxObjectNum (EditMode);
2723
2724 // Highlight new current object
2725 if (CurObject >= 0 )
2726 {
2727 HighlightObject (dc, EditMode, CurObject, HL_COLOR);
2728 DisplayObjectInfo (EditMode, CurObject);
2729 }
2730}
2731
2732
2733/////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

HighlightObjectFunction · 0.85
GetMaxObjectNumFunction · 0.85

Tested by

no test coverage detected