Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] Another multiline error #178

Open
kaiser-chris opened this issue Mar 8, 2025 · 0 comments
Open

[GUI] Another multiline error #178

kaiser-chris opened this issue Mar 8, 2025 · 0 comments

Comments

@kaiser-chris
Copy link
Contributor

Hi,

I have found another error that appears if you introduce line breaks in GUI functions.
Also the same thing is reported twice.

Code

                onclick = "[GetScriptedGui('sgui_gate_window_execute_research').Execute(GuiScope
                                .SetRoot(Country.MakeScope)
                                .AddScope('technology', Technology.MakeScope)
                                .AddScope('cost', MakeScopeValue(Technology.GetCost(Country.Self)))
                                .End
                            )]"

Errors

warning(datafunctions): Unexpected character `.`, expected `)`
   --> [MOD] gui\gate_technology_panel.gui
466 |                 onclick = "[GetScriptedGui('sgui_gate_window_execute_research').Execute(GuiScope
    |                                                                                                 ^ 

warning(datafunctions): Unexpected character `.`, expected `]`
   --> [MOD] gui\gate_technology_panel.gui
466 |                 onclick = "[GetScriptedGui('sgui_gate_window_execute_research').Execute(GuiScope
    |                                                                                                 ^ 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant