Support for Img in More tab

Support for Img in More tab
This commit is contained in:
Bjanski 2016-07-12 11:49:38 +02:00
parent 40e3a95246
commit a4992d7afb
5 changed files with 14 additions and 5 deletions

View File

@ -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]];

View File

@ -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.
*/
*/

View File

@ -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
{