I checked out how the new text drawing works. Here is the new working AutoAim notif.txt
Code:
#set privNs "com.company.assembleegameclient.game:_-04h"
#set mouseUp "_-10K" ; mouseup maybe? right after mousedown trait slot
#set spiral "_-1DI"
#set textObjPackage "_-0zY"
#set textObjClass "_-0u1"
#set stringCrPkg "_-Po"
#set stringCrClass "_-1M2"
;call spiral-effect
getlocal0
getproperty QName(PackageNamespace("", "#0"), "gs_")
getproperty QName(PackageNamespace("", "#0"), "map")
getproperty QName(PackageNamespace("", "#0"), "player_")
callpropvoid QName(PackageNamespace("", "#0"), $"spiral"), 0
;get mapOverlay to call addStatusText on at the end
getlocal0
getproperty QName(PackageNamespace("", "#0"), "gs_")
getproperty QName(PackageNamespace("", "#0"), "map")
getproperty QName(PackageNamespace("", "#0"), "mapOverlay_")
;create text object
findpropstrict QName(PackageNamespace($"textObjPackage"), $"textObjClass") ;arg0
getlocal0
getproperty QName(PackageNamespace("", "#0"), "gs_")
getproperty QName(PackageNamespace("", "#0"), "map")
getproperty QName(PackageNamespace("", "#0"), "player_") ;arg1
pushint 65280 ;arg2
pushshort 2000 ;arg3
constructprop QName(PackageNamespace($"textObjPackage"), $"textObjClass"), 3 ;call
coerce QName(PackageNamespace($"textObjPackage"), $"textObjClass") ;convert
dup ;store it as addStatusText arg1
;create string
findpropstrict QName(PackageNamespace($"stringCrPkg"), $"stringCrClass")
;choose the string
getlocal0
getproperty QName(PrivateNamespace("*", $"privNs"), $"mouseUp")
iffalse AA_OFF
pushstring "Auto-Aim: On"
jump AA_CONT
AA_OFF:
pushstring "Auto-Aim: Off"
AA_CONT:
constructprop QName(PackageNamespace($"stringCrPkg"), $"stringCrClass"), 1
;change the string in the text object
callpropvoid QName(PackageNamespace("", "#0"), "setStringBuilder"), 1
;draw the text to the screen (arg0=mapOverlay objectRef, arg1=text objectRef)
callpropvoid QName(PackageNamespace("", "#0"), "addStatusText"), 1
I didn't commented on how to find the classes, if someone have a good method for it, leave a comment there so it will be easier to update next time.