I'm adding a tab to the token editing dialog in the UI because I want to support properties I'm adding to tokens in the java code.
The property I want to add is analogous to ownership -- i.e. has a setting similar to "owned by all" (All Players) plus several checkboxes to make more specific assignments if necessary.
By mimicking ownership, I got it to mostly work... though I couldn't seem to get the automatic assignment to set up an interface with my variable, the way it does with the @ownedByAll component. So that's my first question: how do I connect my new boolean variable to be automatically coordinated with my new field the way @ownedByAll is connected?
After getting things that far, I realized there were several such sets of variables I might eventually want to add. So, rather than adding yet more tabs to the UI, I decided to put them all on the single new tab, one after another in a table. I haven't added the new functionality yet -- only my one set of variables is yet implemented code-side -- but I redesigned the form to have space for the others.
Now it's not working at all.
My code is unable to find the "dummy" field (analogous to the ownershipList field in the existing ownership pane) to replace with the new component generated by the code (new CheckBoxListWithSelectable()). Instead, I'm now getting a Unable to find compName error.
From what little documentation I've found on Abeille, I'm guessing this may be a nesting problem. After all, no longer is the form I'm hunting for a unit within the sole container on the tab of the tabbed pane object (the way the ownershipList element is a field on the ownershipPanel gridView which is the sole content of that tab)... rather it is a field in one of three such gridViews, which are in turn contained together in the single gridView which is the content of the new tab.
But I cannot, after many frustrating hours, figure out how to get the right parameters in the code (EditTokenDialog.java) to make the call to replaceComponent to replace the dummy field with the one I create on the fly (the way ownershipList is replaced by the ownerList in the initOwnershipPanel() call).
So there's my second question: given that my new tab contains a grid object which in turn contains 3 grid objects, each of which in turn has a component I will want to replace... how do I do that?!
Need Abeille help...
Thoughts, Help, Feature Requests, Bug Reports, Developing code for...
Moderators: dorpond, trevor, Azhrei
Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior.
Jump to
- General
- ↳ Announcements
- ↳ Ideas for New Applications
- ↳ General Discussion
- ↳ Developer Notes
- ↳ Java Programming Info
- ↳ User Creations
- ↳ Requests for HELLLLP!
- ↳ Tilesets, Token Libraries, and Complete Maps
- ↳ Token Libraries
- ↳ Tilesets/Graphics for Map-making
- ↳ Complete Maps
- ↳ Campaign Frameworks
- ↳ D&D 5e Frameworks
- ↳ D&D 4e Frameworks
- ↳ D&D 3.5/Pathfinder 1e Campaign Macros
- ↳ D&D 3.5 & PF1e Framework
- ↳ Shadowrun 4e Frameworks
- ↳ Savage Worlds Frameworks
- ↳ Published Module Support
- ↳ Tutorials
- ↳ Graphics, Images, Tokens, Maps
- ↳ Drop-In Macros and Scripts
- ↳ Campaign Frameworks
- ↳ Drop-In Macro Resources
- ↳ Links & External Resources
- ↳ Looking For Group
- ↳ "Living" Campaigns
- ↳ Dungeons and Dragons
- ↳ Savage Worlds
- ↳ WoD
- ↳ Wargaming
- ↳ Documentation Requests/Discussion
- ↳ Session Report-Back
- Tools
- ↳ MapTool
- ↳ How To
- ↳ Macros
- ↳ Feature Requests
- ↳ Resolved
- ↳ Bug Reports
- ↳ Resolved
- ↳ WIP - User FAQ
- ↳ Testing
- ↳ MapTool 1.4
- ↳ TokenTool
- ↳ DiceTool
- ↳ InitiativeTool
- ↳ CharacterTool
- ↳ Support: d20 D&D
- ↳ Support: D&D 4e
- ↳ Support: Hero System
- ↳ Support: Savage Worlds
- ↳ Support: GURPS
- Other
- ↳ RPTools Sightings
- ↳ Running Campaigns
- ↳ Thiera's College of Adventurers
- ↳ Age of Might
- ↳ Scales of War
- ↳ Renwold
- ↳ Dead Men Walking
- ↳ Dark Sun - 4th Edition
- ↳ Warhammer Fantasy Roleplay
- ↳ Return of Uchly Namen
- ↳ Insert Campaign Here
- ↳ Antium
- ↳ The Mystic Moon
- ↳ World of Lagal
- ↳ GangerRun
- ↳ FB Scales of War
- ↳ Sellswords of Eberron
- ↳ Archive
- ↳ Orbs of Chaos
- ↳ World of Omegus
- ↳ Keep on the Shadowfell - 4E
- ↳ Rise of the Runelords
- ↳ Aurith In The Age Of Steam
- ↳ Widdershins
- ↳ Nos's Pathfinder Campaign
- ↳ Falcons Hollow
- ↳ Verwirrte Welten
- ↳ With it or on it
- ↳ Starter Set - Jeff