Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
DCS 0.65 KB | None | 0 0
  1. local menu_Window = guiCreateWindow(0.3,0.3,0.5,0.2,"Set Volume",TRUE)
  2. local button = guiCreateButton( 0.36, 0.75, 0.2, 0.5, "ok", TRUE,menu_Window )
  3. local scroll = guiCreateScrollBar ( 0.2, 0.4, 0.7, 0.15, TRUE, TRUE, menu_Window)
  4. guiCreateLabel ( 0.05, 0.4, 0.2, 0.5, "Radio Vol.", TRUE, menu_Window)
  5. guiScrollBarSetScrollPosition(scroll,100)
  6.  
  7. FUNCTION showMenu ()
  8.     guiSetVisible ( menu_Window, TRUE )
  9.     showCursor ( TRUE )
  10.     addEventHandler ( "onClientGUIClick", button, click,FALSE )
  11.     setSoundVolume(sound,0.01*guiScrollBarGetScrollPosition(scroll))
  12. end
  13.  
  14. FUNCTION click()
  15.         guiSetVisible ( menu_Window, FALSE )
  16.         showCursor ( FALSE )
  17. end
  18.  
  19. showMenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement