Update engine, make terminal completion binds work, and make the client automatically open the debug connect screen.

This commit is contained in:
moonheart08 2023-05-11 06:45:22 -05:00
parent 4b84ff2033
commit 1fd897e2a4
3 changed files with 207 additions and 193 deletions

View file

@ -1,4 +1,7 @@
using Robust.Client;
using Robust.Client.Graphics;
using Robust.Client.State;
using Robust.Client.UserInterface.States;
using Robust.Shared.ContentPack;
using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
@ -39,17 +42,19 @@ public sealed class EntryPoint : GameClient
base.PostInit();
// DEVNOTE: The line below will disable lighting, so you can see in-game sprites without the need for lights
//IoCManager.Resolve<ILightManager>().Enabled = false;
IoCManager.Resolve<ILightManager>().Enabled = false;
var stateManager = IoCManager.Resolve<IStateManager>();
// DEVNOTE: It's recommended to look at how this works! It's for debug purposes and you probably want something prettier for the final game.
stateManager.RequestStateChange<DebugBuiltinConnectionScreenState>();
// DEVNOTE: Further setup...
var client = IoCManager.Resolve<IBaseClient>();
//var client = IoCManager.Resolve<IBaseClient>();
// DEVNOTE: You might want a main menu to connect to a server, or start a singleplayer game.
// Be sure to check out StateManager for this! Below you'll find examples to start a game.
// If you want to connect to a server...
// client.ConnectToServer("ip-goes-here", 1212);
// Optionally, singleplayer also works!
// client.StartSinglePlayer();
}

View file

@ -1,188 +1,197 @@
version: 1 # Currently unused.
binds: # These are all the current engine keybinds.
- function: UIClick
- function: UIClick
type: State
key: MouseLeft
canFocus: true
- function: UIRightClick
- function: UIRightClick
type: State
key: MouseRight
canFocus: true
priority: 10
- function: CloseModals
- function: CloseModals
type: State
key: Escape
priority: 10
- function: Use
- function: Use
type: State
key: MouseLeft
canFocus: true
- function: ShowDebugMonitors
- function: ShowDebugMonitors
type: Toggle
key: F3
- function: HideUI
- function: HideUI
type: Toggle
mod1: Shift
key: F4
- function: MoveUp
- function: MoveUp
type: State
key: W
- function: MoveLeft
- function: MoveLeft
type: State
key: A
- function: MoveRight
- function: MoveRight
type: State
key: D
- function: MoveDown
- function: MoveDown
type: State
key: S
- function: Walk
- function: Walk
type: State
key: Shift
- function: EditorLinePlace
- function: EditorLinePlace
type: State
key: MouseLeft
canFocus: true
mod1: Shift
- function: EditorGridPlace
- function: EditorGridPlace
type: State
key: MouseLeft
canFocus: true
mod1: Control
- function: EditorPlaceObject
- function: EditorPlaceObject
type: State
key: MouseLeft
canFocus: true
- function: EditorCancelPlace
- function: EditorCancelPlace
type: State
key: MouseRight
canFocus: true
- function: EditorRotateObject
- function: EditorRotateObject
type: State
key: MouseMiddle
- function: TextCursorSelect
- function: TextCursorSelect
type: State
key: MouseLeft
mod1: Shift
canFocus: true
- function: ShowDebugConsole
- function: ShowDebugConsole
type: State
key: Tilde
- function: TextCursorLeft
- function: TextCursorLeft
type: State
key: Left
canRepeat: true
- function: TextCursorRight
- function: TextCursorRight
type: State
key: Right
canRepeat: true
- function: TextCursorWordLeft
- function: TextCursorWordLeft
type: State
key: Left
mod1: Control
canRepeat: true
allowSubCombs: true
- function: TextCursorWordRight
- function: TextCursorWordRight
type: State
key: Right
mod1: Control
canRepeat: true
allowSubCombs: true
- function: TextCursorBegin
- function: TextCursorBegin
type: State
key: Home
- function: TextCursorEnd
- function: TextCursorEnd
type: State
key: End
canRepeat: true
- function: TextCursorSelectLeft
- function: TextCursorSelectLeft
type: State
key: Left
mod1: Shift
canRepeat: true
allowSubCombs: true
- function: TextCursorSelectRight
- function: TextCursorSelectRight
type: State
key: Right
mod1: Shift
canRepeat: true
allowSubCombs: true
- function: TextCursorSelectWordLeft
- function: TextCursorSelectWordLeft
type: State
key: Left
mod1: Shift
mod2: Control
canRepeat: true
allowSubCombs: true
- function: TextCursorSelectWordRight
- function: TextCursorSelectWordRight
type: State
key: Right
mod1: Shift
mod2: Control
canRepeat: true
allowSubCombs: true
- function: TextCursorSelectBegin
- function: TextCursorSelectBegin
type: State
mod1: Shift
key: Home
allowSubCombs: true
- function: TextCursorSelectEnd
- function: TextCursorSelectEnd
type: State
mod1: Shift
key: End
canRepeat: true
allowSubCombs: true
- function: TextBackspace
- function: TextBackspace
type: State
key: BackSpace
canRepeat: true
- function: TextSubmit
- function: TextSubmit
type: State
key: Return
- function: TextSubmit
- function: TextSubmit
type: State
key: NumpadEnter
- function: TextSelectAll
- function: TextSelectAll
type: State
key: A
mod1: Control
allowSubCombs: true
- function: TextCopy
- function: TextCopy
type: State
key: C
mod1: Control
allowSubCombs: true
- function: TextCut
- function: TextCut
type: State
key: X
mod1: Control
allowSubCombs: true
- function: TextPaste
- function: TextPaste
type: State
key: V
mod1: Control
allowSubCombs: true
- function: TextHistoryPrev
- function: TextHistoryPrev
type: State
key: Up
- function: TextHistoryNext
- function: TextHistoryNext
type: State
key: Down
- function: TextReleaseFocus
- function: TextReleaseFocus
type: State
key: Escape
priority: 15
- function: TextScrollToBottom
- function: TextScrollToBottom
type: State
key: PageDown
- function: TextDelete
- function: TextDelete
type: State
key: Delete
canRepeat: true
- function: GuiTabNavigateNext
- function: GuiTabNavigateNext
type: State
key: Tab
- function: GuiTabNavigatePrev
- function: GuiTabNavigatePrev
type: State
key: Tab
mod1: Shift
- function: TextTabComplete
type: State
key: Tab
- function: TextCompleteNext
type: State
key: Down
- function: TextCompletePrev
type: State
key: Up

@ -1 +1 @@
Subproject commit 105aa13eb1054dc1debef88fc0b24621239100d8
Subproject commit 2aaa41252a601d7794ba2d095bc21f32d73f5a0a