@@ -0,0 +1,2160 @@
+package org.gamefolk.roomfullofcats;%0A%0Aimport com.arcadeoftheabsurd.absurdengine.Sprite;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Canvas;%0Aimport android.graphics.Color;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.LinearLayout;%0A%0Apublic class CatsMenu extends LinearLayout%0A%7B%0A%09private Button startButton;%0A%09private Button tutorialButton;%0A%09%0A%09static class SettingsView extends LinearLayout%0A%09%7B%0A%09%09private Button musicButton;%0A%09%09private Button soundButton;%0A%09%09%0A%09%09public SettingsView(Context context) %7B%0A%09%09%09super(context);%0A%09%09%09setOrientation(HORIZONTAL);%0A%09%09%09%0A%09%09%09musicButton = new Button(context);%0A%09%09%09musicButton.setText(%22Music off%22);%0A%09%09%09%0A%09%09%09soundButton = new Button(context);%0A%09%09%09soundButton.setText(%22Sound off%22);%0A%09%09%09%0A%09%09%09addView(musicButton);%0A%09%09%09addView(soundButton);%0A%09%09%7D%0A%09%7D%0A%09%0A%09private class TitleView extends View%0A%09%7B%0A%09%09private Sprite title;%0A%09%09%0A%09%09public TitleView(Context context) %7B%0A%09%09%09super(context);%0A%09%09%09setBackgroundColor(Color.BLACK);%0A%09%09%7D%0A%09%09%0A%09%09@Override%0A%09%09protected void onSizeChanged(int newWidth, int newHeight, int oldWidth, int oldHeight) %7B%0A%09%09%09title = Sprite.fromResource(getResources(), R.drawable.catslogo, -1, newHeight);%0A%09%09%09title.setLocation((newWidth - title.getWidth()) / 2, 0);%0A%09%09%09invalidate();%0A%09%09%7D%0A%09%09%0A%09%09@Override%0A%09%09protected void onDraw(Canvas canvas) %7B%0A%09%09%09if (title != null) %7B%0A%09%09%09%09title.draw(canvas);%0A%09%09%09%7D%0A%09%09%09super.onDraw(canvas);%0A%09%09%7D%0A%09%7D%0A%09%0A%09@SuppressWarnings(%22deprecation%22)%0A%09public CatsMenu(Context context, OnClickListener startClick, OnClickListener tutorialClick) %7B%0A%09%09super(context);%0A%09%09setOrientation(VERTICAL);%0A%09%09%0A%09%09startButton = new Button(context);%0A%09%09startButton.setText(%22Start%22);%0A%09%09startButton.setOnClickListener(startClick);%0A%09%09%0A%09%09tutorialButton = new Button(context);%0A%09%09tutorialButton.setText(%22Tutorial%22);%0A%09%09tutorialButton.setOnClickListener(tutorialClick);%0A%09%09%0A%09%09addView(new TitleView(context), new LayoutParams(LayoutParams.FILL_PARENT, 0, .40f));%0A%09%09addView(startButton, new LayoutParams(LayoutParams.FILL_PARENT, 0, .20f));%0A%09%09addView(tutorialButton, new LayoutParams(LayoutParams.FILL_PARENT, 0, .20f));%0A%09%09addView(new SettingsView(context), new LayoutParams(LayoutParams.FILL_PARENT, 0, .20f));%0A%09%7D%0A%7D%0A

add CatsMenu