]> git.openpandora.org Git - pandora-libraries.git/commitdiff
minimenu: added special case for rightmost tab for davec, so can now specialise tab...
authorskeezix <skeezix@flotsam-vm.(none)>
Sun, 4 Apr 2010 01:41:51 +0000 (21:41 -0400)
committerskeezix <skeezix@flotsam-vm.(none)>
Sun, 4 Apr 2010 01:41:51 +0000 (21:41 -0400)
minimenu/mmui.c
minimenu/mmui.h
minimenu/skin/default/mmskin.conf

index 25abb8269e3305e9b62c02d2c872b1d00698f438..954e50ea2c7c1ea53872c0f343949b11f6288dc0 100644 (file)
@@ -196,8 +196,10 @@ mm_imgcache_t g_imagecache [ IMG_TRUEMAX ] = {
   { IMG_SELECTED_ALPHAMASK,   "graphics.IMG_SELECTED_ALPHAMASK" },
   { IMG_TAB_SEL,              "graphics.IMG_TAB_SEL" },
   { IMG_TAB_SEL_L,            "graphics.IMG_TAB_SEL_L" },
+  { IMG_TAB_SEL_R,            "graphics.IMG_TAB_SEL_R" },
   { IMG_TAB_UNSEL,            "graphics.IMG_TAB_UNSEL" },
   { IMG_TAB_UNSEL_L,          "graphics.IMG_TAB_UNSEL_L" },
+  { IMG_TAB_UNSEL_R,          "graphics.IMG_TAB_UNSEL_R" },
   { IMG_TAB_LINE,             "graphics.IMG_TAB_LINE" },
   { IMG_TAB_LINEL,            "graphics.IMG_TAB_LINEL" },
   { IMG_TAB_LINER,            "graphics.IMG_TAB_LINER" },
@@ -437,6 +439,15 @@ void ui_render ( void ) {
          s = g_imagecache [ IMG_TAB_UNSEL_L ].i;
        }
 
+      } else if ( col == maxtab - 1 ) {
+       // rightmost tab, special case
+
+       if ( col == ui_category ) {
+         s = g_imagecache [ IMG_TAB_SEL_R ].i;
+       } else {
+         s = g_imagecache [ IMG_TAB_UNSEL_R ].i;
+       }
+
       } else {
        // normal (not leftmost) tab
 
index 4e6b2dd7f085f31c8508541515d290bae57d204a..d662b50c5a77e3d2a9d2c43d41666676e1bb0737 100644 (file)
@@ -18,8 +18,10 @@ typedef enum {
   IMG_SELECTED_ALPHAMASK,
   IMG_TAB_SEL,
   IMG_TAB_SEL_L,
+  IMG_TAB_SEL_R,
   IMG_TAB_UNSEL,
   IMG_TAB_UNSEL_L,
+  IMG_TAB_UNSEL_R,
   IMG_TAB_LINE,
   IMG_TAB_LINEL,
   IMG_TAB_LINER,
index 04ad2ad76da007501fb26bf21586d2db38d2cf42..7e19220e28f0662e9a80dd5f848ce9b19700da06 100644 (file)
@@ -91,10 +91,12 @@ IMG_DETAIL_PANEL         detailpane2.png
 IMG_DETAIL_BG            detailpanebg.png
 IMG_SELECTED_ALPHAMASK   select.png
 IMG_SELECTED_HILITE     hilite.png
-IMG_TAB_SEL              tab_sel_tall.png      # tab to be used, when not far left
+IMG_TAB_SEL              tab_sel_tall.png      # tab to be used, when not far left/right
 IMG_TAB_SEL_L            tab_sel_tall.png      # tab to be used for far left tab, selected
-IMG_TAB_UNSEL            tab_unsel.png         # tab to be used when not far left
+IMG_TAB_SEL_R            tab_sel_tall.png      # tab to be used for far right tab, selected
+IMG_TAB_UNSEL            tab_unsel.png         # tab to be used when not far left/right
 IMG_TAB_UNSEL_L          tab_unsel.png # tab to be used for far left tab, unselected
+IMG_TAB_UNSEL_R          tab_unsel.png # tab to be used for far right tab, unselected
 IMG_TAB_LINE            tabline.png    # line under the unselected tab, but not left/right corners
 IMG_TAB_LINEL           tablinel.png   # line under unselected tab on far left
 IMG_TAB_LINER           tabliner.png   # line under unselected tab on far right