Friday, September 20, 2024 12:09:38 AM
> settings

Customize


Authenticate

> ExileClient_marxet_gui_auctionView_onBidKeyDown.sqf
/*
    MarXet v2.0
    Written by WolfkillArcadia
    CC BY-NC-SA 4.0
*/
 
private["_inputBox", "_key", "_display", "_ctrlText", "_tooMuch"];
disableSerialization;
_inputBox = _this select 0;
_key = _this select 1;
_display = uiNamespace getVariable ["RscMarXet", displayNull];
_ctrlText = ctrlText _inputBox;
_tooMuch = parseNumber(_ctrlText) > (player getVariable ["ExileMoney", -1]);
if (
	_tooMuch 
	|| parseNumber(_ctrlText) isEqualTo 0 
	|| (_key isEqualTo 0x0E && {_tooMuch}) 
	|| (_key isEqualTo 0x0E && {parseNumber(_ctrlText) isEqualTo 0})
) exitWith 
{
	(_display displayCtrl 22337) ctrlEnable false;
};
All opinions represented herein are my own
- © 2024 itsthedevman
- build 3c15a1b