InSim
0.6c
Documentation of Live for Speed InSim Protocol
|
BuTtoN. More...
#include <ispackets.h>
Data Fields | |
byte | Size |
12 + TEXT_SIZE (a multiple of 4) | |
byte | Type |
ISP_BTN | |
byte | ReqI |
non-zero (returned in IS_BTC and IS_BTT packets) | |
byte | UCID |
connection to display the button (0 = local / 255 = all) | |
byte | ClickID |
button ID (0 to 239) | |
byte | Inst |
some extra flags | |
byte | BStyle |
button style flags | |
byte | TypeIn |
max chars to type in | |
byte | L |
left : 0 - 200 | |
byte | T |
top : 0 - 200 | |
byte | W |
width : 0 - 200 | |
byte | H |
height : 0 - 200 | |
char | Text [TEXT_SIZE] |
0 to 240 characters of text |
BuTtoN.
button header - followed by 0 to 240 characters
ClickID byte : this value is returned in IS_BTC and IS_BTT packets.
TypeIn byte : if set, the user can click this button to type in text.
Text : 65-66-67-0 would display button text "ABC" and no caption
Text : 0-65-66-67-0-68-69-70-71-0-0-0 would display button text "DEFG" and caption "ABC"
Inst byte : mainly used internally by InSim but also provides some extra user flags
Definition at line 2458 of file ispackets.h.
byte IS_BTN::BStyle |
button style flags
Definition at line 2467 of file ispackets.h.
byte IS_BTN::ClickID |
button ID (0 to 239)
Definition at line 2465 of file ispackets.h.
byte IS_BTN::H |
height : 0 - 200
Definition at line 2476 of file ispackets.h.
byte IS_BTN::Inst |
some extra flags
Definition at line 2466 of file ispackets.h.
byte IS_BTN::L |
left : 0 - 200
Definition at line 2473 of file ispackets.h.
byte IS_BTN::ReqI |
non-zero (returned in IS_BTC and IS_BTT packets)
Definition at line 2462 of file ispackets.h.
byte IS_BTN::Size |
12 + TEXT_SIZE (a multiple of 4)
Definition at line 2460 of file ispackets.h.
byte IS_BTN::T |
top : 0 - 200
Definition at line 2474 of file ispackets.h.
char IS_BTN::Text[TEXT_SIZE] |
0 to 240 characters of text
Definition at line 2478 of file ispackets.h.
byte IS_BTN::Type |
Definition at line 2461 of file ispackets.h.
byte IS_BTN::TypeIn |
max chars to type in
Lowest 7 bits are the maximum number of characters to type in (0 to 95)
Highest bit (128) can be set to initialise dialog with the button's text
Definition at line 2472 of file ispackets.h.
byte IS_BTN::UCID |
connection to display the button (0 = local / 255 = all)
Definition at line 2463 of file ispackets.h.
byte IS_BTN::W |
width : 0 - 200
Definition at line 2475 of file ispackets.h.