MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / languageSelected

Method languageSelected

code/main/Cfg.ts:141–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 }
140
141 private languageSelected(): void{
142 // Get the selected language id
143 var id: string = $("#cfgLanguageList").find(":selected").attr("id");
144
145 // Set the new language
146 if(this.languageSelectionMap[id] != null){
147 Saving.saveString("gameLanguage", this.languageSelectionMap[id]);
148 }
149
150 // Update Cfg
151 this.update();
152 this.getGame().updatePlace();
153 }
154
155 private selectRightLanguage(): void{
156 // We iterate over all languages

Callers

nothing calls this directly

Calls 6

updateMethod · 0.95
$Function · 0.85
attrMethod · 0.80
findMethod · 0.80
updatePlaceMethod · 0.80
getGameMethod · 0.45

Tested by

no test coverage detected