undo/redo
可以使用命令模式来做到撤消与重做功能。
特别的是imgui获取到之前的状态,例如drag的滑条,可以使用 IsItemDeactivatedAfterEdit 来判断状态,参考:https://discourse.dearimgui.org/t/how-to-get-imgui-dragint-do-work-well-for-undo-operations/264/2
Last updated
可以使用命令模式来做到撤消与重做功能。
特别的是imgui获取到之前的状态,例如drag的滑条,可以使用 IsItemDeactivatedAfterEdit 来判断状态,参考:https://discourse.dearimgui.org/t/how-to-get-imgui-dragint-do-work-well-for-undo-operations/264/2
Last updated