src/settings_gui.cpp
changeset 9648 c79160082c0f
parent 9607 5a5728fb702a
child 9764 9b21f847d91c
equal deleted inserted replaced
9647:5986dcf7c956 9648:c79160082c0f
  1113 
  1113 
  1114 			case CUSTCURR_SEPARATOR:
  1114 			case CUSTCURR_SEPARATOR:
  1115 				if (IsInsideMM(x, 10, 30)) { // clicked button
  1115 				if (IsInsideMM(x, 10, 30)) { // clicked button
  1116 					this->click = 1 << (line * 2 + 1);
  1116 					this->click = 1 << (line * 2 + 1);
  1117 				}
  1117 				}
  1118 				str = BindCString(this->separator);
  1118 				SetDParamStr(0, this->separator);
       
  1119 				str = STR_JUST_RAW_STRING;
  1119 				len = 1;
  1120 				len = 1;
  1120 				break;
  1121 				break;
  1121 
  1122 
  1122 			case CUSTCURR_PREFIX:
  1123 			case CUSTCURR_PREFIX:
  1123 				if (IsInsideMM(x, 10, 30)) { // clicked button
  1124 				if (IsInsideMM(x, 10, 30)) { // clicked button
  1124 					this->click = 1 << (line * 2 + 1);
  1125 					this->click = 1 << (line * 2 + 1);
  1125 				}
  1126 				}
  1126 				str = BindCString(_custom_currency.prefix);
  1127 				SetDParamStr(0, _custom_currency.prefix);
       
  1128 				str = STR_JUST_RAW_STRING;
  1127 				len = 12;
  1129 				len = 12;
  1128 				break;
  1130 				break;
  1129 
  1131 
  1130 			case CUSTCURR_SUFFIX:
  1132 			case CUSTCURR_SUFFIX:
  1131 				if (IsInsideMM(x, 10, 30)) { // clicked button
  1133 				if (IsInsideMM(x, 10, 30)) { // clicked button
  1132 					this->click = 1 << (line * 2 + 1);
  1134 					this->click = 1 << (line * 2 + 1);
  1133 				}
  1135 				}
  1134 				str = BindCString(_custom_currency.suffix);
  1136 				SetDParamStr(0, _custom_currency.suffix);
       
  1137 				str = STR_JUST_RAW_STRING;
  1135 				len = 12;
  1138 				len = 12;
  1136 				break;
  1139 				break;
  1137 
  1140 
  1138 			case CUSTCURR_TO_EURO:
  1141 			case CUSTCURR_TO_EURO:
  1139 				if (IsInsideMM(x, 10, 30)) { // clicked buttons
  1142 				if (IsInsideMM(x, 10, 30)) { // clicked buttons