Stil wählen, merken und fotografieren
F2 wechselt im Spiel den Stil und meldet ihn, --style=NAME wählt ihn beim Start, und das Spiel merkt sich die Wahl in den Einstellungen. Das Bildschirmfoto-Werkzeug nimmt Bilder in einem bestimmten Stil und von der Vitrine auf und zeigt eine zweite Figur mit Namen. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,8 @@ extends RefCounted
|
||||
## --host opens the world for guests at once
|
||||
## --port=PORT the port an open world listens on
|
||||
## --join=ADDRESS joins a host at once; ADDRESS may end in ":PORT"
|
||||
## --style=NAME draws the playing field in the style NAME: warm,
|
||||
## pastel or glow
|
||||
|
||||
## Longest profile name.
|
||||
const MAX_PROFILE_LENGTH := 32
|
||||
@@ -21,6 +23,8 @@ var player_name := ""
|
||||
var start := ""
|
||||
var port := NetLink.DEFAULT_PORT
|
||||
var address := ""
|
||||
## The style to draw in, or empty for the one in the settings.
|
||||
var style := &""
|
||||
## Arguments that were not understood and are ignored.
|
||||
var ignored := PackedStringArray()
|
||||
|
||||
@@ -50,6 +54,11 @@ static func parse(arguments: PackedStringArray) -> LaunchOptions:
|
||||
"--join":
|
||||
options.start = "join"
|
||||
options.address = value
|
||||
"--style":
|
||||
if Art.style_keys().has(StringName(value)):
|
||||
options.style = StringName(value)
|
||||
else:
|
||||
options.ignored.append(argument)
|
||||
_:
|
||||
options.ignored.append(argument)
|
||||
return options
|
||||
|
||||
Reference in New Issue
Block a user