SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 15/06/2017, 12:50 PM   #11
Romz
Gangsta
 
Join Date: Jun 2013
Posts: 930
Reputation: 52
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Hello! You must add function iMenu_AddItem new arguments to adjust the width and height of the images.

It would also be cool to increase the limit of menu items from 12 to 16 or best of all dynamic value.
Romz is offline   Reply With Quote
Old 18/06/2017, 11:08 PM   #12
iAmir
Little Clucker
 
iAmir's Avatar
 
Join Date: May 2017
Posts: 31
Reputation: 34
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

New Update ...

Change log:
Code:
19/06/2017 - v1.1
  • Increased item limits per menu up to 16 !
  • Added parameters to able change colors of different parts
  • Added new parameter 'modelid' to 'iMenuPlayerResponse'


  • 1 - headercolor - Color of header
  • 2 - captioncolor - Color of caption text
  • 3 - itemtextcolor - Color of item text
  • 4 - buttoncolor - Color of button background including Select , Cancel , and Item buttons
  • 5 - framecolor - Color of main frame
  • 6 - previewbg - Color of preview model background
  • 7 - bordercolor - Color of main borders of buttons and preview model box
  • 8 - desc_col - Color of description text under the preview model box
  • 9 - mainbuttontextcolor - Color of Select and Cancel buttons
  • 10 - noprevtextcolor - Color of 'NO PREVIEW' text
  • 11 - vehcol1 - First color of vehicle (only works if object model is a vehicle)
  • 12 - vehcol2 - Second color of vehicle (only works if object model is a vehicle)

Last edited by iAmir; 14/10/2017 at 11:16 PM.
iAmir is offline   Reply With Quote
Old 18/06/2017, 11:11 PM   #13
Dice_
Huge Clucker
 
Dice_'s Avatar
 
Join Date: Sep 2015
Location: Indonesia
Posts: 409
Reputation: 48
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Nice update mate,i will use this include.
__________________
quit
Dice_ is offline   Reply With Quote
Old 26/06/2017, 02:53 PM   #14
10MIN
Huge Clucker
 
10MIN's Avatar
 
Join Date: Jun 2017
Location: Clock4ever
Posts: 304
Reputation: 27
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Good Job with this include.
__________________
__________________
__________________
__________________
__________________
__________________
__________________
10MIN is offline   Reply With Quote
Old 03/07/2017, 03:05 PM   #15
bugmenotlol
Huge Clucker
 
Join Date: Jan 2016
Location: India
Posts: 226
Reputation: 7
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

I have a Doubt
PHP Code:
// im_preview_model - ID of object for showing in a box for this item (can be blank not be used then it shows NO PREVIEW ) 
skin ids start from 0.....256
weapon ids also 0....256

so what we should add there for the difference in weapon and skin ??
bugmenotlol is offline   Reply With Quote
Old 03/07/2017, 04:11 PM   #16
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,315
Reputation: 1171
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Take a look at how Texture Studio handles menus I think you will find it interesting.

https://github.com/Pottus/Texture-St...ts/tstudio/gui
https://github.com/Pottus/Texture-St...io/menugui.pwn
https://github.com/Pottus/Texture-St...o/menudata.pwn

I still consider this whole system as incomplete but it would have the ability to handle a system like this just some ideas for you.
Pottus is offline   Reply With Quote
Old 03/07/2017, 06:28 PM   #17
bugmenotlol
Huge Clucker
 
Join Date: Jan 2016
Location: India
Posts: 226
Reputation: 7
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Quote:
Originally Posted by Pottus View Post
Take a look at how Texture Studio handles menus I think you will find it interesting.

https://github.com/Pottus/Texture-St...ts/tstudio/gui
https://github.com/Pottus/Texture-St...io/menugui.pwn
https://github.com/Pottus/Texture-St...o/menudata.pwn

I still consider this whole system as incomplete but it would have the ability to handle a system like this just some ideas for you.
still dint get answer to my question
bugmenotlol is offline   Reply With Quote
Old 03/07/2017, 06:35 PM   #18
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,315
Reputation: 1171
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Quote:
Originally Posted by bugmenotlol View Post
still dint get answer to my question
I was replying to the thread as there is no quote.
Pottus is offline   Reply With Quote
Old 03/07/2017, 10:38 PM   #19
iAmir
Little Clucker
 
iAmir's Avatar
 
Join Date: May 2017
Posts: 31
Reputation: 34
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Quote:
Originally Posted by bugmenotlol View Post
I have a Doubt
PHP Code:
// im_preview_model - ID of object for showing in a box for this item (can be blank not be used then it shows NO PREVIEW ) 
skin ids start from 0.....256
weapon ids also 0....256

so what we should add there for the difference in weapon and skin ??
Weapon IDs are different with Weapon Object IDs , and also Skin IDs are between 0 and 311 and weapon IDs are between 0 and 46 , (other IDs are not weapons ! and don't have object IDs)

http://wiki.sa-mp.com/wiki/Skins:All
http://wiki.sa-mp.com/wiki/Weapons


Quote:
Originally Posted by Pottus View Post
Take a look at how Texture Studio handles menus I think you will find it interesting.

https://github.com/Pottus/Texture-St...ts/tstudio/gui
https://github.com/Pottus/Texture-St...io/menugui.pwn
https://github.com/Pottus/Texture-St...o/menudata.pwn

I still consider this whole system as incomplete but it would have the ability to handle a system like this just some ideas for you.
Thanks ! I will take a look.
And surely I'm gonna make it better in my free times which is less than the needed time to work

Last edited by iAmir; 14/10/2017 at 11:18 PM.
iAmir is offline   Reply With Quote
Old 25/07/2017, 06:43 AM   #20
XtremeR
Gangsta
 
XtremeR's Avatar
 
Join Date: Aug 2012
Location: Australia
Posts: 946
Reputation: 565
Default Re: iMenu.inc | Clickable TextDraw Menus | CS Buy Menu Style

Good one. +4
__________________
XtremeR is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] How to make a Textdraw ( Simple Textdraw or Selectable/Clickable Textdraw) Reputation Tutorials 8 18/09/2014 10:52 AM
Best way for handling custom textdraw menus? (enums, dialog style IDs) RajatPawar Scripting Help 2 08/10/2013 04:06 PM
Need help with simple shop menu with 0.3x menus. Jaanek Scripting Help 3 02/03/2013 04:32 PM
Menu's and second menus hanzen Help Archive 5 27/05/2009 10:10 PM


All times are GMT. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.