Changeset 32298


Ignore:
Timestamp:
01/11/15 01:40:50 (8 years ago)
Author:
tobayer
Message:

[titan] add infobar selection, step 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skinadjust.h

    r30972 r32298  
    1818        struct skin* tithek_selectcol = getscreennode(skinadjust, "tithek_selectcol");
    1919        struct skin* filelistselect = getscreennode(skinadjust, "filelistselect");
    20        
     20
    2121        struct skin* oled_sel = getscreennode(skinadjust, "oled_sel");
     22        struct skin* infobar_sel = getscreennode(skinadjust, "infobar_sel");
    2223        struct skin* pic1 = getscreennode(skinadjust, "pic1");
    2324        struct skin* pic2 = getscreennode(skinadjust, "pic2");
    24        
     25
    2526        struct skin* tmp = NULL;
    2627
     
    3334        addchoicebox(listboxselecttype, "3", _("picture"));
    3435        setchoiceboxselection(listboxselecttype, getskinconfig("listboxselecttype", NULL));
    35        
     36
    3637        changeinput(osdtransparent, "0\n5\n10\n15\n20\n25\n30\n35\n40\n45\n50\n55\n60\n65\n70");
    3738        setchoiceboxselection(osdtransparent, getskinconfig("osdtransparent", NULL));
     
    9192                if(checkscreen("OLED_nemesis_v6") != status.skinerr)
    9293                        addchoicebox(oled_sel, "OLED_nemesis_v6","v6");
    93                
     94
    9495                setchoiceboxselection(oled_sel, getskinconfig("OLED_nemesis", NULL));
    9596        }
     
    9798                oled_sel->hidden = YES;
    9899
     100        if(checkscreen("infobar") != status.skinerr)
     101                addchoicebox(infobar_sel, "infobar", "v1");
     102        if(checkscreen("infobar_v2") != status.skinerr)
     103                addchoicebox(infobar_sel, "infobar_v2","v2");
     104        if(checkscreen("infobar_v3") != status.skinerr)
     105                addchoicebox(infobar_sel, "infobar_v3","v3");
     106        setchoiceboxselection(infobar_sel, getskinconfig("infobarselection", NULL));
     107
    99108        addchoicebox(showrecfreesize, "0", _("no"));
    100109        addchoicebox(showrecfreesize, "1", _("yes (Text in %)"));
    101110        addchoicebox(showrecfreesize, "2", _("yes (Text in MB)"));
    102111        setchoiceboxselection(showrecfreesize, getconfig("showrecfreesize", NULL));
    103        
     112
    104113        addchoicebox(listboxselect, "0", _("press red"));
    105114        addchoicebox(tithek_selectcol, "1", _("press green"));
     
    120129                if(status.leftoffset != getconfigint("fbleftoffset", NULL)) offsetchange = 1;
    121130                status.leftoffset = getconfigint("fbleftoffset", NULL);
    122                
     131
    123132                addconfigscreencheck("fbrightoffset", rightoffset, "0");
    124133                if(status.rightoffset != getconfigint("fbrightoffset", NULL)) offsetchange = 1;
    125134                status.rightoffset = getconfigint("fbrightoffset", NULL);
    126                
     135
    127136                addconfigscreencheck("fbtopoffset", topoffset, "0");
    128137                if(status.topoffset != getconfigint("fbtopoffset", NULL)) offsetchange = 1;
    129138                status.topoffset = getconfigint("fbtopoffset", NULL);
    130                
     139
    131140                addconfigscreencheck("fbbottomoffset", bottomoffset, "0");
    132141                if(status.bottomoffset != getconfigint("fbbottomoffset", NULL)) offsetchange = 1;
    133142                status.bottomoffset = getconfigint("fbbottomoffset", NULL);
    134                        
     143
    135144                if(offsetchange == 1 && (ostrcmp(getconfig("av_mode3d", NULL), "sbs") == 0 || ostrcmp(getconfig("av_mode3d", NULL), "tab") == 0)) clearfball();
    136145
     
    140149                setfbosd();
    141150#endif
    142                
     151
    143152                if((rcret == getrcconfigint("rcleft", NULL) || rcret == getrcconfigint("rcright", NULL)) && checkbox("ATEMIO-NEMESIS") == 1 && listbox->select != NULL && ostrcmp(listbox->select->name, "oled_sel") == 0)
    144153                {
     
    153162                        free(tmpstr);tmpstr=NULL;
    154163                }
    155                
     164
    156165                if(rcret == getrcconfigint("rcexit", NULL))
    157166                {
     
    179188                                drawscreen(skinadjust, 0, 0);
    180189                        }
    181                        
    182                         continue;               
     190
     191                        continue;
    183192                }
    184193
     
    194203                                drawscreen(skinadjust, 0, 0);
    195204                        }
    196                        
    197                         continue;               
     205
     206                        continue;
    198207                }
    199208
     
    209218                                drawscreen(skinadjust, 0, 0);
    210219                        }
    211                        
    212                         continue;               
     220
     221                        continue;
    213222                }
    214223
     
    218227                        addskinconfigscreencheck("fontsizeadjust", fontsizeadjust, "0");
    219228                        if(oldfontsizeadjust != getskinconfigint("fontsizeadjust", NULL)) reboot = 1;
    220                         status.fontsizeadjust = getskinconfigint("fontsizeadjust", NULL);                       
    221                        
     229                        status.fontsizeadjust = getskinconfigint("fontsizeadjust", NULL);
     230
    222231                        addskinconfigscreencheck("listboxselecttype", listboxselecttype, "0");
    223232                        status.listboxselecttype = getskinconfigint("listboxselecttype", NULL);
     
    229238                        if(checkbox("ATEMIO-NEMESIS"))
    230239                                addskinconfigscreencheck("OLED_nemesis", oled_sel, "0");
    231                        
     240
     241                        char* oldinfobar_sel = getskinconfig("infobarselection", NULL);
     242                        addskinconfigscreencheck("infobarselection", infobar_sel, "0");
     243                        if(ostrcmp(oldinfobar_sel,getskinconfig("infobarselection", NULL)) != 0) reboot = 1;
     244                        status.infobar_sel = getskinconfig("infobarselection", NULL);
     245
    232246                        writeskinconfigtmp();
    233247                        if(reboot == 1)
     
    236250                                oshutdown(3, 0);
    237251                        }
    238      
     252
    239253                        break;
    240254                }
Note: See TracChangeset for help on using the changeset viewer.