You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These functions are the same I referenced in #102 (Localisation commands).
Even just proper autocomplete/parsing/checking here would be massively helpful.
If you are interested I can provide example files and more edge cases.
Also I would create necessary configs for Victoria 3 if it is configurable.
Regards,
Chris
The text was updated successfully, but these errors were encountered:
Where things break is with Templates, Types and Block/Blockoverride:
These special blocks can be treat as variants of parameter condition blocks, but only allowed in gui files, and, should modify the lexer and the parser (otherwise simply parse these keywords as strings). It's still hard to me to implement, since I'm not very familiar about how the lexer and the parser works in IDEA.
Add support for localisation command containing argument-style links, like Var(XXX), should be simple.
But for this, in fact, it should be a snippet of C++/C# code, or some variation, existing cwt configs are helpless, since there are no scope transition during method / property invocation, no information of available methods and properties.
If I had the ability to implement a parser and a lexer for a such complex language (It's pretty complex, not only simple txt files!),
in my opinion, It's better to put in my effort and time into support for another more popular game language,
which is not supported By JetBrains officially, or by third party plugins.
Hi,
I would love proper support for GUI files.
But I can understand if you are not interested.
As far as I know the GUI format is the same between Vic3 and CK3.
I haven't looked at other games.
GUI files are close to normal script files but different in a few ways.
Generally UI components could be defined by CWT:
https://ck3.paradoxwikis.com/Interface#UI_Components
Where things break is with Templates, Types and Block/Blockoverride:
https://ck3.paradoxwikis.com/Interface#Templates
One of the most painful things is creating functions.
Almost every field can be set using a complex function expression:
These can get quite long and complex:
These functions are the same I referenced in #102 (Localisation commands).
Even just proper autocomplete/parsing/checking here would be massively helpful.
If you are interested I can provide example files and more edge cases.
Also I would create necessary configs for Victoria 3 if it is configurable.
Regards,
Chris
The text was updated successfully, but these errors were encountered: