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

Method selectTabByType

code/main/StatusBar.ts:87–96  ·  view source on GitHub ↗
(type: StatusBarTabType)

Source from the content-addressed store, hash-verified

85 }
86
87 public selectTabByType(type: StatusBarTabType): void{
88 for(var i = 0; i < this.tabs.length; i++){
89 // If this is the tab we're searching for
90 if(this.tabs[i].getType() == type){
91 // We select it and we break
92 this.selectedTabIndex = i;
93 this.game.updateStatusBar();
94 }
95 }
96 }
97
98 public updateAll(){
99 // We erase

Callers 4

goToFarmMethod · 0.80
launchQuestMethod · 0.80
takeTheBoxMethod · 0.80

Calls 2

updateStatusBarMethod · 0.80
getTypeMethod · 0.45

Tested by

no test coverage detected