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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 KiB

After

Width:  |  Height:  |  Size: 145 KiB

View File

@ -22,13 +22,13 @@
<ImageView
android:id="@+id/tutorial_image_view"
android:layout_width="320dp"
android:layout_height="200dp"
android:layout_height="wrap_content"
android:layout_below="@+id/tutorial_text_view"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp"
android:padding="2dp"
android:background="#000000"
android:scaleType="fitXY"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:src="@drawable/backgrounds_menu_grass"/>
</RelativeLayout>

View File

@ -107,7 +107,7 @@
<string name="tutorial_place_ramp_air_2">Now try again!</string>
<string name="tutorial_leveled_up_to_toolshop">Congratulations! You have leveled up!\nNow go to the toolshop</string>
<string name="tutorial_switch_tools_two_neccessary">For this level you will need two tools equipped</string>
<string name="tutorial_switch_tools_switch">To switch between the tools click here</string>
<string name="tutorial_switch_tools_switch">To select a tool just click on it</string>
<string name="tutorial_toolshop_welcome">Welcome to the toolshop!\nHere you can buy and upgrade all tools and you can customize your toolbar.</string>
<string name="tutorial_toolshop_toolbar">Right! That is your toolbar.</string>
<string name="tutorial_toolshop_all_tools">Here you can see all the tools you will be able to buy and use.</string>