Problem
Current APIinSim.send(new IS_BTN({
ReqI: 1,
L: 60,
T: 4,
W: 20,
H: 5,
TypeIn: 20,
Text: '\0Caption\0Text',
}))Proposed APIinSim.sendButton({
requestId: 1,
left: 60,
top: 4,
width: 20,
height: 5,
text: 'Text',
typeIn: 20,
caption: 'Caption',
}) |
Replies: 4 comments
|
From experience, it's very useful to have abstractions like these for some specific packets, especially buttons as the Text field has some complex behaviour. |
|
Something you may also want to have in the back of your head, at some point in insim.rs I had a I dropped it, with the plan to bring it back (eventually) - but it is something I've needed at some point in most insim things I've worked on. |
|
@theangryangel Thanks, that's a good idea, I will consider it for the future. |
|
I've split this issue into two, created a new one for messages: #54 |
From experience, it's very useful to have abstractions like these for some specific packets, especially buttons as the Text field has some complex behaviour.