|
Post by d354n on Mar 17, 2017 20:45:58 GMT
when we use pattern, example: Pattern("magic/btn_battle_magic_blizzaga.png"):similar(0.97)
can we get "magic/btn_battle_magic_blizzaga.png" ? and how to get "btn_battle_magic_blizzaga.png" ?
thanks
|
|
|
Post by Mercobots on Mar 17, 2017 22:12:21 GMT
hi
create a simple var
local img = "magic/btn_battle_magic_blizzaga.png"
Pattern(img):similar(0.97)
print(img)
|
|
|
Post by AnkuLua on Mar 18, 2017 0:13:14 GMT
Will add Pettern():getFileName() in next release.
|
|
|
Post by d354n on Mar 18, 2017 6:17:09 GMT
waw thank you AnkuLua
|
|
|
Post by daegron on Apr 11, 2017 15:03:22 GMT
Is there an ETA for the next release? I was about to ask about this functionality, because I am building a script which contains a logging function to write certain things to a file to better debug problems that users of my script could run into.
One of the things I like to log is which images didn't match correctly. Now I tried logging this by using pattern:getFileName() but Ankulua says "Invalid method call. No such method.".
Thanks in advance!
|
|
|
Post by daegron on May 1, 2017 11:56:14 GMT
|
|