z_mirror/StatsGui

git clone https://git.raiguard.me/z_mirror/StatsGui

Caleb HeuerUpdate dependencies and fix warnings4934903

trunk
2.2 KiB92 linesraw
1local styles = data.raw["gui-style"].default
2
3styles.statsgui_label = {
4  type = "label_style",
5  font = "default-game",
6  --- @diagnostic disable-next-line: undefined-global
7  font_color = default_font_color,
8}
9
10styles.statsgui_frame = {
11  type = "frame_style",
12  parent = "invisible_frame",
13  horizontal_flow_style = {
14    type = "horizontal_flow_style",
15    horizontal_spacing = 20,
16    horizontal_align = "right",
17    horizontally_stretchable = "on",
18    top_padding = 10,
19    right_padding = 287 + 180,
20  },
21  vertical_flow_style = {
22    type = "vertical_flow_style",
23    vertical_spacing = 0,
24    horizontal_align = "right",
25    horizontally_stretchable = "on",
26    top_padding = 38,
27    right_padding = 287,
28  },
29}
30
31styles.statsgui_frame_no_ups = {
32  type = "frame_style",
33  parent = "invisible_frame",
34  horizontal_flow_style = {
35    type = "horizontal_flow_style",
36    horizontal_spacing = 20,
37    horizontal_align = "right",
38    horizontally_stretchable = "on",
39    top_padding = 10,
40    right_padding = 287,
41  },
42  vertical_flow_style = {
43    type = "vertical_flow_style",
44    vertical_spacing = 0,
45    horizontal_align = "right",
46    horizontally_stretchable = "on",
47    top_padding = 10,
48    right_padding = 287,
49  },
50}
51
52styles.statsgui_frame_clock = {
53  type = "frame_style",
54  parent = "invisible_frame",
55  horizontal_flow_style = {
56    type = "horizontal_flow_style",
57    horizontal_spacing = 20,
58    horizontal_align = "right",
59    horizontally_stretchable = "on",
60    top_padding = 10,
61    right_padding = 287 + 180,
62  },
63  vertical_flow_style = {
64    type = "vertical_flow_style",
65    vertical_spacing = 0,
66    horizontal_align = "right",
67    horizontally_stretchable = "on",
68    top_padding = 50,
69    right_padding = 287,
70  },
71}
72
73styles.statsgui_frame_clock_no_ups = {
74  type = "frame_style",
75  parent = "invisible_frame",
76  horizontal_flow_style = {
77    type = "horizontal_flow_style",
78    horizontal_spacing = 20,
79    horizontal_align = "right",
80    horizontally_stretchable = "on",
81    top_padding = 10,
82    right_padding = 287,
83  },
84  vertical_flow_style = {
85    type = "vertical_flow_style",
86    vertical_spacing = 0,
87    horizontal_align = "right",
88    horizontally_stretchable = "on",
89    top_padding = 50,
90    right_padding = 287,
91  },
92}