2024-01-23 01:27
#0
In the EC when you select to edit the Delay macro action the previous value is not shown. The following code addition fixes this.
In the file source\ActionEditWindow.lua add the indicated code to the function ActionEditWindow.OpenEditWindow
In the file source\ActionEditWindow.lua add the indicated code to the function ActionEditWindow.OpenEditWindow
elseif( actionType == SystemData.UserAction.TYPE_DELAY ) then
local param = {HotbarId=hotbarId, ItemIndex=itemIndex, SubIndex=subIndex }
local rdata = {title=GetStringFromTid(3002103), subtitle=GetStringFromTid(1155371), callfunction=ActionEditWindow.CustomDelay, id=param}
--start of added code
local delayValue = UserActionDelayGetDelay(hotbarId, itemIndex, subIndex)
rdata.text = wstring.format(L"%.1f",delayValue)
--end of added code
RenameWindow.Create(rdata)


