Garry's Mod Wiki

Revision Difference

Global.Derma_Query#528896

<function name="Derma_Query" parent="Global" type="libraryfunc"> <description>Shows a message box in the middle of the screen, with up to 4 buttons they can press.</description> <realm>Client and Menu</realm> <args> <arg name="text" type="string" default="Message Text (Second Parameter)">The message to display.</arg> <arg name="title" type="string" default="Message Title (First Parameter)">The title to give the message box.</arg> <arg name="btn1text" type="string">The text to display on the first button.</arg> <arg name="btn1func" type="function" default="nil">The function to run if the user clicks the first button.</arg> <arg name="btn2text" type="string" default="nil">The text to display on the second button.</arg> <arg name="btn2func" type="function" default="nil">The function to run if the user clicks the second button.</arg> <arg name="btn3text" type="string" default="nil">The text to display on the third button</arg> <arg name="btn3func" type="function" default="nil">The function to run if the user clicks the third button.</arg> <arg name="btn4text" type="string" default="nil">The text to display on the third button</arg> <arg name="btn4text" type="string" default="nil">The text to display on the fourth button</arg> <arg name="btn4func" type="function" default="nil">The function to run if the user clicks the fourth button.</arg> </args> <rets> <ret name="" type="Panel">The Panel object of the created window.</ret> </rets> </function>