Development > Newbie Coding
UI Adjustments.
bayo:
*path??:hudinv@visiblewhen, here u must use @invis (which it visibility status), not @visiblewhen (which is something like a function)
mor2:
yep, i didnt looked at the data type before, its not even boolean :-[
so its should be something like this:
--- Code: --- onClick {
if (*node:hudinv@invis) { call *node:root.showinventory }
else { call *node:hudinv.hideinventory }
}
--- End code ---
the only problem is how do you check if *node:hudinv exist at all? ==null?
and is there a specific reason why hudinv is done as another window?(resources? readability?) because i would prefer if it was as another panel.
bayo:
*:node:something.another.anotherthing
mean "something" is a window.
A path must start with a window name, or must be relative and start with "this", "parent", or "root"
mor2:
so *hudinv@invis (a window extends abstruct node so why not) or do i have to type *hudinv:root@invis ?
and how do i check if it exist? *hudinv != null ? otherwise i assume that *node:inventory@invis will return a nasty runtime error...
bayo:
All nodes already exists. To know if a window is pushed or not, i dont think u can use invis. And i dont think there is a way to know it ATM. You must remember this status with a cvar.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version