source: titan/plugins/mc/mc_settings.h @ 15245

Last change on this file since 15245 was 9416, checked in by obi, 13 years ago

update mc ap

File size: 882 bytes
Line 
1#ifndef MC_SETTINGS_H
2#define MC_SETTINGS_H
3
4void screenmc_settings()
5{
6        int rcret = 0;
7        struct skin* mc_settings = getscreen("mc_settings");
8        struct skin* listbox = getscreennode(mc_settings, "listbox");
9        struct skin* style = getscreennode(mc_settings, "style");
10
11        struct skin* tmp = NULL;
12
13        addchoicebox(style, "0", _("transparent (mvi)"));       
14        addchoicebox(style, "1", _("skin (picmem jpg)"));
15        setchoiceboxselection(style, getconfig("style", NULL));
16
17        drawscreen(mc_settings, 0);
18        addscreenrc(mc_settings, listbox);
19
20        tmp = listbox->select;
21        while(1)
22        {
23                addscreenrc(mc_settings, tmp);
24                rcret = waitrc(mc_settings, 0, 0);
25                tmp = listbox->select;
26       
27                if(rcret == getrcconfigint("rcexit", NULL)) break;
28                if(rcret == getrcconfigint("rcok", NULL))
29                {
30                        addconfigscreencheck("style", style, "0");
31                        break;
32                }
33  }
34
35        delownerrc(mc_settings);
36        clearscreen(mc_settings);
37}
38
39#endif
Note: See TracBrowser for help on using the repository browser.