|
@@ -240,13 +240,13 @@ struct NewGRFParametersWindow : public W
|
|
|
DrawStringMultiLine(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_TEXTPANEL_TOP, r.bottom - WD_TEXTPANEL_BOTTOM, desc, TC_BLACK);
|
|
|
return;
|
|
|
} else if (widget != GRFPAR_WIDGET_BACKGROUND) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
bool rtl = _dynlang.text_dir == TD_RTL;
|
|
|
bool rtl = _current_text_dir == TD_RTL;
|
|
|
uint buttons_left = rtl ? r.right - 23 : r.left + 4;
|
|
|
uint text_left = r.left + (rtl ? WD_FRAMERECT_LEFT : 28);
|
|
|
uint text_right = r.right - (rtl ? 28 : WD_FRAMERECT_RIGHT);
|
|
|
|
|
|
int y = r.top;
|
|
|
for (uint i = this->vscroll->GetPosition(); this->vscroll->IsVisible(i) && i < this->vscroll->GetCount(); i++) {
|
|
@@ -313,13 +313,13 @@ struct NewGRFParametersWindow : public W
|
|
|
DeleteChildWindows(WC_QUERY_STRING);
|
|
|
this->clicked_row = num;
|
|
|
}
|
|
|
|
|
|
const NWidgetBase *wid = this->GetWidget<NWidgetBase>(GRFPAR_WIDGET_BACKGROUND);
|
|
|
int x = pt.x - wid->pos_x;
|
|
|
if (_dynlang.text_dir == TD_RTL) x = wid->current_x - x;
|
|
|
if (_current_text_dir == TD_RTL) x = wid->current_x - x;
|
|
|
x -= 4;
|
|
|
|
|
|
GRFParameterInfo *par_info = (num < this->grf_config->param_info.Length()) ? this->grf_config->param_info[num] : NULL;
|
|
|
if (par_info == NULL) par_info = GetDummyParameterInfo(num);
|
|
|
|
|
|
/* One of the arrows is clicked */
|
|
@@ -697,13 +697,13 @@ struct NewGRFWindow : public QueryString
|
|
|
|
|
|
uint step_height = this->GetWidget<NWidgetBase>(SNGRFS_FILE_LIST)->resize_y;
|
|
|
uint y = r.top + WD_FRAMERECT_TOP;
|
|
|
int sprite_offset_y = (step_height - 10) / 2;
|
|
|
int offset_y = (step_height - FONT_HEIGHT_NORMAL) / 2;
|
|
|
|
|
|
bool rtl = _dynlang.text_dir == TD_RTL;
|
|
|
bool rtl = _current_text_dir == TD_RTL;
|
|
|
uint text_left = rtl ? r.left + WD_FRAMERECT_LEFT : r.left + 25;
|
|
|
uint text_right = rtl ? r.right - 25 : r.right - WD_FRAMERECT_RIGHT;
|
|
|
uint square_left = rtl ? r.right - 15 : r.left + 5;
|
|
|
uint warning_left = rtl ? r.right - 30 : r.left + 20;
|
|
|
|
|
|
int i = 0;
|