austin_medic 109 Posted October 25, 2014 (edited) Your Guide to Dialogs byaustinXmedic This guide is meant to help you learn how to create a basic dialog that will accept user input and display it on the screen. This one isn't too complex, I wrote it up in about an hour, all it covers is one basic dialog. It consists of a frame, a button, and a edit box. It also contains a download link to a hpp file that you will need for the dialog to function I didn't really take the time to beautify the dialog either, so it looks hideous, I could care less really about how nice it looks for the purposes of demonstration. I might add a second section for something a bit more complex than this and cover other resources such as the list box in the future. NOTE: There is a few pictures missing from the PDF, though no biggie, you can still get a working dialog without them. Mirrors: Dropbox Armaholic Sample Mission Edited November 5, 2014 by austin_medic 1 Share this post Link to post Share on other sites
R3vo 2654 Posted October 25, 2014 I've just checked it out, really helpful. We should probably link this to the BI Wiki. Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted October 25, 2014 (edited) Regarding your 8 question mark question about the "moving" property: If you set "movingEnabled = true" to the dialog and set "moving = true" to one or more of its controls, you can drag the whole dialog by dragging one of these controls. So "moving", as it is in your guide, is in the wrong spot. It does not belong to the dialog, but to one of its controls. For more details, check the BIKI here. Kind regards, Johnny Edited November 12, 2014 by Heeeere's Johnny! Share this post Link to post Share on other sites
iceman77 18 Posted October 25, 2014 Thanks for sharing Austin. And I was just in the middle of majorly re-vamping the one I did from Arma2. :p. Share this post Link to post Share on other sites
austin_medic 109 Posted October 26, 2014 Regarding your 8 question mark question about the "moving" property:If you set "movingEnabled = true" to the dialog and set "moving = true" to one or more of its controls, you can drag the whole dialog by dragging one of these controls. So "moving", as it is in your guide, is in the wrong spot. It does not belong to the dialog, but to one of its controls. For more details, check the BIKI here. Kind regards, waltenberg aka Johnny I had no idea. Share this post Link to post Share on other sites
Guest Posted October 26, 2014 Release frontpaged on the Armaholic homepage. Your Guide to Dialogs v1.0 ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites
austin_medic 109 Posted October 27, 2014 Updated the guide with a section on how to make and use listboxes. Also some corrections to the first section. Share this post Link to post Share on other sites
Guest Posted October 27, 2014 Release frontpaged on the Armaholic homepage. Your Guide to Dialogs v1.1 ================================================ We have also "connected" these pages to your account on Armaholic. This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have. When you have any questions already feel free to PM or email me! Share this post Link to post Share on other sites
R3vo 2654 Posted October 28, 2014 Excellent, I was waiting for the Listbox part. Thank you very much! Share this post Link to post Share on other sites
csk222 23 Posted October 31, 2014 I couldn't get this to work at all for me. I did notice a few errors i.e. it says to press Alt when it should be Ctrl. The information doesn't seem consistent. Its probably me. Are there any other documentation/tutorials on how to make listboxes? Share this post Link to post Share on other sites
austin_medic 109 Posted November 1, 2014 I couldn't get this to work at all for me. I did notice a few errors i.e. it says to press Alt when it should be Ctrl. The information doesn't seem consistent. Its probably me. Are there any other documentation/tutorials on how to make listboxes? It's probably how I worded it. To me it looks like its all fine (just checked it), and nobody else has came forward to say it doesn't work. Soooo..... guess I'll post source code to dropbox when I get some time (since it works). Share this post Link to post Share on other sites
austin_medic 109 Posted November 5, 2014 Added a sample mission to the main post so people who want the finished product can use it and mess around with it https://www.dropbox.com/s/523g0ol3hzwsjs4/AUSMD_Dialog_Example.zip?dl=0 Share this post Link to post Share on other sites
Von Quest 1163 Posted November 5, 2014 Looking forward to getting into this. Hoping maybe this weekend. Have problems getting safezones and screen resolutions figured out. Thanks! Share this post Link to post Share on other sites
R3vo 2654 Posted November 5, 2014 Looking forward to getting into this. Hoping maybe this weekend. Have problems getting safezones and screen resolutions figured out. Thanks! Always use Safezone and you should be fine. It makes the dialogue fit the sceen resolution of the player. However there are some cases where it doesn't work. Share this post Link to post Share on other sites
austin_medic 109 Posted November 7, 2014 Always use Safezone and you should be fine. It makes the dialogue fit the sceen resolution of the player. However there are some cases where it doesn't work. I should add a little blurb somewhere in the guide about that. Never even though of really bothering with that functionality at all. Share this post Link to post Share on other sites
austin_medic 109 Posted November 25, 2014 Added a few little notes into the guide since I had some spare time to work on it. Share this post Link to post Share on other sites