Changement de l'icône du sablier
Début de gestion du mode multi-fichiers
This commit is contained in:
parent
f7bc589c37
commit
37aafa57a7
@ -41,7 +41,7 @@
|
||||
#define PROJECTIMAGEPATH "Vue/Ressources/GINPA_alpha.png"
|
||||
#define WINDOWICONPATH "Vue/Ressources/GINPA_icone.png"
|
||||
#define IMAGELOADINGPATH "Vue/Ressources/GINPA_loading.jpg"
|
||||
#define IMAGEHOURGLASSPATH "Vue/Ressources/GINPA_hourglass.png"
|
||||
#define IMAGEHOURGLASSPATH "Vue/Ressources/Icones/hourglass.png"
|
||||
|
||||
#define MAPFILE "Donnees/map.png"
|
||||
/* __________ */
|
||||
|
@ -15,7 +15,7 @@ typedef struct AgglomeratGlobal AgglomeratGlobal;
|
||||
|
||||
typedef enum {NONE, AGGLOMERAT, ROUTE} TypePt;
|
||||
|
||||
typedef enum {NO_MODE, MODE_GLOBAL, MODE_PBP_AUTOMATIC, MODE_PBP_MANUAL, MODE_PREVIEW, MODE_PREVIEW_SUGG} Mode;
|
||||
typedef enum {NO_MODE, MODE_GLOBAL, MODE_PBP_AUTOMATIC, MODE_PBP_MANUAL, MODE_PREVIEW, MODE_PREVIEW_SUGG, MODE_MULTI_FILES} Mode;
|
||||
|
||||
typedef enum {NO_ACTION, ACTION_QUIT, ACTION_ZOOM_NEXT, ACTION_ZOOM_PREV, ACTION_ZOOM_ZONE, ACTION_CHANGE_MAP_TYPE, ACTION_ZOOM_IN, ACTION_ZOOM_OUT, ACTION_ZOOMABLE, ACTION_UNZOOMABLE, ACTION_CENTERPOSITION, ACTION_CHANGE_VISUALISATION, ACTION_REFRESH, ACTION_REPEAT, ACTION_TOGGLEAGGLO} Action;
|
||||
|
||||
|
Binary file not shown.
Before ![]() (image error) Size: 113 KiB |
BIN
Vue/Ressources/Icones/hourglass.png
Normal file
BIN
Vue/Ressources/Icones/hourglass.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 5.4 KiB |
@ -75,6 +75,7 @@ void handleMenu(sfRenderWindow *const window)
|
||||
Bouton *boutonPBPA = ajouterBoutonAccueil(NO_TOOL, "Vue/Ressources/Icones/video-player.png", &(sfVector2f){WIDTH / 1.2, HEIGHT / 5.8});
|
||||
Bouton *boutonPBPM = ajouterBoutonAccueil(NO_TOOL, "Vue/Ressources/Icones/placeholder.png", &(sfVector2f){WIDTH / 1.2, HEIGHT / 2.5});
|
||||
Bouton *boutonHOME = ajouterBoutonAccueil(NO_TOOL, "Vue/Ressources/Icones/home.png", &(sfVector2f){WIDTH / 10.0, HEIGHT / 1.2});
|
||||
Bouton *boutonGLMF = ajouterBoutonAccueil(NO_TOOL, "Vue/Ressources/Icones/folder.png", &(sfVector2f){WIDTH / 1.2, HEIGHT / 1.2});
|
||||
/* ----------------------------------------------------------------------------------------- */
|
||||
|
||||
sfSprite *renderSprite = NULL;
|
||||
@ -93,6 +94,7 @@ void handleMenu(sfRenderWindow *const window)
|
||||
|
||||
sfRenderTexture_drawSprite(renderTexture, boutonPBP->spriteButton, NULL);
|
||||
sfRenderTexture_drawSprite(renderTexture, boutonGLO->spriteButton, NULL);
|
||||
sfRenderTexture_drawSprite(renderTexture, boutonGLMF->spriteButton, NULL);
|
||||
|
||||
sfRenderTexture_display(renderTexture);
|
||||
|
||||
@ -144,6 +146,11 @@ void handleMenu(sfRenderWindow *const window)
|
||||
mode = MODE_PBP_MANUAL;
|
||||
}
|
||||
|
||||
else if(mouseIsInRect(((sfVector2f){event.mouseButton.x, event.mouseButton.y}), boutonGLMF->zone))
|
||||
{
|
||||
// Gérer la logique ici du nouveau mode.
|
||||
}
|
||||
|
||||
else if(sfKeyboard_isKeyPressed(sfKeyBack) || mouseIsInRect(((sfVector2f){event.mouseButton.x, event.mouseButton.y}), boutonHOME->zone))
|
||||
{
|
||||
break;
|
||||
@ -164,6 +171,7 @@ void handleMenu(sfRenderWindow *const window)
|
||||
|
||||
detruireBouton(boutonPBP);
|
||||
detruireBouton(boutonGLO);
|
||||
detruireBouton(boutonGLMF);
|
||||
detruireBouton(boutonPBPA);
|
||||
detruireBouton(boutonPBPM);
|
||||
detruireBouton(boutonHOME);
|
||||
|
Reference in New Issue
Block a user