Load width and height for widgets.
This commit is contained in:
parent
6e93955589
commit
3e23d83f3a
|
@ -471,6 +471,8 @@ struct Widget {
|
|||
int type;
|
||||
int x;
|
||||
int y;
|
||||
int w;
|
||||
int h;
|
||||
int visible;
|
||||
int enabled;
|
||||
int numOptions;
|
||||
|
|
|
@ -216,6 +216,8 @@ static void loadWidgetGroup(char *filename)
|
|||
STRNCPY(w->label, cJSON_GetObjectItem(node, "label")->valuestring, MAX_NAME_LENGTH);
|
||||
w->x = cJSON_GetObjectItem(node, "x")->valueint;
|
||||
w->y = cJSON_GetObjectItem(node, "y")->valueint;
|
||||
w->w = cJSON_GetObjectItem(node, "w")->valueint;
|
||||
w->h = cJSON_GetObjectItem(node, "h")->valueint;
|
||||
w->type = lookup(cJSON_GetObjectItem(node, "type")->valuestring);
|
||||
|
||||
switch (w->type)
|
||||
|
|
Loading…
Reference in New Issue