This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var curSelectedItem = 0 | |
func _on_ItemList_item_selected( index ): | |
if curSelectedItem == index: print('Double Clicked!') | |
curSelectedItem = index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Camera2D | |
var dragging = false | |
func _ready(): | |
set_process_input(true) | |
func _input(event): | |
if event.type == InputEvent.MOUSE_BUTTON and event.button_index == BUTTON_MIDDLE: | |
dragging = event.is_pressed() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends LineEdit | |
var updating = false | |
const allowed = ["0","1","2","3","4","5","6","7","8","9"] | |
func _ready(): | |
connect("text_changed",self,"otc") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func _on_H_text_changed(): | |
hInput.set_text(returnNumbersOnly(hInput.get_text())) | |
hInput.cursor_set_column(hInput.get_text().length(),true) | |
## This function restricts the input to be only numeric### | |
func returnNumbersOnly(enteredText): | |
var word = '' | |
for letter in enteredText: | |
var resultingText = RegEx.new() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node2D | |
var arguments = [] | |
var output = [] | |
#This script should open your file manager in disk C: on start | |
#Its the equivalent of doing 'start C:\' in the CMD | |
# The start command (when working) can be used to open any file type with the default software that | |
#is assigned to it. In this case it opens a directory (default - file explorer) for sake of example. | |
func _ready(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "stip", | |
"changelog": [ | |
"23/03/2016 - 11:55:51" | |
], | |
"nodes": [ | |
{ | |
"name": "Root", | |
"type": "BONE", | |
"node_path": "Root", |
NewerOlder