MCPcopy Index your code
hub / github.com/RustOtomeLab/RustEng / execute_choose

Method execute_choose

src/executors/executor.rs:276–304  ·  view source on GitHub ↗
(&mut self, choice: SharedString)

Source from the content-addressed store, hash-verified

274 window.set_ex_items(ex_items.into());
275 }
276
277 Ok(())
278 }
279
280 pub(crate) fn execute_bgm_volume(&mut self) -> Result<(), EngineError> {
281 if let Some(window) = self.weak.upgrade() {
282 let volume = window.get_main_volume() / 100.0;
283 let bgm_volume = window.get_bgm_volume() / 100.0;
284 self.media_player
285 .borrow()
286 .change_bgm_volume(volume * bgm_volume);
287 }
288
289 Ok(())
290 }
291
292 pub(crate) fn execute_voice_volume(&mut self) -> Result<(), EngineError> {
293 if let Some(window) = self.weak.upgrade() {
294 let volume = window.get_main_volume() / 100.0;
295 let voice_volume = window.get_voice_volume() / 100.0;
296 self.media_player
297 .borrow()
298 .change_voice_volume(volume * voice_volume);
299 }
300
301 Ok(())
302 }
303
304 pub(crate) fn execute_save_config(&self) -> Result<(), EngineError> {
305 let weak = self.get_weak();
306 save_user_config(weak)
307 }

Callers 1

uiFunction · 0.80

Calls 2

get_choice_labelMethod · 0.80
execute_jumpMethod · 0.80

Tested by

no test coverage detected