You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(25) |
Jul
(288) |
Aug
(119) |
Sep
(31) |
Oct
(59) |
Nov
(458) |
Dec
(359) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(268) |
Feb
(26) |
Mar
(36) |
Apr
(48) |
May
(119) |
Jun
(37) |
Jul
(173) |
Aug
(429) |
Sep
(137) |
Oct
(156) |
Nov
(59) |
Dec
(45) |
| 2011 |
Jan
(398) |
Feb
(257) |
Mar
(49) |
Apr
(5) |
May
(34) |
Jun
(11) |
Jul
(38) |
Aug
(12) |
Sep
(1) |
Oct
(49) |
Nov
(5) |
Dec
(10) |
| 2012 |
Jan
(21) |
Feb
(32) |
Mar
(20) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(173) |
Aug
|
Sep
(25) |
Oct
(6) |
Nov
(44) |
Dec
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:59
|
Module: performous
Branch: master
Commit: 9c1cd8e4779101e2617d053ddb75f8240e9cd124
Author: Lasse Karkkainen <tro...@tr...>
Date: Sat Dec 5 19:20:24 2009 +0200
Use text_lod for selected menu item too
---
game/theme.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/theme.cc b/game/theme.cc
index a11ed03..69feb9b 100755
--- a/game/theme.cc
+++ b/game/theme.cc
@@ -43,7 +43,7 @@ ThemeConfiguration::ThemeConfiguration():
ThemeIntro::ThemeIntro():
Theme(getThemePath("intro_bg.svg")),
back_h(getThemePath("menu_back_highlight.svg")),
- option_selected(getThemePath("menu_option_selected.svg")),
+ option_selected(getThemePath("menu_option_selected.svg"), config["graphic/text_lod"].f()),
comment(getThemePath("menu_comment.svg"), config["graphic/text_lod"].f()),
comment_bg(getThemePath("menu_comment_bg.svg"))
{
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:57
|
Module: performous Branch: master Commit: 83dd5d279fda6ad5e17982005ed8e3b24c2ae60c Author: Miguel Sánchez de León Peque <peq...@ho...> Date: Sat Dec 5 03:06:12 2009 +0100 Icon updated. --- themes/default/icon.bmp | Bin 3126 -> 3126 bytes themes/default/icon.png | Bin 2630 -> 6108 bytes themes/default/icon.svg | 195 ++++++++++++++++++++++++++++++++++++----------- 3 files changed, 149 insertions(+), 46 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:56
|
Module: performous Branch: master Commit: 00268586b0074661e1dcf9945341ebe93298d678 Author: Miguel Sánchez de León Peque <peq...@ho...> Date: Sat Dec 5 02:42:47 2009 +0100 Fixed excessive CPU consumption in main menu. --- game/screen_intro.cc | 4 +- game/theme.cc | 5 +- game/theme.hh | 2 +- themes/default/intro_configure.svg | 395 ++++++------------------------- themes/default/menu_option_selected.svg | 6 +- 5 files changed, 82 insertions(+), 330 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:55
|
Module: performous
Branch: master
Commit: 620b590650f95b9100249769e91334cf11204caf
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Thu Dec 3 21:06:45 2009 +0100
Box for selected option centered
---
game/screen_intro.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index 66a0fc6..ecf48c9 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -49,7 +49,7 @@ void ScreenIntro::manageEvent(SDL_Event event) {
void ScreenIntro::draw_menu_options() {
for (unsigned i = 0; i < m_menuOptions.size(); i++) {
if (i == selected) {
- theme->back_h.dimensions.left(-0.4).center(-0.1 + i*0.08);
+ theme->back_h.dimensions.left(-0.4).center(-0.097 + i*0.08);
theme->back_h.draw();
theme->option_selected.dimensions.left(-0.35).center(-0.1 + i*0.08);
theme->option_selected.draw(m_menuOptions[i].name);
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:52
|
Module: performous
Branch: master
Commit: 0b61b1b7711f42243ea98981f5626d162443c1f6
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Thu Dec 3 21:01:02 2009 +0100
Comments font changed.
---
game/screen_intro.cc | 2 +-
themes/default/menu_comment.svg | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index d316c43..66a0fc6 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -5,7 +5,7 @@
#include "record.hh"
ScreenIntro::ScreenIntro(std::string const& name, Audio& audio, Capture& capture): Screen(name), m_audio(audio), m_capture(capture), selected() {
- m_menuOptions.push_back(new MenuOption("Perform", "Songs", "intro_sing.svg", "Search songs database and start performing!"));
+ m_menuOptions.push_back(new MenuOption("Perform", "Songs", "intro_sing.svg", "Start performing!"));
m_menuOptions.push_back(new MenuOption("Practice", "Practice", "intro_practice.svg", "Check your skills or test the microphones"));
m_menuOptions.push_back(new MenuOption("Configure", "Configuration", "intro_configure.svg", "Configure game options"));
m_menuOptions.push_back(new MenuOption("Quit", "", "intro_quit.svg", "Leave the game"));
diff --git a/themes/default/menu_comment.svg b/themes/default/menu_comment.svg
index 836039d..a42342b 100755
--- a/themes/default/menu_comment.svg
+++ b/themes/default/menu_comment.svg
@@ -62,15 +62,15 @@
showgrid="false"
inkscape:window-maximized="1" />
<text
- x="1.8177605"
- y="17.063263"
- style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;display:inline;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS"
+ x="1.2611415"
+ y="16.780357"
+ style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;display:inline;font-family:Bitstream Charter;-inkscape-font-specification:Bitstream Charter"
id="text10203"
xml:space="preserve"
sodipodi:linespacing="125%"
transform="scale(1.0082228,0.99184427)"><tspan
- x="1.8177605"
- y="17.063263"
+ x="1.2611415"
+ y="16.780357"
id="tspan10205"
- style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS">Comment</tspan></text>
+ style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;font-family:Bitstream Charter;-inkscape-font-specification:Bitstream Charter">Comment</tspan></text>
</svg>
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:50
|
Module: performous
Branch: master
Commit: 33f224635c1e6dcbf2e485c6a39c144f19824f47
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Thu Dec 3 20:38:03 2009 +0100
Fixed Logo position on IntroScreen
---
themes/default/intro_bg.svg | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/themes/default/intro_bg.svg b/themes/default/intro_bg.svg
index c808fe5..ae5c64f 100644
--- a/themes/default/intro_bg.svg
+++ b/themes/default/intro_bg.svg
@@ -593,7 +593,7 @@
id="g3952"
transform="translate(-2.6135359,3.2274215)" />
<g
- transform="translate(38.862478,-17.929078)"
+ transform="translate(38.862478,2.0709221)"
id="g3873">
<path
id="text3236"
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:49
|
Module: performous
Branch: master
Commit: 1bf71b0052a62a75e7e158a343066427fea08c74
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Thu Dec 3 19:50:45 2009 +0100
Resizeable menu. Comments will also be displayed when the aspect ratio is changed.
---
game/screen_intro.cc | 4 ++--
themes/default/intro_configure.svg | 12 ++++++------
themes/default/menu_comment.svg | 12 ++++++------
themes/default/menu_comment_bg.svg | 35 +++++++++++++++++++++--------------
4 files changed, 35 insertions(+), 28 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index aa3edfe..d316c43 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -63,9 +63,9 @@ void ScreenIntro::draw_menu_options() {
void ScreenIntro::draw() {
theme->bg.draw();
m_menuOptions[selected].image.draw();
- theme->comment_bg.dimensions.center().center(0.336);
+ theme->comment_bg.dimensions.center().screenBottom(-0.01);
theme->comment_bg.draw();
- theme->comment.dimensions.left(-0.45).center(0.336);
+ theme->comment.dimensions.left(-0.45).screenBottom(-0.028);
theme->comment.draw(m_menuOptions[selected].comment);
draw_menu_options();
if (m_dialog) m_dialog->draw();
diff --git a/themes/default/intro_configure.svg b/themes/default/intro_configure.svg
index 3c863c7..62569ca 100644
--- a/themes/default/intro_configure.svg
+++ b/themes/default/intro_configure.svg
@@ -44,9 +44,9 @@
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
- inkscape:zoom="0.43503001"
- inkscape:cx="707.79902"
- inkscape:cy="400.43025"
+ inkscape:zoom="1.74012"
+ inkscape:cx="542.38104"
+ inkscape:cy="467.16116"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:current-layer="g2911-6"
@@ -316,11 +316,11 @@
sodipodi:type="inkscape:persp3d" />
<filter
inkscape:collect="always"
- id="filter3942">
+ id="filter3651">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="11.89846"
- id="feGaussianBlur3944" />
+ id="feGaussianBlur3653" />
</filter>
</defs>
<text
@@ -352,7 +352,7 @@
d="m -662.10043,-996.96443 c -26.42907,0.31062 -53.33604,14.71361 -64.00362,39.52245 -2.14098,2.63628 -2.12279,8.02891 -4.87138,9.28929 -109.93748,-0.0693 -219.875,-0.21667 -329.81247,-0.12424 -5.652,-18.87058 -17.5616,-39.21228 -38.3224,-43.5179 -28.099,-6.22446 -60.5886,-5.14908 -83.6463,13.9554 -14.2658,11.22274 -26.637,26.24038 -31.5938,44 -1.0239,8.44178 7.285,16.76924 15.8096,14.1108 20.8127,-1.60526 40.8516,-12.32826 61.9716,-9.07955 6.6538,2.97582 8.3757,11.85778 10.6563,18.28125 1.9507,8.20214 2.1408,19.02414 -4.8125,24.90625 -10.8912,5.83792 -23.8262,4.67796 -35.625,7.3125 -13.9259,1.79716 -27.984,4.81763 -40.1562,12 18.6914,33.54702 61.7596,47.58043 98.1606,39.14497 24.3587,-4.1628 43.9036,-23.73812 51.4956,-46.61372 110.23955,0.0599 220.47912,0.14396 330.71872,0.125 5.60381,19.42915 18.34673,40.23886 39.75,43.875 27.93378,5.99231 60.02369,4.31154 82.6875,-14.75 13.9785,-11.28851 26.41263,-26.03632 30.96875,-43.71875 1.0279,-8.42535 -7.17734,-16.6018 -15.625,-14.0625 -21.06347,1.75414 -41.30627,12.6513 -62.65625,9.03125 -5.11927,-1.97895 -6.1151,-8.58102 -8.53125,-12.96875 -3.1942,-9.20476 -4.62078,-21.41372 2.1875,-29.3125 9.43049,-6.52177 21.5301,-4.84768 32.2789,-7.51736 15.29568,-1.83888 31.12608,-4.57971 44.56485,-12.57639 -15.81941,-28.68423 -49.6161,-43.0859 -81.59375,-41.3125 z"
id="rect2874-8-7-5" />
<path
- style="fill:#ffffff;fill-opacity:1;display:inline;filter:url(#filter3942)"
+ style="fill:#ffffff;fill-opacity:1;display:inline;filter:url(#filter3651)"
d="m -661.88168,-997.08943 c -26.47854,-0.0438 -53.85737,14.22035 -64.71875,39.0625 -2.2217,2.82322 -2.26188,8.37645 -5.125,9.74924 -109.94789,-0.10763 -219.89581,-0.14691 -329.84377,-0.12424 -5.5038,-18.94926 -17.72,-39.50328 -38.5425,-43.54241 -27.492,-6.13598 -58.9908,-5.04917 -81.9575,12.85491 -14.775,11.07638 -27.2007,26.34402 -32.75,44.125 -1.8337,8.20257 5.3365,16.59682 13.8126,15.46875 9.275,-0.51659 18.0457,-3.83721 27.2277,-5.11555 12.6301,-3.0352 25.9112,-7.55634 38.8973,-3.50945 8.4529,11.40982 13.6565,28.87256 4.9374,41.3125 -10.0009,7.03993 -22.9617,5.23054 -34.3353,8.00434 -14.8962,1.85722 -29.9734,4.75354 -43.0709,12.30816 18.4898,33.05688 60.431,47.11661 96.5,39.65625 24.9401,-3.73652 45.5334,-23.41907 53.2812,-47.0625 110.25001,0.0599 220.5,0.14397 330.75002,0.125 5.59018,18.861 17.48225,39.44812 38.375,43.46875 28.85975,6.78689 62.1557,4.74796 85.375,-15.34375 13.4955,-11.21486 25.37132,-25.90713 29.75,-43.09375 0.91437,-8.73107 -7.83268,-15.93854 -16.34375,-13.84375 -15.50451,2.48183 -30.75207,7.0661 -46.125,9.6875 -6.0258,0.5723 -13.08596,1.2209 -18.21875,-1.8125 -8.13386,-11.32563 -12.82423,-28.26366 -4.59375,-40.5 9.90168,-7.25217 22.93195,-5.38236 34.27267,-8.16199 14.91391,-1.80662 30.04328,-4.68887 43.10233,-12.40051 -15.65471,-28.41088 -48.99752,-42.8563 -80.65625,-41.3125 z"
id="rect2874-8-7-9" />
<path
diff --git a/themes/default/menu_comment.svg b/themes/default/menu_comment.svg
index 23e3f70..836039d 100755
--- a/themes/default/menu_comment.svg
+++ b/themes/default/menu_comment.svg
@@ -12,8 +12,8 @@
version="1.0"
x="0"
y="0"
- width="106"
- height="23"
+ width="80"
+ height="20"
id="svg559"
sodipodi:version="0.32"
inkscape:version="0.47pre4 r22446"
@@ -63,14 +63,14 @@
inkscape:window-maximized="1" />
<text
x="1.8177605"
- y="20.087931"
- style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;display:inline;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS"
+ y="17.063263"
+ style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;display:inline;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS"
id="text10203"
xml:space="preserve"
sodipodi:linespacing="125%"
transform="scale(1.0082228,0.99184427)"><tspan
x="1.8177605"
- y="20.087931"
+ y="17.063263"
id="tspan10205"
- style="font-size:24px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS">Comment</tspan></text>
+ style="font-size:18px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;text-anchor:start;fill:#060000;fill-opacity:1;stroke:none;font-family:Comic Sans MS;-inkscape-font-specification:Comic Sans MS">Comment</tspan></text>
</svg>
diff --git a/themes/default/menu_comment_bg.svg b/themes/default/menu_comment_bg.svg
index 15f6303..e324e40 100644
--- a/themes/default/menu_comment_bg.svg
+++ b/themes/default/menu_comment_bg.svg
@@ -11,7 +11,7 @@
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="1000"
- height="51"
+ height="35"
id="svg2919"
version="1.1"
inkscape:version="0.47pre4 r22446"
@@ -58,7 +58,7 @@
x2="0"
y1="768"
x1="0"
- gradientTransform="matrix(1,0,0,0.98,-3.1907349e-7,298.72223)"
+ gradientTransform="matrix(1.0001729,0,0,0.66978968,-0.08644188,537.20848)"
gradientUnits="userSpaceOnUse"
id="linearGradient2917"
xlink:href="#linearGradient5448"
@@ -70,6 +70,13 @@
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
+ <inkscape:perspective
+ id="perspective2821"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
</defs>
<sodipodi:namedview
id="base"
@@ -79,8 +86,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.70710678"
- inkscape:cx="472.87473"
- inkscape:cy="116.23028"
+ inkscape:cx="403.07156"
+ inkscape:cy="55.181507"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
@@ -105,20 +112,20 @@
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1"
- transform="translate(0,-1001.3622)">
+ transform="translate(0,-1017.3622)">
<rect
- style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.00187743;stroke-opacity:1"
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.82833934;stroke-opacity:1"
id="rect3982-4"
- width="1003.7961"
- height="49.998123"
- x="-1.8940613"
- y="1001.8631" />
+ width="1003.9697"
+ height="34.171661"
+ x="-1.9808303"
+ y="1017.7764" />
<rect
style="fill:url(#linearGradient2917);fill-opacity:1;stroke:none"
id="rect3982"
- width="1000"
- height="49"
- x="0"
- y="1002.3622" />
+ width="1000.1728"
+ height="33.489483"
+ x="-0.086441576"
+ y="1018.1177" />
</g>
</svg>
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:47
|
Module: performous
Branch: master
Commit: 3430f76f3c78f33334d775724be7e10c3b283650
Author: Miguel Sánchez de León Peque <peq...@ho...>
Date: Thu Dec 3 19:31:01 2009 +0100
Little changes on new theme and code related to the menu.
---
game/screen_intro.cc | 6 +-
game/theme.cc | 5 +-
game/theme.hh | 10 ++-
themes/default/intro_bg.svg | 14 ----
themes/default/menu_comment_bg.svg | 124 +++++++++++++++++++++++++++++++
themes/default/menu_option_selected.svg | 6 +-
6 files changed, 141 insertions(+), 24 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index aa272ef..aa3edfe 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -51,8 +51,8 @@ void ScreenIntro::draw_menu_options() {
if (i == selected) {
theme->back_h.dimensions.left(-0.4).center(-0.1 + i*0.08);
theme->back_h.draw();
- theme->option.dimensions.left(-0.35).center(-0.1 + i*0.08);
- theme->option.draw(m_menuOptions[i].name);
+ theme->option_selected.dimensions.left(-0.35).center(-0.1 + i*0.08);
+ theme->option_selected.draw(m_menuOptions[i].name);
} else {
theme->option.dimensions.left(-0.35).center(-0.1 + i*0.08);
theme->option.draw(m_menuOptions[i].name);
@@ -63,6 +63,8 @@ void ScreenIntro::draw_menu_options() {
void ScreenIntro::draw() {
theme->bg.draw();
m_menuOptions[selected].image.draw();
+ theme->comment_bg.dimensions.center().center(0.336);
+ theme->comment_bg.draw();
theme->comment.dimensions.left(-0.45).center(0.336);
theme->comment.draw(m_menuOptions[selected].comment);
draw_menu_options();
diff --git a/game/theme.cc b/game/theme.cc
index 1df16ea..4feb1b1 100755
--- a/game/theme.cc
+++ b/game/theme.cc
@@ -44,8 +44,9 @@ ThemeIntro::ThemeIntro():
Theme(getThemePath("intro_bg.svg")),
back_h(getThemePath("menu_back_highlight.svg")),
option(getThemePath("menu_option.svg"), config["graphic/text_lod"].f()),
- comment(getThemePath("menu_comment.svg"), config["graphic/text_lod"].f())
+ option_selected(getThemePath("menu_option_selected.svg")),
+ comment(getThemePath("menu_comment.svg"), config["graphic/text_lod"].f()),
+ comment_bg(getThemePath("menu_comment_bg.svg"))
{
- option.setHighlight(getThemePath("menu_option_selected.svg"));
back_h.dimensions.fixedHeight(0.08f);
}
diff --git a/game/theme.hh b/game/theme.hh
index bef2aeb..7ee2ad8 100755
--- a/game/theme.hh
+++ b/game/theme.hh
@@ -62,10 +62,14 @@ struct ThemeConfiguration: Theme {
/// theme for intro screen
struct ThemeIntro: Theme {
ThemeIntro();
- /// back highlight
+ /// back highlight for selected option
Surface back_h;
- /// menu option
+ /// menu option text
SvgTxtTheme option;
- /// menu comment
+ /// menu selected option text
+ SvgTxtTheme option_selected;
+ /// menu comment text
SvgTxtTheme comment;
+ /// menu comment background
+ Surface comment_bg;
};
diff --git a/themes/default/intro_bg.svg b/themes/default/intro_bg.svg
index 7709edb..c808fe5 100644
--- a/themes/default/intro_bg.svg
+++ b/themes/default/intro_bg.svg
@@ -592,20 +592,6 @@
<g
id="g3952"
transform="translate(-2.6135359,3.2274215)" />
- <rect
- style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.00187743;stroke-opacity:1"
- id="rect3982-4"
- width="1003.7961"
- height="49.998123"
- x="-2.2971582"
- y="716.00092" />
- <rect
- style="fill:url(#linearGradient5460);fill-opacity:1;stroke:none"
- id="rect3982"
- width="1000"
- height="50"
- x="0"
- y="716" />
<g
transform="translate(38.862478,-17.929078)"
id="g3873">
diff --git a/themes/default/menu_comment_bg.svg b/themes/default/menu_comment_bg.svg
new file mode 100644
index 0000000..15f6303
--- /dev/null
+++ b/themes/default/menu_comment_bg.svg
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="1000"
+ height="51"
+ id="svg2919"
+ version="1.1"
+ inkscape:version="0.47pre4 r22446"
+ sodipodi:docname="menu_comment_bg.svg">
+ <defs
+ id="defs2921">
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 526.18109 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+ id="perspective2927" />
+ <inkscape:perspective
+ id="perspective2908"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient5448"
+ id="linearGradient5460"
+ gradientUnits="userSpaceOnUse"
+ x1="0"
+ y1="768"
+ x2="0"
+ y2="713.1153"
+ gradientTransform="translate(0,-2)" />
+ <linearGradient
+ id="linearGradient5448">
+ <stop
+ style="stop-color:#beb7c8;stop-opacity:1;"
+ offset="0"
+ id="stop5450" />
+ <stop
+ style="stop-color:#beb7c8;stop-opacity:0;"
+ offset="1"
+ id="stop5452" />
+ </linearGradient>
+ <linearGradient
+ y2="713.1153"
+ x2="0"
+ y1="768"
+ x1="0"
+ gradientTransform="matrix(1,0,0,0.98,-3.1907349e-7,298.72223)"
+ gradientUnits="userSpaceOnUse"
+ id="linearGradient2917"
+ xlink:href="#linearGradient5448"
+ inkscape:collect="always" />
+ <inkscape:perspective
+ id="perspective2956"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="0.70710678"
+ inkscape:cx="472.87473"
+ inkscape:cy="116.23028"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="false"
+ inkscape:window-width="1280"
+ inkscape:window-height="726"
+ inkscape:window-x="0"
+ inkscape:window-y="25"
+ inkscape:window-maximized="1" />
+ <metadata
+ id="metadata2924">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Capa 1"
+ inkscape:groupmode="layer"
+ id="layer1"
+ transform="translate(0,-1001.3622)">
+ <rect
+ style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.00187743;stroke-opacity:1"
+ id="rect3982-4"
+ width="1003.7961"
+ height="49.998123"
+ x="-1.8940613"
+ y="1001.8631" />
+ <rect
+ style="fill:url(#linearGradient2917);fill-opacity:1;stroke:none"
+ id="rect3982"
+ width="1000"
+ height="49"
+ x="0"
+ y="1002.3622" />
+ </g>
+</svg>
diff --git a/themes/default/menu_option_selected.svg b/themes/default/menu_option_selected.svg
index f3dc52a..2cbccc6 100755
--- a/themes/default/menu_option_selected.svg
+++ b/themes/default/menu_option_selected.svg
@@ -17,7 +17,7 @@
id="svg559"
sodipodi:version="0.32"
inkscape:version="0.47pre4 r22446"
- sodipodi:docname="menu_comment.svg"
+ sodipodi:docname="menu_option_selected.svg"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs2522">
@@ -37,7 +37,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
+ <dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@@ -54,7 +54,7 @@
pagecolor="#ffffff"
id="base"
inkscape:zoom="3.5638182"
- inkscape:cx="63.312761"
+ inkscape:cx="53.491625"
inkscape:cy="28.662714"
inkscape:window-x="0"
inkscape:window-y="25"
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:45
|
Module: performous Branch: master Commit: a2d1908aed9cafdd7e9ed5d5f315b8297be76ae5 Author: Miguel Sánchez de León Peque <peq...@ho...> Date: Thu Dec 3 17:53:26 2009 +0100 Fixed text display; Wanted gradients? Here they are! ;-). --- game/screen_intro.cc | 9 +- themes/default/configuration_bg.svg | 54 ++++- themes/default/intro_bg.svg | 466 +++++++++++-------------------- themes/default/menu_back_highlight.svg | 26 +- themes/default/menu_comment.svg | 156 ++--------- themes/default/menu_option.svg | 158 ++--------- themes/default/menu_option_selected.svg | 158 ++--------- themes/default/practice_bg.svg | 185 ++++++------- 8 files changed, 391 insertions(+), 821 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:44
|
Module: performous Branch: master Commit: 56642c54ac94f9d84daec6efaa8fd720828cf58e Author: Miguel Sánchez de León Peque <peq...@ho...> Date: Thu Dec 3 16:03:02 2009 +0100 New menu. Working on the theme. --- game/menu.cc | 6 +- game/menu.hh | 6 +- game/screen_intro.cc | 24 +- game/screen_intro.hh | 3 + game/theme.cc | 9 +- game/theme.hh | 8 +- themes/default/configuration_bg.svg | 6 +- themes/default/intro_bg.svg | 534 ++++++++++++++++++++++++++++++- themes/default/intro_configure.svg | 85 ++++-- themes/default/intro_practice.svg | 51 ++-- themes/default/intro_quit.svg | 81 ++++-- themes/default/intro_sing.svg | 36 ++- themes/default/intro_top.svg | 308 ------------------ themes/default/menu_back_highlight.svg | 272 ++++++++++++++++ themes/default/menu_comment.svg | 182 +++++++++++ themes/default/menu_option.svg | 182 +++++++++++ themes/default/menu_option_selected.svg | 182 +++++++++++ 17 files changed, 1563 insertions(+), 412 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:42
|
Module: performous
Branch: master
Commit: 44b7b85c331364dbbb4f7e5543ec05361a2b4c6b
Author: Lasse Karkkainen <tro...@tr...>
Date: Wed Dec 2 03:36:33 2009 +0200
Avoid hardcoded selection number for quit too
---
game/screen_intro.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index 2c5c6d5..a11cc9b 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -34,8 +34,8 @@ void ScreenIntro::manageEvent(SDL_Event event) {
else if (key == SDLK_DOWN) ++selected;
else if (key == SDLK_UP) --selected;
else if (key == SDLK_RETURN) {
- if (selected != 3) sm->activateScreen(m_menuOptions[selected].screen);
- else sm->finished();
+ std::string screen = m_menuOptions[selected].screen;
+ if (screen.empty()) sm->finished(); else sm->activateScreen(screen);
} else if (key == SDLK_SPACE || key == SDLK_PAUSE) m_audio.togglePause();
// Normalize selected to [0, size)
selected = (m_menuOptions.size() + selected) % m_menuOptions.size();
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:41
|
Module: performous
Branch: master
Commit: 21581d5011cc85b7000d7d47f5091b87a4ccb7d2
Author: Lasse Karkkainen <tro...@tr...>
Date: Wed Dec 2 03:34:17 2009 +0200
Use menuOptions size for selection wrapping
---
game/screen_intro.cc | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index 5fdadd0..2c5c6d5 100755
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -31,16 +31,14 @@ void ScreenIntro::manageEvent(SDL_Event event) {
if (m_dialog) { m_dialog.reset(); return; }
int key = event.key.keysym.sym;
if (key == SDLK_ESCAPE || key == SDLK_q) sm->finished();
- else if (key == SDLK_DOWN) {
- if (selected < 3) selected++;
- else selected = 0;
- } else if (key == SDLK_UP) {
- if (selected > 0) selected--;
- else selected = 3;
- } else if (key == SDLK_RETURN) {
+ else if (key == SDLK_DOWN) ++selected;
+ else if (key == SDLK_UP) --selected;
+ else if (key == SDLK_RETURN) {
if (selected != 3) sm->activateScreen(m_menuOptions[selected].screen);
else sm->finished();
} else if (key == SDLK_SPACE || key == SDLK_PAUSE) m_audio.togglePause();
+ // Normalize selected to [0, size)
+ selected = (m_menuOptions.size() + selected) % m_menuOptions.size();
} else if (event.type == SDL_JOYBUTTONDOWN) {
int button = event.jbutton.button;
if (button == 9) sm->activateScreen("Songs");
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:39
|
Module: performous
Branch: master
Commit: 4c630be35e72e75e98fd33e992f0662431e15739
Author: Miguel Sánchez de León Peque <msd...@gm...>
Date: Wed Dec 2 02:10:11 2009 +0100
OptionMenu struct created in menu.cc/hh; applied to Main Menu.
---
game/menu.cc | 9 +++++++
game/menu.hh | 16 +++++++++++++
game/screen_intro.cc | 37 ++++++++-----------------------
game/screen_intro.hh | 2 +
game/theme.cc | 4 ---
game/theme.hh | 8 -------
themes/default/configuration_value.svg | 17 +++++++-------
7 files changed, 46 insertions(+), 47 deletions(-)
diff --git a/game/menu.cc b/game/menu.cc
new file mode 100755
index 0000000..63eac83
--- /dev/null
+++ b/game/menu.cc
@@ -0,0 +1,9 @@
+#include "menu.hh"
+
+#include "fs.hh"
+#include "configuration.hh"
+
+MenuOption::MenuOption()
+{}
+MenuOption::MenuOption(const std::string scrn, const std::string img) : screen(scrn), image(getThemePath(img))
+{}
diff --git a/game/menu.hh b/game/menu.hh
new file mode 100755
index 0000000..a1ae00b
--- /dev/null
+++ b/game/menu.hh
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "opengl_text.hh"
+#include "surface.hh"
+#include <boost/noncopyable.hpp>
+#include <string>
+
+/// struct for menu options
+struct MenuOption {
+ MenuOption();
+ MenuOption(const std::string scrn, const std::string img);
+ /// screen to activate when option is pressed
+ std::string screen;
+ /// image to show when option is selected
+ Surface image;
+};
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
old mode 100644
new mode 100755
index 885912c..5fdadd0
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -4,7 +4,12 @@
#include "audio.hh"
#include "record.hh"
-ScreenIntro::ScreenIntro(std::string const& name, Audio& audio, Capture& capture): Screen(name), m_audio(audio), m_capture(capture), selected() {}
+ScreenIntro::ScreenIntro(std::string const& name, Audio& audio, Capture& capture): Screen(name), m_audio(audio), m_capture(capture), selected() {
+ m_menuOptions.push_back(new MenuOption("Songs", "intro_sing.svg"));
+ m_menuOptions.push_back(new MenuOption("Practice", "intro_practice.svg"));
+ m_menuOptions.push_back(new MenuOption("Configuration", "intro_configure.svg"));
+ m_menuOptions.push_back(new MenuOption("", "intro_quit.svg"));
+}
void ScreenIntro::enter() {
m_audio.playMusic(getThemePath("menu.ogg"), true);
@@ -20,20 +25,6 @@ void ScreenIntro::exit() {
m_dialog.reset();
}
-/*
-Tronic's note on making the menu more generic:
-
-struct MenuOption {
- std::string screen;
- Surface image;
-};
-
-In ScreenIntro:
-std::vector<MenuOption> m_menuOptions;
-
-This should avoid all if-elses for testing selected == 1, ...
-*/
-
void ScreenIntro::manageEvent(SDL_Event event) {
ScreenManager* sm = ScreenManager::getSingletonPtr();
if (event.type == SDL_KEYDOWN) {
@@ -47,14 +38,9 @@ void ScreenIntro::manageEvent(SDL_Event event) {
if (selected > 0) selected--;
else selected = 3;
} else if (key == SDLK_RETURN) {
- if (selected == 0) sm->activateScreen("Songs");
- else if (selected == 1) sm->activateScreen("Practice");
- else if (selected == 2) sm->activateScreen("Configuration");
- else if (selected == 3) sm->finished();
- } else if (key == SDLK_s) sm->activateScreen("Songs");
- else if (key == SDLK_c) sm->activateScreen("Configuration");
- else if (key == SDLK_p) sm->activateScreen("Practice");
- else if (key == SDLK_SPACE || key == SDLK_PAUSE) m_audio.togglePause();
+ if (selected != 3) sm->activateScreen(m_menuOptions[selected].screen);
+ else sm->finished();
+ } else if (key == SDLK_SPACE || key == SDLK_PAUSE) m_audio.togglePause();
} else if (event.type == SDL_JOYBUTTONDOWN) {
int button = event.jbutton.button;
if (button == 9) sm->activateScreen("Songs");
@@ -64,10 +50,7 @@ void ScreenIntro::manageEvent(SDL_Event event) {
void ScreenIntro::draw() {
theme->bg.draw();
- if (selected == 0) theme->sing.draw();
- else if (selected == 1) theme->practice.draw();
- else if (selected == 2) theme->configure.draw();
- else if (selected == 3) theme->quit.draw();
+ m_menuOptions[selected].image.draw();
theme->top.draw();
if (m_dialog) m_dialog->draw();
}
diff --git a/game/screen_intro.hh b/game/screen_intro.hh
old mode 100644
new mode 100755
index c67ec33..7906f14
--- a/game/screen_intro.hh
+++ b/game/screen_intro.hh
@@ -3,6 +3,7 @@
#include "dialog.hh"
#include "screen.hh"
#include "theme.hh"
+#include "menu.hh"
#include <boost/scoped_ptr.hpp>
class Audio;
@@ -22,6 +23,7 @@ class ScreenIntro : public Screen {
Audio& m_audio;
Capture& m_capture;
boost::scoped_ptr<ThemeIntro> theme;
+ boost::ptr_vector<MenuOption> m_menuOptions;
boost::scoped_ptr<Dialog> m_dialog;
unsigned int selected;
};
diff --git a/game/theme.cc b/game/theme.cc
index 4ce64a7..026f8e6 100644
--- a/game/theme.cc
+++ b/game/theme.cc
@@ -42,9 +42,5 @@ ThemeConfiguration::ThemeConfiguration():
ThemeIntro::ThemeIntro():
Theme(getThemePath("intro_bg.svg")),
- sing(getThemePath("intro_sing.svg")),
- practice(getThemePath("intro_practice.svg")),
- configure(getThemePath("intro_configure.svg")),
- quit(getThemePath("intro_quit.svg")),
top(getThemePath("intro_top.svg"))
{}
diff --git a/game/theme.hh b/game/theme.hh
index 225162a..dbb49bd 100644
--- a/game/theme.hh
+++ b/game/theme.hh
@@ -62,14 +62,6 @@ struct ThemeConfiguration: Theme {
/// theme for intro screen
struct ThemeIntro: Theme {
ThemeIntro();
- /// sing option
- Surface sing;
- /// practice option
- Surface practice;
- /// configuration option
- Surface configure;
- /// quit option
- Surface quit;
/// top layer
Surface top;
};
diff --git a/themes/default/configuration_value.svg b/themes/default/configuration_value.svg
index fbdd01c..9c28453 100644
--- a/themes/default/configuration_value.svg
+++ b/themes/default/configuration_value.svg
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Sodipodi ("http://www.sodipodi.com/") -->
+
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
@@ -15,9 +16,8 @@
height="600.000000"
id="svg559"
sodipodi:version="0.32"
- inkscape:version="0.46"
+ inkscape:version="0.47pre4 r22446"
sodipodi:docname="configuration_value.svg"
- sodipodi:docbase="/home/yoda/UltraStar/sf/UltraStar-ng/themes/lima"
inkscape:output_extension="org.inkscape.output.svg.inkscape">
<defs
id="defs2522">
@@ -41,7 +41,7 @@
</rdf:RDF>
</metadata>
<sodipodi:namedview
- inkscape:window-height="797"
+ inkscape:window-height="724"
inkscape:window-width="1081"
inkscape:pageshadow="2"
inkscape:pageopacity="0.0"
@@ -52,13 +52,14 @@
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
- inkscape:zoom="0.63"
- inkscape:cx="382.28027"
- inkscape:cy="304.78209"
+ inkscape:zoom="2.52"
+ inkscape:cx="395.84082"
+ inkscape:cy="267.82124"
inkscape:window-x="5"
- inkscape:window-y="73"
+ inkscape:window-y="25"
inkscape:current-layer="svg559"
- showgrid="false" />
+ showgrid="false"
+ inkscape:window-maximized="0" />
<text
x="400"
y="330"
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:37
|
Module: performous Branch: master Commit: b2aebfe58408378155d17df368e5fc42a18719d7 Author: Miguel Sánchez de León Peque <msd...@gm...> Date: Mon Nov 30 21:35:55 2009 +0100 Merge branch 'menu' of ssh://mslp@git.performous.org/gitroot/performous/performous into menu --- |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:35
|
Module: performous
Branch: master
Commit: a95803c43a0e6868e63d27553fb8642e218c5e22
Author: Lasse Karkkainen <tro...@tr...>
Date: Mon Nov 30 00:16:37 2009 +0200
Add notes about menu
---
game/screen_intro.cc | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index d50b990..885912c 100644
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -20,6 +20,20 @@ void ScreenIntro::exit() {
m_dialog.reset();
}
+/*
+Tronic's note on making the menu more generic:
+
+struct MenuOption {
+ std::string screen;
+ Surface image;
+};
+
+In ScreenIntro:
+std::vector<MenuOption> m_menuOptions;
+
+This should avoid all if-elses for testing selected == 1, ...
+*/
+
void ScreenIntro::manageEvent(SDL_Event event) {
ScreenManager* sm = ScreenManager::getSingletonPtr();
if (event.type == SDL_KEYDOWN) {
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:35
|
Module: performous Branch: master Commit: e64ccae023ee05e15e3d483e0b50e949e4605cdb Author: Miguel Sánchez de León Peque <msd...@gm...> Date: Sun Nov 29 19:05:18 2009 +0100 Merge commit 'origin/master' into menu --- |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:34
|
Module: performous Branch: master Commit: d804c3d71ad50012e7d321ef1183ea2dc0a018b2 Author: Miguel Sánchez de León Peque <msd...@gm...> Date: Sun Nov 29 18:52:33 2009 +0100 Merge commit 'origin/master' into menu --- |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:31
|
Module: performous
Branch: master
Commit: 2b8634bf093b3494fa656e93a0136daf1f813e2e
Author: Miguel Sánchez de León Peque <msd...@gm...>
Date: Sun Nov 29 14:42:42 2009 +0100
Better structured images.
---
themes/default/intro_bg.svg | 2 +-
themes/default/intro_configure.svg | 4 ++-
themes/default/intro_practice.svg | 4 ++-
themes/default/intro_quit.svg | 12 +++++---
themes/default/intro_sing.svg | 52 ++++++++++++++++++++++++++++++-----
5 files changed, 58 insertions(+), 16 deletions(-)
diff --git a/themes/default/intro_bg.svg b/themes/default/intro_bg.svg
index 30847ef..7c3a7b4 100644
--- a/themes/default/intro_bg.svg
+++ b/themes/default/intro_bg.svg
@@ -45,7 +45,7 @@
pagecolor="#ffffff"
id="base"
inkscape:zoom="0.61522534"
- inkscape:cx="472.57809"
+ inkscape:cx="567.11702"
inkscape:cy="377.53061"
inkscape:window-x="0"
inkscape:window-y="25"
diff --git a/themes/default/intro_configure.svg b/themes/default/intro_configure.svg
index 7705e9c..743d4a8 100644
--- a/themes/default/intro_configure.svg
+++ b/themes/default/intro_configure.svg
@@ -331,5 +331,7 @@
height="81.040909"
width="337.48822"
id="rect6405"
- style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible" />
+ style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible"
+ rx="15"
+ ry="15" />
</svg>
diff --git a/themes/default/intro_practice.svg b/themes/default/intro_practice.svg
index 1e21643..cea7341 100644
--- a/themes/default/intro_practice.svg
+++ b/themes/default/intro_practice.svg
@@ -295,5 +295,7 @@
height="81.040909"
width="337.48822"
id="rect6405"
- style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible" />
+ style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible"
+ rx="15"
+ ry="15" />
</svg>
diff --git a/themes/default/intro_quit.svg b/themes/default/intro_quit.svg
index 565c440..80a8c3a 100644
--- a/themes/default/intro_quit.svg
+++ b/themes/default/intro_quit.svg
@@ -44,12 +44,12 @@
bordercolor="#666666"
pagecolor="#ffffff"
id="base"
- inkscape:zoom="1.74012"
- inkscape:cx="656.35156"
- inkscape:cy="280.59685"
+ inkscape:zoom="0.61522533"
+ inkscape:cx="532.90629"
+ inkscape:cy="358.2374"
inkscape:window-x="0"
inkscape:window-y="25"
- inkscape:current-layer="g3726"
+ inkscape:current-layer="svg559"
showgrid="false"
showguides="true"
inkscape:guide-bbox="true"
@@ -316,5 +316,7 @@
height="99.733246"
width="337.48822"
id="rect6405"
- style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible" />
+ style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible"
+ rx="15"
+ ry="15" />
</svg>
diff --git a/themes/default/intro_sing.svg b/themes/default/intro_sing.svg
index 61c0f60..f70bc2f 100644
--- a/themes/default/intro_sing.svg
+++ b/themes/default/intro_sing.svg
@@ -45,11 +45,11 @@
pagecolor="#ffffff"
id="base"
inkscape:zoom="0.61522534"
- inkscape:cx="517.54781"
+ inkscape:cx="216.7974"
inkscape:cy="428.66203"
inkscape:window-x="0"
inkscape:window-y="25"
- inkscape:current-layer="g3955"
+ inkscape:current-layer="svg559"
showgrid="false"
showguides="true"
inkscape:guide-bbox="true"
@@ -204,17 +204,30 @@
x2="358.07056"
y2="260.4765" />
<linearGradient
- id="linearGradient6499-1"
- inkscape:collect="always">
+ id="linearGradient6499-1">
<stop
id="stop6501-3"
offset="0"
- style="stop-color:white;stop-opacity:1;" />
+ style="stop-color:#000000;stop-opacity:1;" />
<stop
id="stop6503-0"
offset="1"
style="stop-color:white;stop-opacity:0;" />
</linearGradient>
+ <inkscape:perspective
+ id="perspective2849"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
+ <inkscape:perspective
+ id="perspective2854"
+ inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+ inkscape:vp_z="1 : 0.5 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_x="0 : 0.5 : 1"
+ sodipodi:type="inkscape:persp3d" />
<linearGradient
y2="260.4765"
x2="358.07056"
@@ -223,7 +236,28 @@
gradientTransform="matrix(1.3544445,0,0,1.8513768,-45.940851,-180.28458)"
gradientUnits="userSpaceOnUse"
id="linearGradient2880"
- xlink:href="#linearGradient6499-1"
+ xlink:href="#linearGradient6499-1-4"
+ inkscape:collect="always" />
+ <linearGradient
+ id="linearGradient6499-1-4">
+ <stop
+ id="stop6501-3-4"
+ offset="0"
+ style="stop-color:#ffffff;stop-opacity:1;" />
+ <stop
+ id="stop6503-0-4"
+ offset="1"
+ style="stop-color:white;stop-opacity:0;" />
+ </linearGradient>
+ <linearGradient
+ y2="260.4765"
+ x2="358.07056"
+ y1="260.4765"
+ x1="44.868057"
+ gradientTransform="matrix(1.3544445,0,0,1.8513768,-45.940837,-180.2845)"
+ gradientUnits="userSpaceOnUse"
+ id="linearGradient2863"
+ xlink:href="#linearGradient6499-1-4"
inkscape:collect="always" />
</defs>
<text
@@ -254,10 +288,12 @@
style="fill:none;stroke:#ffffff;stroke-width:1.60380363;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
<rect
- y="261.436"
+ y="261.4361"
x="100"
height="81.040909"
width="337.48822"
id="rect6405"
- style="fill:url(#linearGradient2880);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible" />
+ style="fill:url(#linearGradient2863);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.29999995;marker:none;visibility:visible;display:inline;overflow:visible"
+ rx="15"
+ ry="15" />
</svg>
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:29
|
Module: performous Branch: master Commit: 90d8df704986cf6ac278d7c73cd075dd4dd35479 Author: Miguel Sánchez de León Peque <msd...@gm...> Date: Sat Nov 28 21:20:21 2009 +0100 Starting a theme based on the original one; background color is provisional --- themes/default/configuration_bg.svg | 221 ++++++++++++-------------------- themes/default/icon.bmp | Bin 4150 -> 3126 bytes themes/default/icon.png | Bin 4897 -> 2630 bytes themes/default/icon.svg | 51 +++++--- themes/default/intro_bg.svg | 185 +++++---------------------- themes/default/intro_configure.svg | 6 +- themes/default/intro_practice.svg | 10 +- themes/default/intro_quit.svg | 15 ++- themes/default/intro_sing.svg | 61 +-------- themes/default/intro_top.svg | 24 ++-- themes/default/practice_bg.svg | 238 ++++++++++++++++------------------- themes/default/songs_bg.svg | 4 +- themes/default/songs_bg_default.svg | 146 ++++------------------ 13 files changed, 318 insertions(+), 643 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:28
|
Module: performous Branch: master Commit: 32ba21fcf94df36dab99d3ab2ea287263a128405 Author: Miguel Sánchez de León Peque <msd...@gm...> Date: Sat Nov 28 16:57:02 2009 +0100 New (just modified) SGV images for the main menu. --- themes/default/intro_bg.svg | 71 +----------- themes/default/intro_configure.svg | 224 ++++++++++++++++++++++++++--------- themes/default/intro_practice.svg | 184 ++++++++++++++++++++--------- themes/default/intro_quit.svg | 206 ++++++++++++++++++++++++--------- themes/default/intro_sing.svg | 132 +++++++++++++++------- themes/default/intro_top.svg | 106 ++++++++++-------- 6 files changed, 597 insertions(+), 326 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:25
|
Module: performous Branch: master Commit: 097658f71149c001aebc2a584efd14feb53eda44 Author: Miguel Sánchez de León Peque <msd...@gm...> Date: Sat Nov 28 14:30:22 2009 +0100 Little changes on code and images organization --- game/screen_intro.cc | 63 ++------ game/theme.cc | 3 +- game/theme.hh | 10 +- themes/default/intro_configure.svg | 80 +---------- themes/default/intro_practice.svg | 76 --------- themes/default/intro_quit.svg | 76 --------- themes/default/intro_sing.svg | 76 --------- themes/default/intro_top.svg | 296 ++++++++++++++++++++++++++++++++++++ 8 files changed, 323 insertions(+), 357 deletions(-) |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:23
|
Module: performous
Branch: master
Commit: c5a5afa51997ce5d76ae3ab7c96485b697267975
Author: Vincent Le Ligeour <yo...@us...>
Date: Sat Nov 28 14:27:05 2009 +0100
Fixed ubuntu karmic depends list
---
cmake/performous-packaging.cmake | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cmake/performous-packaging.cmake b/cmake/performous-packaging.cmake
index 8fe3e9f..97c703d 100644
--- a/cmake/performous-packaging.cmake
+++ b/cmake/performous-packaging.cmake
@@ -61,7 +61,7 @@ if(UNIX)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libcairo2, librsvg2-2, libboost-thread1.35.0, libboost-program-options1.35.0, libboost-regex1.35.0, libboost-filesystem1.35.0, libboost-date-time1.35.0, libavcodec52, libavformat52, libswscale0, libmagick++1, libxml++2.6-2, libglew1.5")
endif("${LSB_DISTRIB}" MATCHES "Ubuntu9.04")
if("${LSB_DISTRIB}" MATCHES "Ubuntu9.10")
- set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libcairo2, librsvg2-2, libboost-thread1.38.0, libboost-program-options1.38.0, libboost-regex1.38.0, libboost-filesystem1.38.0, libboost-date-time1.38.0, libavcodec52, libavformat52, libswscale0, libmagick++1, libxml++2.6-2, libglew1.5")
+ set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libcairo2, librsvg2-2, libboost-thread1.38.0, libboost-program-options1.38.0, libboost-regex1.38.0, libboost-filesystem1.38.0, libboost-date-time1.38.0, libavcodec52, libavformat52, libswscale0, libmagick++2, libxml++2.6-2, libglew1.5")
endif("${LSB_DISTRIB}" MATCHES "Ubuntu9.10")
if("${LSB_DISTRIB}" MATCHES "Debian5.*")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libsdl1.2debian, libcairo2, librsvg2-2, libboost-dev, libavcodec51, libavformat52, libswscale0, libmagick++10, libxml++2.6-2, libglew1.5")
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:22
|
Module: performous Branch: master Commit: 8e45377114ff4092063dc8d778c5edae604b3ee5 Author: Lasse Karkkainen <tro...@tr...> Date: Sat Nov 28 07:02:19 2009 +0200 Merge branch 'master' into menu Conflicts: docs/Compiling.txt --- |
|
From: Peque <ms...@us...> - 2009-12-06 01:57:20
|
Module: performous
Branch: master
Commit: 2ef12741b689ec5681dafcb8b9f2d7808d4ee416
Author: Miguel Sánchez de León Peque <msd...@gm...>
Date: Sat Nov 28 00:49:22 2009 +0100
Changed menu images organization (divided in layers); they need 'stetic' work...
---
game/screen_intro.cc | 16 +-
game/theme.cc | 10 +-
themes/default/intro.svg | 528 ---------------------
themes/default/{prueba_intro.svg => intro_bg.svg} | 2 +-
themes/default/intro_configure.svg | 303 ++++++++++++
themes/default/intro_practice.svg | 303 ++++++++++++
themes/default/intro_quit.svg | 303 ++++++++++++
themes/default/intro_sing.svg | 336 +++++++++++++
themes/default/prueba_configure.svg | 499 -------------------
themes/default/prueba_practice.svg | 499 -------------------
themes/default/prueba_quit.svg | 499 -------------------
themes/default/prueba_sing.svg | 499 -------------------
12 files changed, 1253 insertions(+), 2544 deletions(-)
|
|
From: Peque <ms...@us...> - 2009-12-06 01:57:18
|
Module: performous
Branch: master
Commit: f9255ce019a2a913d628730bc5cf54e85d423e57
Author: Miguel Sánchez de León Peque <msd...@gm...>
Date: Sat Nov 28 00:24:42 2009 +0100
Main menu controlled with arrows (and char keys) finished; working with a "basic" look, working on it...
---
game/screen_intro.cc | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 42 insertions(+), 4 deletions(-)
diff --git a/game/screen_intro.cc b/game/screen_intro.cc
index fed0ae5..873920e 100644
--- a/game/screen_intro.cc
+++ b/game/screen_intro.cc
@@ -4,7 +4,8 @@
#include "audio.hh"
#include "record.hh"
-ScreenIntro::ScreenIntro(std::string const& name, Audio& audio, Capture& capture): Screen(name), m_audio(audio), m_capture(capture) {}
+ScreenIntro::ScreenIntro(std::string const& name, Audio& audio, Capture& capture):
+ Screen(name), m_audio(audio), m_capture(capture), selected() {}
void ScreenIntro::enter() {
m_audio.playMusic(getThemePath("menu.ogg"), true);
@@ -37,10 +38,30 @@ void ScreenIntro::manageEvent(SDL_Event event) {
* */
else if (key == SDLK_DOWN) {
- theme->sing.draw();
+ if (selected < 3) {
+ selected++;
+ } else selected = 0;
}
- else if (key == SDLK_DOWN) {
- theme->configure.draw();
+ else if (key == SDLK_UP) {
+ if (selected > 0) {
+ selected--;
+ } else selected = 3;
+ }
+ else if (key == SDLK_RETURN) {
+ switch (selected) {
+ case 0 :
+ sm->activateScreen("Songs");
+ break;
+ case 1 :
+ sm->activateScreen("Practice");
+ break;
+ case 2 :
+ sm->activateScreen("Configuration");
+ break;
+ case 3 :
+ sm->finished();
+ break;
+ }
}
@@ -57,6 +78,23 @@ void ScreenIntro::manageEvent(SDL_Event event) {
void ScreenIntro::draw() {
theme->bg.draw();
+ switch (selected) {
+ case 0 :
+ theme->sing.draw();
+ break;
+ case 1 :
+ theme->practice.draw();
+ break;
+ case 2 :
+ theme->configure.draw();
+ break;
+ case 3 :
+ theme->quit.draw();
+ break;
+ default :
+ theme->sing.draw();
+ }
+
//background->draw();
if (m_dialog) m_dialog->draw();
}
|