DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ VerifyIconImageString()

static string StaticGUIUtils::VerifyIconImageString ( int imageset_group = IMAGESETGROUP_INVENTORY,
string icon_name = "" )
inlinestaticprivate

Checks for improperly formated, legacy image names and corrects them to default format.

См. определение в файле StaticGUIUtils.c строка 7

8 {
9 if (icon_name == "")
10 {
11 return "set:dayz_inventory image:missing";
12 }
13
14 if ( !icon_name.Contains("image:") )
15 {
16 switch (imageset_group)
17 {
19 return "set:dayz_inventory image:" + icon_name;
20 }
21
22 }
23 return icon_name;
24 }
static const int IMAGESETGROUP_INVENTORY
Определения StaticGUIUtils.c:3
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286

Перекрестные ссылки IMAGESETGROUP_INVENTORY.

Используется в AttachmentCategoriesRow::Init(), Attachments::InitAttachmentGrid(), AttachmentCategoriesContainer::InitGhostSlots(), ZombieContainer::InitGhostSlots(), AttachmentCategoriesContainer::LoadAttachmentCategoriesIcon() и PlayerContainer::PlayerContainer().