mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Add GDScript export hint for real numbers with easing export(float, EASE)
This commit is contained in:
parent
57b2c4b0c6
commit
eb9621624f
1 changed files with 10 additions and 0 deletions
|
|
@ -2421,6 +2421,16 @@ void GDParser::_parse_class(ClassNode *p_class) {
|
||||||
}; //fallthrough to use the same
|
}; //fallthrough to use the same
|
||||||
case Variant::REAL: {
|
case Variant::REAL: {
|
||||||
|
|
||||||
|
if (tokenizer->get_token()==GDTokenizer::TK_IDENTIFIER && tokenizer->get_token_identifier()=="EASE") {
|
||||||
|
current_export.hint=PROPERTY_HINT_EXP_EASING;
|
||||||
|
tokenizer->advance();
|
||||||
|
if (tokenizer->get_token()!=GDTokenizer::TK_PARENTHESIS_CLOSE) {
|
||||||
|
_set_error("Expected ')' in hint.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
float sign=1.0;
|
float sign=1.0;
|
||||||
|
|
||||||
if (tokenizer->get_token()==GDTokenizer::TK_OP_SUB) {
|
if (tokenizer->get_token()==GDTokenizer::TK_OP_SUB) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue