Note: This feature request has been merged with Open variable setup from any action or condition - #8 by ZeroX4 since they discuss the same friction. To contribute your needs feel free to join that conversation.
-Luni
If you gonna get anything out of this post i want you to get this
I am biased against declaring ALL variables
Not biased against declaring exist
But biased for new system which takes away option of not declaring them
I do not want to get rid of declaring and i do not want to argue over which is better cause i know what is better for me and i know for others something else can be better
That said my proposal for possible best out of two worlds
This is just a concept i am NOT UI designer i just have idea which for sure can be improved and make this window be more user friendly and streamlined
What if variable window would look like this? (Again just concept if you have better idea i am all eyes and ears)
Look we can choose on top it will be scene var or global var
Below we choose var name and engine detects it is not declared
Notifying us about it with yellow exclamation mark inside triangle
(Red errors should be reserved for things that will not work while yellow should indicate something is wrong could be fixed/adjusted but will still work)
Next we can choose in middle will it be number boolean string array or structure type of var using radio button (radio button is term well from radios if you press one button ALL other buttons gets "un-pressed ")
And depending on that modification sign and value we can input would change
A little different for boolean since it would be only true/false same for toggle
And below that we have option do we want to declare this var since it is not declared or not
And that would allow us to either sit with not declared variables or declare them in the same window we care to start using them
We do not need to go to different window to set something up
THIS is our control panel we do all we want from here
We set everything here there should be no need to take us to different window
We just switch one option there to declare it as simple as that
Either we rot in hell of undeclared var and need to repeat setup process each time
Or we simply flip YES next to question do we want to declare this variable
This way we still have a choice between not declaring variable and declaring them
Instead of only having option to declaring them
At the same time process of declaring variables happens in same exact window/moment you care to start using some variable
That’s why i say it is best from two worlds (or more like old and new system)
NO ONE is harmed we all get something that will improve our workflow
There is no need to take anything away to prove one is better over another
We all will be able to decide which is better ourselves or at least stick to one that suits better our workflow
Not to mention all options you should have at your disposal you have in ONE SINGLE WINDOW
I would say radio buttons for variable type are literally in your face so i could hardly see user how to change variable type or select one
Where if variable is actually declared
All options in this window should be set automatically
For example if we type in variable name idk MyBoolVar which is declared boolean global variable
Then all settings should set themselves to it automatically
But then what if we want to change type of that var?
Should we be able to do it from here or go to variable window list?
That is something for debate yet i know i would wish to be able to adjust it from this window
And lastly i would say that this yellow exclamation mark inside yellow triangle in events sheet is enough of notification that this var is not declared
There is no need for red text and wave underscore or however its called