fix style=choice arg order

This commit is contained in:
Alex Bates 2020-12-22 23:41:31 +00:00
parent 43caadae41
commit dc57215491
2 changed files with 2 additions and 2 deletions

View File

@ -424,7 +424,7 @@ if __name__ == "__main__":
print(f"{filename}:{lineno}: 'choice' style requires parameters: x, y, w, h")
exit(1)
message.bytes += [0x05, named_args["w"], named_args["x"], named_args["h"], named_args["y"]]
message.bytes += [0x05, named_args["x"], named_args["y"], named_args["w"], named_args["h"]]
elif style == "inspect":
message.bytes += [0x06]
elif style == "sign":

View File

@ -168,7 +168,7 @@ CHARSET = {
0x02: "[style=left]\n",
0x03: "[style=center]\n",
0x04: "[style=tattle]\n",
0x05: {None: lambda d: (f"[style=choice x={d[1]} y={d[3]} w={d[0]} h={d[2]}]\n", 4)},
0x05: {None: lambda d: (f"[style=choice x={d[0]} y={d[1]} w={d[2]} h={d[3]}]\n", 4)},
0x06: "[style=inspect]\n",
0x07: "[style=sign]\n",
0x08: "[style=lamppost]\n",