- Added the store's action name (new
stringtable.xml
entry:STR_HALS_STORE_OPEN_ACTION
). - Added button to the store to open the Usage page on the repository's wiki.
- Added
HALs_store_fnc_openStore
- open the store without using the addAction. - Added
HALs_store_fnc_addActionTrader
- Add an open store action to all targets. - Added new setting
oldManItemsPrice
toHALs\Addons\Money\config.hpp
- this array controls the price of the money inventory items added in the Old Man update:"Money_bunch"
,"Money_roll"
,"Money_stack"
and"Money"
. - Changed
HALs_store_fnc_addTrader
now accepts a target parameter which determines who can use (the addAction) the trader. By default, all players will have the addAction. - Changed stock and starting funds can now be greater than 999,999 (previous hard cap).
- Changed the store's visuals to minimise empty space and changed colours to match BIS' colour scheme.
- Changed the example mission to demonstrate picking up money and different stores.
- Changed trader can be any type not just "CAManBase", "ReammoBox_F" or "Car_F".
- Added support for Old Man's new money items: picking them up will add money to the player. Alter the money values in
HALs\Addons\money\functions\client\fn_client.sqf
. - Added
BIS_fnc_holdActionAdd
to replace the previously usedaddAction
. - Added a textbox in the inventory screen to display the player's money.
- Chnaged final sell prices are now only calculated on the server.
- Changed some colours to match BIS GUI colour scheme.
- Changed summary messages from buying and selling.
- Fixed minor issue with Russian translation (credits to: barman75).
- Fixed issue where a non-parent weapon could not be sold.
- Fixed issue where the players money was not updated will using the store.
- Fixed issue where the tooltip for the trader's container dropdown box was not updated when the sell checkbox was checked.
- Optimised
HALs_store_fnc_main
by replacing the trader's item and prices arrays with hashmaps. - Optimised
HALs_store_fnc_main
by removing duplicate code.
-
Added Selling.
- Stringtable items:
"STR_HALS_STORE_ITEM_SELL_NOTEMPTY" "STR_HALS_STORE_ITEM_SELL_SOLD" "STR_HALS_STORE_CHECKBOX_AVALIABLE" "STR_HALS_STORE_BUTTON_SELL" "STR_HALS_STORE_CHECKBOX_SELLFILTER"
- The no stock and too expensive filters have been combined into one: "Only show items available for purchase"
- Added filter to enable selling (only sellable items in the current container (eg trader category) are shown).
- You can only sell an item to a store if the store itself sells the item.
- If you sell a weapon with attachments, the attachments won't be sold and are added to the container.
- Global item sell factor is controlled by the variable
HALs_store_sellFactor
whose default value is defined inconfig.hpp
.
- Stringtable items:
-
Added French Translation (thanks to vbr74).
-
Added "All" category to the dropdown box.
-
Added a button to alphabetise the listed store items.
-
Fixed issue where lbValue returned an incorrect value.
-
Fixed issue which displayed the incorrect description for a store item.
-
Optimised the functions:
HALs_store_fnc_main
,HALs_store_fnc_getTraderStock
HALs_store_fnc_setTraderStock
andHALs_store_fnc_updateStock
. -
Removed the functions:
HALs_store_fnc_blur
,HALs_fnc_getModuleRoot
andHALs_store_fnc_addMoneyOnOpen
. -
Updated
defines.hpp
by removing unused class definitions. -
Updated
dialog.hpp
by replacing Safezone value with pixelGridNoUIScale values. -
Updated
dialog.hpp
by replacing magic numbers with MACROs. -
Updated HALs file structure to be compatible with my other projects (moved
HALs\Core
toHALs\Addons\Core
).
- ADDED: (Function)
HALs_store_fnc_addMoneyOnOpen
- ADDED: Option to change the currency symbol used.
- CHANGED: Restructured
HALs\Addons
folder. Everything is initialised throughHALs\Addons\main\config.hpp
now. - CHANGED: Categorised functions in the
HALs\Core
folder.
- FIXED: The mass of items of containers within containers were not calculated.
- FIXED: Edit box maximum characters set to 6 (credits to: R3vo).
- FIXED: Players couldn't buy items in multiplayer (credits to: Antoine).
- OPTIMISED: Removed the creation of unneccesary private variables.
- OPTIMISED:
HALs_store_fnc_main
,HALs_store_fnc_initModule
,HALs_store_fnc_blur
,HALs_fnc_getModuleRoot
-
ADDED: (Function) HALs_store_fnc_getItemType
-
ADDED: (Function) HALs_fnc_getModuleSettings
-
ADDED: Spanish Translation thanks to Kain181.
-
ADDED: French Translation thanks to vbr74.
-
CHANGED: (Dialog) Visual changes. Text should be easier to read and dialog should scale better with different resolutions
-
CHANGED: (Config) The configuration files for HALs_Money and HALs_Store have been moved from the
description.ext
toconfig.hpp
in their respective folders.- HALs_Money:
HALs\Addons\Money\config.hpp
- HALs_Store:
HALs\Addons\Store\config.hpp
- HALs_Money:
- FIXED: Could not equip a sniper/shotgun if the equip checkbox was checked.
- FIXED: Mass of glasses were considered 0.
- FIXED: Could buy items to the inventories of other traders.
- FIXED: Could trade with dead traders.
- FIXED: Could trade with traders while in a vehicle.
- FIXED: Could not equip item if container was completely full/no container existed (Now, the equip checkbox must be checked).
- FIXED: Backpack pictures were not showing.
- FIXED: Backpack stats were not working.
-
ADDED: German Translation thanks to 7erra.
-
ADDED: Items can now have custom structured text descriptions.
-
ADDED: fn_purchase added message if player couldnt equip item.
- Uses new stringtable entry ("STR_HALS_STORE_ITEM_NOEQUIP").
-
ADDED: traders can be any type now ("CAManBase", "ReammoBox_F" or "Car_F").
- NB automatically clears a traders inventory on init if they are not type "CAManBase"
- If trader is type "CAManBase", can only purchase to player's uniform/vest/backpack.
-
ADDED: Stats for weapons, uniform, vests, backpacks and optics.
- TBF