Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:47:43 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Creating HelpMenu  (Read 83 times)
M.A.C.A.B.R.A
Newbie
*
Posts: 20



View Profile WWW
« on: June 14, 2012, 01:55:01 PM »

Hi. I have a little problem with creating helpmenu in one of my plugins. I would like to create help command which would create a window with usage description but I dont know how to create a menu like this:


I know how to create menu and add items to pick, but I don't know how to Write a text like that what I marked.

I want to create just a simple window with only exit button without any other items to pick. Exactly as sm_msay, but visible only to a single player.
What command should I use when I create menu?
Logged

Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #1 on: June 14, 2012, 02:04:35 PM »

just use the title with newlines, so do something like:
Code:
SetMenuTitle(hMenu,"U GOTTA CHECK THIS OUT:\n\im going to pwn\n\n\n\n\lol");

or just use the MENUITEM_DISABLED flag (or similar) when using AddMenuItem
Logged

M.A.C.A.B.R.A
Newbie
*
Posts: 20



View Profile WWW
« Reply #2 on: June 14, 2012, 02:14:52 PM »

I tried to do this, but I need to put a function which will receive menu action while creating menu. The only button I want to add is exit button and putting there empty function works but seems to be lame Tongue
Is there any flag for display only title of menu, which i could use with CreateMenu() command??
« Last Edit: June 14, 2012, 02:41:17 PM by M.A.C.A.B.R.A » Logged

Revan
Sr. Member
****
Posts: 263



View Profile
« Reply #3 on: June 14, 2012, 02:41:16 PM »

So there's no big deal just leave that function callback "empty/default"
Logged

Necavi
Full Member
***
Posts: 217


View Profile
« Reply #4 on: June 15, 2012, 06:26:46 AM »

Will the menu handle be properly closed afterwards? That's fine for a static help menu, but if you want it to incorporate ANY non-static information...you need a callback, if only to close the handle.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!