31 #include "table/strings.h"
36 static bool DrawScrollingStatusText(
const NewsItem *ni,
int scroll_pos,
int left,
int right,
int top,
int bottom)
42 GetString(buf, str,
lastof(buf));
47 const char *last =
lastof(buffer);
50 WChar c = Utf8Consume(&s);
53 }
else if (c ==
'\n') {
54 if (d + 4 >= last)
break;
55 d[0] = d[1] = d[2] = d[3] =
' ';
57 }
else if (IsPrintable(c)) {
100 Point pt = { 0, _screen.height - sm_height };
114 int64 max_money = UINT32_MAX;
116 FOR_ALL_COMPANIES(c) max_money = max<int64>(c->
money, max_money);
126 d.width += padding.width;
127 d.height += padding.height;
176 if (this->reminder_timeout > 0) {
191 if (!gui_scope)
return;
193 default: NOT_REACHED();
210 default: ResetObjectToPlace();
232 static const NWidgetPart _nested_main_status_widgets[] = {
244 _nested_main_status_widgets,
lengthof(_nested_main_status_widgets)