[Include] MenuStore (Build dynamic stores with TextDraws)
#36

Suggestion:
In MenuStore_AddItem, add an optional data parameter defaulting to 0, in which we can put any value.
For example, in the weapon shop I would put the weapon id in it. In some other kind of shop which reads from a database, I could put the row id from the table in it. Etc...

Quote:
Originally Posted by Pottus
View Post
You should always use global textdraws where possible there is a lot of player textdraws wasted here plus extra overhead to create them needlessly.
Quote:
Originally Posted by ExTaZZ69
View Post
Just convert the static ones to global (that black and gray backgrounds, arrows, etc).
I think there is no need, since the player textdraws are being destroyed as soon as the menu is closed, as it should be.
Reply


Messages In This Thread
MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 16.11.2017, 15:40
Re: MenuStore (Build dynamic stores with TextDraws) - by Eoussama - 16.11.2017, 15:44
Re: MenuStore (Build dynamic stores with TextDraws) - by Pottus - 16.11.2017, 15:50
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 16.11.2017, 16:04
Re: MenuStore (Build dynamic stores with TextDraws) - by ExTaZZ69 - 16.11.2017, 16:11
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 16.11.2017, 16:26
Re: MenuStore (Build dynamic stores with TextDraws) - by HydraHumza - 16.11.2017, 17:29
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 17.11.2017, 17:18
Re: MenuStore (Build dynamic stores with TextDraws) - by PT - 17.11.2017, 18:18
Re: MenuStore (Build dynamic stores with TextDraws) - by Xeon™ - 17.11.2017, 21:57
Re: MenuStore (Build dynamic stores with TextDraws) - by nG Inverse - 17.11.2017, 22:06
Re: MenuStore (Build dynamic stores with TextDraws) - by Pottus - 18.11.2017, 16:53
Re: MenuStore (Build dynamic stores with TextDraws) - by cuber - 18.11.2017, 16:58
Re: MenuStore (Build dynamic stores with TextDraws) - by Xeon™ - 19.11.2017, 15:59
Re: MenuStore (Build dynamic stores with TextDraws) - by DanDRT - 19.11.2017, 19:58
Re: MenuStore (Build dynamic stores with TextDraws) - by xiaoniao - 21.11.2017, 01:54
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 21.11.2017, 17:42
Re: MenuStore (Build dynamic stores with TextDraws) - by Sellize - 01.12.2017, 10:10
Re: MenuStore (Build dynamic stores with TextDraws) - by Gforcez - 01.12.2017, 11:08
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 01.12.2017, 15:05
Re: MenuStore (Build dynamic stores with TextDraws) - by drawax - 25.02.2018, 18:59
Re: MenuStore (Build dynamic stores with TextDraws) - by GSFBart - 01.05.2018, 19:00
Re: MenuStore (Build dynamic stores with TextDraws) - by PowerMwK - 29.11.2018, 21:37
Re: MenuStore (Build dynamic stores with TextDraws) - by TheLeech - 20.01.2019, 11:31
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 28.01.2019, 03:36
Re: MenuStore (Build dynamic stores with TextDraws) - by TheLeech - 01.02.2019, 19:24
Re: MenuStore (Build dynamic stores with TextDraws) - by JeSuisUnChat - 02.02.2019, 08:13
Re: MenuStore (Build dynamic stores with TextDraws) - by Saddin - 02.02.2019, 10:53
Re: MenuStore (Build dynamic stores with TextDraws) - by Vallenci - 07.02.2019, 03:42
Re: MenuStore (Build dynamic stores with TextDraws) - by Kasichok - 07.02.2019, 11:55
Re: MenuStore (Build dynamic stores with TextDraws) - by dannypanda05 - 08.04.2019, 01:52
Re: MenuStore (Build dynamic stores with TextDraws) - by RenanMsV - 08.04.2019, 05:18
Re: MenuStore (Build dynamic stores with TextDraws) - by Chaprnks - 01.04.2020, 21:19
Re: MenuStore (Build dynamic stores with TextDraws) - by JesterlJoker - 26.04.2020, 15:10
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 27.04.2020, 01:28
Re: MenuStore (Build dynamic stores with TextDraws) - by Sasino97 - 08.05.2020, 06:22
Re: MenuStore (Build dynamic stores with TextDraws) - by PrednizoN - 12.05.2020, 07:01
Re: MenuStore (Build dynamic stores with TextDraws) - by jasperschellekens - 15.05.2020, 21:53
Re: MenuStore (Build dynamic stores with TextDraws) - by jasperschellekens - 16.05.2020, 14:49
Re: MenuStore (Build dynamic stores with TextDraws) - by CaioTJF - 16.05.2020, 18:21
Re: MenuStore (Build dynamic stores with TextDraws) - by hopeonxanny - 12.07.2020, 15:43
Re: MenuStore (Build dynamic stores with TextDraws) - by Lexless - 12.07.2020, 16:16
Re: MenuStore (Build dynamic stores with TextDraws) - by hopeonxanny - 12.07.2020, 17:13
Re: MenuStore (Build dynamic stores with TextDraws) - by Lexless - 12.07.2020, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)