// XUiC_CategoryList
public bool SetupCategoriesByWorkstation(string workstation)
string text = workstation.ToLower();
if (text != null)
{
XUiC_CategoryList.fd001a = new Dictionary<string, int>(7)
{
{ "forge", 0 },
{ "campfire", 1 },
{ string.Empty, 2 },
{ "workbench", 3 },
{ "skills", 4 },
{ "cementmixer", 5 },
{ "chemistrystation", 6 }
};
int num;
if (XUiC_CategoryList.fd001a.TryGetValue(text, out num))
{
switch (num)
{
case 0:
this.SetCategoryEntry(0, string.Empty, "ui_game_symbol_campfire", this.fd000b);
this.SetCategoryEntry(1, "Building", "ui_game_symbol_map_house", this.fd0002);
this.SetCategoryEntry(2, "Resources", "ui_game_symbol_resource", this.fd0003);
this.SetCategoryEntry(3, "Ammo/Weapons", "ui_game_symbol_knife", this.fd0004);
this.SetCategoryEntry(4, "Decor/Miscellaneous", "ui_game_symbol_chair", this.fd0005);
this.SetCategoryEmpty(5);
this.SetCategoryEmpty(6);
this.SetCategoryEmpty(7);
this.SetCategoryEmpty(8);
return true;
<...snip...>
}
}
}
this.SetCategoryEntry(0, string.Empty, "ui_game_symbol_campfire", this.fd000b);
this.SetCategoryEmpty(1);
this.SetCategoryEmpty(2);
this.SetCategoryEmpty(3);
this.SetCategoryEmpty(4);
this.SetCategoryEmpty(5);
this.SetCategoryEmpty(6);
this.SetCategoryEmpty(7);
this.SetCategoryEmpty(8);
return true;