~stellarium/stellarium/trunk

« back to all changes in this revision

Viewing changes to src/stel_core.cpp

  • Committer: digitalises
  • Date: 2005-11-30 04:25:31 UTC
  • Revision ID: vcs-imports@canonical.com-20051130042531-j1za2ndc76g7lin9
script playback features and bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
637
637
        BaseFontName        = conf.get_str("gui", "base_font_name", "spacefont.txt");
638
638
        FlagShowScriptBar       = conf.get_boolean("gui","flag_show_script_bar",0);
639
639
        MouseCursorTimeout  = conf.get_double("gui","mouse_cursor_timeout",0);
 
640
        scripts->set_allow_ui( conf.get_boolean("gui","flag_script_allow_ui",0) );
640
641
 
641
642
        // Colors
642
643
        AzimuthalColor          = str_to_vec3f(conf.get_str("color:azimuthal_color").c_str());
807
808
        conf.set_str    ("gui:base_font_name", BaseFontName);
808
809
        conf.set_boolean("gui:flag_show_script_bar",FlagShowScriptBar);
809
810
        conf.set_double("gui:mouse_cursor_timeout",MouseCursorTimeout);
810
 
        
 
811
        conf.set_boolean("gui:flag_script_allow_ui",scripts->get_allow_ui());
 
812
 
811
813
        // Colors
812
814
        conf.set_str    ("color:azimuthal_color", vec3f_to_str(AzimuthalColor));
813
815
        conf.set_str    ("color:equatorial_color", vec3f_to_str(EquatorialColor));
964
966
 
965
967
                  // If selected a script in tui, run that now
966
968
                  if(SelectedScript!="") 
967
 
                          commander->execute_command("script action play filename "
968
 
                                                                                 + SelectedScriptDirectory + SelectedScript 
 
969
                          commander->execute_command("script action play filename " +  SelectedScript  
969
970
                                                                                 + " path " + SelectedScriptDirectory);
970
971
                  
971
972
                  // clear out now