Hey, if I change the naming of menu items in the list IN your subs, does that affect the saving and loading of variables from the files? I'm assuming yes... These two edits are what allow me to number the lists, but it SEEMS like occasionally I'm getting a save/load error. When I set it back to normal, it seems like loading/saving works fine again, then readding these vars will make numbering the lists work again until the saving/loading error hits again. The error makes one list out of the four I have, either not save, or NOT load, and it seems random...? I know you said dont want to support me editing your subs, but this was the easiest way for me to add list numbering... 2 little edits. If it messes with your subs tho, I'll take it out in a heartbeat. Just wondering what you think here, or if there's another way, or if maybe there's something we can do to fix it so this actually works?
Example is commented:
sub TM_DrawList
namespace push
namespace local TM_window_list_ , %1
set !temp2_LPC #LPC
set #LPC 1000
set !listname %1
menu Font BGColor !bgcolor
menu Font Color !txtcolor
menu Font Size !fontsize
menu Font Name !font
if !fontstyle = N/A
menu Font Style
else
menu Font Style !fontstyle
menu !listtype create !listname !x1 !y1 !x2 !y2
set !end !list_ptr - 1
if !end >= 0
{
for !i 0 !end
menu !listtype add !listname !i !list . !i ;Add !i between !listname and !list
}
set #LPC !temp2_LPC
namespace pop
return
sub TM_AddToList
namespace push
namespace local TM_window_list_ , %1
set !listname %1
set !item %2
set !tag %3
set !list . !list_ptr !item
set !tag . !list_ptr !tag
set !list_ptr !list_ptr + 1
set #RESULT !list_ptr
if %addBreakNum = #true
goto _skipAddBreak_:
set %newNum !list_ptr - 1
menu !listtype add !listname %newNum !item ; Add %newNum between !listname and !item
goto _skipAddBreak1_
_skipAddBreak_:
menu !listType add !listname !item
_skipAddBreak1_:
namespace pop
return #RESULT