🧙‍♂️ Brought to you by Peptides.gg — Use code UO20 for 20% off — GLP-1's, 90+ Peptides and more!

EC: When editing the Delay macro action the previous value is not shown

Started by TimSt · 2024-01-23 · 3 posts · General Discussions
#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

		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)

#1
Where are you getting this stuff from?  I use EC’s macro system and it does not look anything like yours.  Current value is easy see when editing delay.  Not meaning to be critical.  See this format for macros here all the time and just wonder where it comes from.
#2
@Arnold7

Editing this existing macro. 


With the default EC this is what I see when I begin to edit the existing Delay macro action.

With my change this is what I see when I begin to edit the existing Delay macro action.


← Browse more General Discussions discussions