18.10.2011, 23:46
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:
Function's:
If-Queries:
Public's:
Video:
[ame]http://www.youtube.com/watch?v=-hBqThYYiTY[/ame]
Downloads:
http://solidfiles.com/d/43278/ (Includes Include, Example Filterscript, Picture & Readme - Recommended)
http://pastebin.com/tA1dzk3P
Changelog:
Rules:
Nother Mirrors: allowed (Desired)
Editing Script: allowed
Removing Credits: allowed
Publish it: forbidden (Only on request)
Sell it: forbidden
Greetz!
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
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)
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
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.
[ame]http://www.youtube.com/watch?v=-hBqThYYiTY[/ame]
pawn Код:
http://www.youtube.com/watch?v=-hBqThYYiTY
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
Nother Mirrors: allowed (Desired)
Editing Script: allowed
Removing Credits: allowed
Publish it: forbidden (Only on request)
Sell it: forbidden
Greetz!