Skip to content

Commit

Permalink
Added console-csharp folder. Modified plugin.gd
Browse files Browse the repository at this point in the history
  • Loading branch information
RcubDev committed Oct 26, 2021
1 parent d3df374 commit 06a06ec
Show file tree
Hide file tree
Showing 109 changed files with 15,296 additions and 34 deletions.
10 changes: 10 additions & 0 deletions addons/quentincaffeino/console-csharp/.gutconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dirs": [
"res://addons/quentincaffeino/console/tests/"
],
"include_subdirs": true,
"ignore_pause": true,
"log_level": 2,
"should_exit": true,
"should_maximize": true
}
49 changes: 49 additions & 0 deletions addons/quentincaffeino/console-csharp/DefaultActions.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@

# @const String
const CONSOLE_TOGGLE = "quentincaffeino_console_toggle"
# @const Dictionary
const console_toggle_props = {
"name": CONSOLE_TOGGLE,
"events": [
{
"command": true,
"scancode": KEY_QUOTELEFT,
}
]
}

# @const String
const CONSOLE_AUTOCOMPLETE = "quentincaffeino_console_autocomplete"
# @const Dictionary
const console_autocomplete_props = {
"name": CONSOLE_AUTOCOMPLETE,
"events": [
{
"scancode": KEY_TAB,
}
]
}

# @const String
const CONSOLE_HISTORY_UP = "quentincaffeino_console_history_up"
# @const Dictionary
const console_history_up_props = {
"name": CONSOLE_HISTORY_UP,
"events": [
{
"scancode": KEY_UP,
}
]
}

# @const String
const CONSOLE_HISTORY_DOWN = "quentincaffeino_console_history_down"
# @const Dictionary
const console_history_down_props = {
"name": CONSOLE_HISTORY_DOWN,
"events": [
{
"scancode": KEY_DOWN,
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.

This Font Software is licensed under the SIL Open Font License, Version 1.1.

This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Source Code Pro

[Source Code Pro](http://adobe-fonts.github.io/source-code-pro/)
is a set of OpenType fonts that have been designed to work well
in user interface (UI) environments.

## Open source files

The fonts' source files and build instructions are available in the [repository's `master` branch](https://github.com/adobe-fonts/source-code-pro/tree/master).

## Getting involved

[Open an issue](https://github.com/adobe-fonts/source-code-pro/issues) or send a suggestion to Source Code's designer [Paul D. Hunt](mailto:[email protected]?subject=[GitHub]%20Source%20Code%20Pro), for consideration.

## Releases

* [Latest release](../../releases/latest)
* [All releases](../../releases)
11,156 changes: 11,156 additions & 0 deletions addons/quentincaffeino/console-csharp/assets/themes/Console.tres

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions addons/quentincaffeino/console-csharp/docs/Type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

# Type


## Engine types:

[TYPE_BOOL](generated/BoolType.md), [TYPE_INT](generated/IntType.md), [TYPE_REAL](generated/FloaTypet.md), [TYPE_STRING](generated/StringType.md), [TYPE_VECTOR2](generated/Vector2Type.md), [TYPE_VECTOR3](generated/Vector3Type.md)


## Extra types:

[FilterType](generated/FilterType.md), [IntRangeType](generated/IntRangeType.md), [FloatRangeType](generated/FloatRangeType.md)

### Extra type usage example:

```gdscript
var health = 5
func _ready():
Console.add_command('set_health', self, 'health')\
.set_description('Set health')\
.add_argument('health', Console.FloatRangeType.new(0, 5, 0.5))\
.register()
```


## Creating custom types:

__Warning: Types API is unstable and may (and probably will) change.__

To add custom type extend `res://addons/quentincaffeino/console/src/Type/BaseType.gd` ([BaseType](generated/BaseType.md))
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. -->

# AbstractCallback

**Extends:** [Reference](../Reference)

## Description

## Enumerations

### errors

```gdscript
const errors: Dictionary = {"qc.callback.call.ensure_failed":"QC/Callback: call: Failed to call a callback, ensuring failed. (%s, %s)","qc.callback.call.unknown_type":"QC/Callback: call: Unable to call unknown type. (%s, %s)","qc.callback.canCreate.first_arg":"QC/Callback: canCreate: First argument must be target object. Provided: %s.","qc.callback.canCreate.second_arg":"QC/Callback: canCreate: Second argument must be variable or method name (string). Provided: %s.","qc.callback.ensure.target_destroyed":"QC/Callback: ensure: Failed to call a callback, target was previously destroyed. (%s)","qc.callback.target_missing_mv":"QC/Callback: ensure: Target is missing method/variable. (%s, %s)"}
```

## Method Descriptions

### \_init

```gdscript
func _init(target: Reference, type)
```

### getTarget

```gdscript
func getTarget()
```

Reference

### getType

```gdscript
func getType()
```

Utils.Type

### ensure

```gdscript
func ensure()
```

Ensure callback target exists
boolean

### bind

```gdscript
func bind(argv: Variant[])
```

void

### call

```gdscript
func call(argv: Variant[])
```

Variant
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. -->

# ActionService

**Extends:** [Reference](../Reference)

## Description

## Method Descriptions

### \_init

```gdscript
func _init(input_map: InputMap, actions: Dictionary)
```

### get\_input\_map

```gdscript
func get_input_map(): InputMap
```

### register\_action

```gdscript
func register_action(original_action_name: String, action: Dictionary): void
```

### get\_real\_action\_name

```gdscript
func get_real_action_name(action: String|Dictionary): Result<String
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. -->

# AnyType

**Extends:** [BaseType](../BaseType) < [Reference](../Reference)

## Description

60 changes: 60 additions & 0 deletions addons/quentincaffeino/console-csharp/docs/generated/Argument.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. -->

# Argument

**Extends:** [Reference](../Reference)

## Description

## Enumerations

### ASSIGNMENT

```gdscript
const ASSIGNMENT: Dictionary = {"CANCELED":2,"FAILED":1,"OK":0}
```

## Method Descriptions

### \_init

```gdscript
func _init(name: String, type: BaseType, description: String|null)
```

### get\_name

```gdscript
func get_name(): String
```

### get\_type

```gdscript
func get_type(): BaseType
```

### get\_value

```gdscript
func get_value(): String
```

### set\_value

```gdscript
func set_value(value: Variant): int
```

### get\_normalized\_value

```gdscript
func get_normalized_value(): Variant
```

### describe

```gdscript
func describe(): String
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- Auto-generated from JSON by GDScript docs maker. Do not edit this document directly. -->

# ArgumentFactory

**Extends:** [Reference](../Reference)

## Description

## Method Descriptions

### create <small>(static)</small>

```gdscript
func create(name: String, type: int|BaseType, description: String|null): Result
```

Loading

0 comments on commit 06a06ec

Please sign in to comment.