Start work on Garden Tooltip

This commit is contained in:
Daniel van Noord
2021-01-23 22:55:39 +01:00
parent 29ba1c66cf
commit c64f42bcfa
2 changed files with 32 additions and 0 deletions

View File

@@ -4265,6 +4265,7 @@ CM.Main.ReplaceTooltips = function() {
CM.Main.ReplaceTooltipBuild();
CM.Main.ReplaceTooltipGrimoire();
CM.Main.ReplaceTooltipLump();
CM.Main.ReplaceTooltipGarden();
}
/********
@@ -4316,6 +4317,21 @@ CM.Main.ReplaceTooltipLump = function() {
}
};
/**
* This function replaces the original .onmouseover functions of sugar lumps so that it calls CM.Disp.Tooltip()
* CM.Disp.Tooltip() sets the tooltip type to '?'
* It is called by CM.Main.ReplaceTooltips()
*/
CM.Main.ReplaceTooltipGarden = function() {
if (Game.Objects['Farm'].minigameLoaded) {
CM.Main.TooltipGardenBackup = [];
for (var i in Game.Objects['Farm'].minigame.plot) {
for (var j in i) {
//console.log(j, i)
}
}
}
};
/********
* Section: Functions related to checking for changes in Minigames/GC's/Ticker

View File

@@ -270,6 +270,7 @@ CM.Main.ReplaceTooltips = function() {
CM.Main.ReplaceTooltipBuild();
CM.Main.ReplaceTooltipGrimoire();
CM.Main.ReplaceTooltipLump();
CM.Main.ReplaceTooltipGarden();
}
/********
@@ -321,6 +322,21 @@ CM.Main.ReplaceTooltipLump = function() {
}
};
/**
* This function replaces the original .onmouseover functions of sugar lumps so that it calls CM.Disp.Tooltip()
* CM.Disp.Tooltip() sets the tooltip type to '?'
* It is called by CM.Main.ReplaceTooltips()
*/
CM.Main.ReplaceTooltipGarden = function() {
if (Game.Objects['Farm'].minigameLoaded) {
CM.Main.TooltipGardenBackup = [];
for (var i in Game.Objects['Farm'].minigame.plot) {
for (var j in i) {
//console.log(j, i)
}
}
}
};
/********
* Section: Functions related to checking for changes in Minigames/GC's/Ticker