document BB 0101 command
This commit is contained in:
@@ -301,6 +301,8 @@ struct S_Reconnect_Patch_14 : S_Reconnect<be_uint16_t> {
|
|||||||
// player why they can't do something (e.g. join a full game).
|
// player why they can't do something (e.g. join a full game).
|
||||||
// This format is shared by multiple commands; for all of them except 06 (S->C),
|
// This format is shared by multiple commands; for all of them except 06 (S->C),
|
||||||
// the guild_card_number field is unused and should be 0.
|
// the guild_card_number field is unused and should be 0.
|
||||||
|
// On BB, this command may be sent as 0001 or 0101; in the latter case, the
|
||||||
|
// message box appears in the lower-left corner instead.
|
||||||
|
|
||||||
struct SC_TextHeader_01_06_11_B0_EE {
|
struct SC_TextHeader_01_06_11_B0_EE {
|
||||||
le_uint32_t unused = 0;
|
le_uint32_t unused = 0;
|
||||||
@@ -3490,7 +3492,8 @@ struct S_CardTradeComplete_GC_Ep3_EE_FlagD4 {
|
|||||||
|
|
||||||
// EE (S->C): Scrolling message (BB)
|
// EE (S->C): Scrolling message (BB)
|
||||||
// Same format as 01. The message appears at the top of the screen and slowly
|
// Same format as 01. The message appears at the top of the screen and slowly
|
||||||
// scrolls to the left.
|
// scrolls to the left. The maximum length of the message is 0x400 bytes (0x200
|
||||||
|
// UTF-16 characters).
|
||||||
|
|
||||||
// EF (C->S): Join card auction (Episode 3)
|
// EF (C->S): Join card auction (Episode 3)
|
||||||
// When a card auction is ready to begin, the leader sends this command to
|
// When a card auction is ready to begin, the leader sends this command to
|
||||||
|
|||||||
+3
-2
@@ -789,8 +789,9 @@ void send_quest_info(shared_ptr<Client> c, const string& text, bool is_download_
|
|||||||
c->config.check_flag(Client::Flag::IS_DC_TRIAL_EDITION) ? ColorMode::STRIP : ColorMode::ADD);
|
c->config.check_flag(Client::Flag::IS_DC_TRIAL_EDITION) ? ColorMode::STRIP : ColorMode::ADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_lobby_message_box(shared_ptr<Client> c, const string& text) {
|
void send_lobby_message_box(shared_ptr<Client> c, const string& text, bool left_side_on_bb) {
|
||||||
send_header_text(c->channel, 0x01, 0, text, c->config.check_flag(Client::Flag::IS_DC_TRIAL_EDITION) ? ColorMode::STRIP : ColorMode::ADD);
|
uint16_t command = (left_side_on_bb && (c->version() == GameVersion::BB)) ? 0x0101 : 0x0001;
|
||||||
|
send_header_text(c->channel, command, 0, text, c->config.check_flag(Client::Flag::IS_DC_TRIAL_EDITION) ? ColorMode::STRIP : ColorMode::ADD);
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_ship_info(shared_ptr<Client> c, const string& text) {
|
void send_ship_info(shared_ptr<Client> c, const string& text) {
|
||||||
|
|||||||
+1
-1
@@ -179,7 +179,7 @@ void send_ep3_timed_message_box(Channel& ch, uint32_t frames, const std::string&
|
|||||||
void send_lobby_name(std::shared_ptr<Client> c, const std::string& text);
|
void send_lobby_name(std::shared_ptr<Client> c, const std::string& text);
|
||||||
void send_quest_info(std::shared_ptr<Client> c, const std::string& text,
|
void send_quest_info(std::shared_ptr<Client> c, const std::string& text,
|
||||||
bool is_download_quest);
|
bool is_download_quest);
|
||||||
void send_lobby_message_box(std::shared_ptr<Client> c, const std::string& text);
|
void send_lobby_message_box(std::shared_ptr<Client> c, const std::string& text, bool left_side_on_bb = false);
|
||||||
void send_ship_info(std::shared_ptr<Client> c, const std::string& text);
|
void send_ship_info(std::shared_ptr<Client> c, const std::string& text);
|
||||||
void send_ship_info(Channel& ch, const std::string& text);
|
void send_ship_info(Channel& ch, const std::string& text);
|
||||||
void send_text_message(Channel& ch, const std::string& text);
|
void send_text_message(Channel& ch, const std::string& text);
|
||||||
|
|||||||
Reference in New Issue
Block a user