From a4992d7afbf826627c574669096ed27e8421bbdb Mon Sep 17 00:00:00 2001 From: Bjanski Date: Tue, 12 Jul 2016 11:49:38 +0200 Subject: [PATCH] Support for Img in More tab Support for Img in More tab --- .../ExAdClient/XM8/Apps/Info/Icon_SI.paa | Bin 0 -> 22016 bytes .../ExAdClient/XM8/Apps/VG/Icon_VG.paa | Bin 0 -> 22016 bytes .../ExAdClient/XM8/Functions/fn_addApps.sqf | 9 ++++++++- .../Exile.Altis/ExAdClient/XM8/customize.sqf | 2 +- mpmissions/Exile.Altis/config.cpp | 8 +++++--- 5 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/Icon_SI.paa create mode 100644 mpmissions/Exile.Altis/ExAdClient/XM8/Apps/VG/Icon_VG.paa diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/Icon_SI.paa b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/Icon_SI.paa new file mode 100644 index 0000000000000000000000000000000000000000..1aa7949caeb5b195cfb6a0a6a7ddf20d7305c73b GIT binary patch literal 22016 zcmeHP3sjU<9={*X@DPR>kpYy4qkv{fsN2ptn@49j7(r!HG056+U zZ@&Bb-{1ZJ@Bco&(bC&*Pe@C=Jv~7~2yr@{=?rHi%s@;bAih1}t|Y_)yb<4*lr+-{ z*Nfr(JY2k(O33OoLe|;{se$*UhsBtO_0r=H#$+uJm?+vSMSC=*gxG9GGXAh=5C3X+ z2Vx_zl;ALr9qV*hkU&f@?w-OKmG4JZB1(lY*o@a_3rKw0jN3>`eoV^i!zC<`_@kmd zC;N5ArWUFm{#`}^a*F{akv=7bMcmRx8%EJq3%{Q>yKrh{(IEfWHhmF%8K3zY7r$E5 zKG0wD*q;~%LMI;+vnG8fv4uu<$=;m^Sit&v^4lYBBVN@cuo^SK^!Lvxj2z@2TjJ^j z!yRgS>;wGXZ`dc>;b5DPIfZ=>yMF`n%u-%-@EL4SUFXM@&loBB?YDd9Jo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 S#G`ey3UJSo)fekb$o~MI+PN|S literal 0 HcmV?d00001 diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/VG/Icon_VG.paa b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/VG/Icon_VG.paa new file mode 100644 index 0000000000000000000000000000000000000000..e116406f752dd80c61dec2f705f58623f0e606c0 GIT binary patch literal 22016 zcmeHP4^ULc8Q(iO5bJUH=M)8+LqThlj3(oCrb*bhYC9A(XxkGf6JryN zAWdRzRlvl|Bo(hFP0YkJP-9;wI*vqZDpi7in8t_}B52hZK}nEN!# zT6bq2x4-@K?YF=EcHi!M-@`;RGt=EuGapZnAcS;ubUeUtR{BiD6awPR^cfk54R9fT zEF)u<1LB2nt%Arp7a<$mgltp@X@u+BheDL$`1a*xNy&g@Kr$d1kPJu$Bmc-$((wHPpG zAb+0GoIfkMzX|Zi|MD{oPqBwywkO+t_;?#r;GuTs$Ujp0GK>eu_KVK0wE6Rg2t2%& zdS5N{)bU*6c0Nb%i2;!uyOj%sG*B2KjumA@lQX7J&6~rq$&`1AwnouXuaK9SM=g`| z`YzX!_d_vJBF;OH`wuOM*V;2B97*u6@)b`O^`|te=DH;RD$IxH?!-JD`HL?+23)3{t`Tz?Uy$w?`|L`z z7e1aYMafw6O!gCP3$|+Y459PS?Q-=x{~|}Jxy#gFFnJ~j1x>!aw6j>(C+5PohwENU z{0!y091aIl?izolkgC#TVP957nR51E{zP>?*B81xqZy1LVCljJP|VcxLHj^uqaF&i z54Qu$+)m;5FrH0Sr7qN70k+5QSIujE#n2x<9lF%KaJ=#;3g~`F?{~THU+HyKJ8uLLNGVn-+xz1RkBF52Q_a@_0U%!|A zE)=`TlBEnYc~+~HOupDr?B8Fb>pQA;OQ4ea^MwB6`TG7>l&>gm5@o^qWtx12M6i70 zSe~zt(a4vx_I`l*?0$%qAZQquoIVXjWcBNflfDbwnxkW$8tl()kGq^kBuMn9 zhrVBv@ceyW^$RWk=C03Mur3Bnf8q7bVfdHJ!|^{l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{SP??TkyK~m}iUK+?>z-th)x&vb&-kV!N2qF5{uMPH@|@eFrPA z=kGjez!oy8 y5^zPei(?ldZ8MEX7E>b~O0-n{YQIqHBSndT6&3g#|D0Mq*qOt$h2A3p5dH`9yEuXX literal 0 HcmV?d00001 diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_addApps.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_addApps.sqf index 1971178..7ae4b7e 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_addApps.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/Functions/fn_addApps.sqf @@ -41,10 +41,17 @@ while {_title != ""} do }; _display = uiNameSpace getVariable ["RscExileXM8", displayNull]; +_pW = 0.025; _pH = 0.04; { - private["_ctrl"]; + private["_ctrl","_pos","logo"]; _ctrl = (_display displayCtrl _count2); + _pos = ctrlPosition _ctrl; + _slide = ctrlParentControlsGroup _ctrl; + + _logo = if(isText(missionConfigFile >> "CfgXM8" >> _x >> "logo"))then{getText(missionConfigFile >> "CfgXM8" >> _x >> "logo")}else{"ExAdClient\Core\Img\logo.paa"}; + [_display,_slide,([_x,format["AppIcon%1",_count2]] call ExAd_fnc_getNextIDC),[(_pos select 0) + 1.5 * _pW, (_pos select 1) + 0.625 * _pH, 3 * _pW, 3 * _pH],_logo,[1,1,1,1],false,true,""] call ExAd_fnc_createPicture; + _ctrl ctrlSetText getText(missionConfigFile >> "CfgXM8" >> _x >> "title"); _ctrl ctrlSetEventHandler ["ButtonClick", format["['%1', 0] call ExileClient_gui_xm8_slide",_x]]; diff --git a/mpmissions/Exile.Altis/ExAdClient/XM8/customize.sqf b/mpmissions/Exile.Altis/ExAdClient/XM8/customize.sqf index c8508d9..cd45dc7 100644 --- a/mpmissions/Exile.Altis/ExAdClient/XM8/customize.sqf +++ b/mpmissions/Exile.Altis/ExAdClient/XM8/customize.sqf @@ -14,4 +14,4 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -*/ +*/ \ No newline at end of file diff --git a/mpmissions/Exile.Altis/config.cpp b/mpmissions/Exile.Altis/config.cpp index 2437b6d..bf891bf 100644 --- a/mpmissions/Exile.Altis/config.cpp +++ b/mpmissions/Exile.Altis/config.cpp @@ -5,7 +5,8 @@ class CfgXM8 class ExAd_VG { title = "Virtual Garage"; - controlID = 50000; //IDC:50000 -> 50014 || These need to be unique + controlID = 50000; //IDC:50000 -> 50015 || These need to be unique and out of range from each other + logo = "ExadClient\XM8\Apps\VG\Icon_VG.paa"; onLoad = "ExAdClient\XM8\Apps\VG\onLoad.sqf"; onOpen = "ExAdClient\XM8\Apps\VG\onOpen.sqf"; onClose = "ExAdClient\XM8\Apps\VG\onClose.sqf"; @@ -13,12 +14,13 @@ class CfgXM8 class ExAd_Info { title = "Server Info"; - controlID = 50100; //IDC:50100 -> 50101 || These need to be unique + controlID = 50100; //IDC:50100 -> 50102 || These need to be unique and out of range from each other + logo = "ExadClient\XM8\Apps\Info\Icon_SI.paa"; onLoad = "ExAdClient\XM8\Apps\Info\onLoad.sqf"; onOpen = "ExAdClient\XM8\Apps\Info\onOpen.sqf"; onClose = "ExAdClient\XM8\Apps\Info\onClose.sqf"; }; -}; +}; class CfgExileCustomCode {