Development > Newbie Coding
UI Adjustments.
mor2:
its called nodes not classes :-\ i assumed it was c++ with "widget" like classes used to make it easier for none programmers like me(thus the little wired sintax at places) but i guess its not, what language is it? its look very much alike.
and so can you access a node from another node callback event, i didnt see any variable declaration but i assume that any node can call any other node? or its something todo with confunc?
so can i do this:
onMouseClick( *nodename.invis = true
Kildor:
there is something-like C syntax, but it is not C. It is just declarative language. Also, confuncs look like mix of xpath and some other language.
bayo:
--- Quote ---...and so can you access a node from another node callback event, i didnt see any variable declaration but i assume that any node can call any other node? or its something todo with confunc?
so can i do this:
onMouseClick( *nodename.invis = true
--- End quote ---
I dont read before this message cause i am tired (but i will do it), anyway:
* We can access any nodes
* There is no variable declaration, but i am working on
* confunc or anyother work the same.
onMouseClick( *node:pathofthenode@invis = true
Please check http://ufoai.ninex.info/wiki/index.php/UFO-Scripts/ui/*.ufo and if the doc is not helpful, feed back or fix is welcome. The first entry of http://ufoai.ninex.info/wiki/index.php/How_to_script_UI show an example of node edition from another node.
mor2:
what about my initial question, will placing a picture or script in base/folder/script.ufo
will make the game load it instead if the script.ufo in base/0folder.pk3 ?
bayo:
file from "homedir /base" overwrite file from "gamedir /base" which overwrite file from "gamedir .pk3".
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version