---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by luojunxin.
--- DateTime: 2020/8/28 11:41
---

function DrawUndoRedoList()
    for nIndex = g_UndoRedoManager:UndoRedoItemCount(), 1, -1 do
        local szItem = g_UndoRedoManager:GetUndoRedoItemName(nIndex);
        if nIndex == g_UndoRedoManager:GetCurrentUndoRedoState() then
            szItem = ">" .. szItem;
        else
            szItem = " " .. szItem;
        end
        if ImGui.MenuItem(szItem) then
            g_UndoRedoManager:MoveToUndoRedoState(nIndex);
        end
    end
    local szTemp = " ";
    if g_UndoRedoManager:GetCurrentUndoRedoState() == 0 then
        szTemp = ">";
    end
    if ImGui.MenuItem(szTemp .. util.a2u8("[³υΚΌΧ΄Μ¬]")) then
        g_UndoRedoManager:MoveToUndoRedoState(0);
    end
end