-
July 12th, 2021, 19:18 #461
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
July 12th, 2021, 19:59 #462
- Join Date
- May 2016
- Posts
- 521
I have attached a zip with a .rwp and a campaign.
In the charsheet_main if you modify the Frame Offset associated with the WindowList1 and without leaving the field hit ctrl-s, ctrl-g then reload the campaign it will not have updated the offset.
Once I click outside of the Frame Offset field it will ctrl-s, ctrl-g with updates as expected. And I forgot to reply that I do have the latest version of Ruleset Wizard.
Harpo.Last edited by jharp; July 12th, 2021 at 20:01. Reason: Answering question posed.
-
July 14th, 2021, 13:30 #463
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
I tried to implement a "combined filter" for a feats list in a charsheet but i cant get it to work.
I defined a "stringCylcer" where i can set the feats type which should be shown in the featslist and a stringfield (advanced template : filter, like in the ruleset wizard video tutorial for filters)m which with i wanted to be able to filter the featslist of the selected feats type.
I tried to find out how all that filter stuff works with the FG Framework but i did not get it .. .. There is a "applyFilter" and "onFilter" method on windowlists i noticed by how can i trigger the "onFilter" for all windowlist enties with the filter logic of the combined filter creterias ?
UPDATE:
I found a (the?) solution. When changing the "stringCycler" i will close all windows of the featslist und reopen only a new window for the featslist nodes with the featstype of the cycler.
Maybe there is a better way but this works just fine ...Last edited by drvolk; July 14th, 2021 at 16:22.
-
July 14th, 2021, 23:46 #464
The onFilter function is called for each list entry every time the list is reordered or new entries are added. In this function you have a reference of the item being evaluated (w) and you can compare its values with those of the filter criterias (the string cycler and the string filter). Then the function must return true if the item meets the criteria and should be showed, and false otherwise.
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
July 15th, 2021, 00:02 #465
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
July 15th, 2021, 09:55 #466
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
-
July 15th, 2021, 17:35 #467
the applyFilter function should do the work:
https://www.fantasygrounds.com/refdo...cp#applyFilterRuleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
July 16th, 2021, 00:53 #468
For those who want to start using Git with their projects but don't know how, here is a tutorial:
https://www.rulesetwizard.com/advanc...t-integration/Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
-
July 19th, 2021, 15:46 #469
- Join Date
- Jul 2010
- Location
- Germany, Frankfurt
- Posts
- 156
I am not sure if the problem is here again or if I am using the described workaround incorrectly but i got the empty item entry again
Here is the XML for it:
Code:<?xml version="1.0" encoding="iso-8859-1"?> <root> <windowclass name="NewWindow"> <placement> <size height="117" width="299" /> </placement> <sheetdata> <button_stringcycler name="StringCycler1" merge="join"> <frame> <name>fielddark</name> <offset>0,0,0,0</offset> </frame> <bounds>18,17,252,65</bounds> <parameters> <labelsres>NewWindow_StringCycler1_Label_Label1|NewWindow_StringCycler1_Label_Label2</labelsres> <values>Value1|Value2</values> </parameters> <parameters> <nodefault></nodefault> </parameters> </button_stringcycler> </sheetdata> </windowclass> </root>
-
July 19th, 2021, 16:15 #470
That's for the Icon Cycler, and you are using a string cycler, which does not have the same properties.
Ruleset Wizard
The Ruleset Development Environment
www.rulesetwizard.com
Ruleset Wizard Tutorials
Damned's Ruleset Wizard Tutorials
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks