[Include] pEscapemenu (New 'Dialog' Style) *19/Oct/2011*
#1

Peace,

today I've decided, to publish a new Open Source Project. I sincerely apologize for my imperfect English. This Include allows you some functions for an new Dialog Style (Escape Menu). Its not perfect the same like the Escape Menu - cause of: I cant have the Chance to query the Escape Key for false response like KEY_ESCAPE - I don't can use the texture fronten2:back8 as sprite - I don't have enough mood, to calculate the hud:arrow Texture position, for every single letter because every Letter have an else X-Size, so comes this feature next time. Watch the Video, if you don't understand me.

Needed Function's:
pawn Код:
Needed Function's:
OnEscapeMenuInit(); //Use this in OnGameModeInit or OnFilterScriptInit
OnEscapeMenuExit(); //Use this in OnGameModeExit or OnFilterScriptExit
OnEscapeMenuKeyStateChange(playerid,newkeys); //Use this in OnPlayerKeyStateChange
OnEscapeMenuUpdate(playerid); //Use this in OnPlayerUpdate
OnEscapeMenuConnect(playerid); //Use this in OnPlayerDisconnect
OnEscapeMenuDisonnect(playerid); //Use this in OnPlayerDisconnect
Function's:
pawn Код:
ShowPlayerEscapeMenu(playerid,Title[],Option1[],Option2[],Option3[],Option4[],Option5[],Option6[],Option7[]);//If you want only use 6 or less Options use as empty Option "" - nothing else! The script convert the empty field to "_" & set variables.
HidePlayerEscapeMenu(playerid);
SetPlayerEscapeMenuOptionText(playerid,OptionID,NewText[]);//Is something same like "AddPlayerEscapeMenuOption" if this Option is Invalid.
RemovePlayerEscapeMenuOption(playerid,OptionID)
If-Queries:
pawn Код:
EscapeMenuOpen(playerid)//If the player see the Menu, it returns true - else it returns false
IsValidEscapeMenuOption(playerid,OptionID)//If the option exist, it returns true - else it returns false
Public's:
pawn Код:
OnPlayerEscapeMenuRowChange(playerid,NewRowID)
OnPlayerEscapeMenuResponse(playerid,SelectedRow)//The Menu dont hide by himself, so you have to use "HidePlayerEscapeMenu(playerid);" in this public - if you want to hide the Escapemenu after pressing the ENTER Key.
Video:
[ame]http://www.youtube.com/watch?v=-hBqThYYiTY[/ame]
pawn Код:
http://www.youtube.com/watch?v=-hBqThYYiTY
Downloads:
http://solidfiles.com/d/43278/ (Includes Include, Example Filterscript, Picture & Readme - Recommended)
http://pastebin.com/tA1dzk3P

Changelog:
pawn Код:
• v1.0 (19.10.2011)
-» Initial release
Rules:
Nother Mirrors: allowed (Desired)
Editing Script: allowed
Removing Credits: allowed
Publish it: forbidden (Only on request)
Sell it: forbidden

Greetz!
Reply


Messages In This Thread
pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 18.10.2011, 23:46
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by xX60CentXx - 18.10.2011, 23:49
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 18.10.2011, 23:50
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Kingunit - 18.10.2011, 23:52
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 18.10.2011, 23:54
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Shelby - 19.10.2011, 00:04
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 19.10.2011, 00:11
Respuesta: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by usrb1n - 19.10.2011, 06:13
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by System64 - 19.10.2011, 06:34
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Drakon - 19.10.2011, 06:37
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 19.10.2011, 11:20
Re : pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Naruto_Emilio - 19.10.2011, 13:04
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Ricop522 - 19.10.2011, 13:08
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by TouR - 19.10.2011, 13:11
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by justsomeguy - 19.10.2011, 13:12
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 19.10.2011, 13:18
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by TheArcher - 19.10.2011, 13:25
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Nanory - 19.10.2011, 13:32
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by TheArcher - 19.10.2011, 13:46
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Zh3r0 - 19.10.2011, 13:56
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 19.10.2011, 14:06
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by lordturhan - 19.10.2011, 14:09
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 19.10.2011, 14:16
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Nanory - 19.10.2011, 14:38
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 19.10.2011, 14:47
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Arsham7 - 24.10.2011, 14:54
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by davve95 - 24.10.2011, 14:57
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 24.10.2011, 20:33
Re: AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Arsham7 - 24.10.2011, 20:46
Re: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by SpiderWalk - 25.10.2011, 08:24
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Nanory - 25.10.2011, 09:24
AW: pEscapemenu (New 'Dialog' Style) *19/Oct/2011* - by Pablo Borsellino - 20.04.2012, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)