Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Konsti, AndrewAMD, 1 invisible), 1,376 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
WED SDK & the Popup Menu #171586
12/07/07 00:02
12/07/07 00:02
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline OP
Serious User
LarryLaffer  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
As the topic suggests, I want to know if it's possible to add my own menu item in the pop up menu that shows up when the user right clicks:




What I really want to do is create my own panel similar to the one created when you click on 'Behavior', so I'd also need read/write access to the first 20 Skills and 8 flags of the entity that the user has selected.

Thank you,
Aris


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
Re: WED SDK & the Popup Menu [Re: LarryLaffer] #171587
12/07/07 07:50
12/07/07 07:50
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, as far as I can tell you can add your own menu items to the right click menu.

Re: WED SDK & the Popup Menu [Re: jcl] #171588
12/07/07 14:01
12/07/07 14:01
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline OP
Serious User
LarryLaffer  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
I'm happy to hear that, but I didn't manage to find any information on how to actually do it. I looked into every example on the SDK for both MED and WED but they all created items on the main menu bar.

Is there a name for the pop-up menu that you need to type on the p_MenuString item of the PISTC_PROCEDUREDEF struct, like this..?


Code:

proceduredef_stc g_ProcDefList[] = {

{
//PISTC_PROCEDUREDEF:
0,
PIPD_COMMONTOOL,
0,

"Edit Entity's Skills",
"PopUpMenu\\Edit Skills",
NULL,
NULL,
NULL,
..
..
}



Thank you,
Aris


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
Re: WED SDK & the Popup Menu [Re: LarryLaffer] #171589
12/09/07 16:48
12/09/07 16:48
Joined: Sep 2003
Posts: 158
Wlad Offline

Conitec
Wlad  Offline

Conitec

Joined: Sep 2003
Posts: 158


#include "wed_context_menu.h"


VievContextMenu"\\Edit Skills",


But it is possible from version 6.851

Re: WED SDK & the Popup Menu [Re: Wlad] #171590
12/23/07 12:10
12/23/07 12:10
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline OP
Serious User
LarryLaffer  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
Thanks for implementing this!

However, i installed the new beta and tried to give this a go, but i couldn't find wed_context_menu.h anywhere. Maybe you need to upload a new WED sdk as well (you should include the wed sdk in the A7 upgrades, just exclude the examples for smaller filesize)


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
Re: WED SDK & the Popup Menu [Re: LarryLaffer] #171591
01/23/08 11:21
01/23/08 11:21
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline OP
Serious User
LarryLaffer  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
Bump!


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
Re: WED SDK & the Popup Menu [Re: LarryLaffer] #171592
01/24/08 08:34
01/24/08 08:34
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
7.07 was released last week, and I'll upload the new WED/MED SDK soon - probably today or tomorrow. Check the download page when a "NEW" appears close to the link.

Re: WED SDK & the Popup Menu [Re: jcl] #171593
02/20/08 10:28
02/20/08 10:28
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline OP
Serious User
LarryLaffer  Offline OP
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
Thanks! Works great..


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1