[Include] Dialogs include - Adding new styles to SAMP GUI

Nice, how about something like DIALOG_STYLE_TITLE_HEADERS?
Reply

Quote:
Originally Posted by Onfroi
Посмотреть сообщение
Nice, how about something like DIALOG_STYLE_TITLE_HEADERS?
Doesn't it look ugly, just questioning why would anyone like those buttons at an inappropriate place?

My future plans of this include: (also includes current features)
- DIALOG_STYLE_PREVMODEL (dialog with preview models)
- DIALOG_STYLE_PREVMODEL_HEADERS (preview models with lables)
- DIALOG_STYLE_PREVMODEL_DISPLAY (showing one model with rotating effect)
- DIALOG_STYLE_LIST_<1..4> (similar to DIALOG_STYLE_LIST but with multiple lists on the screen)
Reply

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Doesn't it look ugly, just questioning why would anyone like those buttons at an inappropriate place?

My future plans of this include: (also includes current features)
- DIALOG_STYLE_PREVMODEL (dialog with preview models)
- DIALOG_STYLE_PREVMODEL_HEADERS (preview models with lables)
- DIALOG_STYLE_PREVMODEL_DISPLAY (showing one model with rotating effect)
- DIALOG_STYLE_LIST_<1..4> (similar to DIALOG_STYLE_LIST but with multiple lists on the screen)
Well, yeah, it looks ugly because I did it in paint. But I don't think it would look like that if done with textdraws. The point is to have different categories, doesn't matter where you put it.
Reply

Suggestion: Scroll instead of buttons (additional setting).

It would go well with the column suggestion.
Reply

For anticipation, this is my new dialog base: (which will have scroll)


This is the new DIALOG_STYLE_PREVMODEL_LIST:


The DIALOG_STYLE_PREVMODEL will be similar to the old one but the base will differ.

Please let me know if the recent design is better than the earlier one?
Once i am finished with my string seperations, i will release a BETA version of this new update.
Reply

Quote:
Originally Posted by Gammix
Посмотреть сообщение
For anticipation, this is my new dialog base: (which will have scroll)


This is the new DIALOG_STYLE_PREVMODEL_LIST:


The DIALOG_STYLE_PREVMODEL will be similar to the old one but the base will differ.

Please let me know if the recent design is better than the earlier one?
Once i am finished with my string seperations, i will release a BETA version of this new update.
love it
Reply

Quote:
Originally Posted by Gammix
Посмотреть сообщение
For anticipation, this is my new dialog base: (which will have scroll)


This is the new DIALOG_STYLE_PREVMODEL_LIST:


The DIALOG_STYLE_PREVMODEL will be similar to the old one but the base will differ.

Please let me know if the recent design is better than the earlier one?
Once i am finished with my string seperations, i will release a BETA version of this new update.
I'd say if possible increase the boldness and size of text in the button else way its great.
Reply

Important and new update (v2.0.1):
  • Completly re-written code
  • Saves a lot of textdraws amount (reduces to very less player textdraws)
  • Now supports two kind of dialog style (DIALOG_STYLE_PREVMODEL and DIALOG_STYLE_PREVMODEL_LIST)
  • Both styles supports labels and non labels
  • No more requirement of arrays to make listitems
  • Using string spliting method to retrieve listitems and their data
  • Amazing output size (less than 65 kb)
  • Much better coded than before and faster (now dialogs won't be re-created while just a single click on a model for highlighting)
Currently in BETA, do report bugs if you are using this. In next update, i will be adding multi platform support (means you can use this in more than one script) and scroll bar textdraw.
Reply

Is the old tile version still available? I wouldn't want to use the list style for everything.
Reply

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Is the old tile version still available? I wouldn't want to use the list style for everything.
Don't use the list style (DIALOG_STYLE_PREVMODEL_LIST) if you don't want it. DIALOG_STYLE_PREVMODEL design is similar to that of old version but the only difference is that this one supports scroll.

(if i plan on adding more styles, i won't be updating the old version)

Though, i have added old version in the Github repo.
Reply

This is great, thank you.
Reply

Update v2.0.2
  • Cross compatiblable update, now the include works properly in multiple scripts (save player textdraws and global textdraws slot)
  • New snippets update, those who use/like the array method, they can checkout the following section.
  • Faster, now uses arrays from PVars.
Reply

Bugs:

Code:
PHP код:
ShowPlayerDialog(playeridDialog_PlayersInvDIALOG_STYLE_PREVMODEL"Текст""0\nSkin1\n1\nSkin2\n2\nSkin3\n3\nSkin4\n4\nSkin5\n5\nSkin6\n0\nSkin1\n1\nSkin2\n2\nSkin3\n3\nSkin4\n4\nSkin5\n5\nSkin6\n0\nSkin1\n1\nSkin2\n2\nSkin3\n3\nSkin4\n4\nSkin5\n5\nSkin6\n0\nSkin1\n1\nSkin2\n2\nSkin3\n3\nSkin4\n4\nSkin5\n5\nSkin6\n0\nSkin1\n1\nSkin2\n2\nSkin3\n3\nSkin4\n4\nSkin5\n5\nSkin6\n0\nSkin1\n1\nSkin2\n2\nSkin3\n3\nSkin4\n4\nSkin5\n5\nSkin6\n""Select""Cancel"); 
Reply

@Kolstin: thanks for reporting. Fixed in version 2.0.3.

Update v2.0.3:
  • Fixed label displacement bug in DIALOG_STYLE_PREVMODEL
Backdraws: Cross compatible issues, OnPlayerClickTextDraw don't react as expected which causes respose issues. Maybe in future this include will support cross compatibility.
Reply

im getiing his error

Код:
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(99) : error 017: undefined symbol "SetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(153) : error 017: undefined symbol "SetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(155) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(219) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(221) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(222) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(223) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(224) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(225) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(226) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(227) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(229) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(230) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(232) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(233) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(235) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(236) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(237) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(238) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(239) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(241) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(242) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(243) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(244) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(245) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(247) : error 017: undefined symbol "GetSVarInt"
Reply

Quote:
Originally Posted by Karolukas123
Посмотреть сообщение
im getiing his error

Код:
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(99) : error 017: undefined symbol "SetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(153) : error 017: undefined symbol "SetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(155) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(219) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(221) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(222) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(223) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(224) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(225) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(226) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(227) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(229) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(230) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(232) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(233) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(235) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(236) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(237) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(238) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(239) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(241) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(242) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(243) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(244) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(245) : error 017: undefined symbol "GetSVarInt"
C:\Users\Karolis\Desktop\New gamemode\pawno\include\dialogs.inc(247) : error 017: undefined symbol "GetSVarInt"
Upgrade your includes to 0.3.7-R2-1
Reply

BUGs:


https://*********/i8mG0mp4JYU
Reply

Quote:
Originally Posted by Karolukas123
Посмотреть сообщение
Show your code.
Does any of your scripts uses OnPlayerClickTextDraw?

Update 2.0.3 (minor change):
  • Added return 1; in OnPlayerClickTextDraw callback to resist calling it on other scripts
  • Removed SVar code, now compatiable with SAMP 0.3 earlier versions (except the one which don't support preview models)
Reply

please make a dialogue to work with Russian characters. when to enter Russian words in the game text will not display only works for three-letter symbols
Reply

Quote:
Originally Posted by Yarik1995
Посмотреть сообщение
please make a dialogue to work with Russian characters. when to enter Russian words in the game text will not display only works for three-letter symbols
That is an sa-mp problem not this include problem
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)