mirror of
https://github.com/space-wizards/RobustToolboxTemplate.git
synced 2026-03-28 07:23:32 -04:00
Update engine, make terminal completion binds work, and make the client automatically open the debug connect screen.
This commit is contained in:
parent
4b84ff2033
commit
1fd897e2a4
3 changed files with 207 additions and 193 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
using Robust.Client;
|
using Robust.Client;
|
||||||
|
using Robust.Client.Graphics;
|
||||||
|
using Robust.Client.State;
|
||||||
|
using Robust.Client.UserInterface.States;
|
||||||
using Robust.Shared.ContentPack;
|
using Robust.Shared.ContentPack;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
using Robust.Shared.Timing;
|
using Robust.Shared.Timing;
|
||||||
|
|
@ -39,17 +42,19 @@ public sealed class EntryPoint : GameClient
|
||||||
base.PostInit();
|
base.PostInit();
|
||||||
|
|
||||||
// DEVNOTE: The line below will disable lighting, so you can see in-game sprites without the need for lights
|
// 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...
|
// 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.
|
// 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.
|
// 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!
|
// Optionally, singleplayer also works!
|
||||||
// client.StartSinglePlayer();
|
// client.StartSinglePlayer();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,188 +1,197 @@
|
||||||
version: 1 # Currently unused.
|
version: 1 # Currently unused.
|
||||||
binds: # These are all the current engine keybinds.
|
binds: # These are all the current engine keybinds.
|
||||||
- function: UIClick
|
- function: UIClick
|
||||||
type: State
|
type: State
|
||||||
key: MouseLeft
|
key: MouseLeft
|
||||||
canFocus: true
|
canFocus: true
|
||||||
- function: UIRightClick
|
- function: UIRightClick
|
||||||
type: State
|
type: State
|
||||||
key: MouseRight
|
key: MouseRight
|
||||||
canFocus: true
|
canFocus: true
|
||||||
priority: 10
|
priority: 10
|
||||||
- function: CloseModals
|
- function: CloseModals
|
||||||
type: State
|
type: State
|
||||||
key: Escape
|
key: Escape
|
||||||
priority: 10
|
priority: 10
|
||||||
- function: Use
|
- function: Use
|
||||||
type: State
|
type: State
|
||||||
key: MouseLeft
|
key: MouseLeft
|
||||||
canFocus: true
|
canFocus: true
|
||||||
- function: ShowDebugMonitors
|
- function: ShowDebugMonitors
|
||||||
type: Toggle
|
type: Toggle
|
||||||
key: F3
|
key: F3
|
||||||
- function: HideUI
|
- function: HideUI
|
||||||
type: Toggle
|
type: Toggle
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
key: F4
|
key: F4
|
||||||
- function: MoveUp
|
- function: MoveUp
|
||||||
type: State
|
type: State
|
||||||
key: W
|
key: W
|
||||||
- function: MoveLeft
|
- function: MoveLeft
|
||||||
type: State
|
type: State
|
||||||
key: A
|
key: A
|
||||||
- function: MoveRight
|
- function: MoveRight
|
||||||
type: State
|
type: State
|
||||||
key: D
|
key: D
|
||||||
- function: MoveDown
|
- function: MoveDown
|
||||||
type: State
|
type: State
|
||||||
key: S
|
key: S
|
||||||
- function: Walk
|
- function: Walk
|
||||||
type: State
|
type: State
|
||||||
key: Shift
|
key: Shift
|
||||||
- function: EditorLinePlace
|
- function: EditorLinePlace
|
||||||
type: State
|
type: State
|
||||||
key: MouseLeft
|
key: MouseLeft
|
||||||
canFocus: true
|
canFocus: true
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
- function: EditorGridPlace
|
- function: EditorGridPlace
|
||||||
type: State
|
type: State
|
||||||
key: MouseLeft
|
key: MouseLeft
|
||||||
canFocus: true
|
canFocus: true
|
||||||
mod1: Control
|
mod1: Control
|
||||||
- function: EditorPlaceObject
|
- function: EditorPlaceObject
|
||||||
type: State
|
type: State
|
||||||
key: MouseLeft
|
key: MouseLeft
|
||||||
canFocus: true
|
canFocus: true
|
||||||
- function: EditorCancelPlace
|
- function: EditorCancelPlace
|
||||||
type: State
|
type: State
|
||||||
key: MouseRight
|
key: MouseRight
|
||||||
canFocus: true
|
canFocus: true
|
||||||
- function: EditorRotateObject
|
- function: EditorRotateObject
|
||||||
type: State
|
type: State
|
||||||
key: MouseMiddle
|
key: MouseMiddle
|
||||||
- function: TextCursorSelect
|
- function: TextCursorSelect
|
||||||
type: State
|
type: State
|
||||||
key: MouseLeft
|
key: MouseLeft
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
canFocus: true
|
canFocus: true
|
||||||
- function: ShowDebugConsole
|
- function: ShowDebugConsole
|
||||||
type: State
|
type: State
|
||||||
key: Tilde
|
key: Tilde
|
||||||
- function: TextCursorLeft
|
- function: TextCursorLeft
|
||||||
type: State
|
type: State
|
||||||
key: Left
|
key: Left
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
- function: TextCursorRight
|
- function: TextCursorRight
|
||||||
type: State
|
type: State
|
||||||
key: Right
|
key: Right
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
- function: TextCursorWordLeft
|
- function: TextCursorWordLeft
|
||||||
type: State
|
type: State
|
||||||
key: Left
|
key: Left
|
||||||
mod1: Control
|
mod1: Control
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorWordRight
|
- function: TextCursorWordRight
|
||||||
type: State
|
type: State
|
||||||
key: Right
|
key: Right
|
||||||
mod1: Control
|
mod1: Control
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorBegin
|
- function: TextCursorBegin
|
||||||
type: State
|
type: State
|
||||||
key: Home
|
key: Home
|
||||||
- function: TextCursorEnd
|
- function: TextCursorEnd
|
||||||
type: State
|
type: State
|
||||||
key: End
|
key: End
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
- function: TextCursorSelectLeft
|
- function: TextCursorSelectLeft
|
||||||
type: State
|
type: State
|
||||||
key: Left
|
key: Left
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorSelectRight
|
- function: TextCursorSelectRight
|
||||||
type: State
|
type: State
|
||||||
key: Right
|
key: Right
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorSelectWordLeft
|
- function: TextCursorSelectWordLeft
|
||||||
type: State
|
type: State
|
||||||
key: Left
|
key: Left
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
mod2: Control
|
mod2: Control
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorSelectWordRight
|
- function: TextCursorSelectWordRight
|
||||||
type: State
|
type: State
|
||||||
key: Right
|
key: Right
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
mod2: Control
|
mod2: Control
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorSelectBegin
|
- function: TextCursorSelectBegin
|
||||||
type: State
|
type: State
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
key: Home
|
key: Home
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCursorSelectEnd
|
- function: TextCursorSelectEnd
|
||||||
type: State
|
type: State
|
||||||
mod1: Shift
|
mod1: Shift
|
||||||
key: End
|
key: End
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextBackspace
|
- function: TextBackspace
|
||||||
type: State
|
type: State
|
||||||
key: BackSpace
|
key: BackSpace
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
- function: TextSubmit
|
- function: TextSubmit
|
||||||
type: State
|
type: State
|
||||||
key: Return
|
key: Return
|
||||||
- function: TextSubmit
|
- function: TextSubmit
|
||||||
type: State
|
type: State
|
||||||
key: NumpadEnter
|
key: NumpadEnter
|
||||||
- function: TextSelectAll
|
- function: TextSelectAll
|
||||||
type: State
|
type: State
|
||||||
key: A
|
key: A
|
||||||
mod1: Control
|
mod1: Control
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCopy
|
- function: TextCopy
|
||||||
type: State
|
type: State
|
||||||
key: C
|
key: C
|
||||||
mod1: Control
|
mod1: Control
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextCut
|
- function: TextCut
|
||||||
type: State
|
type: State
|
||||||
key: X
|
key: X
|
||||||
mod1: Control
|
mod1: Control
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextPaste
|
- function: TextPaste
|
||||||
type: State
|
type: State
|
||||||
key: V
|
key: V
|
||||||
mod1: Control
|
mod1: Control
|
||||||
allowSubCombs: true
|
allowSubCombs: true
|
||||||
- function: TextHistoryPrev
|
- function: TextHistoryPrev
|
||||||
type: State
|
type: State
|
||||||
key: Up
|
key: Up
|
||||||
- function: TextHistoryNext
|
- function: TextHistoryNext
|
||||||
type: State
|
type: State
|
||||||
key: Down
|
key: Down
|
||||||
- function: TextReleaseFocus
|
- function: TextReleaseFocus
|
||||||
type: State
|
type: State
|
||||||
key: Escape
|
key: Escape
|
||||||
priority: 15
|
priority: 15
|
||||||
- function: TextScrollToBottom
|
- function: TextScrollToBottom
|
||||||
type: State
|
type: State
|
||||||
key: PageDown
|
key: PageDown
|
||||||
- function: TextDelete
|
- function: TextDelete
|
||||||
type: State
|
type: State
|
||||||
key: Delete
|
key: Delete
|
||||||
canRepeat: true
|
canRepeat: true
|
||||||
- function: GuiTabNavigateNext
|
- function: GuiTabNavigateNext
|
||||||
type: State
|
type: State
|
||||||
key: Tab
|
key: Tab
|
||||||
- function: GuiTabNavigatePrev
|
- function: GuiTabNavigatePrev
|
||||||
type: State
|
type: State
|
||||||
key: Tab
|
key: Tab
|
||||||
mod1: Shift
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue