|
|
|
@ -69,22 +69,20 @@ static UiContainer * UiContainerInitGameUiContainer(Game *game){
|
|
|
|
Vector2 position = (Vector2){20, 300};
|
|
|
|
Vector2 position = (Vector2){20, 300};
|
|
|
|
int showDescription = 1;
|
|
|
|
int showDescription = 1;
|
|
|
|
int hasBackground = 1;
|
|
|
|
int hasBackground = 1;
|
|
|
|
int groupOne = 0;
|
|
|
|
|
|
|
|
int groupTwo = 1;
|
|
|
|
|
|
|
|
int fontSize = 16;
|
|
|
|
int fontSize = 16;
|
|
|
|
int unselectAfterExecute = 1;
|
|
|
|
int unselectAfterExecute = 1;
|
|
|
|
|
|
|
|
|
|
|
|
// creating the ui elements
|
|
|
|
// creating the ui elements
|
|
|
|
Selectable *selectable1 = SelectableInit(texture1, backgroundTextures, hasBackground , &position, "Building",
|
|
|
|
Selectable *selectable1 = SelectableInit(texture1, backgroundTextures, hasBackground , &position, "Building",
|
|
|
|
showDescription, 9/*String len*/, fontSize, SELECTABLE_ID_SPAWN_BUILDING,
|
|
|
|
showDescription, 9/*String len*/, fontSize, SELECTABLE_ID_SPAWN_BUILDING,
|
|
|
|
groupOne, unselectAfterExecute);
|
|
|
|
1/*Group*/, unselectAfterExecute);
|
|
|
|
position.y += 100;
|
|
|
|
position.y += 100;
|
|
|
|
Selectable *selectable2 = SelectableInit(texture2, backgroundTextures, hasBackground,&position, "Worker",
|
|
|
|
Selectable *selectable2 = SelectableInit(texture2, backgroundTextures, hasBackground,&position, "Worker",
|
|
|
|
showDescription, 7/*String len*/, fontSize, SELECTABLE_ID_SPAWN_WORKER, groupOne,
|
|
|
|
showDescription, 7/*String len*/, fontSize, SELECTABLE_ID_SPAWN_WORKER, 1/*Group*/,
|
|
|
|
unselectAfterExecute);
|
|
|
|
unselectAfterExecute);
|
|
|
|
position.y += 100;
|
|
|
|
position.y += 100;
|
|
|
|
Selectable *selectable3 = SelectableInit(texture3, backgroundTextures, hasBackground,&position, "Lumberjack",
|
|
|
|
Selectable *selectable3 = SelectableInit(texture3, backgroundTextures, hasBackground,&position, "Lumberjack",
|
|
|
|
showDescription, 11/*String len*/, fontSize, SELECTABLE_ID_SPAWN_LUMBERJACK, groupOne,
|
|
|
|
showDescription, 11/*String len*/, fontSize, SELECTABLE_ID_SPAWN_LUMBERJACK, 1/*Group*/,
|
|
|
|
unselectAfterExecute);
|
|
|
|
unselectAfterExecute);
|
|
|
|
|
|
|
|
|
|
|
|
// adding the ui elements
|
|
|
|
// adding the ui elements
|
|
|
|
|