blob: 502df01215cd57ec8dfdcd651743163d1b3b3787 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
/*---------------------------------------------------
-----------------------------------------------------
Filename: gen_pageguids.m
Version: 1.0
Type: maki/page guid definitions
Date: 03. Jul. 2006 - 18:29
Author: Martin Poehlmann aka Deimos
E-Mail: martin@skinconsortium.com
Internet: www.skinconsortium.com
www.martin.deimos.de.vu
-----------------------------------------------------
---------------------------------------------------*/
#ifndef included
#error This script can only be compiled as a #include
#endif
#ifndef __GEN_PAGEGUIDS_M
#define __GEN_PAGEGUIDS_M
#include <lib/config.mi>
Function initPages();
/*--NON CHANGEABLE GUIDS:--------------------------*/
// this is the page that maps its items to the options menu, you can add attribs or more pages (submenus)
#define CUSTOM_OPTIONSMENU_ITEMS "{1828D28F-78DD-4647-8532-EBA504B8FC04}"
Global ConfigItem optionsmenu_page;
// this is the page that maps its items to the windows menu (aka View), you can add attribs or more pages (submenus)
#define CUSTOM_WINDOWSMENU_ITEMS "{6559CA61-7EB2-4415-A8A9-A2AEEF762B7F}"
Global ConfigItem custom_windows_page;
// non exposed attribs page
#define CUSTOM_PAGE_NONEXPOSED "{E9C2D926-53CA-400f-9A4D-85E31755A4CF}"
Global ConfigItem custom_page_nonexposed;
/*--DECLARE PAGES HERE:----------------------------*/
initPages()
{
#ifndef __PAGES
#define __PAGES
custom_page_nonexposed = Config.newItem("Hidden", CUSTOM_PAGE_NONEXPOSED);
// load up the cfgpage in which we'll insert our custom page
optionsmenu_page = Config.getItem(CUSTOM_OPTIONSMENU_ITEMS);
custom_windows_page = Config.getItem(CUSTOM_WINDOWSMENU_ITEMS);
#endif
}
/*--GLOBAL DEFINITIONS:----------------------------*/
#define NOOFF if (getData()=="0") { setData("1"); return; }
Global Int attribs_mychange, attribs_mychange2;
Global ConfigAttribute sep;
Global Int sep_count = 0;
Function addMenuSeparator(ConfigItem cfgmenupage);
addMenuSeparator(ConfigItem cfgmenupage)
{
#ifdef MAIN_ATTRIBS_LOADER
sep_count = sep_count + 1;
sep = cfgmenupage.newAttribute(getSkinName() + "seperator" + integerToString(sep_count), "");
sep.setData("-");
#endif
}
Function ConfigItem addConfigSubMenu(configitem parent, string name, string guid);
ConfigItem addConfigSubMenu(configitem parent, string name, string guid)
{
ConfigItem __ret = Config.newItem(name, guid);
ConfigAttribute __dret = parent.newAttribute(name, "");
__dret.setData(guid);
return __ret;
}
Function toggleAttrib(ConfigAttribute attrib);
toggleAttrib(ConfigAttribute attrib)
{
if (attrib.getData() == "0")
{
attrib.setData("1");
}
else
{
attrib.setData("0");
}
}
#endif
|