9 {
11
13
14 int actionCount;
15 int actionMax = 80;
16
17 int column_index = 0;
18 int item_index;
19 string output = "";
20 string option_text = "";
23
24 actionCount = actions.Count();
25 for (int i = 0; i < actionCount; i++)
26 {
28 if (input)
29 {
30 if (item_index < actionMax)
31 {
32 output = "";
33 option_text = "";
36 {
37 column_index = Math.Floor(item_index / 21);
39 Widget spacer = w.FindWidget(
"Spacer");
40 TextWidget
name = TextWidget.Cast(w.FindWidget(
"KeybindName"));
41 TextWidget mod = TextWidget.Cast(spacer.FindWidget("KeybindModifier"));
42 TextWidget value = TextWidget.Cast(spacer.FindWidget("KeybindButton"));
43
44 string modifier_text = "";
45 name.SetText(option_text);
46 value.SetText(output);
47
49 {
50 mod.SetText(modifier_text);
51 }
52
54 mod.Update();
55 value.Update();
56 spacer.Update();
57
58 item_index++;
59 }
60 }
61 else
62 {
63 option_text = "";
66 }
67 }
68 }
69
71 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native WorkspaceWidget GetWorkspace()
proto native Input GetInput()
proto native CGame GetGame()