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 0000000..1aa7949 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/Info/Icon_SI.paa differ 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 0000000..e116406 Binary files /dev/null and b/mpmissions/Exile.Altis/ExAdClient/XM8/Apps/VG/Icon_VG.paa differ 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 {