Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1816 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_audio.c


Ignore:
Timestamp:
Apr 13, 2004, 11:26:09 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/bensch: added all necessary options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bensch/orxonox_gui_audio.c

    r1813 r1816  
    11#include "orxonox_gui.h"
    22
    3 GtkWidget *orxonox_gui_audio_frame (GtkWidget *box )
     3GtkWidget *orxonox_gui_audio_frame (void)
    44{
    55  GtkWidget *frame;
    66  GtkWidget *button;
     7  GtkWidget *label;
     8  GtkWidget *music_volume_slider;
     9  GtkWidget *effects_volume_slider;
    710
    811  frame = gtk_frame_new ( "Audio-Options:");
     
    1316
    1417        button = gtk_check_button_new_with_label ("Enable Sound");
    15         /*      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_fullscreen);
     18        /*      gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), orxonox_gui_audio_Enable_sound);
    1619         */
    1720        gtk_box_pack_start(GTK_BOX (orxonox_gui_audio_vbox), button, TRUE, TRUE, 0);
     21
     22        label=gtk_label_new ("Music Volume");
     23        gtk_box_pack_start (GTK_BOX(orxonox_gui_audio_vbox), label, TRUE, TRUE, 0);
     24        music_volume_slider = gtk_hscale_new_with_range (0,100,5);
     25        /* gtk_range_set_value ( GTK_RANGE (music_volume_slider), compress.video_filter_crop_slider[0]);*/
     26        gtk_range_set_update_policy ( GTK_RANGE (music_volume_slider), GTK_UPDATE_DISCONTINUOUS);
     27        /* g_signal_connect (GTK_RANGE (music_volume_slider), "valume_changed", G_CALLBACK (video_filter_crop_slider_changed), GINT_TO_POINTER (0));*/
     28        gtk_box_pack_start ( GTK_BOX (orxonox_gui_audio_vbox), music_volume_slider, TRUE, TRUE, 0);
     29
     30        label=gtk_label_new ("Effects Volume");
     31        gtk_box_pack_start (GTK_BOX(orxonox_gui_audio_vbox), label, TRUE, TRUE, 0);
     32        effects_volume_slider = gtk_hscale_new_with_range (0,100,5);
     33        /* gtk_range_set_value ( GTK_RANGE (effects_volume_slider), compress.video_filter_crop_slider[0]);*/
     34        gtk_range_set_update_policy ( GTK_RANGE (effects_volume_slider), GTK_UPDATE_DISCONTINUOUS);
     35        /* g_signal_connect (GTK_RANGE (effects_volume_slider), "valume_changed", G_CALLBACK (video_filter_crop_slider_changed), GINT_TO_POINTER (0));*/
     36        gtk_box_pack_start ( GTK_BOX (orxonox_gui_audio_vbox), effects_volume_slider, TRUE, TRUE, 0);
     37
    1838    }
    1939    gtk_container_add(GTK_CONTAINER(frame), orxonox_gui_audio_vbox);
Note: See TracChangeset for help on using the changeset viewer.