From 77210581f504e4bc1938e3f89caf26b58bf009d7 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Sat, 21 Mar 2015 14:40:26 +0100 Subject: [PATCH] Added corners to triage card --- .../functions/fnc_dropDownTriageCard.sqf | 4 +--- addons/medical/ui/triage_card_corner_l.paa | Bin 0 -> 22016 bytes addons/medical/ui/triage_card_corner_r.paa | Bin 0 -> 22016 bytes addons/medical/ui/triagecard.hpp | 16 ++++++++++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 addons/medical/ui/triage_card_corner_l.paa create mode 100644 addons/medical/ui/triage_card_corner_r.paa diff --git a/addons/medical/functions/fnc_dropDownTriageCard.sqf b/addons/medical/functions/fnc_dropDownTriageCard.sqf index c9a85d91af..5e763822db 100644 --- a/addons/medical/functions/fnc_dropDownTriageCard.sqf +++ b/addons/medical/functions/fnc_dropDownTriageCard.sqf @@ -24,11 +24,9 @@ _pos = [0,0,0,0]; if (_show) then { _pos = ctrlPosition (_display displayCtrl 2001); }; -for "_idc" from 2002 to 2006 step 1 do -{ +for "_idc" from 2002 to 2006 step 1 do { _pos set [1, (_pos select 1) + (_pos select 3)]; _ctrl = (_display displayCtrl _idc); _ctrl ctrlSetPosition _pos; _ctrl ctrlCommit 0; }; - diff --git a/addons/medical/ui/triage_card_corner_l.paa b/addons/medical/ui/triage_card_corner_l.paa new file mode 100644 index 0000000000000000000000000000000000000000..a713f43e2df6981becccc005180bb326140d253a GIT binary patch literal 22016 zcmeI4L2DC16vszdYdr*0P{=`{hhFyJ(Q}dtiJ^+3wRn*96ZjcyMJR{}h6*Y|Z-QRL zi@l0P`~dbK^cD|-AXs|QOU7B3#Lj;( z|3B7}bF@UD^esuiU+)y&(BH@#HLdq)MtqqM72cZuM&782zuWxt=1u%P<83&fBVV1S{x7#4l>RQ5 zH`W93x65DQopJp}o~D}k7t3GaZMna7^+5dd<-auKym{xxyYcslcz6BW;r$jJ58KCy ze>VQeducd*zr{9RT|DA%#$Vz6)i2&y55#{ue}%Va{f)d)6MvaM@{Wg(r28e9Ki_rL z`6F-N*6*zKS2g}s=Z*CeI)CDw5+8pb4V^#np3XZo{;uz@VZL3{zRmx{+pNEJ_2xSN zcpLUp9os+G<=6G&uJNb-&bPmH^;b53;%%2V)`M;S#JgPHw)qopw|E!LpLn~?J8%BP z+b`Z(`K!F&1bu%D^A(!beg0E<`~CM0q4CS=2l*54G^78zUy?Q7uDzdlSBp2+UrYQ3 z0IOH--~OB5_`&g$XFiYH9H+t1H2Pg+7Y7Ty!9uA17lAMO#WwJrH~MV?U-XOGH~+eN zMt?f(y8r%9dA_=4$k#Xj=yx?|znG7*`J>;Jg8i25zyC|F=e}jXw*8Cwimx8}yivB_ zqWw3&%Y04OBfP$%b=LmJ^~iO`Iu+( zj78SB0qP&*Wx{kCG98cc=Af)i&!-!In)jZaif>J}889AV)16OuyzxoSX9N6UJk+}L z4z{5T%Ag8%>k literal 0 HcmV?d00001 diff --git a/addons/medical/ui/triage_card_corner_r.paa b/addons/medical/ui/triage_card_corner_r.paa new file mode 100644 index 0000000000000000000000000000000000000000..5d095321b90b199a425af4dc19be50260da68964 GIT binary patch literal 22016 zcmeHP&ubGw6n@HDdJ*D5DD+Y=2z&ElE*_Fp*brh-v=%|AlAcZeh0=>4q9PR(1P_8x zFTJIALGW&G-l8BB#G51#vd(l_HE%J`ac1_{yug;c&di(lzVDkiyVEqM!d9!fez~>L z^Z;Nwo$eglx0-9x4#i8_t>%?L+9$*%?HfUGwISYbi|f94^XMADvvq)%HvvA2>)&77 z(nkaQu>G!jw|hZOCH}-&8y6q1bw$_*HG^`^jSIL6u+C{;Y?5>p_)I-Tu5^ zx=6{gvkHu0pnS8+aC^Q{+`AA#e97foo_0Bt`BbWkM+TN znAHQu$2Hq^J-EgZ1yH`p@y|9WZ1&-0npn{ItzKFsowHJ++^$U0u0->&{BJv79306+!mN8`tn zpm#1l*38?-RBgwz3hgJ=_S0&dziW8lWr*=uExA5${@AV~eUuFkoG)c#eH4AYQ2A2r z*O5LpN5!hARDP=McM67wYJRHyH*$`LYCgLCH!&XLY}bo!KDy&E9`&PeKTPp{OgDbh zU@ z0q~&m-fo$t9^=m-+R}~((}LqU8?Nn~54K*%#{^V9s_l4wY%d{vmOh&03(rT{iFgk6 z;-TiF+A9bjRsB%@RohkLQT4Cd|1^P5MH~f+?;7>q=+Wq*X%_a?{Nc0~kU#J3e1CX6 zwsCwo-$huI$D+G0M*Yc;-le~-_LC^A-RI-}q}E%G`+KsY0z7y)`Yzo3`gIh|Pk4tQ AjsO4v literal 0 HcmV?d00001 diff --git a/addons/medical/ui/triagecard.hpp b/addons/medical/ui/triagecard.hpp index 22cd9fcc51..f1b98f1e2d 100644 --- a/addons/medical/ui/triagecard.hpp +++ b/addons/medical/ui/triagecard.hpp @@ -20,6 +20,22 @@ class GVAR(triageCard) { colorBackground[] = {1,1,1,1}; text = ""; }; + class cornor_top_l: ACE_gui_backgroundBase { + idc = -1; + x = "10 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; + y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)"; + w = "5 * (((safezoneW / safezoneH) min 1.2) / 40)"; + h = "5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)"; + font = "PuristaMedium"; + SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; + colorText[] = {1,1,0,1}; + colorBackground[] = {0,0,0,0}; + text = QUOTE(PATHTOF(ui\triage_card_corner_l.paa)); + }; + class cornor_top_r: cornor_top_l { + x = "20 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)"; + text = QUOTE(PATHTOF(ui\triage_card_corner_r.paa)); + }; class TriageCardLabel { idc = 199;