ACE3/addons/medical_gui/functions
amsteadrayle 1e3d9cc22a
Medical GUI - Show number of available treatment items in medical menu (#9474)
* Initial implementation of item count display

* Put everything inside function, add padding

* Extract and explain null string

* Fix tab in config file

* Add function header

* Use ACE item counting function

* Extract column width to variable

* Move constants declaration closer to usage

* Add special case for sutures

* Add setting to enable/disable

* Expand to allow showing in tooltip

* Split into counting and formatting function

* Fix incorrect check for case with no items

* Remove ineffective padding from tooltip

* Check for surgical kit item instead of display name

* Update return description in header

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Add `private` keyword for inline functions

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* capitalization/vars

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* nil checks, localize macro

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Remove button text mode and setting

* possessive

* Update addons/medical_gui/functions/fnc_formatItemCounts.sqf

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2023-10-12 22:39:23 -04:00
..
fnc_addTreatmentActions.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_bloodLossToRGBA.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_canOpenMenu.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_collectActions.sqf Medical GUI - Show number of available treatment items in medical menu (#9474) 2023-10-12 22:39:23 -04:00
fnc_countTreatmentItems.sqf Medical GUI - Show number of available treatment items in medical menu (#9474) 2023-10-12 22:39:23 -04:00
fnc_damageToRGBA.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_displayPatientInformation.sqf Medical GUI - Add outline to selected body part in Medical Menu (#9471) 2023-10-11 05:25:28 -04:00
fnc_displayTriageCard.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_formatItemCounts.sqf Medical GUI - Show number of available treatment items in medical menu (#9474) 2023-10-12 22:39:23 -04:00
fnc_handleToggle.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_handleTriageSelect.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_menuPFH.sqf Medical GUI - Add outline to selected body part in Medical Menu (#9471) 2023-10-11 05:25:28 -04:00
fnc_modifyAction.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_modifyActionTriageLevel.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onKeyDown.sqf Medical GUI - Add keybinds to navigate the Medical Menu (#9477) 2023-10-12 12:50:48 -04:00
fnc_onMenuClose.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_onMenuOpen.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_openMenu.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_toggleTriageSelect.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_updateActions.sqf Medical GUI - Show number of available treatment items in medical menu (#9474) 2023-10-12 22:39:23 -04:00
fnc_updateBodyImage.sqf Medical GUI - Add outline to selected body part in Medical Menu (#9471) 2023-10-11 05:25:28 -04:00
fnc_updateCategories.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_updateInjuryList.sqf Medical GUI - Display qualitative bleed rate in injury list (#9469) 2023-10-11 05:23:31 -04:00
fnc_updateLogList.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_updateTriageCard.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00
fnc_updateTriageStatus.sqf General - Relative script_component.hpp includes (#9378) 2023-09-12 20:58:10 +02:00