MCPcopy Create free account
hub / github.com/HertzDevil/0CC-FamiTracker / OnUpdateHighlight2

Method OnUpdateHighlight2

Source/MainFrm.cpp:1794–1804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792}
1793
1794void CMainFrame::OnUpdateHighlight2(CCmdUI *pCmdUI) // // //
1795{
1796 if (!m_cLockedEditHighlight2.IsEditable()) {
1797 const stHighlight &hl = GetCurrentSong()->GetRowHighlight();
1798 if (m_cLockedEditHighlight2.Update())
1799 AddAction(std::make_unique<CPActionHighlight>(stHighlight {
1800 hl.First, std::clamp(m_cLockedEditHighlight2.GetValue(), 0, MAX_PATTERN_LENGTH), 0}));
1801 else
1802 pCmdUI->SetText(FormattedW(L"%i", hl.Second));
1803 }
1804}
1805
1806void CMainFrame::OnFileGeneralsettings()
1807{

Callers

nothing calls this directly

Calls 5

clampFunction · 0.85
FormattedWFunction · 0.85
IsEditableMethod · 0.80
UpdateMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected