Loading...
Searching...
No Matches
icons_table.g.h
Go to the documentation of this file.
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by the framework's tools/build-conditions.ts.
4// Source: the framework's ts/weather/conditions.ts
5//
6// Changes to this file may be lost if the code is regenerated.
7// Edit the source and run `npm run build:conditions` in the framework repo instead.
8// </auto-generated>
9//------------------------------------------------------------------------------
18#pragma once
19
31static uint32_t wx_resource_for_table(const char *condition)
32{
33 if (!condition)
34 {
35 return RESOURCE_ID_ICON_WEATHER_NOW_NA;
36 }
37
38 if (!strcmp(condition, "CLEAR"))
39 {
40 return RESOURCE_ID_ICON_WEATHER_NOW_CLEAR;
41 }
42
43 if (!strcmp(condition, "CLEAR_NIGHT"))
44 {
45 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_CLEAR;
46 }
47
48 if (!strcmp(condition, "PCLDY"))
49 {
50 return RESOURCE_ID_ICON_WEATHER_NOW_PARTLY_CLOUDY;
51 }
52
53 if (!strcmp(condition, "PCLDY_NIGHT"))
54 {
55 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_PARTLY_CLOUDY;
56 }
57
58 if (!strcmp(condition, "CLDY"))
59 {
60 return RESOURCE_ID_ICON_WEATHER_NOW_CLOUDY;
61 }
62
63 if (!strcmp(condition, "CLDY_NIGHT"))
64 {
65 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_CLOUDY;
66 }
67
68 if (!strcmp(condition, "FOGGY"))
69 {
70 return RESOURCE_ID_ICON_WEATHER_NOW_FOG;
71 }
72
73 if (!strcmp(condition, "FOGGY_NIGHT"))
74 {
75 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_FOG;
76 }
77
78 if (!strcmp(condition, "DRZL"))
79 {
80 return RESOURCE_ID_ICON_WEATHER_NOW_DRIZZLE;
81 }
82
83 if (!strcmp(condition, "DRZL_NIGHT"))
84 {
85 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_DRIZZLE;
86 }
87
88 if (!strcmp(condition, "FZDZ"))
89 {
90 return RESOURCE_ID_ICON_WEATHER_NOW_SLEET;
91 }
92
93 if (!strcmp(condition, "FZDZ_NIGHT"))
94 {
95 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SLEET;
96 }
97
98 if (!strcmp(condition, "RAIN"))
99 {
100 return RESOURCE_ID_ICON_WEATHER_NOW_RAIN;
101 }
102
103 if (!strcmp(condition, "RAIN_NIGHT"))
104 {
105 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_RAIN;
106 }
107
108 if (!strcmp(condition, "FZRN"))
109 {
110 return RESOURCE_ID_ICON_WEATHER_NOW_SLEET;
111 }
112
113 if (!strcmp(condition, "FZRN_NIGHT"))
114 {
115 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SLEET;
116 }
117
118 if (!strcmp(condition, "SNOW"))
119 {
120 return RESOURCE_ID_ICON_WEATHER_NOW_SNOW;
121 }
122
123 if (!strcmp(condition, "SNOW_NIGHT"))
124 {
125 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SNOW;
126 }
127
128 if (!strcmp(condition, "SHWR"))
129 {
130 return RESOURCE_ID_ICON_WEATHER_NOW_SHOWERS;
131 }
132
133 if (!strcmp(condition, "SHWR_NIGHT"))
134 {
135 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SHOWERS;
136 }
137
138 if (!strcmp(condition, "SNSH"))
139 {
140 return RESOURCE_ID_ICON_WEATHER_NOW_SNOW_WIND;
141 }
142
143 if (!strcmp(condition, "SNSH_NIGHT"))
144 {
145 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SNOW_WIND;
146 }
147
148 if (!strcmp(condition, "STRM"))
149 {
150 return RESOURCE_ID_ICON_WEATHER_NOW_THUNDERSTORM;
151 }
152
153 if (!strcmp(condition, "STRM_NIGHT"))
154 {
155 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_THUNDERSTORM;
156 }
157
158 return RESOURCE_ID_ICON_WEATHER_NOW_NA;
159}
static uint32_t wx_resource_for_table(const char *condition)
Finds the icon resource for a condition token.
Definition icons_table.g.h:31