-
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',
}) |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
@theangryangel Thanks, that's a good idea, I will consider it for the future. |
Beta Was this translation helpful? Give feedback.
-
|
I've split this issue into two, created a new one for messages: #54 |
Beta Was this translation helpful? Give feedback.
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.