DayZ 1.24
Loading...
Searching...
No Matches
StaticGUIUtils Class Reference
Collaboration diagram for StaticGUIUtils:
[legend]

Static Private Member Functions

static string VerifyIconImageString (int imageset_group=IMAGESETGROUP_INVENTORY, string icon_name="")
 Checks for improperly formated, legacy image names and corrects them to default format.
 

Static Private Attributes

static const int IMAGESETGROUP_INVENTORY = 0
 

Detailed Description

Definition at line 1 of file StaticGUIUtils.c.

Member Function Documentation

◆ 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.

Definition at line 7 of file StaticGUIUtils.c.

8 {
9 if (icon_name == "")
10 return "set:dayz_inventory image:missing";
11
12 if (!icon_name.Contains("image:"))
13 {
14 switch (imageset_group)
15 {
17 return "set:dayz_inventory image:" + icon_name;
18 }
19
20 }
21 return icon_name;
22 }
static const int IMAGESETGROUP_INVENTORY

References IMAGESETGROUP_INVENTORY.

Referenced by AttachmentCategoriesRow::Init(), Attachments::InitAttachmentGrid(), AttachmentCategoriesContainer::InitGhostSlots(), ZombieContainer::InitGhostSlots(), AttachmentCategoriesContainer::LoadAttachmentCategoriesIcon(), and PlayerContainer::PlayerContainer().

Member Data Documentation

◆ IMAGESETGROUP_INVENTORY


The documentation for this class was generated from the following file: