Changeset 8003 in orxonox.OLD for branches/gui/src/story_entities
- Timestamp:
- May 31, 2006, 12:21:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/story_entities/simple_game_menu.cc
r8002 r8003 85 85 void SimpleGameMenu::enterGui() 86 86 { 87 /// 88 OrxGui::GLGuiButton* dnpb = new OrxGui::GLGuiCheckButton("Push the button"); 89 dnpb->show(); 90 dnpb->setAbsCoor2D(350, 50); 91 92 93 OrxGui::GLGuiPushButton* rdnpb = new OrxGui::GLGuiPushButton("Quit ORXONOX!!"); 94 rdnpb->show(); 95 rdnpb->setAbsCoor2D(200, 180); 96 rdnpb->connect(SIGNAL(rdnpb, released), this, SLOT(SimpleGameMenu, quitMenu)); 97 98 OrxGui::GLGuiInputLine* input = new OrxGui::GLGuiInputLine(); 99 input->setText("input some text here"); 100 input->connect(SIGNAL(input, textChanged), this, SLOT(SimpleGameMenu, TEST)); 101 input->show(); 102 input->setAbsCoor2D(200, 230); 103 104 OrxGui::GLGuiSlider* slider = new OrxGui::GLGuiSlider(); 105 slider->connect(SIGNAL(slider, valueChanged), this, SLOT(SimpleGameMenu, TEST)); 106 slider->connect(SIGNAL(slider, valueChanged), slider, SLOT(OrxGui::GLGuiWidget, setBackgroundColor)); 107 slider->setRange(0, 1); 108 slider->setValue(slider->min()); 109 slider->show(); 110 slider->setAbsCoor2D(200, 270); 111 87 88 OrxGui::GLGuiBox* box = new OrxGui::GLGuiBox(); 89 { 90 /// 91 OrxGui::GLGuiButton* dnpb = new OrxGui::GLGuiCheckButton("Push the button"); 92 dnpb->show(); 93 dnpb->setAbsCoor2D(350, 50); 94 95 box->pack(dnpb); 96 97 OrxGui::GLGuiPushButton* rdnpb = new OrxGui::GLGuiPushButton("Quit ORXONOX!!"); 98 rdnpb->show(); 99 rdnpb->setAbsCoor2D(200, 180); 100 rdnpb->connect(SIGNAL(rdnpb, released), this, SLOT(SimpleGameMenu, quitMenu)); 101 102 box->pack(rdnpb); 103 104 OrxGui::GLGuiInputLine* input = new OrxGui::GLGuiInputLine(); 105 input->setText("input some text here"); 106 input->connect(SIGNAL(input, textChanged), this, SLOT(SimpleGameMenu, TEST)); 107 input->show(); 108 input->setAbsCoor2D(200, 230); 109 box->pack(input); 110 111 OrxGui::GLGuiSlider* slider = new OrxGui::GLGuiSlider(); 112 slider->connect(SIGNAL(slider, valueChanged), this, SLOT(SimpleGameMenu, TEST)); 113 slider->connect(SIGNAL(slider, valueChanged), dnpb, SLOT(OrxGui::GLGuiWidget, setBackgroundColor)); 114 slider->setRange(0, 1); 115 slider->setValue(slider->min()); 116 slider->show(); 117 slider->setAbsCoor2D(200, 270); 118 box->pack(slider); 119 } 120 box->setAbsCoor2D(50, 200); 112 121 ///// 113 122 } … … 133 142 system ((std::string("firefox ") + URL).c_str()); 134 143 #elif defined __OSX__ 135 136 137 138 144 CFURLRef url_handle = CFURLCreateWithBytes (NULL, (UInt8 *)URL.c_str(), URL.size(), 145 kCFStringEncodingASCII, NULL); 146 LSOpenCFURLRef (url_handle, NULL); 147 CFRelease (url_handle); 139 148 #elif defined __WIN32__ 140 141 142 149 ShellExecute(GetActiveWindow(), 150 "open", URL.c_str(), NULL, NULL, SW_SHOWNORMAL); 151 } 143 152 #endif 144 153 PRINTF(3)("loaded external webpage %s\n", URL.c_str());
Note: See TracChangeset
for help on using the changeset viewer.