View Single Post
04-14-21, 02:37 PM   #14
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
Originally Posted by myrroddin View Post
It sounds like you are letting users enter a string, which could be anything, and attempting to register the string as an event, valid or not. Why would you do that?
That's exactly what DynamicCam allows. Users are able to create their own custom situations in which certain camera settings should be applied. This includes the events at which the situation conditions should be checked.

Originally Posted by myrroddin View Post
You could use strfind or strmatch to parse _G and if the event is found, then register the event. That would prevent users from entering FLUFFS_ARE_CUTE, or at least reduce the list to the two events that have FLU*, both of which are valid.
Do you think this is more efficient than the EventExists() function by SDPhantom?
__________________
~ Be the change you want to see in the world... of warcraft interface! ~
  Reply With Quote