Thread: Add Button Error
-
January 2nd, 2022, 00:36 #1
Add Button Error
I set up an 'add' button on one of my inventory lists, and it does add a blank item, however it also throws an error:
[ERROR] Script execution error: [string "common/scripts/list_text.lua"]:46: attempt to index field '?' (a nil value)
This seems to be an issue with where focus is established, but I can't, for the life of me figure out where the actual problem lies...
It does add the item just fine, so I'm not sure what the problem is or where to look...
-
January 2nd, 2022, 00:41 #2
I believe it wants to add focus with that lua script for a 'name' control. You might need to setup a new template to use and change the code to the proper focus.
Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
-
January 2nd, 2022, 01:17 #3
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
You can also set a newfocus tag on the button definition to specify the alternate control name to accept focus. (Ex: <newfocus>label</newfocus>)
Regards,
JPG
-
January 2nd, 2022, 01:33 #4
Under General >> Custom Properties and a new one
Property Name newfocus
Property Value name of control that you want focus on
-
January 2nd, 2022, 01:40 #5
-
January 2nd, 2022, 01:45 #6
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks