ACE3/addons/medical_treatment/functions
mharis001 8d2bba4b35
Rewrite Medical GUI (#6831)
* Add a macro for the bloodloss scaling factor

* Adjust bloodloss threshold for red icon

* Remove bloodloss color scaling factor

The issue is actually the other way round, the factor of 20 would
instantly make bodyparts red on taking a wound.

* Implemet 10 color steps provided by ShackTac

This replaces the old method of colouring the interaction menu icons
and body image selections with a new method that has 10 distinct color
steps (matching across the icons and the body image).

* Use macros for constants

* Implement blue damage colouring

This re-adds visualisation for colouring based on damage. The case where
a limb has a tourniquet will hopefully be handled by an overlayed icon.

* Tidy up file structure

* Move patient information display to medical_ui

* Make common colour conversion code into functions

* Add tourniquet icon overlay to body image

* Fix mispelling I forgot to commit

* Update icon paths to new white cross icon

* Clean mess after rebase

* Add new medical menu gui

* Add updating injury list and body image

* Add updating treatment category buttons

* Update onMenuClose function

* Delete unused functions

* Add action buttons and triage card to menu

* Move medical menu PFH to separate function

* Move setTriageStatus to treatment

* Add triage select dropdown

* Add toggle button action

* Fix mouse moving randomly when opening

* Add logs list update and remove unused functions

* Hide tourniquet icons by default

* Remove CfgInGameUI (already in feedback)

* Update patient info display

* Update triage card display

* Add settings to control interact menu actions

* Cleanup files/paths

* Move triage status update to common function

* Add icons for interact menu actions

* Modify icon color for interact menu actions

* Update canOpenMenu for new setting

* Hide pain information for unconscious

* Stringtable cleanup

* Use switch for pain text

* Change minor triage status to minimal

* Fix injury list to use new stringtable entry names

* Fix medical actions check when disabled

* Skip distance check in same vehicle

* More cleanup

* Fix CI error

* Requested changes

* Fix INJURIES string

* Fix include after comment block

* Fix missing ;

Co-Authored-By: mharis001 <34453221+mharis001@users.noreply.github.com>
2019-03-24 18:17:48 -04:00
..
fnc_actionCheckBloodPressure.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_actionCheckBloodPressureLocal.sqf Formatting. Lazy eval 2019-03-21 14:34:51 +01:00
fnc_actionCheckPulse.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_actionCheckPulseLocal.sqf Missing privates. Lazy evaluation. 2019-03-17 21:26:15 +01:00
fnc_actionCheckResponse.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_actionDiagnose.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_actionLoadUnit.sqf Rewrite rectify. Medical - Add vehicle hint when loading unconscious (#6822) 2019-03-17 17:54:50 +01:00
fnc_actionPlaceInBodyBag.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_actionUnloadUnit.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_addLoadPatientActions.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_addToLog.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_addToTriageCard.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_bodyCleanupLoop.sqf Cleanup using SQFLint (#6485) 2018-08-02 15:02:10 +01:00
fnc_calculateBlood.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_canAccessMedicalEquipment.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_canTreat.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_canTreatCached.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_checkItems.sqf move settings to sqf 2019-03-24 00:37:39 -05:00
fnc_dropDownTriageCard.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_findMostEffectiveWound.sqf Vary time taken to bandage based on circumstances (#6467) 2018-07-25 09:35:04 +01:00
fnc_getBandageTime.sqf Vary time taken to bandage based on circumstances (#6467) 2018-07-25 09:35:04 +01:00
fnc_getTriageStatus.sqf Rewrite Medical GUI (#6831) 2019-03-24 18:17:48 -04:00
fnc_handleBandageOpening.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_hasItem.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_hasItems.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_hasTourniquetAppliedTo.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_healTime.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_isInMedicalFacility.sqf Formatting. Lazy eval 2019-03-21 14:34:51 +01:00
fnc_isInMedicalVehicle.sqf Cleanup using SQFLint (#6485) 2018-08-02 15:02:10 +01:00
fnc_isMedic.sqf Move medical settings into their respective components (#6493) 2018-08-06 17:08:43 +01:00
fnc_isMedicalVehicle.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_litterCleanupLoop.sqf Cleanup using SQFLint (#6485) 2018-08-02 15:02:10 +01:00
fnc_litterCreate.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_litterHandleCreate.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_onMedicationUsage.sqf Formatting. Lazy eval 2019-03-21 14:34:51 +01:00
fnc_serverRemoveBody.sqf Cleanup using SQFLint (#6485) 2018-08-02 15:02:10 +01:00
fnc_setTriageStatus.sqf Rewrite Medical GUI (#6831) 2019-03-24 18:17:48 -04:00
fnc_treatment_failure.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatment_success.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatment.sqf Remove patient treatment animations (#6524) 2018-08-12 12:28:48 +01:00
fnc_treatmentBandage.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentBandageLocal.sqf Fix event name overlap and macros (#6514) 2018-08-11 11:40:06 +01:00
fnc_treatmentCPR_failure.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentCPR_progress.sqf Fix missing boolean return in CPR 2018-08-12 11:50:47 +01:00
fnc_treatmentCPR_start.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentCPR.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentCPRLocal.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentFullHeal.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentFullHealLocal.sqf Cleanup using SQFLint (#6485) 2018-08-02 15:02:10 +01:00
fnc_treatmentIV.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentIVLocal.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentMedication.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentMedicationLocal.sqf Move medical settings into their respective components (#6493) 2018-08-06 17:08:43 +01:00
fnc_treatmentSurgicalKit_onProgress.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentTourniquet.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentTourniquetLocal.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_treatmentTourniquetRemove.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_useItem.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
fnc_useItems.sqf Move #includes before function headers (#6484) 2018-07-30 10:22:14 +01:00
script_component.hpp Add first step in medical rewrite 2016-06-30 17:33:29 +02:00