Commit d2af1deb authored by Cybermiam's avatar Cybermiam
Browse files

ajout des spacetexts et changement des tailles des polices d'écriture

parent e7f56fce
......@@ -191,7 +191,7 @@ public class JemComponents {
MockButton startButton = new MockButton(formEditor);
startButton.changeProperty("Name","StartButton");
startButton.changeProperty("Width","200");
startButton.changeProperty("Width","250");
startButton.changeProperty("Height","50");
startButton.changeProperty("FontSize", "20.0");
startButton.changeProperty("Text","Démarrer");
......@@ -199,9 +199,16 @@ public class JemComponents {
startButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
mainMenuContainer.addComponent(startButton);
MockLabel spaceLabel2 = new MockLabel(formEditor);
spaceLabel2.changeProperty("Text","SPACETEXT");
spaceLabel2.changeProperty("Name","spaceText");
spaceLabel2.changeProperty("FontSize","5.0");
spaceLabel2.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel2);
MockButton optionsButton = new MockButton(formEditor);
optionsButton.changeProperty("Name","OptionsButton");
optionsButton.changeProperty("Width","200");
optionsButton.changeProperty("Width","250");
optionsButton.changeProperty("Height","50");
optionsButton.changeProperty("FontSize", "20.0");
optionsButton.changeProperty("Text","Options");
......@@ -209,9 +216,16 @@ public class JemComponents {
optionsButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
mainMenuContainer.addComponent(optionsButton);
MockLabel spaceLabel3 = new MockLabel(formEditor);
spaceLabel3.changeProperty("Text","SPACETEXT");
spaceLabel3.changeProperty("Name","spaceText");
spaceLabel3.changeProperty("FontSize","5.0");
spaceLabel3.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel3);
MockButton quitButton = new MockButton(formEditor);
quitButton.changeProperty("Name","QuitButton");
quitButton.changeProperty("Width","200");
quitButton.changeProperty("Width","250");
quitButton.changeProperty("Height","50");
quitButton.changeProperty("FontSize", "20.0");
quitButton.changeProperty("Text","Quitter");
......@@ -251,6 +265,13 @@ public class JemComponents {
logoOptions.changeProperty("Name", "LogoOptions");
optionsContainer.addComponent(logoOptions);
MockLabel spaceLabel = new MockLabel(formEditor);
spaceLabel.changeProperty("Text","SPACETEXT");
spaceLabel.changeProperty("Name","spaceText");
spaceLabel.changeProperty("FontSize","10.0");
spaceLabel.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel);
labelMusicOption.changeProperty("FontSize", "20.0");
labelMusicOption.changeProperty("Text", "Musique");
labelMusicOption.changeProperty("Name","LabelMusicOption");
......@@ -263,6 +284,13 @@ public class JemComponents {
optionsContainer.addComponent(musicOptionsContainer);
MockLabel spaceLabel2 = new MockLabel(formEditor);
spaceLabel2.changeProperty("Text","SPACETEXT");
spaceLabel2.changeProperty("Name","spaceText");
spaceLabel2.changeProperty("FontSize","5.0");
spaceLabel2.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel2);
labelScoreOption.changeProperty("FontSize", "20.0");
labelScoreOption.changeProperty("Text", "Scores");
labelScoreOption.changeProperty("Name","LabelScoreOption");
......@@ -275,6 +303,13 @@ public class JemComponents {
optionsContainer.addComponent(scoreOptionsContainer);
MockLabel spaceLabel3= new MockLabel(formEditor);
spaceLabel3.changeProperty("Text","SPACETEXT");
spaceLabel3.changeProperty("Name","spaceText");
spaceLabel3.changeProperty("FontSize","10.0");
spaceLabel3.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel3);
MockButton quitOptionsButton = new MockButton(formEditor);
quitOptionsButton.changeProperty("Text", "Retour");
quitOptionsButton.changeProperty("Width", "250");
......@@ -306,14 +341,35 @@ public class JemComponents {
labelEndTitle.changeProperty("TextColor","&HFFFFFFFF");
endScreenContainer.addComponent(labelEndTitle);
MockLabel spaceLabel = new MockLabel(formEditor);
spaceLabel.changeProperty("Text","SPACETEXT");
spaceLabel.changeProperty("Name","spaceText");
spaceLabel.changeProperty("FontSize","20.0");
spaceLabel.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel);
labelEndMessage.changeProperty("Name", "LabelEndMessage");
labelEndMessage.changeProperty("Text", "Message au joueur");
labelEndMessage.changeProperty("FontSize", "20.0");
labelEndMessage.changeProperty("TextColor","&HFFFFFFFF");
endScreenContainer.addComponent(labelEndMessage);
MockLabel spaceLabel2 = new MockLabel(formEditor);
spaceLabel2.changeProperty("Text","SPACETEXT");
spaceLabel2.changeProperty("Name","spaceText");
spaceLabel2.changeProperty("FontSize","10.0");
spaceLabel2.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel2);
endScreenContainer.addComponent(scoreContainer);
MockLabel spaceLabel3 = new MockLabel(formEditor);
spaceLabel3.changeProperty("Text","SPACETEXT");
spaceLabel3.changeProperty("Name","spaceText");
spaceLabel3.changeProperty("FontSize","10.0");
spaceLabel3.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel3);
MockImage logoJem = new MockImage(formEditor);
logoJem.changeProperty("Width", "150");
logoJem.changeProperty("Height", "150");
......@@ -326,10 +382,17 @@ public class JemComponents {
labelGeneration.changeProperty("TextColor","&HFFFFFFFF");
endScreenContainer.addComponent(labelGeneration);
MockLabel spaceLabel4 = new MockLabel(formEditor);
spaceLabel4.changeProperty("Text","SPACETEXT");
spaceLabel4.changeProperty("Name","spaceText");
spaceLabel4.changeProperty("FontSize","20.0");
spaceLabel4.changeProperty("TextColor","&H00FFFFFF");
mainMenuContainer.addComponent(spaceLabel4);
MockButton buttonQuitGame = new MockButton(formEditor);
buttonQuitGame.changeProperty("Name", "ButtonQuitGame");
buttonQuitGame.changeProperty("FontSize", "20.0");
buttonQuitGame.changeProperty("Width", "200");
buttonQuitGame.changeProperty("Width", "250");
buttonQuitGame.changeProperty("Height", "50");
buttonQuitGame.changeProperty("Text", "Quitter");
buttonQuitGame.changeProperty("ButtonShape", "1");
......@@ -358,16 +421,20 @@ public class JemComponents {
scoreLabel.changeProperty("Name","ScoreLabel");
scoreLabel.changeProperty("FontBold","True");
scoreLabel.changeProperty("TextColor","&HFFFFFFFF");
scoreLabel.changeProperty("FontSize", "15.0");
scoreContainer.addComponent(scoreLabel);
scorePoints.changeProperty("Text","--");
scorePoints.changeProperty("Name","PointsLabel");
scorePoints.changeProperty("TextColor","&HFFFFFFFF");
scorePoints.changeProperty("FontSize", "15.0");
scorePoints.changeProperty("FontBold","True");
scoreContainer.addComponent(scorePoints);
scoreLabel2.changeProperty("Text"," points.");
scoreLabel2.changeProperty("Name","LabelPoints");
scoreLabel2.changeProperty("TextColor","&HFFFFFFFF");
scoreLabel2.changeProperty("FontSize", "15.0");
scoreContainer.addComponent(scoreLabel2);
}
......@@ -589,16 +656,19 @@ private void editTopClueContainer(YaFormEditor formEditor, MockForm mockForm){
menuButton.changeProperty("Name","ClueMenuButton");
menuButton.changeProperty("ButtonShape", "1");
menuButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
menuButton.changeProperty("FontSize", "16.0");
optionsButton.changeProperty("Text", "Options");
optionsButton.changeProperty("Name","OptionsButton");
optionsButton.changeProperty("ButtonShape", "1");
optionsButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
optionsButton.changeProperty("FontSize", "16.0");
nextButton.changeProperty("Text","Suivant");
nextButton.changeProperty("Name","ClueNextButton");
nextButton.changeProperty("ButtonShape", "1");
nextButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
nextButton.changeProperty("FontSize", "16.0");
bottomClueContainer.addComponent(menuButton);
bottomClueContainer.addComponent(optionsButton);
......@@ -640,16 +710,19 @@ private void editTopClueContainer(YaFormEditor formEditor, MockForm mockForm){
optionsButton.changeProperty("Name","LearningContentOptionsButton");
optionsButton.changeProperty("ButtonShape", "1");
optionsButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
optionsButton.changeProperty("FontSize", "16.0");
previousButton.changeProperty("Text","Retour");
previousButton.changeProperty("Name","LearningContentPreviousButton");
previousButton.changeProperty("ButtonShape", "1");
previousButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
previousButton.changeProperty("FontSize", "16.0");
nextButton.changeProperty("Text","Suivant");
nextButton.changeProperty("Name","LearningContentNextButton");
nextButton.changeProperty("ButtonShape", "1");
nextButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
nextButton.changeProperty("FontSize", "16.0");
bottomLearningContentContainer.addComponent(previousButton);
bottomLearningContentContainer.addComponent(optionsButton);
......@@ -680,16 +753,19 @@ private void editTopClueContainer(YaFormEditor formEditor, MockForm mockForm){
optionsButton.changeProperty("Name","TaskOptionsButton");
optionsButton.changeProperty("ButtonShape", "1");
optionsButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
optionsButton.changeProperty("FontSize", "16.0");
previousButton.changeProperty("Text","Retour");
previousButton.changeProperty("Name","TaskPreviousButton");
previousButton.changeProperty("ButtonShape", "1");
previousButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
previousButton.changeProperty("FontSize", "16.0");
nextButton.changeProperty("Text","Valider");
nextButton.changeProperty("Name","TaskValidationButton");
nextButton.changeProperty("ButtonShape", "1");
nextButton.changeProperty("BackgroundColor", "&HFFFFFFFF");
nextButton.changeProperty("FontSize", "16.0");
bottomTaskContainer.addComponent(previousButton);
bottomTaskContainer.addComponent(optionsButton);
......@@ -712,8 +788,7 @@ private void editTopClueContainer(YaFormEditor formEditor, MockForm mockForm){
MockLabel mockClueLabel = new MockLabel(formEditor);
mockClueLabel.changeProperty("Text","Indice");
mockClueLabel.changeProperty("Name","clueLabel");
mockClueLabel.changeProperty("FontItalic","True");
mockClueLabel.changeProperty("FontSize","18.0");
mockClueLabel.changeProperty("FontSize","25.0");
mockClueLabel.changeProperty("FontBold","True");
mockClueLabel.changeProperty("TextColor","&HFFFFFFFF");
topClueContainer.addComponent(mockClueLabel);
......@@ -737,8 +812,7 @@ private void editTopClueContainer(YaFormEditor formEditor, MockForm mockForm){
private void addLearningContentInitialLabels(YaFormEditor formEditor){
MockLabel mockLearningContentLabel = new MockLabel(formEditor);
mockLearningContentLabel.changeProperty("Text", MESSAGES.resources());
mockLearningContentLabel.changeProperty("FontItalic","True");
mockLearningContentLabel.changeProperty("FontSize","18.0");
mockLearningContentLabel.changeProperty("FontSize","25.0");
mockLearningContentLabel.changeProperty("FontBold","True");
mockLearningContentLabel.changeProperty("TextColor","&HFFFFFFFF");
topLearningContentContainer.addComponent(mockLearningContentLabel);
......@@ -764,8 +838,7 @@ private void editTopClueContainer(YaFormEditor formEditor, MockForm mockForm){
private void addTaskInitialLabels(YaFormEditor formEditor){
MockLabel mockLearningContentLabel = new MockLabel(formEditor);
mockLearningContentLabel.changeProperty("Text", MESSAGES.quiz());
mockLearningContentLabel.changeProperty("FontItalic","True");
mockLearningContentLabel.changeProperty("FontSize","18.0");
mockLearningContentLabel.changeProperty("FontSize","25.0");
mockLearningContentLabel.changeProperty("FontBold","True");
mockLearningContentLabel.changeProperty("TextColor","&HFFFFFFFF");
topTaskContainer.addComponent(mockLearningContentLabel);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment