Skip to content

Commit 7e4d34c

Browse files
committed
crafting UI, except for the actual selecting items part
1 parent 5f62d64 commit 7e4d34c

File tree

11 files changed

+747
-16
lines changed

11 files changed

+747
-16
lines changed
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
"Resource/UI/CraftingPanel.res" {
2+
"CraftingPanel" {
3+
"ControlName" "CRD_Crafting_Panel"
4+
"fieldName" "CraftingPanel"
5+
"xpos" "c-285" [!$WIN32WIDE]
6+
"xpos" "c-315" [$WIN32WIDE]
7+
"ypos" "60"
8+
"wide" "640"
9+
"tall" "390"
10+
}
11+
12+
"Backdrop"
13+
{
14+
"ControlName" "Panel"
15+
"fieldName" "Backdrop"
16+
"xpos" "0"
17+
"ypos" "0"
18+
"wide" "640"
19+
"tall" "390"
20+
"zpos" "-1"
21+
"paintbackgroundenabled" "1"
22+
"paintbackgroundtype" "2"
23+
"bgcolor_override" "16 20 24 224"
24+
}
25+
26+
"LblChooseRecipe" {
27+
"ControlName" "Label"
28+
"fieldName" "LblChooseRecipe"
29+
"xpos" "5"
30+
"ypos" "0"
31+
"wide" "200"
32+
"tall" "25"
33+
"labelText" "#rd_crafting_select_recipe"
34+
"font" "DefaultBold"
35+
"allcaps" "1"
36+
}
37+
38+
"GplRecipes" {
39+
"ControlName" "GenericPanelList"
40+
"fieldName" "GplRecipes"
41+
"xpos" "5"
42+
"ypos" "30"
43+
"wide" "200"
44+
"tall" "350"
45+
"bgcolor_override" "0 0 0 0"
46+
}
47+
48+
"LblRecipeTitle" {
49+
"ControlName" "Label"
50+
"fieldName" "LblRecipeTitle"
51+
"xpos" "220"
52+
"ypos" "0"
53+
"wide" "410"
54+
"tall" "25"
55+
"labelText" ""
56+
"font" "DefaultBold"
57+
}
58+
59+
"LblFlavor" {
60+
"ControlName" "Label"
61+
"fieldName" "LblFlavor"
62+
"xpos" "220"
63+
"ypos" "30"
64+
"wide" "410"
65+
"tall" "60"
66+
"wrap" "1"
67+
"labelText" ""
68+
"fgcolor_override" "224 224 224 255"
69+
}
70+
71+
"LblWarning" {
72+
"ControlName" "Label"
73+
"fieldName" "LblWarning"
74+
"xpos" "220"
75+
"ypos" "280"
76+
"wide" "410"
77+
"tall" "60"
78+
"wrap" "1"
79+
"labelText" ""
80+
"fgcolor_override" "255 255 0 255"
81+
}
82+
83+
"BtnCraft" {
84+
"ControlName" "CNB_Button"
85+
"fieldName" "BtnCraft"
86+
"xpos" "250"
87+
"ypos" "360"
88+
"wide" "340"
89+
"tall" "24"
90+
"textAlignment" "center"
91+
"font" "DefaultMedium"
92+
"fgcolor_override" "113 142 181 255"
93+
}
94+
}

src/game/client/swarm/rd_collections.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "cbase.h"
22
#include "rd_collections.h"
3+
#include "rd_collections_crafting.h"
34
#include "rd_swarmopedia.h"
45
#include "asw_util_shared.h"
56
#include <vgui/IInput.h>
@@ -38,6 +39,7 @@ void LaunchCollectionsFrame()
3839
CRD_Collection_Tab_Inventory *pOtherTab = new CRD_Collection_Tab_Inventory( pFrame, "#rd_collection_inventory_other", "medal" );
3940
pOtherTab->m_bInvertSlotFilter = true;
4041
pFrame->AddTab( pOtherTab );
42+
pFrame->AddTab( new CRD_Collection_Tab_Crafting( pFrame, "#rd_collection_inventory_crafting" ) );
4143
if ( rd_legacy_ui.GetString()[0] != '\0' )
4244
{
4345
pFrame->AddTab( new CRD_Collection_Tab_Equipment( pFrame, "#rd_collection_weapons", NULL, ASW_INVENTORY_SLOT_PRIMARY ) );

0 commit comments

Comments
 (0)