Skip to content

Commit a5832c5

Browse files
committed
BK: Object Overlay Checkbox
1 parent 81a24c0 commit a5832c5

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

ScriptHawk.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ local supportedGames = {
386386
["BB359A75941DF74BF7290212C89FBC6E2C5601FE"] = {moduleName="games.bk", friendlyName="Banjo-Kazooie (Europe) (En,Fr,De)", version=1},
387387
["DED6EE166E740AD1BC810FD678A84B48E245AB80"] = {moduleName="games.bk", friendlyName="Banjo-Kazooie (USA) (Rev A)", version=3},
388388
["1FE1632098865F639E22C11B9A81EE8F29C75D7A"] = {moduleName="games.bk", friendlyName="Banjo-Kazooie (USA)", version=4},
389+
["EB3863AE260CC6B248AA3F69DC4F5D712799E09E"] = {moduleName="games.bk", friendlyName="BK Nightbear Before Christmas", version=4},
389390

390391
-- Banjo-Tooie
391392
["5A5172383037D171F121790959962703BE1F373C"] = {moduleName="games.bt", friendlyName="Banjo to Kazooie no Daibouken 2 (Japan)", version=3},

games/bk.lua

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,6 +2296,14 @@ function getExamineData(slotBase) -- TODO: Improve this based on SM64 module imp
22962296
end
22972297

22982298
function Game.drawUI()
2299+
if ScriptHawk.UI:isChecked("Object Overlay") then
2300+
cameraUpdate();
2301+
drawObjectPositions();
2302+
drawConga();
2303+
else
2304+
gui.clearGraphics();
2305+
end
2306+
22992307
if script_mode == "Disabled" then
23002308
return;
23012309
end
@@ -2313,10 +2321,6 @@ function Game.drawUI()
23132321
gui.text(Game.OSDPosition[1], 2 + Game.OSDRowHeight * row, "Index: "..(object_index).."/"..(numSlots), nil, 'bottomright');
23142322
row = row + 1;
23152323

2316-
cameraUpdate();
2317-
drawObjectPositions();
2318-
drawConga();
2319-
23202324
if script_mode == "Examine" and isRDRAM(objectArray) then
23212325
local examine_data = getExamineData(objectArray + getSlotBase(object_index - 1));
23222326
for i = #examine_data, 1, -1 do
@@ -3706,6 +3710,7 @@ function Game.initUI()
37063710
--ScriptHawk.UI:checkbox(5, 5, "dynamic_radius_checkbox", "Dynamic Radius");
37073711
ScriptHawk.UI:checkbox(5, 4, "freeze_clip_velocity", "Freeze Clip Vel.");
37083712
ScriptHawk.UI:checkbox(5, 5, "freeze_zip_velocity", "Freeze Zip Vel.");
3713+
ScriptHawk.UI:checkbox(5, 6, "Object Overlay", "Object Overlay");
37093714

37103715
ScriptHawk.UI:checkbox(10, 2, "beta_pause_menu_checkbox", "Beta Pause");
37113716

0 commit comments

Comments
 (0)