]> git.localhorst.tv Git - l2e.git/commitdiff
added menu cursor "active" sprite
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 6 Nov 2012 21:51:02 +0000 (22:51 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 6 Nov 2012 21:51:02 +0000 (22:51 +0100)
src/main.cpp
src/menu/Resources.cpp
src/menu/Resources.h
test-data/menu-cursor-active.png [new file with mode: 0644]

index 5ea2a03f706e64006a1e5f3485a4349c1dc509f0..d76eca5c6b1e44be8037810ca842f89ea7060115 100644 (file)
@@ -294,6 +294,9 @@ int main(int argc, char **argv) {
                menuResources.normalFont = &menuFont;
 
                graphics::Sprite menuCursor(IMG_Load("test-data/menu-cursor.png"), 32, 16);
+               menuResources.menuCursor = &menuCursor;
+               graphics::Sprite menuActiveCursor(IMG_Load("test-data/menu-cursor-active.png"), 32, 18);
+               menuResources.menuActiveCursor = &menuActiveCursor;
 
                graphics::MenuProperties mainMenuProperties;
                mainMenuProperties.cols = 2;
index 87abfa5f905f09dd6d02e2c6a6e3751961123093..28f5cb6fedb991d962a151862b0041516c6170f1 100644 (file)
@@ -14,6 +14,9 @@ Resources::Resources()
 , normalFont(0)
 , statusFont(0)
 
+, menuCursor(0)
+, menuActiveCursor(0)
+
 , statusLabels(0)
 , statusFrame(0)
 
index 32d393e1b880d8ef1b831ca5823ab7cb688c53e8..05ceaf3fa04b7ed785b6758679a57485a095d645 100644 (file)
@@ -19,6 +19,9 @@ struct Resources {
        graphics::Font *normalFont;
        graphics::Font *statusFont;
 
+       graphics::Sprite *menuCursor;
+       graphics::Sprite *menuActiveCursor;
+
        graphics::Sprite *statusLabels;
        graphics::Frame *statusFrame;
 
diff --git a/test-data/menu-cursor-active.png b/test-data/menu-cursor-active.png
new file mode 100644 (file)
index 0000000..bee2487
Binary files /dev/null and b/test-data/menu-cursor-active.png differ