Skip to content

Instantly share code, notes, and snippets.

@MattUV
MattUV / main.gd
Last active November 24, 2021 14:26
get_controleurs_disponibles
enum {J1_M, J1_A, J2_M, J2_A}
enum {MATIN, APREM}
enum {PVL, SOL, ALOC, LOC, ADEP, DEP, ITM, INI, COO, SQR, CS, CDT}
enum {H6, H7, H8, H9, H10, H11, H12, H13, H14, H15, H16, H17, H18}
const VIGIE = [PVL, SOL, ALOC, LOC]
const IFR = [ADEP, DEP, ITM, INI, COO, SQR, CS]
func get_case_as_dict() -> Dictionary:
@MattUV
MattUV / expandable_text_edit.gd
Created February 8, 2019 13:13
Code to expand vertically a TextEdit node to fit the actual number of lines
extends TextEdit
export var expand = true
export var min_line = 3
export var max_line = 6
var scroll_bar
var font = get_font("")
var line_spacing