5#define dismissAfterC 2.5f
44 activehelp =
static_cast<unsigned char>(helpId);
75 helpContainer.
helpId = helpId;
106 logger->
Log(
"Confirmed exit through Fuel Reminder in Information Dialog");
136 outpacket.
f_y = 1.0f;
137 outpacket.
f_z = 0.0f;
138 outpacket.
f_w = 0.0f;
149 outpacket.
f_y = 0.0f;
150 outpacket.
f_z = 0.0f;
151 outpacket.
f_w = 0.0f;
251 size_t startOfLine = 0;
252 size_t lastGoodSpaceIndex = 0;
254 for (
size_t i = 0; i < (len - startOfLine); i++)
256 size_t i1 = (len - startOfLine - 1);
275 if (rect.right < (
width - 30) && i != i1)
278 if (tempStr[i] == L
' ' ||
279 tempStr[i] == L
'\uFF01' ||
280 tempStr[i] == L
'\u3002' ||
281 tempStr[i] == L
'\uFF0C')
283 lastGoodSpaceIndex = i;
289 if (lastGoodSpaceIndex != 0 && i != i1)
291 if (tempStr[lastGoodSpaceIndex] == L
' ')
292 tempStr[lastGoodSpaceIndex] = 0;
294 tempStr[lastGoodSpaceIndex + 1] = 0;
300 if (lastGoodSpaceIndex != 0)
301 startOfLine += lastGoodSpaceIndex + 1;
303 startOfLine += wcslen(tempStr) + 1;
305 lastGoodSpaceIndex = 0;
311 sprintf_s(msg,
sizeof msg,
"Exception startOfLine %zu lastGoodSpaceIndex %zu len %zu i %zu i1 %zu lang %i help %i", startOfLine, lastGoodSpaceIndex, len, i, i1,
gui->
game->
config.
language,
activehelp);
340 rect.top =
static_cast<LONG
>(tracked->y) + 15;
341 rect.left =
static_cast<LONG
>(tracked->x) + 15;
342 rect.right = rect.left +
width - 30;
343 rect.bottom = rect.top +
height - 30;
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
static void BringToFront(short t)
static DialogBase * dialogs[D_ENUMERATION]
WCHAR msgbartext[HELP_SIZE]
RiseMath::Vector3 windowdefaultlocation
RiseMath::Vector3 windowlocation
std::unique_ptr< Bus > bus
std::unique_ptr< Networking > networking
Rendering::RenderFont * g_pChatFont
std::wstring strings[L_ENUMERATION]
RiseDialogResourceManager g_DialogResourceManager
Rendering::RenderSprite * g_pTextSprite
void Log(const char *msg, Level level=Info, int errorCode=0)
void AddToCallStack(const char *msg)
void SendToServer(void *pData, DWORD dwSize, bool bGuaranteed, PacketOrdering order=ORDERING_NONE) const
void RequestVerbiage(int helpId) const
INT DrawTextW(RenderSprite *sprite, const wchar_t *text, INT count, RECT *rectangle, DWORD flags, PackedColor color)
virtual void SetVisible(bool bVisible)
void RemoveControl(int ID)
void Init(RiseDialogResourceManager *pManager, bool bRegisterDialog=true)
RiseButton * GetButton(int ID)
HRESULT SetFont(UINT index, LPCWSTR strFaceName, LONG height, LONG weight)
void SetCallback(UICallback pCallback, void *pUserContext=NULL)
HRESULT AddButton(int ID, LPCWSTR strText, int x, int y, int width, int height, UINT nHotkey=0, bool bIsDefault=false, RiseButton **ppCreated=NULL)
HRESULT SetText(LPCWSTR strText)
s_network_objects playerships[MAX_SCAN]