<commit_before>#include "vehicleStore_defines.hpp"

_display = uiNamespace getVariable "UK_VehicleStoreDialog";
_vehicleList = _display displayCtrl vehicle_list;
_buyButton = _display displayCtrl buy_vehicle_button;
_vehiclePicture = _display displayCtrl vehicle_picture;

_selectedVehicle = lnbCurSelRow _vehicleList;

_class = _vehicleList lnbData [_selectedVehicle, 0];
_price = _vehicleList lnbData [_selectedVehicle, 1];
_storeName = _vehicleList lnbData [_selectedVehicle, 2];

_picture = getText (configFile >> "cfgVehicles" >> _class >> "picture");

_vehiclePicture ctrlSetText _picture;

_marker = format ["%1_spawn", _storeName];

_buttonAction = format ["closeDialog 0; _veh = createVehicle [""%1"", (%2 findEmptyPosition [1, 150, ""%1""]), [], 0, ""CAN_COLLIDE""];", _class, (getMarkerPos _marker)];

systemChat _storeName;

_buyButton buttonSetAction _buttonAction;
_buyButton ctrlEnable true;<commit_msg>remove debug<commit_after>#include "vehicleStore_defines.hpp"

_display = uiNamespace getVariable "UK_VehicleStoreDialog";
_vehicleList = _display displayCtrl vehicle_list;
_buyButton = _display displayCtrl buy_vehicle_button;
_vehiclePicture = _display displayCtrl vehicle_picture;

_selectedVehicle = lnbCurSelRow _vehicleList;

_class = _vehicleList lnbData [_selectedVehicle, 0];
_price = _vehicleList lnbData [_selectedVehicle, 1];
_storeName = _vehicleList lnbData [_selectedVehicle, 2];

_picture = getText (configFile >> "cfgVehicles" >> _class >> "picture");

_vehiclePicture ctrlSetText _picture;

_marker = format ["%1_spawn", _storeName];

_buttonAction = format ["closeDialog 0; _veh = createVehicle [""%1"", (%2 findEmptyPosition [1, 150, ""%1""]), [], 0, ""CAN_COLLIDE""];", _class, (getMarkerPos _marker)];

_buyButton buttonSetAction _buttonAction;
_buyButton ctrlEnable true;
{'fraction_non_alphanumeric': 0.11209276642738818, 'fraction_numerical': 0.01435670900055218, 'mean_word_length': 8.197969543147208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2763414', 'n_tokens_mistral': 624, 'n_tokens_neox': 578, 'n_words': 146}