Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-05-22 02:51:58



Reply to topic  [ 11 posts ]  Go to page Previous  1, 2
Inventory subfolders 
Author Message

Joined: 2009-03-17 18:42:51
Posts: 5989
Reply with quote
g0rd0ngrfr33mailgr wrote:
I'm trying the new way, but I can't seem to find how to name the specific inventory floater. For example
Code:
OpenLuaFloater('inventory|objects', '', 'center', true, 'inventory1=|Objects');
SetLuaFloaterValue('inventory|objects','inventory1','Objects')

opens "Objects" in its own floater beautifully,
The SetLuaFloaterValue() is useless, and improperly sets the root directory to a non-root folder (missing '|' prefix); it just fails silently.

g0rd0ngrfr33mailgr wrote:
but the new floater is called "Lua: Inventory". Whereas with the old way (where I had a copy of the lua_inventory.xml named "lua_inventoryAC.xml"),
Code:
OpenLuaFloater('inventoryAC');SetLuaFloaterValue('inventoryAC','inventory1','Accessories')"

the new floater was called "Lua: Accessories". What am I doing wrong?
The title of the floater is not changed when you change the value for one of its elements (here the inventory list root folder). Your "lua_inventoryAC.xml" floater definition is simply using a title="Accessories" specifier in the <floater ...> XML tag.

There is currently no Lua function to change the title of a Lua floater (I did not deem it necessary since, normally, Lua floater XUI definitions are designed for a specific purpose).


2024-12-14 23:17:46
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.