Changed overall style

Now one can change directly between Screens from TopBar
Fixed bugs
This commit is contained in:
= 2018-01-21 17:40:25 +01:00
parent 2c19e3dcb5
commit 5302ac0d00
19 changed files with 181 additions and 154 deletions

View File

@ -538,20 +538,20 @@ public final class R {
public static final int src_atop = 0x7f08008e; public static final int src_atop = 0x7f08008e;
public static final int src_in = 0x7f08008f; public static final int src_in = 0x7f08008f;
public static final int src_over = 0x7f080090; public static final int src_over = 0x7f080090;
public static final int status_bar_latest_event_content = 0x7f080097; public static final int status_bar_latest_event_content = 0x7f080096;
public static final int submit_area = 0x7f080098; public static final int submit_area = 0x7f080097;
public static final int tabMode = 0x7f080099; public static final int tabMode = 0x7f080098;
public static final int text = 0x7f08009b; public static final int text = 0x7f08009a;
public static final int text2 = 0x7f08009c; public static final int text2 = 0x7f08009b;
public static final int textSpacerNoButtons = 0x7f08009d; public static final int textSpacerNoButtons = 0x7f08009c;
public static final int time = 0x7f08009e; public static final int time = 0x7f08009d;
public static final int title = 0x7f08009f; public static final int title = 0x7f08009e;
public static final int title_template = 0x7f0800a0; public static final int title_template = 0x7f08009f;
public static final int topPanel = 0x7f0800bd; public static final int topPanel = 0x7f0800bc;
public static final int up = 0x7f0800cf; public static final int up = 0x7f0800ce;
public static final int useLogo = 0x7f0800d0; public static final int useLogo = 0x7f0800cf;
public static final int withText = 0x7f0800d1; public static final int withText = 0x7f0800d0;
public static final int wrap_content = 0x7f0800da; public static final int wrap_content = 0x7f0800d9;
} }
public static final class integer { public static final class integer {
public static final int abc_config_activityDefaultDur = 0x7f090000; public static final int abc_config_activityDefaultDur = 0x7f090000;

File diff suppressed because one or more lines are too long

View File

@ -325,6 +325,7 @@ int color toolslotDisabled 0x7f050056
int color toolslotDisabledSelected 0x7f050057 int color toolslotDisabledSelected 0x7f050057
int color toolslotEnabled 0x7f050058 int color toolslotEnabled 0x7f050058
int color toolslotEnabledSelected 0x7f050059 int color toolslotEnabledSelected 0x7f050059
int color topbar 0x7f05005a
int dimen abc_action_bar_content_inset_material 0x7f060000 int dimen abc_action_bar_content_inset_material 0x7f060000
int dimen abc_action_bar_default_height_material 0x7f060001 int dimen abc_action_bar_default_height_material 0x7f060001
int dimen abc_action_bar_default_padding_end_material 0x7f060002 int dimen abc_action_bar_default_padding_end_material 0x7f060002
@ -716,77 +717,76 @@ int id src_over 0x7f080090
int id startscreen_finish_world_1 0x7f080091 int id startscreen_finish_world_1 0x7f080091
int id startscreen_gain_90_ep 0x7f080092 int id startscreen_gain_90_ep 0x7f080092
int id startscreen_play 0x7f080093 int id startscreen_play 0x7f080093
int id startscreen_settings 0x7f080094 int id startscreen_to_gl_test_screen 0x7f080094
int id startscreen_to_gl_test_screen 0x7f080095 int id startscreen_unlock_levels 0x7f080095
int id startscreen_unlock_levels 0x7f080096 int id status_bar_latest_event_content 0x7f080096
int id status_bar_latest_event_content 0x7f080097 int id submit_area 0x7f080097
int id submit_area 0x7f080098 int id tabMode 0x7f080098
int id tabMode 0x7f080099 int id task_completed_unlock_list 0x7f080099
int id task_completed_unlock_list 0x7f08009a int id text 0x7f08009a
int id text 0x7f08009b int id text2 0x7f08009b
int id text2 0x7f08009c int id textSpacerNoButtons 0x7f08009c
int id textSpacerNoButtons 0x7f08009d int id time 0x7f08009d
int id time 0x7f08009e int id title 0x7f08009e
int id title 0x7f08009f int id title_template 0x7f08009f
int id title_template 0x7f0800a0 int id tool_button_animation_layer 0x7f0800a0
int id tool_button_animation_layer 0x7f0800a1 int id tool_button_background_layer 0x7f0800a1
int id tool_button_background_layer 0x7f0800a2 int id tool_button_progress_bar 0x7f0800a2
int id tool_button_progress_bar 0x7f0800a3 int id tool_inspector_description 0x7f0800a3
int id tool_inspector_description 0x7f0800a4 int id tool_inspector_imageview 0x7f0800a4
int id tool_inspector_imageview 0x7f0800a5 int id tool_inspector_level_view 0x7f0800a5
int id tool_inspector_level_view 0x7f0800a6 int id tool_inspector_pricebutton 0x7f0800a6
int id tool_inspector_pricebutton 0x7f0800a7 int id tool_inspector_title 0x7f0800a7
int id tool_inspector_title 0x7f0800a8 int id tool_upgrade_imageview 0x7f0800a8
int id tool_upgrade_imageview 0x7f0800a9 int id tool_upgrade_pricebutton 0x7f0800a9
int id tool_upgrade_pricebutton 0x7f0800aa int id tool_upgrade_title 0x7f0800aa
int id tool_upgrade_title 0x7f0800ab int id tool_upgrade_value_new 0x7f0800ab
int id tool_upgrade_value_new 0x7f0800ac int id tool_upgrade_value_old 0x7f0800ac
int id tool_upgrade_value_old 0x7f0800ad int id toolbutton_1 0x7f0800ad
int id toolbutton_1 0x7f0800ae int id toolbutton_2 0x7f0800ae
int id toolbutton_2 0x7f0800af int id toolbutton_3 0x7f0800af
int id toolbutton_3 0x7f0800b0 int id toolbutton_4 0x7f0800b0
int id toolbutton_4 0x7f0800b1 int id toolofferslot_slot 0x7f0800b1
int id toolofferslot_slot 0x7f0800b2 int id toolofferslot_title 0x7f0800b2
int id toolofferslot_title 0x7f0800b3 int id toolshop_slot1 0x7f0800b3
int id toolshop_slot1 0x7f0800b4 int id toolshop_slot2 0x7f0800b4
int id toolshop_slot2 0x7f0800b5 int id toolshop_slot3 0x7f0800b5
int id toolshop_slot3 0x7f0800b6 int id toolshop_slot4 0x7f0800b6
int id toolshop_slot4 0x7f0800b7 int id toolshop_tool_offer_bottom_row 0x7f0800b7
int id toolshop_tool_offer_bottom_row 0x7f0800b8 int id toolshop_tool_offer_top_row 0x7f0800b8
int id toolshop_tool_offer_top_row 0x7f0800b9 int id toolshop_toolinspector 0x7f0800b9
int id toolshop_toolinspector 0x7f0800ba int id toolshop_topbar 0x7f0800ba
int id toolshop_topbar 0x7f0800bb int id toolslot_image 0x7f0800bb
int id toolslot_image 0x7f0800bc int id topPanel 0x7f0800bc
int id topPanel 0x7f0800bd int id topbar_energycount 0x7f0800bd
int id topbar_energycount 0x7f0800be int id topbar_energycount_decrease 0x7f0800be
int id topbar_energycount_decrease 0x7f0800bf int id topbar_energyview 0x7f0800bf
int id topbar_energyview 0x7f0800c0 int id topbar_layout 0x7f0800c0
int id topbar_layout 0x7f0800c1 int id topbar_leveldisplay 0x7f0800c1
int id topbar_leveldisplay 0x7f0800c2 int id topbar_levellayout 0x7f0800c2
int id topbar_levellayout 0x7f0800c3 int id topbar_levelprogress 0x7f0800c3
int id topbar_levelprogress 0x7f0800c4 int id topbar_settings 0x7f0800c4
int id topbar_settings 0x7f0800c5 int id topbar_shapeshop 0x7f0800c5
int id topbar_shapeshop 0x7f0800c6 int id topbar_starcount 0x7f0800c6
int id topbar_starcount 0x7f0800c7 int id topbar_starcount_decrease 0x7f0800c7
int id topbar_starcount_decrease 0x7f0800c8 int id topbar_starview 0x7f0800c8
int id topbar_starview 0x7f0800c9 int id topbar_toolshop 0x7f0800c9
int id topbar_toolshop 0x7f0800ca int id tutorial_image_view 0x7f0800ca
int id tutorial_image_view 0x7f0800cb int id tutorial_text_view 0x7f0800cb
int id tutorial_text_view 0x7f0800cc int id unlockmessage_message 0x7f0800cc
int id unlockmessage_message 0x7f0800cd int id unlockmessage_toolimage 0x7f0800cd
int id unlockmessage_toolimage 0x7f0800ce int id up 0x7f0800ce
int id up 0x7f0800cf int id useLogo 0x7f0800cf
int id useLogo 0x7f0800d0 int id withText 0x7f0800d0
int id withText 0x7f0800d1 int id worldbutton_energycount 0x7f0800d1
int id worldbutton_energycount 0x7f0800d2 int id worldbutton_levelcount 0x7f0800d2
int id worldbutton_levelcount 0x7f0800d3 int id worldbutton_lock 0x7f0800d3
int id worldbutton_lock 0x7f0800d4 int id worldbutton_preview 0x7f0800d4
int id worldbutton_preview 0x7f0800d5 int id worldbutton_starcount 0x7f0800d5
int id worldbutton_starcount 0x7f0800d6 int id worldbutton_title 0x7f0800d6
int id worldbutton_title 0x7f0800d7 int id worlds_layout 0x7f0800d7
int id worlds_layout 0x7f0800d8 int id worlds_topbar 0x7f0800d8
int id worlds_topbar 0x7f0800d9 int id wrap_content 0x7f0800d9
int id wrap_content 0x7f0800da
int integer abc_config_activityDefaultDur 0x7f090000 int integer abc_config_activityDefaultDur 0x7f090000
int integer abc_config_activityShortDur 0x7f090001 int integer abc_config_activityShortDur 0x7f090001
int integer abc_max_action_buttons 0x7f090002 int integer abc_max_action_buttons 0x7f090002

View File

@ -138,6 +138,21 @@ public class GameActivity extends Activity implements ExceptionHandler, User.LvU
super.finish(); super.finish();
} }
public boolean isShortMenuInGameActive() {
return gameScreen.getGameViewManager().isShortMenuVisible();
}
public void flipToScreen(final Screen.ScreenType screen, final Screen.ScreenType caller) {
if (screen != Screen.ScreenType.NONE && flipper.getCurrentScreen().getType() != screen) {
runOnUiThread(new Runnable() {
@Override
public void run() {
flipper.showScreen(screen, caller);
}
});
}
}
public void flipToScreen(final Screen.ScreenType screen) { public void flipToScreen(final Screen.ScreenType screen) {
if (screen != Screen.ScreenType.NONE && flipper.getCurrentScreen().getType() != screen) { if (screen != Screen.ScreenType.NONE && flipper.getCurrentScreen().getType() != screen) {
runOnUiThread(new Runnable() { runOnUiThread(new Runnable() {

View File

@ -13,6 +13,7 @@ import de.frajul.endlessroll.main.MyGlSurfaceView;
import de.frajul.endlessroll.main.game.Game; import de.frajul.endlessroll.main.game.Game;
import de.frajul.endlessroll.main.game.GameState; import de.frajul.endlessroll.main.game.GameState;
import de.frajul.endlessroll.main.tutorial.BreakPoint; import de.frajul.endlessroll.main.tutorial.BreakPoint;
import de.frajul.endlessroll.views.ViewManager;
/** /**
* Created by Julian on 08.02.2016. * Created by Julian on 08.02.2016.
@ -51,6 +52,10 @@ public class GameScreen extends GLScreen<RelativeLayout> {
return game.getGameState() == GameState.LEVEL_FINISHED; return game.getGameState() == GameState.LEVEL_FINISHED;
} }
public ViewManager getGameViewManager(){
return game.getViewManager();
}
@Override @Override
public void onBackKeyDown() { public void onBackKeyDown() {
game.tryToPause(); game.tryToPause();

View File

@ -67,6 +67,7 @@ public class PlayerShapeShopScreen extends Screen<RelativeLayout> implements Pla
createViews(); createViews();
topBar.update(); topBar.update();
topBar.setCustomCallerForScreenSwitch(super.caller);
} }
@Override @Override

View File

@ -22,7 +22,6 @@ public class SettingsScreen extends Screen<LinearLayout> implements View.OnClick
private ToggleButton musicToggle; private ToggleButton musicToggle;
private ToggleButton soundToggle; private ToggleButton soundToggle;
private Button resetButton; private Button resetButton;
private boolean resetPressed = false;
private ConfirmDialog resetConfirmDialog; private ConfirmDialog resetConfirmDialog;
@ -44,10 +43,12 @@ public class SettingsScreen extends Screen<LinearLayout> implements View.OnClick
gameActivity.getSoundManager().menuMusic.start(); gameActivity.getSoundManager().menuMusic.start();
topBar.update(); topBar.update();
topBar.setCustomCallerForScreenSwitch(super.caller);
topBar.setShopsEnabled(!gameActivity.isShortMenuInGameActive());
musicToggle.setChecked(!gameActivity.getSoundManager().isMusicMuted()); musicToggle.setChecked(!gameActivity.getSoundManager().isMusicMuted());
soundToggle.setChecked(!gameActivity.getSoundManager().isSoundsMuted()); soundToggle.setChecked(!gameActivity.getSoundManager().isSoundsMuted());
resetButton.setEnabled(super.caller != ScreenType.GAME); resetButton.setEnabled(super.caller != ScreenType.GAME);
resetPressed = false;
} }
@Override @Override
@ -56,10 +57,7 @@ public class SettingsScreen extends Screen<LinearLayout> implements View.OnClick
.writeSoundsMuted(gameActivity.getSoundManager().isSoundsMuted()); .writeSoundsMuted(gameActivity.getSoundManager().isSoundsMuted());
gameActivity.getDataStorageHandler() gameActivity.getDataStorageHandler()
.writeMusicMuted(gameActivity.getSoundManager().isMusicMuted()); .writeMusicMuted(gameActivity.getSoundManager().isMusicMuted());
//ResetButton is disabled if caller is GAME, because shortMenu or GoalMessage would still be visible on next level start
if (resetPressed && (super.caller == ScreenType.LEVELS || super.caller == ScreenType.GAME)) {
super.caller = ScreenType.WORLDS;
}
flipToCaller(); flipToCaller();
} }
@ -79,7 +77,11 @@ public class SettingsScreen extends Screen<LinearLayout> implements View.OnClick
if (callId == CALL_ID_CONFIRM_RESET) { if (callId == CALL_ID_CONFIRM_RESET) {
gameActivity.resetData(); gameActivity.resetData();
prepareToBeShown(); prepareToBeShown();
resetPressed = true; //ResetButton is disabled if caller is GAME, because shortMenu or GoalMessage would still be visible on next level start
if (super.caller == ScreenType.LEVELS || super.caller == ScreenType.GAME) {
super.caller = ScreenType.WORLDS;
topBar.setCustomCallerForScreenSwitch(super.caller);
}
} }
} }
} }

View File

@ -29,7 +29,6 @@ public class StartScreen extends GLScreen<RelativeLayout> implements View.OnClic
private Button gain90EP; private Button gain90EP;
private Button finishFirstWorld; private Button finishFirstWorld;
private Button toGlTestScreen; private Button toGlTestScreen;
private Button settings;
private ConfirmDialog confirmDialog; private ConfirmDialog confirmDialog;
@ -43,8 +42,6 @@ public class StartScreen extends GLScreen<RelativeLayout> implements View.OnClic
gain90EP = createButton(R.id.startscreen_gain_90_ep, typeface); gain90EP = createButton(R.id.startscreen_gain_90_ep, typeface);
finishFirstWorld = createButton(R.id.startscreen_finish_world_1, typeface); finishFirstWorld = createButton(R.id.startscreen_finish_world_1, typeface);
toGlTestScreen = createButton(R.id.startscreen_to_gl_test_screen, typeface); toGlTestScreen = createButton(R.id.startscreen_to_gl_test_screen, typeface);
settings = (Button) layout.findViewById(R.id.startscreen_settings);
settings.setOnClickListener(this);
confirmDialog = new ConfirmDialog(gameActivity, this); confirmDialog = new ConfirmDialog(gameActivity, this);
@ -63,9 +60,9 @@ public class StartScreen extends GLScreen<RelativeLayout> implements View.OnClic
public void prepareToBeShown() { public void prepareToBeShown() {
gameActivity.getSoundManager().menuMusic.start(); gameActivity.getSoundManager().menuMusic.start();
glView.setCurrentRendering(rendering);
((StartScene) rendering.getScene()).randomizeWorld(); ((StartScene) rendering.getScene()).randomizeWorld();
((StartScene) rendering.getScene()).loadTexturesForCurrentWorld(); ((StartScene) rendering.getScene()).loadTexturesForCurrentWorld();
glView.setCurrentRendering(rendering);
} }
@Override @Override
@ -78,9 +75,6 @@ public class StartScreen extends GLScreen<RelativeLayout> implements View.OnClic
if (v.equals(play)) { if (v.equals(play)) {
gameActivity.flipToScreen(ScreenType.WORLDS); gameActivity.flipToScreen(ScreenType.WORLDS);
glView.setCurrentRendering(null); glView.setCurrentRendering(null);
} else if (v.equals(settings)) {
gameActivity.flipToScreen(ScreenType.SETTINGS);
glView.setCurrentRendering(null);
} else if (v.equals(gain90EP)) { } else if (v.equals(gain90EP)) {
gameActivity.getUser().gainEp(90, true); gameActivity.getUser().gainEp(90, true);
} else if (v.equals(unlockLevels)) { } else if (v.equals(unlockLevels)) {

View File

@ -90,6 +90,7 @@ public class ToolShopScreen extends Screen<RelativeLayout> implements View.OnCli
gameActivity.getSoundManager().menuMusic.start(); gameActivity.getSoundManager().menuMusic.start();
topBar.update(); topBar.update();
topBar.setCustomCallerForScreenSwitch(super.caller);
slotSettings.unlockSlotsIfLevelReached(gameActivity.getUser().getLevelUpBounties()); slotSettings.unlockSlotsIfLevelReached(gameActivity.getUser().getLevelUpBounties());
onToolOfferSlotSelected(toolOfferSlots.get(0)); onToolOfferSlotSelected(toolOfferSlots.get(0));

View File

@ -21,6 +21,7 @@ public class TopBar implements View.OnClickListener {
private GameActivity gameActivity; private GameActivity gameActivity;
private View layout; private View layout;
private Screen.ScreenType parent; private Screen.ScreenType parent;
private Screen.ScreenType customCallerForScreenSwitch = Screen.ScreenType.NONE;
private Animation starDecreaseAnimation; private Animation starDecreaseAnimation;
private Animation energyDecreaseAnimation; private Animation energyDecreaseAnimation;
@ -59,11 +60,12 @@ public class TopBar implements View.OnClickListener {
toolshopButton.setOnClickListener(this); toolshopButton.setOnClickListener(this);
shapeshopButton = (Button) layout.findViewById(R.id.topbar_shapeshop); shapeshopButton = (Button) layout.findViewById(R.id.topbar_shapeshop);
shapeshopButton.setOnClickListener(this); shapeshopButton.setOnClickListener(this);
if (parent == Screen.ScreenType.TOOL_SHOP || parent == Screen.ScreenType.SHAPE_SHOP || parent == Screen.ScreenType.SETTINGS) { if(parent == Screen.ScreenType.SETTINGS)
toolshopButton.setEnabled(false);
shapeshopButton.setEnabled(false);
settingsButton.setEnabled(false); settingsButton.setEnabled(false);
} if(parent == Screen.ScreenType.TOOL_SHOP)
toolshopButton.setEnabled(false);
if(parent == Screen.ScreenType.SHAPE_SHOP)
shapeshopButton.setEnabled(false);
if (parent == Screen.ScreenType.GAME) { if (parent == Screen.ScreenType.GAME) {
toolshopButton.setEnabled(false); toolshopButton.setEnabled(false);
shapeshopButton.setEnabled(false); shapeshopButton.setEnabled(false);
@ -110,17 +112,27 @@ public class TopBar implements View.OnClickListener {
energyCountDecrease.startAnimation(energyDecreaseAnimation); energyCountDecrease.startAnimation(energyDecreaseAnimation);
} }
public void setCustomCallerForScreenSwitch(Screen.ScreenType customCallerForScreenSwitch) {
this.customCallerForScreenSwitch = customCallerForScreenSwitch;
}
@Override @Override
public void onClick(View v) { public void onClick(View v) {
if (v.equals(toolshopButton)) { if (v.equals(toolshopButton)) {
gameActivity.flipToScreen(Screen.ScreenType.TOOL_SHOP); flipToScreen(Screen.ScreenType.TOOL_SHOP);
} else if (v.equals(shapeshopButton)) { } else if (v.equals(shapeshopButton)) {
gameActivity.flipToScreen(Screen.ScreenType.SHAPE_SHOP); flipToScreen(Screen.ScreenType.SHAPE_SHOP);
} else if (v.equals(settingsButton)) { } else if (v.equals(settingsButton)) {
gameActivity.flipToScreen(Screen.ScreenType.SETTINGS); flipToScreen(Screen.ScreenType.SETTINGS);
} }
} }
private void flipToScreen(Screen.ScreenType screenType) {
if (customCallerForScreenSwitch != Screen.ScreenType.NONE)
gameActivity.flipToScreen(screenType, customCallerForScreenSwitch);
gameActivity.flipToScreen(screenType);
}
public Screen.ScreenType getParent() { public Screen.ScreenType getParent() {
return parent; return parent;
} }

View File

@ -150,4 +150,8 @@ public class ViewManager implements View.OnClickListener {
return ((int) (value * 20)) / 10f; return ((int) (value * 20)) / 10f;
} }
public boolean isShortMenuVisible(){
return shortMenu.isVisible();
}
} }

View File

@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" <shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"> android:shape="rectangle">
<corners android:radius="47dp" /> <corners android:radius="47dp" />
<solid android:color="#FF97A0F0" /> <solid android:color="#a997f0" />
<padding <padding
android:bottom="10dp" android:bottom="10dp"
android:left="15dp" android:left="15dp"

View File

@ -5,8 +5,8 @@
<gradient <gradient
android:centerX="0%" android:centerX="0%"
android:centerY="0%" android:centerY="0%"
android:endColor="#ff71a5" android:endColor="#fd9400"
android:startColor="#d7fd00" android:startColor="#f0fd00"
android:angle="315" android:angle="315"
android:type="linear" /> android:type="linear" />
<padding <padding
@ -16,5 +16,5 @@
android:top="10dp" /> android:top="10dp" />
<stroke <stroke
android:width="4dp" android:width="4dp"
android:color="#74ff71d0" /> android:color="#74ff8800" />
</shape> </shape>

View File

@ -2,29 +2,26 @@
<selector xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" tools:context=".main.GameActivity"> <selector xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android" tools:context=".main.GameActivity">
<item android:state_pressed="true" android:state_enabled="true"> <item android:state_pressed="true" android:state_enabled="true">
<shape> <shape>
<corners android:radius="20dp" /> <gradient android:type="linear" android:angle="90" android:startColor="#ca5f47" android:endColor="#f15841" />
<corners android:radius="7dp"/>
<padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp"/> <padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp"/>
<stroke android:width="1dp" android:color="#992f2f"/> <stroke android:width="1dp" android:color="#992f2f"/>
<solid android:color="#ef4444" />
</shape> </shape>
</item> </item>
<item android:state_pressed="false" android:state_enabled="true"> <item android:state_pressed="false" android:state_enabled="true">
<shape> <shape>
<corners android:radius="20dp" /> <gradient android:type="linear" android:angle="90" android:startColor="#d63e1c" android:endColor="#f53619" />
<corners android:radius="7dp"/>
<padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp"/> <padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp"/>
<stroke android:width="1dp" android:color="#992f2f"/> <stroke android:width="1dp" android:color="#992f2f"/>
<gradient android:angle="270" android:endColor="#992f2f" android:startColor="#ef4444" />
</shape> </shape>
</item> </item>
<item android:state_enabled="false"> <item android:state_enabled="false">
<shape> <shape>
<corners android:radius="20dp" /> <gradient android:type="linear" android:angle="90" android:startColor="#ac5441" android:endColor="#ae5243" />
<corners android:radius="7dp"/>
<padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp"/> <padding android:bottom="10dp" android:left="10dp" android:right="10dp" android:top="10dp"/>
<stroke android:width="1dp" android:color="#992f2f"/> <stroke android:width="1dp" android:color="#992f2f"/>
<gradient android:angle="270" android:endColor="#a15d5d" android:startColor="#b73d3d" />
</shape> </shape>
</item> </item>
</selector> </selector>

View File

@ -2,14 +2,13 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#00ef78"> android:background="#41a6d1">
<TextView <TextView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_centerInParent="true" android:layout_centerInParent="true"
android:text="@string/pre_start_screen_loading" android:text="@string/pre_start_screen_loading"
android:textAllCaps="false"
android:textSize="30sp" android:textSize="30sp"
android:textStyle="bold"/> android:textStyle="bold"/>
</RelativeLayout> </RelativeLayout>

View File

@ -3,22 +3,11 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<Button
android:id="@+id/startscreen_settings"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:background="@drawable/xml_selector_settingsbutton"
android:layout_marginBottom="15dp"/>
<Button <Button
android:id="@+id/startscreen_play" android:id="@+id/startscreen_play"
android:layout_width="110dp" android:layout_width="110dp"
android:layout_height="110dp" android:layout_height="110dp"
android:layout_alignParentTop="true" android:layout_centerInParent="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="38dp"
android:background="@drawable/playershapes_ball" android:background="@drawable/playershapes_ball"
android:gravity="center" android:gravity="center"
android:text="@string/start_screen_play" android:text="@string/start_screen_play"
@ -31,8 +20,11 @@
style="@style/GameButton" style="@style/GameButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentRight="true" android:layout_alignParentStart="true"
android:layout_below="@+id/startscreen_play" android:layout_below="@+id/startscreen_gain_90_ep"
android:layout_marginBottom="2dp"
android:layout_marginStart="10dp"
android:layout_marginTop="2dp"
android:text="@string/start_screen_unlock_all_levels" android:text="@string/start_screen_unlock_all_levels"
android:visibility="visible"/> android:visibility="visible"/>
@ -42,8 +34,10 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentLeft="true" android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" android:layout_below="@+id/startscreen_to_gl_test_screen"
android:layout_below="@+id/startscreen_play" android:layout_marginBottom="2dp"
android:layout_marginStart="10dp"
android:layout_marginTop="2dp"
android:text="@string/start_screen_gain_90_ep" android:text="@string/start_screen_gain_90_ep"
android:visibility="visible"/> android:visibility="visible"/>
@ -64,8 +58,10 @@
style="@style/GameButton" style="@style/GameButton"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentBottom="true" android:layout_alignParentLeft="true"
android:layout_alignParentRight="true" android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
android:layout_margin="10dp"
android:text="@string/start_screen_to_gl_test_screen" android:text="@string/start_screen_to_gl_test_screen"
android:visibility="visible"/> android:visibility="visible"/>

View File

@ -3,7 +3,7 @@
android:id="@+id/topbar_layout" android:id="@+id/topbar_layout"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:background="#a600f9"> android:background="@color/topbar">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/topbar_levellayout" android:id="@+id/topbar_levellayout"
@ -72,9 +72,9 @@
android:id="@+id/topbar_settings" android:id="@+id/topbar_settings"
android:layout_width="35dp" android:layout_width="35dp"
android:layout_height="35dp" android:layout_height="35dp"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_alignParentEnd="true"
android:background="@drawable/xml_selector_settingsbutton"/> android:background="@drawable/xml_selector_settingsbutton"/>
<Button <Button
@ -83,8 +83,8 @@
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/topbar_settings"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
android:layout_toLeftOf="@+id/topbar_settings"
android:background="@drawable/xml_selector_toolshopbutton"/> android:background="@drawable/xml_selector_toolshopbutton"/>
<Button <Button
@ -92,9 +92,9 @@
style="@style/GameButton" style="@style/GameButton"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="40dp" android:layout_height="40dp"
android:layout_toLeftOf="@+id/topbar_toolshop"
android:layout_centerVertical="true" android:layout_centerVertical="true"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
android:layout_toLeftOf="@+id/topbar_toolshop"
android:background="@drawable/xml_selector_shapeshopbutton"/> android:background="@drawable/xml_selector_shapeshopbutton"/>
<TextView <TextView

View File

@ -20,4 +20,5 @@
<color name="background_levelup_message">#9d000000</color> <color name="background_levelup_message">#9d000000</color>
<color name="background_short_menu">#5b000000</color> <color name="background_short_menu">#5b000000</color>
<color name="background_tutorial">#3d000000</color> <color name="background_tutorial">#3d000000</color>
<color name="topbar">#cf664c</color>
</resources> </resources>

View File

@ -29,8 +29,8 @@
<string name="short_menu_restart">Restart</string> <string name="short_menu_restart">Restart</string>
<string name="short_menu_exit">Exit</string> <string name="short_menu_exit">Exit</string>
<string name="start_screen_play">Play</string> <string name="start_screen_play">Play</string>
<string name="start_screen_unlock_all_levels" translatable="false">Unlock all levels (Yes! It\'s magic!)</string> <string name="start_screen_unlock_all_levels" translatable="false">Unlock all levels</string>
<string name="start_screen_gain_90_ep" translatable="false">Gain 90 ep (Nope! No magic at all!)</string> <string name="start_screen_gain_90_ep" translatable="false">Gain 90 ep</string>
<string name="start_screen_finish_world_1">Finish the first world!</string> <string name="start_screen_finish_world_1">Finish the first world!</string>
<string name="start_screen_to_gl_test_screen" translatable="false">Test GL Stuff!!!</string> <string name="start_screen_to_gl_test_screen" translatable="false">Test GL Stuff!!!</string>
<string name="tool_upgrade_title_placeholder">Time (Lv12)</string> <string name="tool_upgrade_title_placeholder">Time (Lv12)</string>