def draw(): # Define the draw function (which draws your GUI). global EVENT_Button global EVENT_Type global EVENT_shtoguntype global EVENT_String global EVENT_Bitmap global EVENT_WVTU_1 global Object_Button global Object_Type global Object_shtoguntype global Object_String global Object_Bitmap global Object_WVTU_1 BGL.glClearColor(0.244564, 0.244406, 0.244406, 0.0) BGL.glClear(GL_COLOR_BUFFER_BIT) BGL.glColor3f(1.000000, 1.000000, 1.000000) Object_Button = Draw.Button("Connect to Shotgun", EVENT_Button, 20, 8, 200, 20, "") BGL.glRasterPos2i(100, 108) Object_Type = Draw.Text("Type") Object_shtoguntype = Draw.Menu("Asset", EVENT_shtoguntype, 20, 100, 60, 20, Object_shtoguntype.val, "Type of Shotgun entry") Object_String = Draw.String("id : ", EVENT_String, 20, 60, 60, 20,Object_String.val, 399, "ID # for the Shotgun entry") BGL.glRasterPos2i(24, 210) BGL.glDrawPixels(0, 0, GL_RGB, GL_UNSIGNED_BYTE, Object_Bitmap) BGL.glRasterPos2i(24, 152) Object_WVTU_1 = Draw.Text("WVTU "+VERSION+"")