Changeset 29930


Ignore:
Timestamp:
09/11/14 19:45:27 (10 years ago)
Author:
gost
Message:

[titan] nemesis add oled selection

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/oled.h

    r29235 r29930  
    3737                OLED_nemesis = getscreen("OLED_nemesis_standby");
    3838        else
    39                 OLED_nemesis = getscreen("OLED_nemesis");
     39        {
     40               
     41                OLED_nemesis = getscreen(getskinconfig("OLED_nemesis", NULL));
     42                if(OLED_nemesis == NULL)
     43                        OLED_nemesis = getscreen("OLED_nemesis");
     44        }
    4045       
    4146        struct skin* textbox = getscreennode(OLED_nemesis, "textbox");
  • titan/titan/skinadjust.h

    r28991 r29930  
    1616        struct skin* showrecfreesize = getscreennode(skinadjust, "showrecfreesize");
    1717        struct skin* listboxselect = getscreennode(skinadjust, "listboxselect");
     18        struct skin* oled_sel = getscreennode(skinadjust, "oled_sel");
    1819        struct skin* pic1 = getscreennode(skinadjust, "pic1");
    1920        struct skin* pic2 = getscreennode(skinadjust, "pic2");
     
    7273                pic2->hidden = YES;
    7374        }
     75        if(checkbox("ATEMIO-NEMESIS"))
     76        {
     77                addchoicebox(oled_sel, "OLED_nemesis", "v1");
     78                addchoicebox(oled_sel, "OLED_nemesis_v2","v2");
     79                addchoicebox(oled_sel, "OLED_nemesis_v3","v3");
     80                addchoicebox(oled_sel, "OLED_nemesis_v4","v4");
     81                setchoiceboxselection(listboxselecttype, getskinconfig("OLED_nemesis", NULL));
     82        }
     83        else
     84                oled_sel->hidden = YES;
    7485
    7586        addchoicebox(showrecfreesize, "0", _("no"));
     
    157168                        status.showrecfreesize = getconfigint("showrecfreesize", NULL);
    158169
     170                        if(checkbox("ATEMIO-NEMESIS"))
     171                                addskinconfigscreencheck("OLED_nemesis", oled_sel, "0");
     172                       
    159173                        writeskinconfigtmp();
    160174                        if(reboot == 1)
Note: See TracChangeset for help on using the changeset viewer.