35 return RESOURCE_ID_ICON_WEATHER_NOW_NA;
38 if (!strcmp(condition,
"CLEAR"))
40 return RESOURCE_ID_ICON_WEATHER_NOW_CLEAR;
43 if (!strcmp(condition,
"CLEAR_NIGHT"))
45 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_CLEAR;
48 if (!strcmp(condition,
"PCLDY"))
50 return RESOURCE_ID_ICON_WEATHER_NOW_PARTLY_CLOUDY;
53 if (!strcmp(condition,
"PCLDY_NIGHT"))
55 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_PARTLY_CLOUDY;
58 if (!strcmp(condition,
"CLDY"))
60 return RESOURCE_ID_ICON_WEATHER_NOW_CLOUDY;
63 if (!strcmp(condition,
"CLDY_NIGHT"))
65 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_CLOUDY;
68 if (!strcmp(condition,
"FOGGY"))
70 return RESOURCE_ID_ICON_WEATHER_NOW_FOG;
73 if (!strcmp(condition,
"FOGGY_NIGHT"))
75 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_FOG;
78 if (!strcmp(condition,
"DRZL"))
80 return RESOURCE_ID_ICON_WEATHER_NOW_DRIZZLE;
83 if (!strcmp(condition,
"DRZL_NIGHT"))
85 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_DRIZZLE;
88 if (!strcmp(condition,
"FZDZ"))
90 return RESOURCE_ID_ICON_WEATHER_NOW_SLEET;
93 if (!strcmp(condition,
"FZDZ_NIGHT"))
95 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SLEET;
98 if (!strcmp(condition,
"RAIN"))
100 return RESOURCE_ID_ICON_WEATHER_NOW_RAIN;
103 if (!strcmp(condition,
"RAIN_NIGHT"))
105 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_RAIN;
108 if (!strcmp(condition,
"FZRN"))
110 return RESOURCE_ID_ICON_WEATHER_NOW_SLEET;
113 if (!strcmp(condition,
"FZRN_NIGHT"))
115 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SLEET;
118 if (!strcmp(condition,
"SNOW"))
120 return RESOURCE_ID_ICON_WEATHER_NOW_SNOW;
123 if (!strcmp(condition,
"SNOW_NIGHT"))
125 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SNOW;
128 if (!strcmp(condition,
"SHWR"))
130 return RESOURCE_ID_ICON_WEATHER_NOW_SHOWERS;
133 if (!strcmp(condition,
"SHWR_NIGHT"))
135 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SHOWERS;
138 if (!strcmp(condition,
"SNSH"))
140 return RESOURCE_ID_ICON_WEATHER_NOW_SNOW_WIND;
143 if (!strcmp(condition,
"SNSH_NIGHT"))
145 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_SNOW_WIND;
148 if (!strcmp(condition,
"STRM"))
150 return RESOURCE_ID_ICON_WEATHER_NOW_THUNDERSTORM;
153 if (!strcmp(condition,
"STRM_NIGHT"))
155 return RESOURCE_ID_ICON_WEATHER_NOW_NIGHT_THUNDERSTORM;
158 return RESOURCE_ID_ICON_WEATHER_NOW_NA;
static uint32_t wx_resource_for_table(const char *condition)
Finds the icon resource for a condition token.
Definition icons_table.g.h:31