Finished implementing Tutorials

This commit is contained in:
=
2018-01-01 17:28:09 +01:00
parent 4282c0fdfd
commit e5ce11150c
9 changed files with 36 additions and 35 deletions

View File

@ -42,7 +42,7 @@ public class TutorialManager {
toolShopTutorial = new ToolShopTutorial(gameActivity);
switchToolsTutorial = new Tutorial(gameActivity,
new BreakPoint(0, R.string.tutorial_switch_tools_two_neccessary, -1),
new BreakPoint(0, R.string.tutorial_switch_tools_switch, -1));
new BreakPoint(0, R.string.tutorial_switch_tools_switch, R.drawable.tutorial_switch_tools));
}
public void update(Level level, float playerProgress) {

View File

@ -64,7 +64,7 @@ public class TutorialView implements View.OnClickListener {
textView.setText(textId);
}
if (imageId == -1)
imageView.setVisibility(View.INVISIBLE);
imageView.setVisibility(View.GONE);
else {
imageView.setVisibility(View.VISIBLE);
imageView.setImageResource(imageId);

View File

@ -47,12 +47,12 @@ public class TopBar implements View.OnClickListener {
Typeface typeface = gameActivity.getTypeface();
levelDisplay = (TextView) layout.findViewById(R.id.topbar_leveldisplay);
// levelDisplay.setTypeface(typeface);
levelDisplay.setTypeface(typeface);
levelProgress = (ProgressBar) layout.findViewById(R.id.topbar_levelprogress);
starCount = (TextView) layout.findViewById(R.id.topbar_starcount);
// starCount.setTypeface(typeface);
starCount.setTypeface(typeface);
energyCount = (TextView) layout.findViewById(R.id.topbar_energycount);
// energyCount.setTypeface(typeface);
energyCount.setTypeface(typeface);
settingsButton = (Button) layout.findViewById(R.id.topbar_settings);
settingsButton.setOnClickListener(this);
toolshopButton = (Button) layout.findViewById(R.id.topbar_toolshop);