|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
else end end if not index or index > 1 then return true end end end) return true --Handled end end end) endendend if tableOfCommands == nil then return end if #command > 0 then -- add in the command aliases, if any, as well if info.aliases then end end end endend if #command > 0 then end end if BRACKET_COMMANDS then if #command > 0 then end end end endend end local results = GetTopMatchesByLevenshteinSubStringScore(self.possibleCommandMatches, text, 2, self.maxResults) if results then end return nilendend end endend return endendend local commandInfo = nil if ZO_REGIONCOMMANDS then commandInfo = ZO_REGIONCOMMANDS[commandLower] end if ZO_CLIENTCOMMANDS then local clientCommandInfo = ZO_CLIENTCOMMANDS[commandLower] commandInfo = clientCommandInfo or commandInfo end if not commandInfo then return nil end local results = GetTopMatchesByLevenshteinSubStringScore(self.possibleOptionMatches, text, 1, self.maxResults) if results then endend return end -- make sure the text starts with one of the command prefixes if startChar ~= "/" and startChar ~= "]" then return end -- if there's a space in the string, then it could be a command + option beign typed if firstSpaceStart then local secondWordStart = firstSpaceStart + 1 -- there's a second space, so no longer typing an option return end end -- no space, check for auto-completing a commandend |