From 1c0a5b04201c094633de2443f3e3960b5beb2937 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Fri, 22 Jan 2016 18:30:32 +0100 Subject: [PATCH] Change Panel.DrawItem return tag to |int| (bug 6463) --- plugins/include/menus.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/include/menus.inc b/plugins/include/menus.inc index 5663b18a..26ac16f1 100644 --- a/plugins/include/menus.inc +++ b/plugins/include/menus.inc @@ -176,7 +176,7 @@ methodmap Panel < Handle // No numbering or newlines are needed. // @param style ITEMDRAW style flags. // @return A slot position, or 0 if item was a rawline or could not be drawn. - public native void DrawItem(const char[] text, style=ITEMDRAW_DEFAULT); + public native int DrawItem(const char[] text, style=ITEMDRAW_DEFAULT); // Draws a raw line of text on a panel, without any markup other than a // newline.