Loading

Paste #ped7ucocw

  1.             case WID_AIC_CHANGE: {
  2.                 uint change_width = 0;
  3.                 StringID change = STR_AI_CONFIG_CHANGE;
  4.                 StringID _param[] = { STR_AI_CONFIG_GAMESCRIPT, STR_AI_CONFIG_NONE, STR_AI_CONFIG_AI };
  5.                 for (int i = 0; i < 3; i++) {
  6.                     SetDParam(0, _param[i]);
  7.                     change_width = max(change_width, GetStringBoundingBox(change).width);
  8.                 }
  9.                 size->width = change_width + WD_MATRIX_LEFT + WD_MATRIX_RIGHT;
  10.                 break;
  11.             }

Version history

Revision # Author Created at
ps887x0fy Anonymous 08 May 2016, 12:41:35 UTC Diff
pwvo7pr2m Anonymous 08 May 2016, 11:07:25 UTC Diff

Comments