From 8d9ad2ce062e60b2a6803695172c23d8068cde9f Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Fri, 20 Jan 2006 23:24:36 +0000 Subject: [PATCH] fixed bug for checking colored menus in TFC and other mods --- plugins/statscfg.sma | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/statscfg.sma b/plugins/statscfg.sma index 3281af7a..48c95d85 100755 --- a/plugins/statscfg.sma +++ b/plugins/statscfg.sma @@ -44,6 +44,7 @@ new g_menuDataNum new g_menuPosition[33] new g_fileToSave[64] new bool:g_modified +new g_coloredMenus public plugin_precache() { @@ -61,6 +62,7 @@ public plugin_init() get_configsdir(g_fileToSave, 63) format(g_fileToSave, 63, "%s/stats.ini", g_fileToSave) loadSettings(g_fileToSave) + g_coloredMenus = colored_menus() } public cmdCfg(id, level, cid) @@ -207,7 +209,7 @@ displayCfgMenu(id, pos) if (start >= g_menuDataNum) start = pos = g_menuPosition[id] = 0 - new len = format(menu_body, 511, "\y%L\R%d/%d^n\w^n", id, "STATS_CONF", pos + 1, ((g_menuDataNum / 7)+((g_menuDataNum % 7) ? 1 : 0))) + new len = format(menu_body, 511, g_coloredMenus ? "\y%L\R%d/%d^n\w^n" : "%L %d/%d^n^n", id, "STATS_CONF", pos + 1, ((g_menuDataNum / 7)+((g_menuDataNum % 7) ? 1 : 0))) new end = start + 7, keys = MENU_KEY_0|MENU_KEY_8, k = 0 if (end > g_menuDataNum) @@ -216,13 +218,13 @@ displayCfgMenu(id, pos) for (new a = start; a < end; ++a) { keys |= (1<