mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 15:13:16 +00:00
add '/' to spectate self
This commit is contained in:
parent
b0bc3d199b
commit
d0b21de34c
3 changed files with 14 additions and 2 deletions
|
@ -135,7 +135,7 @@ Shift-hue = Shift hue
|
||||||
## Connected
|
## Connected
|
||||||
|
|
||||||
Show-debug-info = Show debug/connection info
|
Show-debug-info = Show debug/connection info
|
||||||
hint_spectate = Use [',' or d-pad-left] and ['.' or d-pad-right] keys to spectate over other players.
|
hint_spectate = Use [',' or d-pad-left] and ['.' or d-pad-right] keys to spectate over other players. '/' for self
|
||||||
hint_ping = [Middle mouse button or right thumb stick] spawns a ping
|
hint_ping = [Middle mouse button or right thumb stick] spawns a ping
|
||||||
Show-debug-plot = Show debug plot
|
Show-debug-plot = Show debug plot
|
||||||
Record-everything-sent-to-noita = Record EVERYTHING sent to noita.
|
Record-everything-sent-to-noita = Record EVERYTHING sent to noita.
|
||||||
|
|
|
@ -334,6 +334,9 @@ function spectate.on_world_update()
|
||||||
|
|
||||||
has_switched = true
|
has_switched = true
|
||||||
re_cam = true
|
re_cam = true
|
||||||
|
elseif InputIsKeyJustDown(tonumber(ModSettingGet("quant.ew.rebind_sspectate"))) then
|
||||||
|
camera_player_id, camera_player = get_me()
|
||||||
|
re_cam = true
|
||||||
end
|
end
|
||||||
set_camera_pos()
|
set_camera_pos()
|
||||||
ctx.spectating_over_peer_id = camera_player_id
|
ctx.spectating_over_peer_id = camera_player_id
|
||||||
|
@ -346,7 +349,7 @@ function spectate.on_world_update()
|
||||||
if GameGetIsGamepadConnected() then
|
if GameGetIsGamepadConnected() then
|
||||||
text = "Use d-pad-left and d-pad-right keys to spectate over other players."
|
text = "Use d-pad-left and d-pad-right keys to spectate over other players."
|
||||||
else
|
else
|
||||||
text = "Use ',' and '.' keys to spectate over other players."
|
text = "Use ',' and '.' keys to spectate over other players. '/' for self"
|
||||||
end
|
end
|
||||||
local tw, th = GuiGetTextDimensions(gui, text)
|
local tw, th = GuiGetTextDimensions(gui, text)
|
||||||
GuiText(gui, w-2-tw, h-1-th, text)
|
GuiText(gui, w-2-tw, h-1-th, text)
|
||||||
|
|
|
@ -126,6 +126,15 @@ local function build_settings()
|
||||||
is_waiting_for_input = false,
|
is_waiting_for_input = false,
|
||||||
scope = MOD_SETTING_SCOPE_RUNTIME,
|
scope = MOD_SETTING_SCOPE_RUNTIME,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id = "rebind_sspectate",
|
||||||
|
ui_name = "spectate self Button",
|
||||||
|
ui_description = "self.",
|
||||||
|
value_default = "56",
|
||||||
|
ui_fn = ui_get_input,
|
||||||
|
is_waiting_for_input = false,
|
||||||
|
scope = MOD_SETTING_SCOPE_RUNTIME,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue